From 762dce2555ff335bcc3953f4337377370a73fd97 Mon Sep 17 00:00:00 2001 From: Jigar Vaghela Date: Tue, 9 Apr 2024 20:00:22 +0530 Subject: [PATCH] [FIX] l10n_in_edi: separate value of RC from normal GST Before ====== In E-invoice Value is pass as other values After ==== No RC value is pass to the E-invoice because not required to pass RC value. closes odoo/odoo#161125 Signed-off-by: Josse Colpaert --- addons/l10n_in_edi/models/account_edi_format.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/addons/l10n_in_edi/models/account_edi_format.py b/addons/l10n_in_edi/models/account_edi_format.py index f8949bdbac6..bc12e52b4f3 100644 --- a/addons/l10n_in_edi/models/account_edi_format.py +++ b/addons/l10n_in_edi/models/account_edi_format.py @@ -583,6 +583,9 @@ class AccountEdiFormat(models.Model): for gst in ["cgst", "sgst", "igst"]: if any(tag in tags for tag in self.env.ref("l10n_in.tax_tag_%s"%(gst))): line_code = gst + # need to separate rc tax value so it's not pass to other values + if any(tag in tags for tag in self.env.ref("l10n_in.tax_tag_%s_rc" % (gst))): + line_code = gst + '_rc' return { "tax": tax, "base_product_id": invl.product_id,