Number of digits after comma QWEB PDF Odoo
This code bellow will display on the QWEB PDF 4 digits after comma of qty field, for 2 digits just replace by ‘%.2f’%
This code bellow will display on the QWEB PDF 4 digits after comma of qty field, for 2 digits just replace by ‘%.2f’%
After executing the install command bellow : I got this error message: to solve this issue, i had to purge samba and all its dependencies, then reinstall it.
Create a function in your model: call the function by the following XML code:
Create under your module a folder controller, in that folder create files controller.py and __init__.py and link your new file in __init__.py, don’t forget to add controller folder in the __init__.py at the root folder of your module. controller.py code bellow will make available the URL www.myodoo.com/page/random/random_variable, random_variable value will be stored in values dictionary on key variable. in folder view of your module create the file template.xml
Scheduled actions can be set by adding this code in your xml file. This exemple will call the function schedule_action from the model hr.employee and send a notification by email if the boolean enable_send_notification is True. This model inherits hr.employee and defines 1 additional field, and 2 additional functions. send_notification is sending email based on the the template my_module.email_hr_employee_notification, see this post how to create email template with xml, schedule_action is the function called by the scheduler.
