-
Notifications
You must be signed in to change notification settings - Fork 15
/
sale.xml
29 lines (28 loc) · 1.22 KB
/
sale.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
<?xml version="1.0"?>
<tryton>
<data>
<record model="ir.ui.view" id="sale_view_form">
<field name="model">sale.sale</field>
<field name="inherit" ref="sale.sale_view_form"/>
<field name="name">sale_form</field>
</record>
<record model="ir.ui.view" id="sale_view_tree">
<field name="model">sale.sale</field>
<field name="inherit" ref="sale.sale_view_tree"/>
<field name="name">sale_tree</field>
</record>
<record model="ir.rule.group" id="rule_group_sale">
<field name="model" search="[('model', '=', 'sale.sale')]"/>
<field name="global_p" eval="False"/>
<field name="default_p" eval="True"/>
<field name="perm_read" eval="True"/>
<field name="perm_write" eval="False"/>
<field name="perm_create" eval="False"/>
<field name="perm_delete" eval="False"/>
</record>
<record model="ir.rule" id="rule_sale1">
<field name="domain" eval="[('channel', 'in', Eval('user', {}).get('allowed_read_channels', []))]" pyson="1"/>
<field name="rule_group" ref="rule_group_sale"/>
</record>
</data>
</tryton>