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

Module: Donation Mass

Entity: mass.request

Compute Method: _compute_offering

View 18.0
Inputs Method Outputs
  • product_id
  • company_id
  • company_id.currency_id
  • quantity
  • product_id.list_price
+ for req in self:
+             offering = 0.0
+             if req.product_id and req.company_id:
+                 offering = req.company_id.currency_id.round(
+                     req.quantity * req.product_id.list_price
+                 )
+             req.offering = offering
  • offering

Back to entity