From f4ab27558e37e87a9c5f36fac3f46c41cdbabec7 Mon Sep 17 00:00:00 2001 From: Yannick Vaucher Date: Tue, 5 Jul 2016 15:37:05 +0200 Subject: [PATCH] Move the account_payment_mode ir.rule in account_payment_mode module --- account_payment_mode/security/account_payment_mode.xml | 10 ++++++++++ account_payment_order/security/payment_security.xml | 7 ------- 2 files changed, 10 insertions(+), 7 deletions(-) create mode 100644 account_payment_mode/security/account_payment_mode.xml diff --git a/account_payment_mode/security/account_payment_mode.xml b/account_payment_mode/security/account_payment_mode.xml new file mode 100644 index 000000000..609bc0f79 --- /dev/null +++ b/account_payment_mode/security/account_payment_mode.xml @@ -0,0 +1,10 @@ + + + + + Payment mode multi-company rule + + ['|', ('company_id', '=', False), ('company_id', 'child_of', [user.company_id.id])] + + + diff --git a/account_payment_order/security/payment_security.xml b/account_payment_order/security/payment_security.xml index cb5ce34f2..54c749ef8 100644 --- a/account_payment_order/security/payment_security.xml +++ b/account_payment_order/security/payment_security.xml @@ -14,13 +14,6 @@ - - - Payment mode multi-company rule - - ['|', ('company_id', '=', False), ('company_id', 'child_of', [user.company_id.id])] - -