-
Notifications
You must be signed in to change notification settings - Fork 13
/
pos.xml
64 lines (57 loc) · 2.5 KB
/
pos.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
<?xml version="1.0"?>
<tryton>
<data>
<menuitem name="Points of Sale" parent="account.menu_account_configuration"
id="menu_main_point_of_sale" sequence="10"/>
<record model="ir.ui.view" id="pos_view_form">
<field name="model">account.pos</field>
<field name="type">form</field>
<field name="name">pos_form</field>
</record>
<record model="ir.ui.view" id="pos_view_tree">
<field name="model">account.pos</field>
<field name="type">tree</field>
<field name="name">pos_tree</field>
</record>
<record model="ir.action.act_window" id="act_account_pos">
<field name="name">Points of Sale</field>
<field name="res_model">account.pos</field>
</record>
<record model="ir.action.act_window.view"
id="act_account_pos_view1">
<field name="sequence" eval="10"/>
<field name="view" ref="pos_view_tree"/>
<field name="act_window" ref="act_account_pos"/>
</record>
<record model="ir.action.act_window.view"
id="act_account_pos_view2">
<field name="sequence" eval="20"/>
<field name="view" ref="pos_view_form"/>
<field name="act_window" ref="act_account_pos"/>
</record>
<menuitem name="Points of Sale" parent="menu_main_point_of_sale"
id="menu_point_of_sale" action="act_account_pos"/>
<record model="ir.rule.group" id="rule_group_pos_companies">
<field name="name">User in companies</field>
<field name="model"
search="[('model', '=', 'account.pos')]"/>
<field name="global_p" eval="True"/>
</record>
<record model="ir.rule" id="rule_pos_companies">
<field name="domain"
eval="[('company', 'in', Eval('companies', []))]"
pyson="1"/>
<field name="rule_group" ref="rule_group_pos_companies"/>
</record>
<record model="ir.ui.view" id="pos_sequence_view_form">
<field name="model">account.pos.sequence</field>
<field name="type">form</field>
<field name="name">pos_sequence_form</field>
</record>
<record model="ir.ui.view" id="pos_sequence_view_tree">
<field name="model">account.pos.sequence</field>
<field name="type">tree</field>
<field name="name">pos_sequence_tree</field>
</record>
</data>
</tryton>