[fix] get allocated_percentage from party's sales team

This commit is contained in:
Anand Doshi 2015-10-12 16:15:52 +05:30
parent 3b6a8af0da
commit 4b72d05793

View File

@ -51,7 +51,8 @@ def _get_party_details(party=None, account=None, party_type="Customer", company=
# sales team
if party_type=="Customer":
out["sales_team"] = [{
"sales_person": d.sales_person
"sales_person": d.sales_person,
"allocated_percentage": d.allocated_percentage or None
} for d in party.get("sales_team")]
return out