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

<record model="ir.actions.act_window"> vs <act_window>

By
Leonardo Donelli
on 3/7/14, 11:47 AM 2,172 views

What is the best way to create e new window action between the two? Is one of them deprecated?

What are the differences? The only difference I could find is that <act_window> supports the key2 parameter (about that, please check bug lp:1282641) while you would have to also create an ir_values record with the other method.

3

Davide Corio

--Davide Corio--
1822
| 4 3 7
Bricherasio, Italy
--Davide Corio--

Odoo Evangelist and Consultant

Davide Corio
On 7/1/14, 2:37 AM

the second one is just an alias and is not deprecated, just like <report>

you can have a look at all the elements here, as well as their attributes

using the <record> element is sometimes mandatory if the alias doesn't have all the attributes declared in the rng definition.

Thanks. The xml tag definitions you linked is really useful. Is there an official guideline on which one to use? Personally I prefer the tag: the syntax is clearer and more compact, it supports additional attributes, and is more self-descripting. Most of the attributes are declared optional and if they aren't it probably makes no sense to omit them, so that is, imo, another point for the tag.

Leonardo Donelli
on 7/1/14, 4:00 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

0 follower(s)

Stats

Asked: 3/7/14, 11:47 AM
Seen: 2172 times
Last updated: 4/20/16, 2:46 AM