Skip to content

Commit

Permalink
[MIG] website_sale_product_assortment: Migration to 17.0
Browse files Browse the repository at this point in the history
  • Loading branch information
PieterPaulussen committed Jul 19, 2024
1 parent 3c62c27 commit c990c04
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions website_sale_product_assortment/controllers/variant.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
from odoo import _, http
from odoo.http import request

from odoo.addons.sale.controllers.variant import VariantController
from odoo.addons.website_sale.controllers.variant import WebsiteSaleVariantController


class WebsiteSaleVariantController(VariantController):
class WebsiteSaleVariantControllerAssortment(WebsiteSaleVariantController):
@http.route(
["/sale/get_info_assortment_preview"],
type="json",
Expand Down
4 changes: 2 additions & 2 deletions website_sale_product_assortment/views/ir_filters_views.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@
<field name="website_availability" />
<field
name="message_unavailable"
attrs="{'invisible': [('website_availability', '!=', 'no_purchase')]}"
invisible="website_availability != 'no_purchase'"
/>
<field
name="assortment_information"
attrs="{'invisible': [('website_availability', '!=', 'no_purchase')]}"
invisible="website_availability != 'no_purchase'"
/>
</group>
</xpath>
Expand Down

0 comments on commit c990c04

Please sign in to comment.