Browse Source

[FIX] contract_recurring_invoicing_marker: Incorrect default date format

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

2
contract_recurring_invoicing_marker/models/account_analytic_account.py

@ -39,7 +39,7 @@ class AccountAnalyticAccount(models.Model):
contract = line.analytic_account_id
lang = lang_obj.search(
[('code', '=', contract.partner_id.lang)])
date_format = lang.date_format or '%d/%M/%Y'
date_format = lang.date_format or '%m/%d/%Y'
res['name'] = self._insert_markers(
res['name'], self.env.context['old_date'],
self.env.context['next_date'], date_format)

Loading…
Cancel
Save