Odoo Mindscape. Understand Odoo faster. Explore modules, fields, dependencies and version differences in one place instead of digging through the source code.

Module: Point of Sale

Entity: pos.order

Compute Method: _compute_has_refundable_lines

Inputs Method Outputs
digits = self.env['decimal.precision'].precision_get('Product Unit of Measure')
for order in self:
            order.has_refundable_lines = any([float_compare(line.qty, line.refunded_qty, digits) > 0 for line in order.lines])

Back to entity