forked from OCA/product-attribute
-
Notifications
You must be signed in to change notification settings - Fork 1
/
pricelist_view.xml
84 lines (79 loc) · 3.86 KB
/
pricelist_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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
<?xml version="1.0" encoding="UTF-8"?>
<openerp>
<data>
<record id="product_pricelist_view" model="ir.ui.view">
<field name="model">product.pricelist</field>
<field name="inherit_id" ref="product.product_pricelist_view"/>
<field name="arch" type="xml">
<field name="type" position="after">
<field name="price_grid"/>
</field>
</field>
</record>
<record id="product_pricelist_view_tree" model="ir.ui.view">
<field name="model">product.pricelist</field>
<field name="inherit_id" ref="product.product_pricelist_view_tree"/>
<field name="arch" type="xml">
<field name="type" position="after">
<field name="price_grid"/>
</field>
</field>
</record>
<record id="product_pricelist_version_form_view" model="ir.ui.view">
<field name="model">product.pricelist.version</field>
<field name="inherit_id" ref="product.product_pricelist_version_form_view"/>
<field name="arch" type="xml">
<field name="pricelist_id" position="after">
<field name="price_grid"/>
</field>
<xpath expr="//group[1]" position="attributes">
<attribute name="col">6</attribute>
</xpath>
<xpath expr="//group[1]" position="inside">
<group attrs="{'invisible': [('price_grid', '=', False)]}" col="4">
<div>
<button name="button_template_in_version"
class="oe_inline oe_stat_button" type="object"
icon="fa-cube"
help="Products templates with this version (click to see them)">
<field name="tmpl_in_count" widget="statinfo"
string="Show Products"
attrs="{'invisible': [('price_grid', '=', False)]}"/>
</button>
</div>
</group>
</xpath>
<xpath expr="//notebook/page[@string='Item List']"
position="attributes">
<attribute name="attrs">{'invisible': [('price_grid', '=', True)]}</attribute>
</xpath>
<xpath expr="//notebook[last()]" position="inside">
<page name="grid" string="Grid"
attrs="{'invisible': [('price_grid', '=', False)]}">
<group col="4">
<field name="item_grid_ids" nolabel="1">
<tree string="Price Grid" editable="1">
<field name="id" invisible="1"/>
<field name="sequence" widget="handle"/>
<field name="price_surcharge" string="Price"/>
<field name="product_tmpl_id"/>
<button name="button_product"
icon="terp-stock_symbol-selection"
class="oe_link" type="object"
attrs="{'invisible': [
('product_tmpl_id', '=', False),
('product_id', '=', False)]}"
help="Click to see this product"/>
<field name="product_id"/>
<field name="related_sequence"/>
<field name="price_discount" string="Disc." invisible="1"/>
<field name="base" string="Base" invisible="1"/>
</tree>
</field>
</group>
</page>
</xpath>
</field>
</record>
</data>
</openerp>