# Copyright (C) 2020 - Today: GRAP (http://www.grap.coop) # @author: Sylvain LE GAL (https://twitter.com/legalsylvain) # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). from odoo import api, models class AccountMove(models.Model): _inherit = "account.move" @api.multi def post(self, invoice=False): return super( AccountMove, self.with_context(account_sequence=True) ).post(invoice=invoice)