mirror of
https://github.com/OCA/account-financial-tools.git
synced 2025-02-02 12:47:26 +02:00
[MIG] account_invoice_constraint_chronology: Migration to 15.0
This commit is contained in:
committed by
Zina Rasoamanana
parent
f01806efdd
commit
4981ff03d6
@@ -12,6 +12,7 @@ class AccountJournal(models.Model):
|
||||
|
||||
@api.onchange("type")
|
||||
def _onchange_type(self):
|
||||
super()._onchange_type()
|
||||
res = super()._onchange_type()
|
||||
if self.type not in ["sale", "purchase"]:
|
||||
self.check_chronology = False
|
||||
return res
|
||||
|
||||
Reference in New Issue
Block a user