-
Notifications
You must be signed in to change notification settings - Fork 12
/
payment.xml
60 lines (59 loc) · 2.9 KB
/
payment.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
<?xml version="1.0" encoding="UTF-8"?>
<tryton>
<data>
<record model="ir.ui.view" id="sale_payment_view_tree">
<field name="model">sale.payment</field>
<field name="type">tree</field>
<field name="name">sale_payment_tree</field>
</record>
<record model="ir.ui.view" id="sale_payment_view_form">
<field name="model">sale.payment</field>
<field name="type">form</field>
<field name="name">sale_payment_form</field>
</record>
<record model="ir.action.act_window" id="act_sale_payment_form">
<field name="name">Sale Payments</field>
<field name="res_model">sale.payment</field>
</record>
<record model="ir.action.act_window.view" id="act_sale_payment_form_view1">
<field name="sequence" eval="10"/>
<field name="view" ref="sale_payment_view_tree"/>
<field name="act_window" ref="act_sale_payment_form"/>
</record>
<record model="ir.action.act_window.view" id="act_sale_payment_form_view2">
<field name="sequence" eval="20"/>
<field name="view" ref="sale_payment_view_form"/>
<field name="act_window" ref="act_sale_payment_form"/>
</record>
<menuitem parent="sale.menu_sale_form" sequence="1"
action="act_sale_payment_form" id="menu_sale_payment_form"/>
<record model="ir.ui.menu-res.group" id="menu_sale_payment_form_group">
<field name="menu" ref="menu_sale_payment_form"/>
<field name="group" ref="sale.group_sale_admin"/>
</record>
<!-- Only sale user and admin has access to payments -->
<record model="ir.model.access" id="access_sale_payment">
<field name="model" search="[('model', '=', 'sale.payment')]"/>
<field name="perm_read" eval="False"/>
<field name="perm_write" eval="False"/>
<field name="perm_create" eval="False"/>
<field name="perm_delete" eval="False"/>
</record>
<record model="ir.model.access" id="access_sale_payment_sale">
<field name="model" search="[('model', '=', 'sale.payment')]"/>
<field name="group" ref="sale.group_sale"/>
<field name="perm_read" eval="True"/>
<field name="perm_write" eval="True"/>
<field name="perm_create" eval="True"/>
<field name="perm_delete" eval="False"/>
</record>
<record model="ir.model.access" id="access_sale_payment_sale_admin">
<field name="model" search="[('model', '=', 'sale.payment')]"/>
<field name="group" ref="sale.group_sale_admin"/>
<field name="perm_read" eval="True"/>
<field name="perm_write" eval="True"/>
<field name="perm_create" eval="True"/>
<field name="perm_delete" eval="True"/>
</record>
</data>
</tryton>