Odoo Mindscape. Understand Odoo faster. Explore modules, fields, dependencies and version differences in one place instead of digging through the source code.
Module: Company Currency in Sale Orders
Entity: sale.order
Compute Method: _compute_amount_company
| Inputs | Method | Outputs |
|---|---|---|
|
- for order in self: - if order.currency_id.id == order.company_id.currency_id.id: - to_amount = order.amount_total - else: - to_amount = order.amount_total * order.currency_rate - order.amount_total_curr = to_amount |
|
