mirror of
https://github.com/OCA/bank-payment.git
synced 2025-02-02 10:37:31 +02:00
Move the account_payment_mode ir.rule in account_payment_mode module
This commit is contained in:
10
account_payment_mode/security/account_payment_mode.xml
Normal file
10
account_payment_mode/security/account_payment_mode.xml
Normal file
@@ -0,0 +1,10 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo noupdate="1">
|
||||
|
||||
<record id="account_payment_mode_company_rule" model="ir.rule">
|
||||
<field name="name">Payment mode multi-company rule</field>
|
||||
<field name="model_id" ref="model_account_payment_mode"/>
|
||||
<field name="domain_force">['|', ('company_id', '=', False), ('company_id', 'child_of', [user.company_id.id])]</field>
|
||||
</record>
|
||||
|
||||
</odoo>
|
||||
@@ -14,13 +14,6 @@
|
||||
|
||||
<data noupdate="1">
|
||||
|
||||
|
||||
<record id="account_payment_mode_company_rule" model="ir.rule">
|
||||
<field name="name">Payment mode multi-company rule</field>
|
||||
<field name="model_id" ref="model_account_payment_mode"/>
|
||||
<field name="domain_force">['|', ('company_id', '=', False), ('company_id', 'child_of', [user.company_id.id])]</field>
|
||||
</record>
|
||||
|
||||
<!--
|
||||
<record id="account_payment_order_company_rule" model="ir.rule">
|
||||
<field name="name">Payment order multi-company rule</field>
|
||||
|
||||
Reference in New Issue
Block a user