[FIX] Account : Copying bank statement should not copy move lines
bzr revid: jvo@tinyerp.com-20100416093402-02cexv44hnljzm1l
This commit is contained in:
parent
e2ba8cb627
commit
a719165751
|
@ -353,6 +353,15 @@ class account_bank_statement(osv.osv):
|
|||
osv.osv.unlink(self, cr, uid, unlink_ids, context=context)
|
||||
return True
|
||||
|
||||
def copy(self, cr, uid, id, default=None, context=None):
|
||||
if default is None:
|
||||
default = {}
|
||||
if context is None:
|
||||
context = {}
|
||||
default = default.copy()
|
||||
default['move_line_ids'] = []
|
||||
return super(account_bank_statement, self).copy(cr, uid, id, default, context)
|
||||
|
||||
account_bank_statement()
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue