Skip to content

Commit

Permalink
[FIX] Standard name to City field.
Browse files Browse the repository at this point in the history
  • Loading branch information
mbcosta committed Oct 8, 2022
1 parent 7288310 commit 3315901
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions l10n_br_delivery/demo/l10n_br_delivery_demo.xml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
<field name="rntc_code">Teste - Codigo RTNC 1</field>
<field name="country_id" ref="base.br"/>
<field name="state_id" ref="base.state_br_sp"/>
<field name="l10n_br_city_id" ref="l10n_br_base.city_3518800"/>
<field name="city_id" ref="l10n_br_base.city_3518800"/>
<field name="active" eval="1"/>
<field name="manufacture_year">2000</field>
<field name="model_year">2001</field>
Expand All @@ -51,7 +51,7 @@
<field name="rntc_code">Teste - Codigo RTNC 2</field>
<field name="country_id" ref="base.br"/>
<field name="state_id" ref="base.state_br_sp"/>
<field name="l10n_br_city_id" ref="l10n_br_base.city_3518800"/>
<field name="city_id" ref="l10n_br_base.city_3518800"/>
<field name="active" eval="1"/>
<field name="manufacture_year">2010</field>
<field name="model_year">2011</field>
Expand Down
2 changes: 1 addition & 1 deletion l10n_br_delivery/models/vehicle.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class CarrierVehicle(models.Model):
domain="[('country_id', '=', country_id)]",
)

l10n_br_city_id = fields.Many2one(
city_id = fields.Many2one(
comodel_name='res.city',
string='City',
domain="[('state_id', '=', state_id)]",
Expand Down
2 changes: 1 addition & 1 deletion l10n_br_delivery/views/l10n_br_delivery_view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<field name="rntc_code"/>
<field name="country_id"/>
<field name="state_id"/>
<field name="l10n_br_city_id"/>
<field name="city_id"/>
<field name="manufacture_year"/>
<field name="model_year"/>
<field name="type"/>
Expand Down

0 comments on commit 3315901

Please sign in to comment.