Skip to content

Commit

Permalink
fixes OCA#1559 - disable buggy detpag validation OCA#1457
Browse files Browse the repository at this point in the history
  • Loading branch information
rvalyi committed Jul 24, 2024
1 parent 5f1b7a5 commit 42e0cab
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions l10n_br_nfe/models/document.py
Original file line number Diff line number Diff line change
Expand Up @@ -423,8 +423,10 @@ def _export_fields_pagamentos(self):
]
self.nfe40_detPag.__class__._field_prefix = "nfe40_"

if not self.nfe40_detPag: # (empty list)
raise UserError(_("Favor preencher os dados do pagamento"))
# the following was disabled because it blocks the normal
# invoice validation https://github.com/OCA/l10n-brazil/issues/1559
# if not self.nfe40_detPag: # (empty list)
# raise UserError(_("Favor preencher os dados do pagamento"))

@api.multi
def _eletronic_document_send(self):
Expand Down

0 comments on commit 42e0cab

Please sign in to comment.