Show the lead-owner as lead-owner-name and lead-owner-lastname
I’ve read ALL the doc of frappe and ERPNext and I can NOT image what to do next. Because the documentation is still almost NULL.
At least if somebody going to answer me, please, let me know if we are doing stuff on the server side or this functions belongs to the client side.
PS:
HOW you can debug a variable in the *.py OR in the template engine(JINJA) ? Because I’ve tried
in python
frappe.debug('message') --->NOTHING
in JINJA
{% pprint() %} —>DONT WORK
{# this is a commment #} ---->DONT WORK
Thanks for the replay!
I will update to version 5.
Please, can you clarify these doubts to me.
To process the tags in the lead_list.html
{%= list.get_avatar_and_id(doc)%}
is NOT JINJA, is javascript, what are you using for that?
2. In order to override the function get_avatar_and_id in listview.js I had a better idea:
a. I created a new app called testapp
b. I added in apps/testapp/testapp these folders public/js and added the testapp.js.
c. Inside testapp.js i wrote
frappe.views.ListView = frappe.views.ListView.extend({
get_avatar_and_id: function(data, without_workflow) {
-- HERE I MADE MY CHANGE --
},
});;