From 17a630cd247d3b321c5f7b7f22aacbef1b7b4ff5 Mon Sep 17 00:00:00 2001 From: Denis Ledoux Date: Mon, 19 Oct 2015 12:11:32 +0200 Subject: [PATCH] [FIX] account: use `range_year` for sequences using ranges This is an oversight during the foward-port 57168a9e90066ed6b3d274d5032a20bef342a00f of the revision 57168a9e90066ed6b3d274d5032a20bef342a00f opw-652410 --- addons/account/data/account_data.xml | 10 +++++----- addons/account/models/account.py | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/addons/account/data/account_data.xml b/addons/account/data/account_data.xml index a5170efdd1a..d2932bb95f3 100644 --- a/addons/account/data/account_data.xml +++ b/addons/account/data/account_data.xml @@ -97,7 +97,7 @@ Payments customer invoices sequence account.payment.customer.invoice - CUST.IN/%(year)s/ + CUST.IN/%(range_year)s/ @@ -106,7 +106,7 @@ Payments customer refunds sequence account.payment.customer.refund - CUST.OUT/%(year)s/ + CUST.OUT/%(range_year)s/ @@ -115,7 +115,7 @@ Payments supplier invoices sequence account.payment.supplier.invoice - SUPP.OUT/%(year)s/ + SUPP.OUT/%(range_year)s/ @@ -124,7 +124,7 @@ Payments supplier refunds sequence account.payment.supplier.refund - SUPP.IN/%(year)s/ + SUPP.IN/%(range_year)s/ @@ -133,7 +133,7 @@ Payments transfer sequence account.payment.transfer - TRANS/%(year)s/ + TRANS/%(range_year)s/ diff --git a/addons/account/models/account.py b/addons/account/models/account.py index 6c6a7c5522d..137befc14fd 100644 --- a/addons/account/models/account.py +++ b/addons/account/models/account.py @@ -329,7 +329,7 @@ class AccountJournal(models.Model): prefix = code.upper() if refund: prefix = 'R' + prefix - return prefix + '/%(year)s/' + return prefix + '/%(range_year)s/' @api.model def _create_sequence(self, vals, refund=False):