Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix 'campos' referenced before assignment #31

Merged
merged 1 commit into from
Jul 15, 2022

Conversation

rvalyi
Copy link
Member

@rvalyi rvalyi commented Jul 15, 2022

sem isso pega erros do tipo:

  File "/odoo/external-src/l10n-brazil/l10n_br_nfe/wizards/import_document.py", line 66, in _onchange_partner_id
    base64.b64decode(self.nfe_xml)
  File "/odoo/external-src/l10n-brazil/l10n_br_nfe/wizards/import_document.py", line 58, in _parse_xml_import_wizard
    document = detectar_chave_edoc(parsed_xml.infNFe.Id[3:])
  File "/usr/local/lib/python3.7/dist-packages/erpbrasil/base/fiscal/edoc.py", line 27, in detectar_chave_edoc
    if not matcher and not campos:
UnboundLocalError: local variable 'campos' referenced before assignment

cc @renatonlima

@rvalyi rvalyi merged commit b51b2ec into erpbrasil:master Jul 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants