[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
This commit is contained in:
Nidhi Patel
2022-08-24 13:24:58 +02:00
parent 9d1cb826c7
commit f72963aba3
@@ -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({