[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 <jco@odoo.com>
This commit is contained in:
Jigar Vaghela
2024-04-10 20:56:59 +00:00
parent c0282c01ae
commit 762dce2555
@@ -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,