From 4b87cf4b12c492cd1b34f0a5c3ddf9f0964b8be2 Mon Sep 17 00:00:00 2001 From: Vincent Vinet Date: Mon, 17 Nov 2014 12:43:53 -0500 Subject: [PATCH] copy account move lines without bank reconciliation fields --- npg_bank_account_reconciliation/account_move_line.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/npg_bank_account_reconciliation/account_move_line.py b/npg_bank_account_reconciliation/account_move_line.py index 7ae4aa42e..6b60a0edc 100644 --- a/npg_bank_account_reconciliation/account_move_line.py +++ b/npg_bank_account_reconciliation/account_move_line.py @@ -31,8 +31,7 @@ class account_move_line(osv.osv): 'draft_assigned_to_statement': fields.boolean('Assigned to Statement? ', help='Check if the move line is assigned to statement lines') } - - 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 = {} @@ -42,6 +41,6 @@ class account_move_line(osv.osv): draft_assigned_to_statement=False, ) - return super(account_move_line, self).copy(cr, uid, id, - default=default, - context=context) + return super(account_move_line, self).copy_data(cr, uid, id, + default=default, + context=context)