[FIX] portal_sale: Move portal access rights to website_portal_sale

Currently as no portal backend view exists anymore, the method 'get_access_action' will return a url to the backend.

For example, if you have only sale installed (with portal_sale in auto install mode), you'll get access rights to sales orders in read mode in backend. The correct way to handle this is to return an access error and give the access rights to these documents only in website_portal_sale is installed, i.e. when the portal view is accessible in frontend under my/orders/ controller.
This commit is contained in:
Yannick Tivisse
2016-08-30 10:09:36 +02:00
parent db28e23e76
commit df802f9005
3 changed files with 1 additions and 1 deletions
-1
View File
@@ -28,7 +28,6 @@ by default, you simply need to configure a Paypal account in the Accounting/Invo
'depends': ['sale', 'portal', 'payment'],
'data': [
'security/portal_sale_security.xml',
'security/ir.model.access.csv',
'views/sale_order_views.xml',
],
'auto_install': True,
@@ -13,6 +13,7 @@ Add your sales document in the frontend portal. Your customers will be able to c
],
'data': [
'views/templates.xml',
'security/ir.model.access.csv',
],
'demo': [
'data/demo.xml'