forked from OCA/product-attribute
-
Notifications
You must be signed in to change notification settings - Fork 0
/
product_customer_code_view.xml
61 lines (55 loc) · 2.9 KB
/
product_customer_code_view.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
<?xml version='1.0' encoding='UTF-8'?>
<openerp>
<data>
<record model="ir.ui.view" id="view_product_customer_code_form">
<field name="name">view.product.customer.code.form</field>
<field name="model">product.customer.code</field>
<field name="arch" type="xml">
<form string="Product Customer Code" version="7.0">
<field name="product_code"/>
<field name="partner_id"/>
<field name="product_id"/>
<field name="company_id" widget="selection" groups="base.group_multi_company"/>
</form>
</field>
</record>
<record model="ir.ui.view" id="view_product_customer_code_tree">
<field name="name">view.product.customer.code.tree</field>
<field name="model">product.customer.code</field>
<field name="arch" type="xml">
<tree string="Product Customer Code">
<field name="product_code"/>
<field name="partner_id"/>
<field name="company_id"/>
<field name="product_id"/>
</tree>
</field>
</record>
<record id="action_product_customer_code_tree" model="ir.actions.act_window">
<field name="name">Product Customer Code</field>
<field name="res_model">product.customer.code</field>
<field name="view_type">form</field>
<field name="view_id" ref="view_product_customer_code_tree"/>
</record>
<record id="view_product_customer_code_search" model="ir.ui.view">
<field name="name">view.product.customer.code.certificate.search</field>
<field name="model">product.customer.code</field>
<field name="arch" type="xml">
<search string="Product Customer Code">
<field name="product_code"/>
<field name="partner_id"/>
<field name="company_id"/>
<field name="product_id"/>
<newline/>
<group expand="0" string="Group By...">
<filter string="Company" icon="terp-partner" domain="[]" context="{'group_by':'company_id'}"/>
<filter string="Product" icon="terp-accessories-archiver" domain="[]" context="{'group_by':'product_id'}"/>
<filter string="Partner" icon="terp-partner" domain="[]" context="{'group_by':'partner_id'}"/>
<separator orientation="vertical"/>
</group>
</search>
</field>
</record>
<menuitem action="action_product_customer_code_tree" id="menu_product_customer_code" sequence="50" parent="product.prod_config_main" groups="group_product_customer_code_manager"/>
</data>
</openerp>