From 6743a46eed8ee8d148842946149a1d0c657aaf51 Mon Sep 17 00:00:00 2001 From: Vincent Vinet Date: Thu, 6 Nov 2014 10:18:52 -0500 Subject: [PATCH] copy account move lines without bank reconciliation fields --- .../account_move_line.py | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/npg_bank_account_reconciliation/account_move_line.py b/npg_bank_account_reconciliation/account_move_line.py index 56912bf87..7ae4aa42e 100644 --- a/npg_bank_account_reconciliation/account_move_line.py +++ b/npg_bank_account_reconciliation/account_move_line.py @@ -32,6 +32,16 @@ class account_move_line(osv.osv): } -account_move_line() + def copy(self, cr, uid, id, default=None, context=None): + if default is None: + default = {} -# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: \ No newline at end of file + default.update( + cleared_bank_account=False, + bank_acc_rec_statement_id=False, + draft_assigned_to_statement=False, + ) + + return super(account_move_line, self).copy(cr, uid, id, + default=default, + context=context)