OCA / e-commerce

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

[17] product_visibility_website won't install on Odoo 17 #946

Open kubangab opened 5 months ago

kubangab commented 5 months ago

Module

product_visibility_website

Describe the bug

When you try and install the module in Odoo 17 you get the error that the Element '<xpath expr="//t[@t-cache=&#39;pricelist,product,fiscal_position&#39;]">' cannot be located in parent view.

To Reproduce

Affected versions: 17

Steps to reproduce the behavior:

  1. Install the module on the server
  2. Load the module into Odoo 17 (

Expected behavior The module would be installed and you can start using the module on the installation.

Additional context Add any other context about the problem here. (e.g. OS, Python version, ...)

kubangab commented 5 months ago

When trying to move my database from version 16 to version 17 I get the following errors related to the module In the /var/log/odoo/odoo.log:

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

            <header>
                <button string="Print Labels" type="object" name="action_open_label_layout" invisible="detailed_type not in ['consu', 'product', 'combo']"/>
            </header>
            <sheet name="product_form">
                <field name="product_variant_count" invisible="1"/>

Field "default_invoice_policy" does not exist in model "product.template"

View error context: {'file': '/opt/addons/website_sale_hide_price/views/product_template_views.xml', 'line': 4, 'name': 'product.template form', 'view': ir.ui.view(4839,), 'view.model': 'product.template', 'view.parent': ir.ui.view(3141,), 'xmlid': 'product_template_form_view'}

Error 2:

2024-06-27 18:22:35,760 1889 ERROR kubang odoo.sql_db: bad query: SELECT "website"."id", "website"."name", "website"."sequence", "website"."domain", "website"."company_id", "website"."default_lang_id", "website"."auto_redirect_lang", "website"."cookies_bar", "website"."configurator_done", "website"."social_twitter", "website"."social_facebook", "website"."social_github", "website"."social_linkedin", "website"."social_youtube", "website"."social_instagram", "website"."social_tiktok", "website"."has_social_default_image", "website"."google_analytics_key", "website"."google_search_console", "website"."google_maps_api_key", "website"."plausible_shared_key", "website"."plausible_site", "website"."user_id", "website"."cdn_activated", "website"."cdn_url", "website"."cdn_filters", "website"."homepage_url", "website"."custom_code_head", "website"."custom_code_footer", "website"."robots_txt", "website"."theme_id", "website"."specific_user_account", "website"."auth_signup_uninvited", "website"."create_uid", "website"."create_date", "website"."write_uid", "website"."write_date", "website"."firebase_enable_push_notifications", "website"."firebase_use_own_account", "website"."firebase_project_id", "website"."firebase_web_api_key", "website"."firebase_push_certificate_key", "website"."firebase_sender_id", "website"."notification_request_title", "website"."notification_request_body", "website"."notification_request_delay", "website"."crm_default_team_id", "website"."crm_default_user_id", "website"."channel_id", "website"."karma_profile_min", "website"."forum_count", "website"."website_slide_google_app_key", "website"."salesperson_id", "website"."salesteam_id", "website"."show_line_subtotals_tax_selection", "website"."cart_recovery_mail_template_id", "website"."cart_abandoned_delay", "website"."send_abandoned_cart_email", "website"."shop_ppg", "website"."shop_ppr", "website"."shop_default_sort", "website"."add_to_cart_action", "website"."account_on_checkout", "website"."product_page_image_layout", "website"."product_page_grid_columns", "website"."product_page_image_width", "website"."product_page_image_spacing", "website"."prevent_zero_price_sale", "website"."prevent_zero_price_sale_text"->>'en_US', "website"."contact_us_button_url"->>'en_US', "website"."enabled_portal_reorder_button", "website"."google_places_api_key", "website"."website_hide_price", "website"."website_hide_price_default_message"->>'en_US', "website"."warehouse_id" FROM "website" WHERE ("website"."id" IN (1)) ERROR: column website.website_hide_price does not exist LINE 1: ...order_button", "website"."google_places_api_key", "website".... ^

And this error happens several times in the log.