OCA / e-commerce

Odoo E-Commerce server automation addons
GNU Affero General Public License v3.0
170 stars 493 forks source link

Updating website_sale_hide_price from 1.4.0 to 2.0.0 get an error #947

Closed kubangab closed 4 months ago

kubangab commented 4 months ago

Module

website_sale_hide_price

Describe the bug

When trying to install the update of the website_sale_hide_price the Odoo 16 return an error. See below. If restarting the server you will get an internal servicer error and Odoo will not load.

odoo.tools.convert.ParseError: while parsing /opt/addons/website_sale_hide_price/views/res_config_settings_views.xml:3 Error while validating view near:

                    <div class="settings">
                <div class="app_settings_block" data-string="General Settings" string="General Settings" data-key="general_settings">

                    <div id="invite_users">
                        <h2>Users</h2>

Field "website_hide_price" does not exist in model "res.config.settings"

View error context: {'file': '/opt/addons/website_sale_hide_price/views/res_config_settings_views.xml', 'line': 5, 'name': 'res.config.settings form', 'view': ir.ui.view(4840,), 'view.model': 'res.config.settings', 'view.parent': ir.ui.view(3268,), 'xmlid': 'res_config_settings_view_form'}

To Reproduce

Affected versions:

Steps to reproduce the behavior:

  1. Have an Odoo 16 installation with version 16.0.1.4.0 of the module
  2. Install the module version 16.0.2.0.0 on the server
  3. In Odoo Apps menu update the module
  4. alternative restart Odoo server

Expected behavior When trying to update the module you get the error message described above. If you try to restart the server you will get an internal server error and Odoo will not start again.

Additional context Latest version of Odoo 16 and Ubuntu 22.04