Skip to content

Commit

Permalink
[REF] l10n_br_crm: rg -> l10n_br_rg_code
Browse files Browse the repository at this point in the history
  • Loading branch information
rvalyi committed Sep 27, 2024
1 parent 1f9e64c commit 19484f8
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 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 @@ -143,7 +143,7 @@ def _onchange_partner_id(self):
result["suframa"] = self.partner_id.parent_id.suframa or False
result["website"] = self.partner_id.parent_id.website or False
result["cpf"] = self.partner_id.cnpj_cpf
result["rg"] = self.partner_id.rg
result["l10n_br_rg_code"] = self.partner_id.l10n_br_rg_code
result["name_surname"] = self.partner_id.legal_name
self.update(result)
return result
Expand Down
2 changes: 1 addition & 1 deletion l10n_br_crm/tests/test_crm_lead.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def setUp(self):
{
"name": "Test Contact",
"cpf": "70531160505",
"rg": "99.888.777-1",
"l10n_br_rg_code": "99.888.777-1",
"stage_id": self.env.ref("crm.stage_lead1").id,
"contact_name": "Test Contact",
}
Expand Down
4 changes: 2 additions & 2 deletions l10n_br_crm/views/crm_lead_view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
attrs="{'invisible': [('show_l10n_br', '=', False)]}"
/>
<field
name="rg"
name="l10n_br_rg_code"
attrs="{'invisible': [('show_l10n_br', '=', False)]}"
/>
</xpath>
Expand Down Expand Up @@ -98,7 +98,7 @@
attrs="{'invisible': [('show_l10n_br', '=', False)]}"
/>
<field
name="rg"
name="l10n_br_rg_code"
attrs="{'invisible': [('show_l10n_br', '=', False)]}"
/>
</xpath>
Expand Down
2 changes: 1 addition & 1 deletion l10n_br_crm/views/crm_quick_create_opportunity_form.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<field name="suframa" invisible="1" />
<field name="name_surname" invisible="1" />
<field name="cpf" invisible="1" />
<field name="rg" invisible="1" />
<field name="l10n_br_rg_code" invisible="1" />
</xpath>
</field>
</record>
Expand Down

0 comments on commit 19484f8

Please sign in to comment.