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