Skip to content
Snippets Groups Projects
Commit a7191657 authored by Jay Vora's avatar Jay Vora
Browse files

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

bzr revid: jvo@tinyerp.com-20100416093402-02cexv44hnljzm1l
parent e2ba8cb6
Branches
Tags
No related merge requests found
......@@ -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()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment