[IMP] website_sale, *: follow-up of "site" menu restructure
*: website_sale_comparison The goal of this commit is to add the following tweaks on website menus (after the "Site" menu updates done in [1]): - Use kanban view by default for products in "eCommerce" menu. - Use list view by default for the product list in "site" menu. - Add a placeholder text when there are no attribute categories defined. - Move 'Attribute Categories' to debug mode. [1]: https://github.com/odoo/odoo/pull/98937 task-2973149 closes odoo/odoo#107583 X-original-commit: 82e9afeff8bb4bd64c5f0fb95af4f4b7a66e722d Signed-off-by: Romain Derie (rde) <rde@odoo.com>
This commit is contained in:
@@ -74,7 +74,7 @@
|
||||
<record id="product_template_action_website" model="ir.actions.act_window">
|
||||
<field name="name">Products</field>
|
||||
<field name="res_model">product.template</field>
|
||||
<field name="view_mode">tree,kanban,form,activity</field>
|
||||
<field name="view_mode">kanban,tree,form,activity</field>
|
||||
<field name="view_id"/>
|
||||
<field name="search_view_id" ref="product_template_search_view_website"/>
|
||||
<field name="context">{'search_default_published': 1, 'tree_view_ref':'website_sale.product_template_view_tree_website_sale', 'kanban_view_ref':'website_sale.product_template_view_kanban_website_sale'}</field>
|
||||
|
||||
@@ -78,8 +78,8 @@
|
||||
<field name="view_mode">tree,kanban</field>
|
||||
<field name="view_id" ref="product_pages_tree_view"/>
|
||||
<field name="view_ids" eval="[(5, 0, 0),
|
||||
(0, 0, {'view_mode': 'tree', 'sequence': 2, 'view_id': ref('product_pages_tree_view')}),
|
||||
(0, 0, {'view_mode': 'kanban', 'sequence': 1, 'view_id': ref('product_pages_kanban_view')}),
|
||||
(0, 0, {'view_mode': 'tree', 'sequence': 1, 'view_id': ref('product_pages_tree_view')}),
|
||||
(0, 0, {'view_mode': 'kanban', 'sequence': 2, 'view_id': ref('product_pages_kanban_view')}),
|
||||
]"/>
|
||||
<field name="context">{'create_action': 'website_sale.product_product_action_add'}</field>
|
||||
</record>
|
||||
|
||||
@@ -18,11 +18,19 @@
|
||||
<field name="type">ir.actions.act_window</field>
|
||||
<field name="res_model">product.attribute.category</field>
|
||||
<field name="view_mode">tree</field>
|
||||
<field name="help" type="html">
|
||||
<p class="o_view_nocontent_smiling_face">
|
||||
Create a new attribute category
|
||||
</p><p>
|
||||
Group attributes by category that will appear in the specification
|
||||
part of a product page.
|
||||
</p>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<menuitem action="product_attribute_category_action"
|
||||
id="menu_attribute_category_action"
|
||||
parent="website_sale.menu_catalog" groups="product.group_product_variant" sequence="11"/>
|
||||
parent="website_sale.menu_catalog" groups="base.group_no_one" sequence="11"/>
|
||||
|
||||
<record id="product_attribute_tree_view_inherit" model="ir.ui.view">
|
||||
<field name="name">product.attribute.tree.inherit</field>
|
||||
|
||||
Reference in New Issue
Block a user