Im learning how to create custom apps, and I needed to set a value from the app setup DocType, so I create a Whitelist method to use frm.set_value() later, and I type this command:
and its ok, but when I
go to the docType throws me an error:
this is the test whitelist function:
from __future__ import unicode_literals
import frappe
@frappe.whitelist()
def prueba():
frappe.msgprint("Prueba desde Funcion whitelist en venta_de_auto.py")
print("Prueba desde Funcion whitelist en venta_de_auto.py")
return True
I wrote the whitelist function in the controller’s DocType
/apps/dealer/dealer/dealer/doctype/venta_de_auto/venta_de_auto.py
The .py file is venta_de_auto.py
The app name is dealer
I just did, but nothing happened,
I did it also, nothing happened,
It was the problem
Thak you so much man,
I have a development enviroment, and I though that we didn’t need to restart bench on develop, I Stopped with ctrl+c and then start bench again with bench start
I honestly started about 2 months ago… I’m currently working on multiple projects … I also recently picked up python because of this application so I’m learning as I go…