Commit 86410088 authored by Jesús Alberto Lomas Simón's avatar Jesús Alberto Lomas Simón Committed by agb80

feat(account.move): se realizaron cambios al tipo de cambio

Se modifico en campo tipocambio para obtener el valor de la moneda ya sea diferente de MXN
parent 8eb5dde3
Pipeline #23625 failed with stages
in 6 minutes and 41 seconds
......@@ -451,8 +451,15 @@ class AccountMove(models.Model):
def l10n_mx_facturae_compute_tipocambio(self):
tipocambio = False
if self.currency_id.name != "MXN":
tipocambio = self.custom_rate
date = self.invoice_date
from_currency = self.currency_id
to_currency = self.company_id.currency_id
tipocambio = from_currency._get_conversion_rate(
from_currency,
to_currency,
self.company_id,
date,
)
return tipocambio
def l10n_mx_facturae_compute_type_document(self):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment