[FIX] l10n_in: Update HSN query
The credit notes must be included in GSTR-1 report. opw-2161465 closes odoo/odoo#42733 X-original-commit: 8b956b60e55ef24c552925cae0f0ae8fadd07c5d Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
This commit is contained in:
committed by
Nicolas Martinelli
parent
5f4fa56856
commit
4ac4a924d6
@@ -93,7 +93,7 @@ class L10nInProductHsnReport(models.Model):
|
||||
LEFT JOIN account_tax_report_line_tags_rel tag_rep_ln ON aat.id = tag_rep_ln.account_account_tag_id
|
||||
LEFT JOIN account_move_line_account_tax_rel mt ON mt.account_move_line_id = aml.id
|
||||
LEFT JOIN uom_uom uom ON uom.id = aml.product_uom_id
|
||||
WHERE aa.internal_type = 'other' AND (aml.tax_line_id IS NOT NULL OR mt.account_tax_id IS NULL) AND (am.type IS NULL OR am.type in ('in_invoice', 'out_invoice'))
|
||||
WHERE aa.internal_type = 'other' AND (aml.tax_line_id IS NOT NULL OR mt.account_tax_id IS NULL)
|
||||
"""
|
||||
return from_str
|
||||
|
||||
|
||||
Reference in New Issue
Block a user