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

Module: Repair Quotation Manual Sync

Entity: stock.move

Compute Method: _compute_sync_flags

Inputs Method Outputs
  • product_uom
  • product_uom.rounding
  • repair_invoiceable
  • sale_line_id
  • product_uom_qty
  • sale_line_id.product_uom_qty
for move in self:
            precision = move.product_uom.rounding
            move.repair_create_sync = (
                move.repair_invoiceable
                and not move.sale_line_id
                and not float_is_zero(
                    move.product_uom_qty, precision_rounding=precision
                )
            )
            move.repair_update_sync = move.sale_line_id and (
                float_compare(
                    move.product_uom_qty,
                    move.sale_line_id.product_uom_qty,
                    precision_rounding=precision,
                )
                != 0
                or not move.repair_invoiceable
            )

Back to entity