[FIX] contract_recurring_invoicing_marker: Avoid empty date format

This commit is contained in:
Pedro M. Baeza
2016-02-22 19:26:41 +01:00
parent 95feed8357
commit 5d4e639086

View File

@@ -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(