[IMP] a_i_c_chronology: improve/fox onchange
This commit is contained in:
parent
383441d230
commit
1d7a9fe2d8
@ -10,10 +10,7 @@ class AccountJournal(models.Model):
|
|||||||
|
|
||||||
check_chronology = fields.Boolean(string='Check Chronology', default=False)
|
check_chronology = fields.Boolean(string='Check Chronology', default=False)
|
||||||
|
|
||||||
@api.multi
|
|
||||||
@api.onchange('type')
|
@api.onchange('type')
|
||||||
def on_change_type(self):
|
def _onchange_type(self):
|
||||||
for rec in self:
|
if self.type not in ['sale', 'purchase']:
|
||||||
if rec.type not in ['sale', 'purchase']:
|
self.check_chronology = False
|
||||||
rec.check_chronology = False
|
|
||||||
return True
|
|
||||||
|
Loading…
Reference in New Issue
Block a user