Skip to content

Commit

Permalink
[REF] l10n_br_nfe: rg -> l10n_br_rg_code
Browse files Browse the repository at this point in the history
  • Loading branch information
rvalyi committed Sep 30, 2024
1 parent cf23265 commit 6ebd79b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion l10n_br_crm/models/crm_lead.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ def _prepare_customer_values(self, name, is_company, parent_id=False):
values.update(
{
"cnpj_cpf": self.cpf,
"inscr_est": self.incr_est,
"inscr_est": self.inscr_est,
"l10n_br_rg_code": self.l10n_br_rg_code,
}
)
Expand Down
2 changes: 1 addition & 1 deletion l10n_br_nfe/models/res_partner.py
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ def _export_field(self, xsd_field, class_obj, member_spec, export_value=None):
return "EX"

if xsd_field == "nfe40_idEstrangeiro":
return self.vat or self.cnpj_cpf or self.rg or "EXTERIOR"
return self.vat or self.cnpj_cpf or self.l10n_br_rg_code or "EXTERIOR"

return super()._export_field(xsd_field, class_obj, member_spec, export_value)

Expand Down

0 comments on commit 6ebd79b

Please sign in to comment.