Commit b17fddc3 by Damien Moulard

Merge branch 'dev_cooperatic' of…

Merge branch 'dev_cooperatic' of gl.cooperatic.fr:cooperatic-foodcoops/third-party into dev_cooperatic
parents fe9996d3 7fd786cc
Pipeline #3385 failed with stage
in 1 minute 6 seconds
......@@ -877,8 +877,13 @@ class CagetteMember(models.Model):
del partner['parent_name']
return res
elif search_type == "short": #used in brinks. do not show rattaché user (only the member user)
fields = CagetteMember.m_short_default_fields
fields = fields + ['total_partner_owned_share','amount_subscription']
cond.append(['parent_member_num', '=', 0])
res = api.search_read('res.partner', cond, fields)
return res
else:
# TODO differentiate short & subscription_data searches
fields = CagetteMember.m_short_default_fields
fields = fields + ['total_partner_owned_share','amount_subscription']
res = api.search_read('res.partner', cond, fields)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment