1
<?xml version="1.0" encoding="utf-8"?>
1
<?xml version='1.0' encoding='UTF-8'?>
5
5
<record id="product_search_form_view_inh" model="ir.ui.view">
6
6
<field name="name">product.search.form.inh</field>
7
7
<field name="model">product.product</field>
8
<field name="type">search</field>
9
8
<field name="arch" type="xml">
10
9
<search string="Product">
11
11
<filter string="Services" icon="terp-accessories-archiver" domain="[('type','=','service')]"/>
12
12
<filter string="Products" icon="terp-accessories-archiver" domain="['|',('type','=','product'),('type','=','consu')]" help="Both stockable and consumable products"/>
13
13
<separator orientation="vertical"/>
14
14
<filter string="To Sell" name="filter_to_sell" icon="terp-accessories-archiver-minus" domain="[('sale_ok','=',1)]"/>
15
<filter name="filter_to_purchase" string="To Purchase" icon="terp-accessories-archiver+" domain="[('purchase_ok', '=', 1)]" />
15
<filter name="filter_to_purchase" string="To Purchase" icon="terp-accessories-archiver+" domain="[('purchase_ok', '=', 1)]"/>
16
16
<separator orientation="vertical"/>
18
filter_domain="['|', ('name','ilike',self),('default_code','ilike',self)]"/>
17
<field name="name" filter_domain="['|', ('name','ilike',self),('default_code','ilike',self)]"/>
19
18
<field name="categ_id" widget="selection" operator="child_of" groups="base.group_extended"/>
21
20
<group expand="0" string="Context..." groups="base.group_extended">
22
21
<field name="location_id" widget="selection" context="{'location': self}"/>
23
22
<field name="warehouse_id" widget="selection" context="{'warehouse': self}"/>
24
23
<separator orientation="vertical"/>
25
<field name="pricelist_id" widget="selection" context="{'pricelist': self}" />
26
<separator orientation="vertical" groups="base.group_multi_company" />
27
<field name="company_id" widget="selection" groups="base.group_multi_company" />
24
<field name="pricelist_id" widget="selection" context="{'pricelist': self}"/>
25
<separator orientation="vertical" groups="base.group_multi_company"/>
26
<field name="company_id" widget="selection" groups="base.group_multi_company"/>
28
27
<field name="date_from_to" widget="date" context="{'from_date':self, 'to_date':self2}"/>
31
<group expand='0' string='Group by...' groups="base.group_extended">
32
<filter string='Category' icon="terp-stock_symbol-selection" domain="[]" context="{'group_by' : 'categ_id'}" groups="base.group_extended"/>
33
<separator orientation="vertical"/>
34
<filter string='Default UOM' icon="terp-mrp" domain="[]" context="{'group_by' : 'uom_id'}" />
35
<separator orientation="vertical"/>
36
<filter string='Type' icon="terp-stock_symbol-selection" domain="[]" context="{'group_by' : 'type'}" />
30
<group expand="0" string="Group by..." groups="base.group_extended">
31
<filter string="Category" icon="terp-stock_symbol-selection" domain="[]" context="{'group_by' : 'categ_id'}" groups="base.group_extended"/>
32
<separator orientation="vertical"/>
33
<filter string="Default UOM" icon="terp-mrp" domain="[]" context="{'group_by' : 'uom_id'}"/>
34
<separator orientation="vertical"/>
35
<filter string="Type" icon="terp-stock_symbol-selection" domain="[]" context="{'group_by' : 'type'}"/>
37
36
<separator orientation="vertical" groups="base.group_multi_company"/>
38
<filter string='Company' icon="terp-go-home" domain="[]" context="{'group_by' : 'company_id'}" groups="base.group_multi_company" />
37
<filter string="Company" icon="terp-go-home" domain="[]" context="{'group_by' : 'company_id'}" groups="base.group_multi_company"/>
71
68
<record id="product_normal_form_view_inh" model="ir.ui.view">
72
69
<field name="name">product.normal.form.inh</field>
73
70
<field name="model">product.product</field>
74
<field name="type">form</field>
75
71
<field eval="7" name="priority"/>
76
72
<field name="arch" type="xml">
77
<form string="Product">
73
<form string="Product" version="7.0">
78
74
<group colspan="4" col="8">
79
75
<group colspan="4" col="2">
80
76
<separator string="Name" colspan="2"/>
81
77
<field name="name"/>
82
<field groups="product.group_product_variant" name="variants" />
78
<field groups="product.group_product_variant" name="variants"/>
84
80
<group colspan="1" col="2">
85
81
<separator string="Codes" colspan="2"/>
91
87
<field name="sale_ok"/>
92
88
<field name="purchase_ok"/>
94
<group colspan="1" col="1">
95
<field name="product_image" widget='image' nolabel="1"/>
99
92
<notebook colspan="4">
100
93
<page string="Information">
101
94
<group colspan="2" col="2">
102
95
<separator string="Procurement" colspan="2"/>
96
<field name="procure_method" groups="base.group_extended"/>
103
97
<field name="type"/>
104
<field name="procure_method" groups="base.group_extended"/>
105
98
<field name="supply_method"/>
107
100
<group colspan="2" col="2">
108
101
<separator string="Base Prices" colspan="2"/>
109
102
<field name="list_price"/>
110
103
<field groups="base.group_extended" name="cost_method"/>
111
<field name="standard_price" attrs="{'readonly':[('cost_method','=','average')]}"
112
groups="base.group_extended"/>
104
<field name="standard_price" attrs="{'readonly':[('cost_method','=','average')]}" groups="base.group_extended"/>
114
106
<field name="price_margin" groups="product.group_product_variant"/>
115
107
<field name="price_extra" groups="product.group_product_variant"/>
153
145
<group colspan="2" col="2" name="store">
154
146
<separator string="Storage Localisation" colspan="2"/>
155
<field name="loc_rack" attrs="{'readonly':[('type','=','service')]}" />
147
<field name="loc_rack" attrs="{'readonly':[('type','=','service')]}"/>
156
148
<field name="loc_row" attrs="{'readonly':[('type','=','service')]}"/>
157
149
<field name="loc_case" attrs="{'readonly':[('type','=','service')]}"/>