mirror of
https://github.com/OCA/contract.git
synced 2025-02-13 17:57:24 +02:00
[FIX] contract_recurring_invoicing_marker: Avoid empty date format
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user