[trunk/7.0][regression] cannot set view type when creating new view in interface

Bug #1174603 reported by Raphaël Valyi - http://www.akretion.com
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Server (MOVED TO GITHUB)
Confirmed
Medium
OpenERP's Framework R&D

Bug Description

observed:
when you create a new view (Settings > User Interface > Views > create view), you the type field is readonly.

expected:
you could choose the type of of the view to create

observation:
eventually this could be achieved using a fnct_inv in the code. To avoid unlimited recursion with the get type method, it could set the value using SQL as it's done at other places in OpenERP such as in the stock module.
Now yes, without extra care, you could end up with inconsistent values in the arch and the view type.
I suggest that in the fnct_inv method, you also replace the view type tags in the view arch, just like you use them to deduce the view type.

With this, user is currently practically unable to add views using the user interface, this somewhat kills OpenERP out of the box flexibility promises. If you really want to forbid view creation, I think you would better do it in a consistent way then. But I doubt this was the intent.

Hope this helps.

description: updated
Changed in openobject-server:
assignee: nobody → OpenERP's Framework R&D (openerp-dev-framework)
importance: Undecided → Medium
status: New → Confirmed
summary: - [7.0][regression] cannot set view type when creating new view in
+ [trunk/7.0][regression] cannot set view type when creating new view in
interface
Revision history for this message
Ray Carnes (rcarnes) wrote :

As a workaround, duplicate a view of the same type you want to create, then you will have a view you can edit of the type you need.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.