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/sale/security/sale_security.xml | 229 +++++++++++++++++++++++++++++++++ 1 file changed, 229 insertions(+) create mode 100644 addons/sale/security/sale_security.xml (limited to 'addons/sale/security/sale_security.xml') diff --git a/addons/sale/security/sale_security.xml b/addons/sale/security/sale_security.xml new file mode 100644 index 00000000..b1afcab9 --- /dev/null +++ b/addons/sale/security/sale_security.xml @@ -0,0 +1,229 @@ + + + + + + + + + + Lock Confirmed Sales + + + + + Addresses in Sales Orders + + + + + A warning can be set on a product or a customer (Sale) + + + + + Pro-forma Invoices + + + + + + + + + + + + + + + + Sales Order multi-company + + [('company_id', 'in', company_ids)] + + + + Sales Order Line multi-company + + ['|', ('company_id', '=', False), ('company_id', 'in', company_ids)] + + + + Sales Order Analysis multi-company + + ['|',('company_id','=',False),('company_id', 'in', company_ids)] + + + + + Access every payment transaction + + [(1, '=', 1)] + + + + + Access every payment token + + [(1, '=', 1)] + + + + + + Portal Personal Quotations/Sales Orders + + [('message_partner_ids','child_of',[user.commercial_partner_id.id])] + + + + + + + + + Portal Sales Orders Line + + [('order_id.message_partner_ids','child_of',[user.commercial_partner_id.id])] + + + + + + + Personal Orders + + ['|',('user_id','=',user.id),('user_id','=',False)] + + + + All Orders + + [(1,'=',1)] + + + + + Personal Orders Analysis + + ['|',('user_id','=',user.id),('user_id','=',False)] + + + + + All Orders Analysis + + [(1,'=',1)] + + + + + Personal Order Lines + + ['|',('salesman_id','=',user.id),('salesman_id','=',False)] + + + + + All Orders Lines + + [(1,'=',1)] + + + + + Personal Invoices Analysis + + ['|', ('invoice_user_id', '=', user.id), ('invoice_user_id', '=', False)] + + + + + All Invoices Analysis + + [(1, '=', 1)] + + + + + + + Access every payment transaction + + [(1, '=', 1)] + + + + + Access every payment token + + + + + + + Personal Invoices + + [('move_type', 'in', ('out_invoice', 'out_refund')), '|', ('invoice_user_id', '=', user.id), ('invoice_user_id', '=', False)] + + + + + All Invoices + + [('move_type', 'in', ('out_invoice', 'out_refund'))] + + + + + Personal Invoice Lines + + [('move_id.move_type', 'in', ('out_invoice', 'out_refund')), '|', ('move_id.invoice_user_id', '=', user.id), ('move_id.invoice_user_id', '=', False)] + + + + + All Invoice Lines + + [('move_id.move_type', 'in', ('out_invoice', 'out_refund'))] + + + + + Personal Invoice Send and Print + + [('invoice_ids.move_type', 'in', ('out_invoice', 'out_refund')), '|', ('invoice_ids.invoice_user_id', '=', user.id), ('invoice_ids.invoice_user_id', '=', False)] + + + + + All Invoice Send and Print + + [('invoice_ids.move_type', 'in', ('out_invoice', 'out_refund'))] + + + + + + Payment Acquier Onboarding Wizard Rule + + [('create_uid', '=', user.id)] + + + + Sales Advance Payment Invoice Rule + + [('create_uid', '=', user.id)] + + + + Sales Order Cancel Rule + + [('create_uid', '=', user.id)] + + + -- cgit v1.2.3