Navigation Menu

Skip to content

Commit

Permalink
Merge pull request #208 from mstuttgart/fix/nfe_modFrete_field_not_up…
Browse files Browse the repository at this point in the history
…date_if_carrier_id_empty

[FIX] Freight type does not depends on a selected carrier
  • Loading branch information
rvalyi committed Nov 18, 2015
2 parents 934f65e + c81679e commit 6ed1d41
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions l10n_br_account_product/sped/nfe/document.py
Expand Up @@ -510,11 +510,11 @@ def _encashment_data(self, invoice, move_line):
def _carrier_data(self, invoice):
"""Dados da Transportadora e veiculo"""

if invoice.carrier_id:
self.nfe.infNFe.transp.modFrete.valor = (
invoice.incoterm and
invoice.incoterm.freight_responsibility or '9')

self.nfe.infNFe.transp.modFrete.valor = (
invoice.incoterm and
invoice.incoterm.freight_responsibility or '9')
if invoice.carrier_id:

if invoice.carrier_id.partner_id.is_company:
self.nfe.infNFe.transp.transporta.CNPJ.valor = \
Expand Down

0 comments on commit 6ed1d41

Please sign in to comment.