diff --git a/addons/sale/sale_view.xml b/addons/sale/sale_view.xml index b9eabcaa02e..3431c911a97 100644 --- a/addons/sale/sale_view.xml +++ b/addons/sale/sale_view.xml @@ -292,6 +292,7 @@ form tree,form,calendar,graph + {"search_default_user_id":uid} Sales Orders helps you manage quotations and orders done with your customers. OpenERP suggests that you to start by creating a quotation. Once the order is confirmed, the quotation is converted into a Sale Order. OpenERP can handle several types of products so that a sales order can trigger tasks, delivery orders, manufacturing orders, purchases and so on. Based on the configuration of the sale order, a draft invoice will be generated so that you just have to confirm it when you want to bill your customer. diff --git a/addons/sale/security/sale_security.xml b/addons/sale/security/sale_security.xml index 36a8fc15118..27852979773 100644 --- a/addons/sale/security/sale_security.xml +++ b/addons/sale/security/sale_security.xml @@ -31,6 +31,19 @@ ['|',('company_id','=',False),('company_id','child_of',[user.company_id.id])] + + Personal Orders + + ['|',('user_id','=',user.id),('user_id','=',False)] + + + + + Personal Order Lines + + ['|',('order_id.user_id','=',user.id),('order_id.user_id','=',False)] + +