Advertisement
Guest User

Untitled

a guest
Mar 21st, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.31 KB | None | 0 0
  1. class PosOrder(models.Model):
  2.     _inherit = 'pos.order'
  3.  
  4.     @api.multi
  5.     def action_pos_order_invoice(self):
  6.         response = super(PosOrder, self).action_pos_order_invoice()
  7.         invoice = self.env['account.invoice'].search([('id', '=', response['res_id'])])
  8.         invoice.send_fiscal_printer_action()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement