diff --git a/addons/portal_customer/__openerp__.py b/addons/portal_customer/__openerp__.py index 57a45822b34..95684874770 100644 --- a/addons/portal_customer/__openerp__.py +++ b/addons/portal_customer/__openerp__.py @@ -37,8 +37,8 @@ "demo_xml" : [ ], "update_xml" : [ -# "security/ir.model.access.csv", - "portal_demo.xml", + "security/portal_security.xml", + "security/ir.model.access.csv", "portal_customer_view.xml", ], 'installable': True, diff --git a/addons/portal_customer/portal_customer_view.xml b/addons/portal_customer/portal_customer_view.xml index 9cea57cefd7..3dfe3ef69c0 100644 --- a/addons/portal_customer/portal_customer_view.xml +++ b/addons/portal_customer/portal_customer_view.xml @@ -16,7 +16,7 @@ - + @@ -31,13 +31,13 @@ - - - - - - - + + + + + + + @@ -45,9 +45,20 @@ - - - + + + + + + + + Feeds + 0 + + + + + diff --git a/addons/portal_customer/security/ir.model.access.csv b/addons/portal_customer/security/ir.model.access.csv new file mode 100644 index 00000000000..9ba5a09311d --- /dev/null +++ b/addons/portal_customer/security/ir.model.access.csv @@ -0,0 +1,2 @@ +id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink +access_account_voucher,account.voucher,account_voucher.model_account_voucher,portal_customer.group_sales_portal,1,1,1,1 \ No newline at end of file diff --git a/addons/portal_customer/portal_demo.xml b/addons/portal_customer/security/portal_security.xml similarity index 62% rename from addons/portal_customer/portal_demo.xml rename to addons/portal_customer/security/portal_security.xml index fc54c1c1e02..b204107f49f 100644 --- a/addons/portal_customer/portal_demo.xml +++ b/addons/portal_customer/security/portal_security.xml @@ -28,13 +28,32 @@ - - Sales Portal + + Personal Payments + + [('partner_id.email','=',user.login)] + + + + + Personal Contacts + + [('email','=',user.login)] + + + + + Sales Portal Group - + + + Sales Portal + + + \ No newline at end of file