Browse Source

[FIX] contract_recurring_invoicing_marker: Avoid empty date format

pull/38/head
Pedro M. Baeza 9 years ago
parent
commit
5633de60a7
  1. 2
      contract_recurring_invoicing_marker/models/account_analytic_account.py

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

Loading…
Cancel
Save