Odoo Help

0

How to specify a specific view for an action?

By
Khwunchai Jaengsawang
on 2/4/15, 4:33 AM 661 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

0
BISSTECH SRL
On 2/4/15, 2:39 PM

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.

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

Register

Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)

Stats

Asked: 2/4/15, 4:33 AM
Seen: 661 times
Last updated: 3/16/15, 8:10 AM