This question has been flagged
1 Reply
4788 Views

Hi,

 

I'm customizing Odoo 8.0.

I'd like to seperate views for products by categories namely "Machinery" and "Services".

In other word, "Machinery" and "Services" are using the same model but have form and list views of there own.

 

I have followed an old doc

https://doc.odoo.com/6.0/developer/2_6_views_events/views/specify_view_to_use/

After I specified a list view for an action using view_id, I lost create button and I cannot click on any item.

Am I doing it wrong? Is there any other way. 

I can't find any up-to-date doc with the same topic.

 

I have also read this doc

https://www.odoo.com/documentation/8.0/reference/actions.html

I've tied using views but it seems to be overriden by other views

and there is no example about how to use view_ids or view_id for v8.0

Avatar
Discard
Best Answer

Hi, I think you have 'lost' the Create button because you have used the 'tree' mode of the view. Using tree and form modes together gives you the 'Create' button back and gives you alse the possibility to have both views on your model. Hope this helps. If you need more specific information, please post your code for the two actions. Best, Ioan.

Avatar
Discard