Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

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)
Source by docs.huihoo.com #
 
PREVIOUS NEXT
Tagged: #odoo #compute #documentation
ADD COMMENT
Topic
Name
9+3 =