Skip to content
Snippets Groups Projects
Commit 32b65ffc authored by Zeel Patel's avatar Zeel Patel
Browse files

[IMP] l10n_in_ewaybill: send service product details


We can send service product details if there are any one goods in the Invoice.

task - 3276398

closes odoo/odoo#118871

Signed-off-by: default avatarJosse Colpaert <jco@odoo.com>
parent f8938498
Branches
Tags
No related merge requests found
......@@ -366,11 +366,6 @@ class AccountEdiFormat(models.Model):
else:
return 1
def filter_invl_to_apply(invoice_line):
if invoice_line.product_id.type == "service":
return False
return True
saler_buyer = self._get_l10n_in_edi_saler_buyer_party(invoices)
seller_details = saler_buyer.get("seller_details")
dispatch_details = saler_buyer.get("dispatch_details")
......@@ -378,7 +373,7 @@ class AccountEdiFormat(models.Model):
ship_to_details = saler_buyer.get("ship_to_details")
sign = invoices.is_inbound() and -1 or 1
extract_digits = self._l10n_in_edi_extract_digits
tax_details = self._l10n_in_prepare_edi_tax_details(invoices, filter_invl_to_apply=filter_invl_to_apply)
tax_details = self._l10n_in_prepare_edi_tax_details(invoices)
tax_details_by_code = self._get_l10n_in_tax_details_by_line_code(tax_details.get("tax_details", {}))
invoice_line_tax_details = tax_details.get("invoice_line_tax_details")
json_payload = {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment