[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:
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user