You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
462 B

  1. # Copyright (C) 2013 - Today: GRAP (http://www.grap.coop)
  2. # @author: Julien WESTE
  3. # @author: Sylvain LE GAL (https://twitter.com/legalsylvain)
  4. # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
  5. from odoo import models
  6. class PosOrder(models.Model):
  7. _inherit = 'pos.order'
  8. def _prepare_invoice(self):
  9. res = super()._prepare_invoice()
  10. res.update({
  11. 'pos_pending_payment': True,
  12. })
  13. return res