Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…into 10.0
  • Loading branch information
danimaribeiro committed Aug 11, 2018
2 parents 6245e68 + e3ae745 commit bd063ab
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion br_base/models/res_partner.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,8 @@ def action_check_sefaz(self):
if self.cnpj_cpf and self.state_id:
NAO_CONSULTA_CADASTRO = ['AL', 'RJ', 'PA', 'MA']
if self.state_id.code in NAO_CONSULTA_CADASTRO:
raise UserError(u'{} não possui consulta de cadastro'.format(self.state_id.name))
raise UserError(u'{} não possui consulta de cadastro'.format(
self.state_id.name))
company = self.env.user.company_id
if not company.nfe_a1_file and not company.nfe_a1_password:
raise UserError(u'Configurar o certificado e senha na empresa')
Expand Down

0 comments on commit bd063ab

Please sign in to comment.