Skip to content

Commit

Permalink
[FIX] l10n_br_nfe: NFe don't validate Section, Note or DownPayments l…
Browse files Browse the repository at this point in the history
…ines.
  • Loading branch information
mbcosta committed Apr 26, 2024
1 parent b2824e1 commit fd767aa
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion l10n_br_nfe/models/document.py
Original file line number Diff line number Diff line change
Expand Up @@ -800,7 +800,12 @@ def _check_product_default_code(self):
rec.document_type in PRODUCT_CODE_FISCAL_DOCUMENT_TYPES
and rec.state_edoc == "a_enviar"
):
for line in rec.fiscal_line_ids:
for line in rec.fiscal_line_ids.filtered(
# Section and Note Lines
lambda ln: ln.product_id
# 'Down Payments'
and ln.fiscal_quantity > 0.0
):
if not line.product_id.default_code and not line.nfe40_cProd:
raise ValidationError(
_(
Expand Down

0 comments on commit fd767aa

Please sign in to comment.