Odoo Help

Welcome!

This community 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.

1

Load different objects/views from a tree or form open

By
Shaumyadeep Chaudhuri
on 9/9/13, 5:06 AM 1,212 views

Hi, is it possible to open different objects/views from a tree view or just as the form is opening based on some condition. I was thinking that maybe overriding fields_view_get and calling the other form view from there based on the condition might help me, is that correct and possible? What would be the right direction for this

1

Hi.

You two solution: * fields_view_get + read: it is possible but it is not the OpenERP philosophy * create a new model without table. and in the method init and define a postgres view, example ./account_analytic_analysis/account_analytic_analysis.py

i'm not very strong in the sql section and can't find the documentation on postgres view, can you please explain if possible, also can you please elaborate on the fields_view_get + read, sorry i am don't know much about these and can't find the proper documentation for these either

Shaumyadeep Chaudhuri
on 9/9/13, 10:15 AM

I think that you should use sql view, Because if you do you own field_view_get and read methods you will by pass the BaseModel class, it is the core of OpenERP. If really you need this look for in the magentoerpconnector of Akretion in 6.1, i think they did it.

Suzanne Jean-Sébastien
on 9/10/13, 5:45 AM

Thanks for the reply i donot say that i will not do it sql view way, i just want to know both ways, one might be better/faster or maybe only thing required in some case. Thanks for your help. I'll look up the magentoerpconnector

Shaumyadeep Chaudhuri
on 9/10/13, 5:56 AM

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 9/9/13, 5:06 AM
Seen: 1212 times
Last updated: 3/16/15, 8:10 AM