forked from OCA/sale-workflow
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsale_view.xml
113 lines (104 loc) · 4.94 KB
/
sale_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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
<?xml version="1.0" ?>
<openerp>
<data>
<record id="view_sale_exception_tree" model="ir.ui.view">
<field name="name">sale.exception.tree</field>
<field name="model">sale.exception</field>
<field name="arch" type="xml">
<tree string="Sale Exception">
<field name="active"/>
<field name="name"/>
<field name="description"/>
<field name="model"/>
<field name="sequence"/>
</tree>
</field>
</record>
<record id="view_sale_exception_form" model="ir.ui.view">
<field name="name">sale.exception.form</field>
<field name="model">sale.exception</field>
<field name="arch" type="xml">
<form string="Sale Exception Setup">
<group colspan="4" col="2">
<field name="name"/>
<field name="description"/>
</group>
<group col="4" colspan="4" groups="base.group_sale_manager">
<field name="active"/>
<field name="sequence"/>
<group colspan="4" col="2" groups="base.group_system">
<field name="model"/>
<field name="code"/>
</group>
</group>
<group colspan="4" col="2">
<separator string="Affected Sales Orders"/>
<newline/>
<field name="sale_order_ids" nolabel="1" domain="[('state', '=', 'draft')]"/>
</group>
</form>
</field>
</record>
<record id="action_sale_test_tree" model="ir.actions.act_window">
<field name="name">Exception Rules</field>
<field name="res_model">sale.exception</field>
<field name="view_type">form</field>
<field name="view_mode">tree,form</field>
<field name="view_id" ref="view_sale_exception_tree"/>
<field name="context">{'active_test': False}</field>
</record>
<menuitem action="action_sale_test_tree" id="menu_sale_test" parent="base.menu_sale_config_sales" />
<record id="view_order_form" model="ir.ui.view">
<field name="name">sale_exceptions.view_order_form</field>
<field name="model">sale.order</field>
<field name="inherit_id" ref="sale.view_order_form"/>
<field name="arch" type="xml">
<field name="name" position="after">
<group>
<field name="main_exception_id" options='{"no_open": True}'
class="oe_inline" string="Error:"
attrs="{'invisible':[('main_exception_id','=', False)]}"/>
</group>
</field>
<xpath expr="//page[@string='Other Information']/group"
position="inside">
<group name="exception" colspan="2" col="2">
<separator string="Exception" colspan="2"/>
<field name="exception_ids" colspan="2" nolabel="1"/>
</group>
</xpath>
</field>
</record>
<record id="view_order_tree" model="ir.ui.view">
<field name="name">sale_exceptions.view_order_tree</field>
<field name="model">sale.order</field>
<field name="inherit_id" ref="sale.view_order_tree"/>
<field name="arch" type="xml">
<field name="state" position="after">
<field name="main_exception_id"/>
</field>
</field>
</record>
<record id="view_quotation_tree" model="ir.ui.view">
<field name="name">sale_exceptions.view_order_tree</field>
<field name="model">sale.order</field>
<field name="inherit_id" ref="sale.view_quotation_tree"/>
<field name="arch" type="xml">
<field name="state" position="after">
<field name="main_exception_id"/>
</field>
</field>
</record>
<record id="view_sales_order_filter" model="ir.ui.view">
<field name="name">sale_exceptions.view_sales_order_filter</field>
<field name="model">sale.order</field>
<field name="inherit_id" ref="sale.view_sales_order_filter" />
<field name="arch" type="xml">
<filter name="sales" position="after">
<separator orientation="vertical"/>
<filter icon="terp-emblem-important" name="tofix" string="Blocked in draft" domain="[('main_exception_id','!=',False)]"/>
</filter>
</field>
</record>
</data>
</openerp>