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.

0

How can i generate Two different forms,tree for one module in openerp v7

By
Harsh Dhaduk
on 3/8/14, 2:40 AM 1,518 views

Hello, Every one

i am new in OpenERP and i want to create Two different forms,tree for specific module like res_partner. can you help me and give me some ides about how to create.

Thanks in advance.

Hi, You can using attributes priority on list view and form view

feosco
on 3/8/14, 3:14 AM

how can i set priority? can you give me one example

Harsh Dhaduk
on 3/11/14, 2:19 AM
0

'res_partner' is not a module, it is a table. The model 'Partner' is 'res.partner'. The main module which create 'res.partner' is the module 'base'.

You can create more than one view(tree, form) for a specific model. The view are created in the xml files(example  the original views of Partner are in openerp/addons/base/res/res_partner_view.xml), see the memento openerp to know how create a view (http://anybox.fr/docs/openerp-technical-memento-0.6.5-a4/view). http://blog.openerp4you.in/2013/06/how-to-design-view-in-openerp-v7.html

If you have more than view for a model, you must define which view you want load. In the actions you can define a new entry 'ir.actions.act_window.view" to link the good view for a specific action. You can also use the "form_view_get"/"tree_view_get" in the context of a many2one.

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

0 follower(s)

Stats

Asked: 3/8/14, 2:40 AM
Seen: 1518 times
Last updated: 3/16/15, 8:10 AM