[FIX] Account: account - sequence_id in journal must be unique
lp bug: https://launchpad.net/bugs/734949 fixed bzr revid: mra@mra-laptop-20110316112522-nr1q01gm314vos0b
This commit is contained in:
parent
3e65297607
commit
e012af7da9
|
@ -641,6 +641,7 @@ class account_journal(osv.osv):
|
|||
default = default.copy()
|
||||
default['code'] = (journal['code'] or '') + '(copy)'
|
||||
default['name'] = (journal['name'] or '') + '(copy)'
|
||||
default['sequence_id'] = False
|
||||
return super(account_journal, self).copy(cr, uid, id, default, context=context)
|
||||
|
||||
def write(self, cr, uid, ids, vals, context=None):
|
||||
|
|
Loading…
Reference in New Issue