| 1 |
<?xml version="1.0" encoding="utf-8"?> |
| 2 |
<odoo> |
| 3 |
|
| 4 |
<record id="product_attribute_category_tree_view" model="ir.ui.view"> |
| 5 |
<field name="name">product.attribute.category.list</field> |
| 6 |
<field name="model">product.attribute.category</field> |
| 7 |
<field name="arch" type="xml"> |
| 8 |
<list string="Product Attribute Category" editable="bottom"> |
| 9 |
<field name="sequence" widget="handle"/> |
| 10 |
<field name="name"/> |
| 11 |
<field name="attribute_ids" widget="many2many_tags" options="{'no_create': True}"/> |
| 12 |
</list> |
| 13 |
</field> |
| 14 |
</record> |
| 15 |
|
| 16 |
<record id="product_attribute_category_action" model="ir.actions.act_window"> |
| 17 |
<field name="name">Attribute Categories</field> |
| 18 |
<field name="res_model">product.attribute.category</field> |
| 19 |
<field name="path">attribute-categories</field> |
| 20 |
<field name="view_mode">list</field> |
| 21 |
<field name="help" type="html"> |
| 22 |
<p class="o_view_nocontent_smiling_face"> |
| 23 |
Create a new attribute category |
| 24 |
</p><p> |
| 25 |
Group attributes by category that will appear in the specification |
| 26 |
part of a product page. |
| 27 |
</p> |
| 28 |
</field> |
| 29 |
</record> |
| 30 |
|
| 31 |
<menuitem action="product_attribute_category_action" |
| 32 |
id="menu_attribute_category_action" |
| 33 |
parent="website_sale.menu_catalog" groups="base.group_no_one" sequence="11"/> |
| 34 |
|
| 35 |
<record id="product_attribute_tree_view_inherit" model="ir.ui.view"> |
| 36 |
<field name="name">product.attribute.list.inherit</field> |
| 37 |
<field name="model">product.attribute</field> |
| 38 |
<field name="inherit_id" ref="product.attribute_tree_view"/> |
| 39 |
<field name="arch" type="xml"> |
| 40 |
<field name="name" position="after"> |
| 41 |
<field name="category_id"/> |
| 42 |
</field> |
| 43 |
</field> |
| 44 |
</record> |
| 45 |
|
| 46 |
<record id="product_attribute_view_form" model="ir.ui.view"> |
| 47 |
<field name="name">product.attribute.form.inherit</field> |
| 48 |
<field name="model">product.attribute</field> |
| 49 |
<field name="inherit_id" ref="website_sale.product_attribute_view_form"/> |
| 50 |
<field name="priority" eval="8"/> |
| 51 |
<field name="arch" type="xml"> |
| 52 |
<group name="ecommerce_main_fields" position="inside"> |
| 53 |
<field name="category_id"/> |
| 54 |
</group> |
| 55 |
</field> |
| 56 |
</record> |
| 57 |
|
| 58 |
</odoo> |