Skip to content
5 changes: 4 additions & 1 deletion maintenance_request_purchase/models/maintenance_request.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,10 @@ def _compute_total_purchase_amount(self):
po.currency_id._convert(
po.amount_total,
company_currency,
record.company_id,
# maintenance.request.company_id is optional; use each
# purchase order's own company (always set) so the rate
# context is deterministic and never empty.
po.company_id,
date,
)
for po in record.purchase_order_ids.filtered(
Expand Down
4 changes: 4 additions & 0 deletions maintenance_request_purchase/readme/CONTRIBUTORS.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,7 @@
* Jaime Arroyo
* Olga Marco
* Núria Sancho

* `NuoBiT <https://www.nuobit.com>`__:

* Eric Antones <eantones@nuobit.com>