Skip to content

Commit

Permalink
Merge pull request #612 from NL66278/7.0-issue#611-duplicate-bank-sta…
Browse files Browse the repository at this point in the history
…tement

[7.0][FIX] Issue #611 - do not copy move_ids on duplicate of statement.
  • Loading branch information
StefanRijnhart committed Jun 9, 2017
2 parents effbb19 + 71e454d commit 8c65239
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions addons/account/account_bank_statement.py
Expand Up @@ -577,11 +577,11 @@ def onchange_type(self, cr, uid, line_id, partner_id, type, context=None):
'type': 'general',
}

def copy(self, cr, uid, id, default=None, context=None):
def copy_data(self, cr, uid, id, default=None, context=None):
if default is None:
default = {}
default = dict(default, move_ids=[])
return super(account_bank_statement_line, self).copy(
return super(account_bank_statement_line, self).copy_data(
cr, uid, id, default=default, context=context)

account_bank_statement_line()
Expand Down

0 comments on commit 8c65239

Please sign in to comment.