Try ERPNext Buy Support Partners Foundation

Cannot find sales_team or print its persons

Since this board not only doesn’t allow more than one picture (no matter how small all of them are), but also not more than 2 links, I kindly ask you to get the pictures from this repo:

Here is an entry in a doctype:


Now I would like to figure out what that is, what kind of attributes items in that list have, so I search for it:


Now, how am I supposed to proceed?

Turned out it is in my “Sales Person Tree”, somehow after a frantic search I found that.


But there doesn’t seem to be a way to find that comfortably. I basically had to stumble across it by accident.

Now, here is a part of the doctype of “sample salesperson”:


But I can’t show the “sales_person_name” in a jinja template, because when I use

{%- for person in doc.sales_team -%}
    {{ person.sales_person_name }}
{%- endfor -%}

It complains with {{ no such element: erpnext.selling.doctype.sales_team.sales_team.SalesTeam object['sales_person_name'] }}

Don’t ask me how I figured that out, but when I use {{ person.sales_person }} it gives me sample salesperson in the html. However, using {{ person.sales_person.sales_person_name }} yields {{ no such element: str object['sales_person_name'] }}

How can I use the sales_person_name in my jinja template?

Thanks for any help.