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 @@