Skip to Content
Odoo Menu
  • Sign in
  • Try it free
  • Apps
    Finance
    • Accounting
    • Invoicing
    • Expenses
    • Spreadsheet (BI)
    • Documents
    • Sign
    Sales
    • CRM
    • Sales
    • POS Shop
    • POS Restaurant
    • Subscriptions
    • Rental
    Websites
    • Website Builder
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Supply Chain
    • Inventory
    • Manufacturing
    • PLM
    • Purchase
    • Maintenance
    • Quality
    Human Resources
    • Employees
    • Recruitment
    • Time Off
    • Appraisals
    • Referrals
    • Fleet
    Marketing
    • Social Marketing
    • Email Marketing
    • SMS Marketing
    • Events
    • Marketing Automation
    • Surveys
    Services
    • Project
    • Timesheets
    • Field Service
    • Helpdesk
    • Planning
    • Appointments
    Productivity
    • Discuss
    • Approvals
    • IoT
    • VoIP
    • Knowledge
    • WhatsApp
    Third party apps Odoo Studio Odoo Cloud Platform
  • Industries
    Retail
    • Book Store
    • Clothing Store
    • Furniture Store
    • Grocery Store
    • Hardware Store
    • Toy Store
    Food & Hospitality
    • Bar and Pub
    • Restaurant
    • Fast Food
    • Guest House
    • Beverage Distributor
    • Hotel
    Real Estate
    • Real Estate Agency
    • Architecture Firm
    • Construction
    • Estate Management
    • Gardening
    • Property Owner Association
    Consulting
    • Accounting Firm
    • Odoo Partner
    • Marketing Agency
    • Law firm
    • Talent Acquisition
    • Audit & Certification
    Manufacturing
    • Textile
    • Metal
    • Furnitures
    • Food
    • Brewery
    • Corporate Gifts
    Health & Fitness
    • Sports Club
    • Eyewear Store
    • Fitness Center
    • Wellness Practitioners
    • Pharmacy
    • Hair Salon
    Trades
    • Handyman
    • IT Hardware & Support
    • Solar Energy Systems
    • Shoe Maker
    • Cleaning Services
    • HVAC Services
    Others
    • Nonprofit Organization
    • Environmental Agency
    • Billboard Rental
    • Photography
    • Bike Leasing
    • Software Reseller
    Browse all Industries
  • Community
    Learn
    • Tutorials
    • Documentation
    • Certifications
    • Training
    • Blog
    • Podcast
    Empower Education
    • Education Program
    • Scale Up! Business Game
    • Visit Odoo
    Get the Software
    • Download
    • Compare Editions
    • Releases
    Collaborate
    • Github
    • Forum
    • Events
    • Translations
    • Become a Partner
    • Services for Partners
    • Register your Accounting Firm
    Get Services
    • Find a Partner
    • Find an Accountant
    • Meet an advisor
    • Implementation Services
    • Customer References
    • Support
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Get a demo
  • Pricing
  • Help

Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:

  • CRM
  • e-Commerce
  • Accounting
  • Inventory
  • PoS
  • Project
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Tags (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Tags (View all)
odoo accounting v14 pos v15
About this forum
Help

Invalid view definition when upgrade from Odoo 12 to 13

Subscribe

Get notified when there's activity on this post

This question has been flagged
upgradeodoo13
2935 Views
Avatar
Son Hong

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' &amp;&amp; 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>

0
Avatar
Discard
Enjoying the discussion? Don't just read, join in!

Create an account today to enjoy exclusive features and engage with our awesome community!

Sign up
Related Posts Replies Views Activity
Why do some apps require me to upgrade? Solved
apps upgrade odoo13
Avatar
Avatar
Avatar
Avatar
6
Dec 19
6110
FileNotFoundError after v17 to v18 upgrade
upgrade
Avatar
Avatar
1
Sep 25
1230
Upgrade v18->v19 on-premise
upgrade
Avatar
Avatar
Avatar
2
Sep 25
4682
Version 16 > Version 18 odoo
upgrade
Avatar
0
Apr 25
1909
Upgrade 17 to 18 on prem Solved
upgrade
Avatar
Avatar
Avatar
2
Jan 25
3846
Community
  • Tutorials
  • Documentation
  • Forum
Open Source
  • Download
  • Github
  • Runbot
  • Translations
Services
  • Odoo.sh Hosting
  • Support
  • Upgrade
  • Custom Developments
  • Education
  • Find an Accountant
  • Find a Partner
  • Become a Partner
About us
  • Our company
  • Brand Assets
  • Contact us
  • Jobs
  • Events
  • Podcast
  • Blog
  • Customers
  • Legal • Privacy
  • Security
الْعَرَبيّة Català 简体中文 繁體中文 (台灣) Čeština Dansk Nederlands English Suomi Français Deutsch हिंदी Bahasa Indonesia Italiano 日本語 한국어 (KR) Lietuvių kalba Język polski Português (BR) română русский язык Slovenský jazyk slovenščina Español (América Latina) Español ภาษาไทย Türkçe українська Tiếng Việt

Odoo is a suite of open source business apps that cover all your company needs: CRM, eCommerce, accounting, inventory, point of sale, project management, etc.

Odoo's unique value proposition is to be at the same time very easy to use and fully integrated.

Website made with

Odoo Experience on YouTube

1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.

Live support on Youtube
Watch now