You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
48 lines
2.1 KiB
48 lines
2.1 KiB
<?xml version="1.0"?>
|
|
<odoo>
|
|
<!--This code defines a tree view for the "product.design" model, displaying
|
|
only the "name" field for each record in the view.-->
|
|
<record id="product_design_view_tree" model="ir.ui.view">
|
|
<field name="name">product.design.view.tree</field>
|
|
<field name="model">product.design</field>
|
|
<field name="arch" type="xml">
|
|
<list>
|
|
<field name="name"/>
|
|
</list>
|
|
</field>
|
|
</record>
|
|
<!--This code defines a form view for the "product.design" model, displaying
|
|
the "name" field and an "image" widget field called "product_design"
|
|
within a group.-->
|
|
<record id="product_design_view_form" model="ir.ui.view">
|
|
<field name="name">Product.design.view.form</field>
|
|
<field name="model">product.design</field>
|
|
<field name="arch" type="xml">
|
|
<form>
|
|
<sheet>
|
|
<group>
|
|
<group>
|
|
<field name="name"/>
|
|
<field name="product_design" widget="image"
|
|
class="oe_avatar"
|
|
/>
|
|
</group>
|
|
</group>
|
|
</sheet>
|
|
</form>
|
|
</field>
|
|
</record>
|
|
<!--Defines an action for opening the "product.design" model, allowing the
|
|
user to view records in both tree view and form view.-->
|
|
<record id="product_design_action" model="ir.actions.act_window">
|
|
<field name="name">Product Design View</field>
|
|
<field name="res_model">product.design</field>
|
|
<field name="view_mode">list,form</field>
|
|
</record>
|
|
<!--Creates a menu item named "Product Design" that is linked to
|
|
the action "product_design_action", providing a way to access the
|
|
"product.design" view from the menu.-->
|
|
<menuitem id="product_design_menu_action" name="Product Design"
|
|
web_icon="website_product_customization,static/description/icon.png"
|
|
action="product_design_action"/>
|
|
</odoo>
|
|
|