Merge PR #986 into 12.0

Signed-off-by AaronHForgeFlow
This commit is contained in:
OCA-git-bot
2020-11-03 08:10:42 +00:00

View File

@@ -20,7 +20,8 @@ class AccountMove(models.Model):
for rec in self:
date = rec.date
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
def _search_date_range_fm(self, operator, value):