please someone to help me, I need to create a frappe.dialog something like that
Something like what? Can you be more specific?
something like the picture in a frappe dialog (section search, list product, list price)
Does it have to be a dialog? You will probably have more success rendering to an HTML field.
yes like that and add tables, you have the idea how i can create something like that @Leonardo_Augusto
Christian…puedes utilizar el pos.js como inspiración o quizás del timer aquí erpnext/erpnext/public/js/projects/timer.js
Here are some dialog resources:
The Frappe guide (short but essential): Dialogs Types
Custom width: [Tutorial] Custom size dialog in ERPNext
More styling (discuss → ERPNext example): How to style elements inside frappe dialog
Buena suerte.
thanks @tmatteson I served custom dialog and you know how to add a table with html and fill that table with a sql query
Yes I do. It’s several steps and kinda complex.
- Setup an HTML docfield in your dialog - the custom dialog type in that tutorial has an example
- Write a callback that calls a:
2A) python method with SQL query (frappe.db.sql)
2B) returns that data as a dictionary - Make your table template (in the Resig microtemplate format)
- Render into the html field with the
render_template
function with the output of the python function
To be fair this process was very difficult for me to learn as a beginner and new in the frappe system, but I’ve done a lot of it now and while I’m more comfortable with putting data into rendered HTML tables in frappe, it’s still not easy. Based on your questions, I think you should expect this project to be difficult.
Si quieres que ayudemos, podemos con paciencia de ambos.
Puedo. Necesito un poco de tiempo para incluir en mi proyecto HTML Demo
aquí:
Dos dias? Talvez un poco mas.