From 33c550f1c94088ac935964e39c94cbf8466886fd Mon Sep 17 00:00:00 2001 From: gpa Date: Tue, 11 Jan 2011 12:14:20 +0530 Subject: [PATCH 001/188] [IMP]partner:added suppliers menu domain bzr revid: gpa@tinyerp.com-20110111064420-9p05fwjsizqbtubz --- bin/addons/base/res/partner/partner_view.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/addons/base/res/partner/partner_view.xml b/bin/addons/base/res/partner/partner_view.xml index 8c949a7f410..3f225f29e49 100644 --- a/bin/addons/base/res/partner/partner_view.xml +++ b/bin/addons/base/res/partner/partner_view.xml @@ -394,7 +394,7 @@ ir.actions.act_window res.partner form - [] + [('supplier','=',1)] {'default_customer':0, 'search_default_supplier': 1, 'default_supplier':1} You can access all information regarding your suppliers from the supplier form: accounting data, history of emails, meetings, purchases, etc. You can uncheck the 'Suppliers' filter button in order to search in all your partners, including customers and prospects. From 6a11b89e1729c6ac06efba1e75405e1ecd24dc8a Mon Sep 17 00:00:00 2001 From: Julien Thewys Date: Wed, 9 Feb 2011 11:07:35 +0100 Subject: [PATCH 002/188] [FIX] ensures no illegitimate cli argument is silently discarded This avoids an insidious behavior: when copy-pasting a command from a Microsoft document to the cmd terminal, one might not see that a hyphen ('-') preceding an option has been converted to a dash (u'\u2012') which is then interpreted as a normal cli argument (i.e. not an option) and thus silently discarded. bzr revid: jth@openerp.com-20110209100735-jaschhlv3cfqjry5 --- openerp/tools/config.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/openerp/tools/config.py b/openerp/tools/config.py index 7d0b04739e4..626720a43c2 100644 --- a/openerp/tools/config.py +++ b/openerp/tools/config.py @@ -251,12 +251,14 @@ class configmanager(object): self.parse_config() def parse_config(self, args=[]): - opt = self.parser.parse_args(args)[0] + opt, args = self.parser.parse_args() def die(cond, msg): if cond: - print msg - sys.exit(1) + self.parser.error(msg) + + # Ensures no illegitimate argument is silently discarded (avoids insidious "hyphen to dash" problem) + die(args, "unrecognized parameters were passed: '%s'" % " ".join(args)) die(bool(opt.syslog) and bool(opt.logfile), "the syslog and logfile options are exclusive") From 1984fc62cb3a96412b10337e43a2a56914fb3b07 Mon Sep 17 00:00:00 2001 From: "ARA (OpenERP)" Date: Thu, 17 Mar 2011 19:04:19 +0530 Subject: [PATCH 003/188] [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 004/188] [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 @@