[FIX] account_followup: do no duplicate partner's account.move.line
Duplicating a partner should not duplicate the content of the unreconciled_aml_ids field.
This commit is contained in:
parent
1d57a09112
commit
7cc3e65b33
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue