From 1984fc62cb3a96412b10337e43a2a56914fb3b07 Mon Sep 17 00:00:00 2001 From: "ARA (OpenERP)" Date: Thu, 17 Mar 2011 19:04:19 +0530 Subject: [PATCH 01/99] [FIX] account: journal seqence not respected lp bug: https://launchpad.net/bugs/726092 fixed bzr revid: ara@tinyerp.com-20110317133419-87dwll6uv39lw3cl --- addons/account/account_cash_statement.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/addons/account/account_cash_statement.py b/addons/account/account_cash_statement.py index ff0f0117ff5..04e780ade30 100644 --- a/addons/account/account_cash_statement.py +++ b/addons/account/account_cash_statement.py @@ -320,6 +320,7 @@ class account_cash_statement(osv.osv): """ Changes statement state to Running. @return: True """ + obj_seq = self.pool.get('ir.sequence') if context is None: context = {} statement_pool = self.pool.get('account.bank.statement') @@ -329,15 +330,18 @@ class account_cash_statement(osv.osv): raise osv.except_osv(_('Error !'), (_('User %s does not have rights to access %s journal !') % (statement.user_id.name, statement.journal_id.name))) if statement.name and statement.name == '/': - number = self.pool.get('ir.sequence').get(cr, uid, 'account.cash.statement') + if statement.journal_id.sequence_id: + c = {'fiscalyear_id': statement.period_id.fiscalyear_id.id} + st_number = obj_seq.get_id(cr, uid, statement.journal_id.sequence_id.id, context=c) + else: + st_number = obj_seq.get(cr, uid, 'account.cash.statement') vals.update({ - 'name': number + 'name': st_number }) vals.update({ 'date': time.strftime("%Y-%m-%d %H:%M:%S"), 'state': 'open', - }) self.write(cr, uid, [statement.id], vals, context=context) return True From 838d9a3e60f49895bc54c3b58bc3d8ed36445c08 Mon Sep 17 00:00:00 2001 From: "pso (OpenERP)" Date: Fri, 1 Apr 2011 10:55:32 +0530 Subject: [PATCH 02/99] [FIX] hr_holidays: possible to set to draft a refused allocation request lp bug: https://launchpad.net/bugs/746471 fixed bzr revid: pso@tinyerp.com-20110401052532-5op996ya8rxbq0kb --- addons/hr_holidays/hr_holidays_view.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/hr_holidays/hr_holidays_view.xml b/addons/hr_holidays/hr_holidays_view.xml index 7740470ccc7..f49b2ab388a 100644 --- a/addons/hr_holidays/hr_holidays_view.xml +++ b/addons/hr_holidays/hr_holidays_view.xml @@ -139,7 +139,7 @@