[FIX] Account : Copying bank statement should not copy move lines

bzr revid: jvo@tinyerp.com-20100416093402-02cexv44hnljzm1l
This commit is contained in:
Jay (Open ERP) 2010-04-16 15:04:02 +05:30
parent e2ba8cb627
commit a719165751
1 changed files with 9 additions and 0 deletions

View File

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