-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathissue8479.diff
21 lines (21 loc) · 978 Bytes
/
issue8479.diff
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
diff -r 80d34e8f57a0 trytond/tryton/trytond/modules/account_invoice/invoice.xml
--- a/tryton/modules/account_invoice/invoice.xml Mon Jul 08 11:14:42 2019 +0200
+++ b/tryton/modules/account_invoice/invoice.xml Mon Jul 08 11:15:43 2019 +0200
@@ -411,5 +411,17 @@
pyson="1"/>
<field name="rule_group" ref="rule_group_invoice_line"/>
</record>
+
+ <record model="ir.rule.group" id="rule_group_invoice_payment_method">
+ <field name="name">User in company</field>
+ <field name="model">account.invoice.payment.method</field>
+ <field name="global_p" eval="True"/>
+ </record>
+ <record model="ir.rule" id="rule_invoice_payment_method1">
+ <field name="domain"
+ eval="[('company', 'in', Eval('companies', []))]"
+ pyson="1"/>
+ <field name="rule_group" ref="rule_group_invoice_payment_method"/>
+ </record>
</data>
</tryton>