[12.0][FIX] account_move_fiscal_month: error when creating account.move
This commit is contained in:
parent
adac5709b8
commit
3b79e655be
@ -20,7 +20,8 @@ class AccountMove(models.Model):
|
|||||||
for rec in self:
|
for rec in self:
|
||||||
date = rec.date
|
date = rec.date
|
||||||
company = rec.company_id
|
company = rec.company_id
|
||||||
rec.date_range_fm_id = company.find_daterange_fm(date)
|
rec.date_range_fm_id =\
|
||||||
|
company and company.find_daterange_fm(date) or False
|
||||||
|
|
||||||
@api.model
|
@api.model
|
||||||
def _search_date_range_fm(self, operator, value):
|
def _search_date_range_fm(self, operator, value):
|
||||||
|
Loading…
Reference in New Issue
Block a user