@api.multi def multi_fct(self): i = 0 for record in self: i += record.value return i @api.depends('qty') def multi_fct(self): i = 0 for record in self: i += record.value * record.qty return i
@api.multi def multi_fct(self): i = 0 for record in self: i += record.value return i @api.depends('qty') def multi_fct(self): i = 0 for record in self: i += record.value * record.qty return i
This code bellow will redirect the user to customer invoice page, you will be able to set the model you…
Sql query in Odoo model [code lang="python"] @api.multi def get_all_so(self, name=None): sql = "select * from sale_order where…
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…
Odoo 9 community doesn't come with autoban security. Fail2ban is an alternative to secure Odoo authentication. For more information concerning…