diff --git a/addons/account/account.py b/addons/account/account.py index 50a90b45577..39e680fa414 100644 --- a/addons/account/account.py +++ b/addons/account/account.py @@ -660,11 +660,6 @@ class account_journal(osv.osv): def create_sequence(self, cr, uid, vals, context=None): """ Create new entry sequence for every new Joural - @param cr: cursor to database - @param user: id of current user - @param ids: list of record ids to be process - @param context: context arguments, like lang, time zone - @return: return a result """ seq_pool = self.pool.get('ir.sequence') seq_typ_pool = self.pool.get('ir.sequence.type') @@ -686,6 +681,8 @@ class account_journal(osv.osv): 'padding': 4, 'number_increment': 1 } + if 'company_id' in vals: + seq['company_id'] = vals['company_id'] return seq_pool.create(cr, uid, seq) def create(self, cr, uid, vals, context=None): diff --git a/addons/account/account_invoice_view.xml b/addons/account/account_invoice_view.xml index b7edf1ee52b..853b9e3f76d 100644 --- a/addons/account/account_invoice_view.xml +++ b/addons/account/account_invoice_view.xml @@ -51,26 +51,22 @@ form
- - - - - - - - - - - - - - - - - - - + + +