mirror of
https://github.com/NaN-tic/trytond-patches.git
synced 2023-12-14 06:03:03 +01:00
21 lines
1,001 B
Diff
21 lines
1,001 B
Diff
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" search="[('model', '=', 'account.invoice.payment.method')]"/>
|
|
+ <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>
|