website_sale_comparison_view.xml 2.3 KB

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