Odoo Mindscape. Understand Odoo faster. Explore modules, fields, dependencies and version differences in one place instead of digging through the source code.
Module: Purchase Agreements
Entity: purchase.requisition.line
Compute Method: _compute_price_unit
| Inputs | Method | Outputs |
|---|---|---|
|
+ for line in self: + if line.requisition_id.state != 'draft' or line.requisition_id.requisition_type != 'purchase_template' or not line.requisition_id.vendor_id or not line.product_id: + continue + seller = line.product_id._select_seller( + partner_id=line.requisition_id.vendor_id, quantity=line.product_qty, + date=line.requisition_id.date_start, uom_id=line.product_uom_id) + line.price_unit = seller.price if seller else line.product_id.standard_price |
|
