diff --git a/contract_recurring_invoicing_marker/models/account_analytic_account.py b/contract_recurring_invoicing_marker/models/account_analytic_account.py index c29866551..a134d75eb 100644 --- a/contract_recurring_invoicing_marker/models/account_analytic_account.py +++ b/contract_recurring_invoicing_marker/models/account_analytic_account.py @@ -33,7 +33,7 @@ class AccountAnalyticAccount(models.Model): contract = line.analytic_account_id lang = lang_obj.search( [('code', '=', contract.partner_id.lang)]) - date_format = lang.date_format + date_format = lang.date_format or '%d/%M/%Y' res['name'] = res['name'].replace( '#START#', self.env.context['old_date'].strftime(date_format)) res['name'] = res['name'].replace(