From f72963aba3f0d406478179376f109a6344e4fb04 Mon Sep 17 00:00:00 2001 From: Nidhi Patel Date: Tue, 9 Aug 2022 10:24:42 +0000 Subject: [PATCH] [FIX] l10n_in_edi: submission of e-invoice to the portal Before this commit, not able to submit overseas invoices to the portal if the delivery and billing address are different, the same overseas invoice can be submitted to the portal if the delivery and billing address are the same. After this commit, we can able to submit an e-invoice even if the delivery and billing addresses are different. Task-id: 2871478 X-original-commit: c38395b08f08f333e8252f79588c7661dfa3b965 Part-of: odoo/odoo#98737 --- addons/l10n_in_edi/models/account_edi_format.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/l10n_in_edi/models/account_edi_format.py b/addons/l10n_in_edi/models/account_edi_format.py index 2eed0d1e186..6b7714b9ae9 100644 --- a/addons/l10n_in_edi/models/account_edi_format.py +++ b/addons/l10n_in_edi/models/account_edi_format.py @@ -403,7 +403,7 @@ class AccountEdiFormat(models.Model): }) if saler_buyer.get("buyer_details") != saler_buyer.get("ship_to_details"): json_payload.update({ - "ShipDtls": self._get_l10n_in_edi_partner_details(saler_buyer.get("ship_to_details")) + "ShipDtls": self._get_l10n_in_edi_partner_details(saler_buyer.get("ship_to_details"), is_overseas=is_overseas) }) if is_overseas: json_payload.update({