Skip to content

Commit

Permalink
Merge d04263f into f377bfc
Browse files Browse the repository at this point in the history
  • Loading branch information
marinaGD committed Mar 22, 2019
2 parents f377bfc + d04263f commit 2393bab
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions br_nfse_paulistana/models/account_invoice.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,5 @@ def _prepare_edoc_item_vals(self, line):
res = super(AccountInvoice, self)._prepare_edoc_item_vals(line)
res['codigo_servico_paulistana'] = \
line.service_type_id.codigo_servico_paulistana
res['codigo_servico_paulistana_nome'] = line.service_type_id.name
return res
2 changes: 2 additions & 0 deletions br_nfse_paulistana/models/invoice_eletronic.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ class InvoiceEletronicItem(models.Model):

codigo_servico_paulistana = fields.Char(
string='Código NFSe Paulistana', size=5, readonly=True, states=STATE)
codigo_servico_paulistana_nome = fields.Char(
string='Descrição código NFSe Paulistana', readonly=True, states=STATE)


class InvoiceEletronic(models.Model):
Expand Down
2 changes: 1 addition & 1 deletion br_nfse_paulistana/reports/danfse_sao_paulo.xml
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@
Código do serviço:
<br />
<strong t-field="doc.eletronic_item_ids[0].codigo_servico_paulistana"></strong> -
<strong t-field="doc.eletronic_item_ids[0].product_id.service_type_id.name"></strong>
<strong t-field="doc.eletronic_item_ids[0].codigo_servico_paulistana_nome"></strong>
</div>
</div>
<div class="row" style="border: 1px solid black;">
Expand Down

0 comments on commit 2393bab

Please sign in to comment.