I'm converting one of the custom module from Odoo 12 to 13 then I get the error like this:
Error:
Odoo Server Error
Traceback (most recent call last):
File "/home/gosu/Documents/odoo13/odoo/tools/convert.py", line 712, in parse
self._tag_root(de)
File "/home/gosu/Documents/odoo13/odoo/tools/convert.py", line 674, in _tag_root
f(rec)
File "/home/gosu/Documents/odoo13/odoo/tools/convert.py", line 577, in _tag_record
record = model._load_records([data], self.mode == 'update')
File "/home/gosu/Documents/odoo13/odoo/models.py", line 4084, in _load_records
records = self._load_records_create([data['values'] for data in to_create])
File "/home/gosu/Documents/odoo13/odoo/models.py", line 3998, in _load_records_create
return self.create(values)
File "<decorator-gen-32>", line 2, in create
File "/home/gosu/Documents/odoo13/odoo/api.py", line 336, in _model_create_multi
return create(self, arg)
File "/home/gosu/Documents/odoo13/odoo/addons/base/models/ir_ui_view.py", line 475, in create
return super(View, self).create(vals_list)
File "<decorator-gen-3>", line 2, in create
File "/home/gosu/Documents/odoo13/odoo/api.py", line 336, in _model_create_multi
return create(self, arg)
File "/home/gosu/Documents/odoo13/odoo/models.py", line 3779, in create
fields[0].determine_inverse(batch_recs)
File "/home/gosu/Documents/odoo13/odoo/fields.py", line 1120, in determine_inverse
getattr(records, self.inverse)()
File "/home/gosu/Documents/odoo13/odoo/addons/base/models/ir_ui_view.py", line 299, in _inverse_arch
view.write(data)
File "/home/gosu/Documents/odoo13/odoo/addons/base/models/ir_ui_view.py", line 493, in write
res = super(View, self).write(self._compute_defaults(vals))
File "/home/gosu/Documents/odoo13/odoo/models.py", line 3568, in write
real_recs._validate_fields(set(vals) - set(inverse_fields))
File "/home/gosu/Documents/odoo13/odoo/models.py", line 1176, in _validate_fields
check(self)
File "/home/gosu/Documents/odoo13/odoo/addons/base/models/ir_ui_view.py", line 406, in _check_xml
raise ValidationError(_('Invalid view %s definition in %s') % (view_name, view.arch_fs))
odoo.exceptions.ValidationError: ('Invalid view view.res.partner.map definition in web_google_map_drawing/web_google_maps/views/res_partner.xml', None)
View definition:
<record id="view_res_partner_map" model="ir.ui.view">
<field name="name">view.res.partner.map</field>
<field name="model">res.partner</field>
<field name="arch" type="xml">
<map class="o_res_partner_map" library="geometry" string="Map" lat="partner_latitude"
lng="partner_longitude" colors="blue:company_type=='person';green:company_type=='company';">
<field name="id"/>
<field name="partner_latitude"/>
<field name="partner_longitude"/>
<field name="company_type"/>
<field name="color"/>
<field name="display_name"/>
<field name="title"/>
<field name="email"/>
<field name="parent_id"/>
<field name="is_company"/>
<field name="function"/>
<field name="phone"/>
<field name="street"/>
<field name="street2"/>
<field name="zip"/>
<field name="city"/>
<field name="country_id"/>
<field name="mobile"/>
<field name="state_id"/>
<field name="category_id"/>
<field name="image_medium"/>
<field name="type"/>
<templates>
<t t-name="kanban-box">
<div class="oe_kanban_global_click o_res_partner_kanban">
<div class="o_kanban_image">
<t t-if="record.image_medium.raw_value">
<img t-att-src="kanban_image('res.partner', 'image_medium', record.id.raw_value)"/>
</t>
<t t-if="!record.image_medium.raw_value">
<t t-if="record.type.raw_value === 'delivery'">
<img t-att-src='_s + "/base/static/src/img/truck.png"'
class="o_kanban_image oe_kanban_avatar_smallbox"/>
</t>
<t t-if="record.type.raw_value === 'invoice'">
<img t-att-src='_s + "/base/static/src/img/money.png"'
class="o_kanban_image oe_kanban_avatar_smallbox"/>
</t>
<t t-if="record.type.raw_value != 'invoice' && record.type.raw_value != 'delivery'">
<t t-if="record.is_company.raw_value === true">
<img t-att-src='_s + "/base/static/src/img/company_image.png"'/>
</t>
<t t-if="record.is_company.raw_value === false">
<img t-att-src='_s + "/base/static/src/img/avatar.png"'/>
</t>
</t>
</t>
</div>
<div class="oe_kanban_details">
<strong class="o_kanban_record_title oe_partner_heading">
<field name="display_name"/>
</strong>
<div class="o_kanban_tags_section oe_kanban_partner_categories">
<span class="oe_kanban_list_many2many">
<field name="category_id" widget="many2many_tags"
options="{'color_field': 'color'}"/>
</span>
</div>
<ul>
<li t-if="record.parent_id.raw_value and !record.function.raw_value">
<field name="parent_id"/>
</li>
<li t-if="!record.parent_id.raw_value and record.function.raw_value">
<field name="function"/>
</li>
<li t-if="record.parent_id.raw_value and record.function.raw_value">
<field name="function"/>
at
<field name="parent_id"/>
</li>
<li t-if="record.city.raw_value and !record.country_id.raw_value">
<field name="city"/>
</li>
<li t-if="!record.city.raw_value and record.country_id.raw_value">
<field name="country_id"/>
</li>
<li t-if="record.city.raw_value and record.country_id.raw_value">
<field name="city"/>
,
<field name="country_id"/>
</li>
<li t-if="record.email.raw_value" class="o_text_overflow">
<field name="email"/>
</li>
</ul>
<div class="oe_kanban_partner_links"/>
</div>
</div>
</t>
</templates>
</map>
</field>
</record>