[FIX] I you changed the invoice of a member (draft->open->canceled->draft), his membership state changed but not the state of the associated members of him.
lp bug: https://launchpad.net/bugs/313339 fixed bzr revid: qdp@tinyerp.com-20090128112915-fcsi4645w7m03otc
This commit is contained in:
parent
fabaa266de
commit
ba3b0ea1dc
|
@ -223,6 +223,10 @@ class Partner(osv.osv):
|
|||
list_partner = []
|
||||
for data in data_inv:
|
||||
list_partner.append(data.partner.id)
|
||||
ids2 = list_partner
|
||||
while ids2:
|
||||
ids2 = self.pool.get('res.partner').search(cr, uid, [('associate_member','in',ids2)], context=context)
|
||||
list_partner += ids2
|
||||
return list_partner
|
||||
|
||||
def _get_invoice_partner(self, cr, uid, ids, context=None):
|
||||
|
@ -230,6 +234,10 @@ class Partner(osv.osv):
|
|||
list_partner = []
|
||||
for data in data_inv:
|
||||
list_partner.append(data.partner_id.id)
|
||||
ids2 = list_partner
|
||||
while ids2:
|
||||
ids2 = self.pool.get('res.partner').search(cr, uid, [('associate_member','in',ids2)], context=context)
|
||||
list_partner += ids2
|
||||
return list_partner
|
||||
|
||||
def _membership_state(self, cr, uid, ids, name, args, context=None):
|
||||
|
|
Loading…
Reference in New Issue