From 3751379f1e9a4c215fb6eb898b4ccc67659b9ace Mon Sep 17 00:00:00 2001 From: stephanchrst Date: Tue, 10 May 2022 21:51:50 +0700 Subject: initial commit 2 --- addons/payment/security/payment_security.xml | 31 ++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 addons/payment/security/payment_security.xml (limited to 'addons/payment/security/payment_security.xml') diff --git a/addons/payment/security/payment_security.xml b/addons/payment/security/payment_security.xml new file mode 100644 index 00000000..e51b25f9 --- /dev/null +++ b/addons/payment/security/payment_security.xml @@ -0,0 +1,31 @@ + + + + + Access own payment transaction only + + ['|',('partner_id','=',False), ('partner_id','=',user.partner_id.id) ] + + + + Access own payment tokens only + + [('partner_id', 'child_of', user.partner_id.commercial_partner_id.id)] + + + + + Access every payment transaction + + [(1, '=', 1)] + + + + + Access every payment token + + [(1, '=', 1)] + + + + -- cgit v1.2.3