Answers for "odoo 12 compute documentation"

0

odoo 12 compute documentation

@api.depends('line_ids.value')
def _compute_total(self):
    for record in self:
        record.total = sum(line.value for line in record.line_ids)
Posted by: Guest on December-30-2020

Python Answers by Framework

Browse Popular Code Answers by Language