From c8999377051be9e644d55df93cc4247a262e5cd2 Mon Sep 17 00:00:00 2001 From: "PSI(OpenERP)" <> Date: Sat, 14 Aug 2010 16:24:13 +0530 Subject: [PATCH] [IMP] Account: usebility and groups on invoice and invoice lines and misc changes bzr revid: mra@mra-laptop-20100814105413-7p25g2g1g6pi1xjz --- addons/account/account.py | 9 ++++--- addons/account/account_invoice_view.xml | 24 +++++++++---------- addons/account/invoice.py | 2 +- .../account_report_partner_ledger_view.xml | 2 +- 4 files changed, 18 insertions(+), 19 deletions(-) diff --git a/addons/account/account.py b/addons/account/account.py index 8e1dc4a403e..03cd29be438 100644 --- a/addons/account/account.py +++ b/addons/account/account.py @@ -735,14 +735,13 @@ class account_journal(osv.osv): if not args: args = [] ids = [] - if context.get('journal_type', False): args += [('type','=',context.get('journal_type'))] if name: - ids = self.search(cr, user, [('code','ilike',name)]+ args, limit=limit, context=context) + ids = self.search(cr, user, [('code', 'ilike', name)]+ args, limit=limit, context=context) if not ids: - ids = self.search(cr, user, [('name',operator,name)]+ args, limit=limit, context=context) + ids = self.search(cr, user, [('name', operator, name)]+ args, limit=limit, context=context) return self.name_get(cr, user, ids, context=context) @@ -854,9 +853,9 @@ class account_fiscalyear(osv.osv): context = {} ids = [] if name: - ids = self.search(cr, user, [('code','ilike',name)]+ args, limit=limit) + ids = self.search(cr, user, [('code', 'ilike', name)]+ args, limit=limit) if not ids: - ids = self.search(cr, user, [('name',operator,name)]+ args, limit=limit) + ids = self.search(cr, user, [('name', operator, name)]+ args, limit=limit) return self.name_get(cr, user, ids, context=context) account_fiscalyear() diff --git a/addons/account/account_invoice_view.xml b/addons/account/account_invoice_view.xml index 4ef4a19eb3b..ec8107cd830 100644 --- a/addons/account/account_invoice_view.xml +++ b/addons/account/account_invoice_view.xml @@ -62,7 +62,7 @@ - + @@ -125,7 +125,7 @@ - + @@ -164,14 +164,14 @@ - - + + - + @@ -215,7 +215,7 @@