Odoo Mindscape. Understand Odoo faster. Explore modules, fields, dependencies and version differences in one place instead of digging through the source code.
Module: Donation
Entity: donation.line
Compute Method: _compute_amount
| Inputs | Method | Outputs |
|---|---|---|
|
- for line in self: - amount = line.quantity * line.unit_price - line.amount = amount - donation_currency = line.donation_id.currency_id - date = line.donation_id.donation_date or fields.Date.context_today(self) - amount_company_currency = donation_currency._convert( - amount, - line.donation_id.company_id.currency_id, - line.donation_id.company_id, - date, - ) - tax_receipt_amount_cc = 0.0 - if line.product_id.tax_receipt_ok: - tax_receipt_amount_cc = amount_company_currency - line.amount_company_currency = amount_company_currency - line.tax_receipt_amount = tax_receipt_amount_cc |
|
