diff --git a/l10n_ar_ux/__manifest__.py b/l10n_ar_ux/__manifest__.py index 53578b116..2317711f8 100644 --- a/l10n_ar_ux/__manifest__.py +++ b/l10n_ar_ux/__manifest__.py @@ -1,5 +1,5 @@ { - "name": "Argentinian Accounting UX", + "name": "Argentinian Accounting UX edit", "version": "19.0.1.6.0", "category": "Localization/Argentina", "sequence": 14, diff --git a/l10n_ar_ux/models/account_move.py b/l10n_ar_ux/models/account_move.py index 281836098..11ab6fb0f 100644 --- a/l10n_ar_ux/models/account_move.py +++ b/l10n_ar_ux/models/account_move.py @@ -18,6 +18,7 @@ def _compute_invoice_currency_rate(self): and x.company_id.country_id == self.env.ref("base.ar") and x.currency_id != x.company_id.currency_id and x.reversed_entry_id.currency_id == x.currency_id + and x.reversed_entry_id.currency_id == x.currency_id ) for rec in ar_reversed_other_currency: rec.invoice_currency_rate = rec.reversed_entry_id.invoice_currency_rate diff --git a/l10n_ar_ux/models/account_payment.py b/l10n_ar_ux/models/account_payment.py index 7c3544dbb..73d510098 100644 --- a/l10n_ar_ux/models/account_payment.py +++ b/l10n_ar_ux/models/account_payment.py @@ -10,9 +10,9 @@ def _get_name_receipt_report(self, report_xml_id): """Method similar to the '_get_name_invoice_report' of l10n_latam_invoice_document Basically it allows different localizations to define it's own report This method should actually go in a sale_ux module that later can be extended by different localizations - Another option would be to use report_substitute module and setup a subsitution with a domain """ self.ensure_one() + self.ensure_one() if self.company_id.country_id.code == "AR" and self.is_internal_transfer: return "l10n_ar_ux.report_account_transfer" return super()._get_name_receipt_report(report_xml_id)