[FIX] website: do not allow to create/edit views
Before this commit, User was allowed to create new records from form view through Graph view' action. Since we do not have a way to prevent opening form view from Graph and also we should not Introduce new form view on stable version. With this commit, we are disabling create/edit/copy from action. closes odoo/odoo#74288 X-original-commit: e8c5302e5cb11f185d1d5b1ef43ab641b2be6f76 Signed-off-by: Romain Derie <rdeodoo@users.noreply.github.com>
This commit is contained in:
@@ -331,7 +331,7 @@
|
||||
<field name="type">ir.actions.act_window</field>
|
||||
<field name="res_model">website.track</field>
|
||||
<field name="view_mode">tree</field>
|
||||
<field name="context">{'search_default_type_url':1}</field>
|
||||
<field name="context">{'search_default_type_url': 1, 'create': False, 'edit': False, 'copy': False}</field>
|
||||
<field name="view_ids" eval="[(5, 0, 0),
|
||||
(0, 0, {'view_mode': 'tree', 'view_id': ref('website_visitor_track_view_tree')}),
|
||||
(0, 0, {'view_mode': 'graph', 'view_id': ref('website_visitor_track_view_graph')}),
|
||||
|
||||
Reference in New Issue
Block a user