mirror of
https://github.com/OCA/web.git
synced 2025-02-22 13:21:25 +02:00
[ADD] web_domain_field_example: Test and demo web_domain_field
This commit is contained in:
18
web_domain_field_example/views/menu.xml
Normal file
18
web_domain_field_example/views/menu.xml
Normal file
@@ -0,0 +1,18 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo>
|
||||
|
||||
<record id="action_product_selection_example" model="ir.actions.act_window">
|
||||
<field name="name">Product Selection Example</field>
|
||||
<field name="view_mode">tree,form</field>
|
||||
<field name="res_model">product.selection.example</field>
|
||||
</record>
|
||||
|
||||
<menuitem
|
||||
id="menu_product_selection_example"
|
||||
action="action_product_selection_example"
|
||||
name="Product Selection Example"
|
||||
parent="base.next_id_2"
|
||||
sequence="95"
|
||||
/>
|
||||
|
||||
</odoo>
|
||||
29
web_domain_field_example/views/product_selection_example.xml
Normal file
29
web_domain_field_example/views/product_selection_example.xml
Normal file
@@ -0,0 +1,29 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<odoo>
|
||||
|
||||
<record id="product_selection_example_tree" model="ir.ui.view">
|
||||
<field name="name">product.selection.example.tree</field>
|
||||
<field name="model">product.selection.example</field>
|
||||
<field name="arch" type="xml">
|
||||
<tree string="Product Selections">
|
||||
<field name="product_category_id" />
|
||||
<field name="product_id" />
|
||||
</tree>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="product_selection_example_form" model="ir.ui.view">
|
||||
<field name="name">product.selection.example.form</field>
|
||||
<field name="model">product.selection.example</field>
|
||||
<field name="arch" type="xml">
|
||||
<form string="Product Selections">
|
||||
<field name="product_id_domain"/>
|
||||
<group colspan="6" col="2">
|
||||
<field name="product_category_id" />
|
||||
<field name="product_id" domain="product_id_domain" />
|
||||
</group>
|
||||
</form>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
</odoo>
|
||||
Reference in New Issue
Block a user