Files
account-financial-tools/account_subsequence_fiscal_year/models/account_move.py
Sylvain LE GAL 1ef9c7ead8 [ADD] new module account_subsequence_fiscal_year
Co-authored-by: Saran @ Ecosoft <saranl@ecosoft.co.th>
2021-03-30 21:58:19 +02:00

15 lines
453 B
Python

# 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)