diff --git a/addons/account_followup/account_followup.py b/addons/account_followup/account_followup.py index f05d6fc2ab5..9cedbebf974 100644 --- a/addons/account_followup/account_followup.py +++ b/addons/account_followup/account_followup.py @@ -293,6 +293,13 @@ class res_partner(osv.osv): model = 'res.partner', res_id = part.id, partner_ids = [responsible_partner_id]) return super(res_partner, self).write(cr, uid, ids, vals, context=context) + + def copy(self, cr, uid, record_id, default=None, context=None): + if default is None: + default = {} + + default.update({'unreconciled_aml_ids': []}) + return super(res_partner, self).copy(cr, uid, record_id, default, context) def action_done(self, cr, uid, ids, context=None): return self.write(cr, uid, ids, {'payment_next_action_date': False, 'payment_next_action':'', 'payment_responsible_id': False}, context=context)