Skip to content

Commit

Permalink
[FIX] Passing missing parameter xCpl to NFe
Browse files Browse the repository at this point in the history
  • Loading branch information
danimaribeiro committed Dec 5, 2018
1 parent 39703c5 commit fb1a6ed
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions br_nfe/models/invoice_eletronic.py
Original file line number Diff line number Diff line change
Expand Up @@ -519,6 +519,7 @@ def _prepare_eletronic_invoice_values(self):
'enderEmit': {
'xLgr': self.company_id.street,
'nro': self.company_id.number,
'xCpl': self.company_id.street2 or '',
'xBairro': self.company_id.district,
'cMun': '%s%s' % (
self.company_id.partner_id.state_id.ibge_code,
Expand Down Expand Up @@ -548,6 +549,7 @@ def _prepare_eletronic_invoice_values(self):
'enderDest': {
'xLgr': partner.street,
'nro': partner.number,
'xCpl': partner.street2 or '',
'xBairro': partner.district,
'cMun': '%s%s' % (partner.state_id.ibge_code,
partner.city_id.ibge_code),
Expand Down

0 comments on commit fb1a6ed

Please sign in to comment.