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

Module: Stock Request Analytic

Entity: stock.request

Compute Method: _compute_analytic_distribution

Inputs Method Outputs
  • order_id
  • order_id.analytic_distribution
"""Set default analytic distribution on lines from order if defined"""
for req in self:
            if req.order_id.analytic_distribution:
                req.analytic_distribution = req.order_id.analytic_distribution

Back to entity