This code bellow will display on the QWEB PDF 4 digits after comma of qty field, for 2 digits just replace by '%.2f'%
<span t-esc="'%.4f'% o.qty" />
This code bellow will display on the QWEB PDF 4 digits after comma of qty field, for 2 digits just replace by '%.2f'%
<span t-esc="'%.4f'% o.qty" />
This is a basic email template to put in the xml file: [code lang="xml"] <record id="email_template" model="mail.template"> <field name="name">My Email…
Edit the format of the address By default with the localization i set for my company, addresses are displayed like…
[code lang="python"] @api.multi def multi_fct(self): i = 0 for record in self: i += record.value return i @api.depends('qty') def multi_fct(self):…
Sql query in Odoo model [code lang="python"] @api.multi def get_all_so(self, name=None): sql = "select * from sale_order where…