Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class PosOrder(models.Model):
- _inherit = 'pos.order'
- @api.multi
- def action_pos_order_invoice(self):
- response = super(PosOrder, self).action_pos_order_invoice()
- invoice = self.env['account.invoice'].search([('id', '=', response['res_id'])])
- invoice.send_fiscal_printer_action()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement