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

Odoo - how to inherit a view and preserve the original?

By
Drees Far
on 12/14/15, 5:13 AM 376 views

Hello everybody!!!

Can anyone explain to me how can i inherit a view and preserve the original one In Odoo?

Thanks a lot in advance.

Best Regards.

0

Axel Mendoza

--Axel Mendoza--
10203
| 7 7 8
Camaguey, Cuba
--Axel Mendoza--

DevOps - Full stack - Software Architect - Developer - Technology Integrator

I could help you to develop anything and solve complex problems based on technologies, integrations and tricky stuffs mostly in Python with OpenERP/Odoo, Zato, Django and many others frameworks programming languages and technologies.

I offers consulting services to anyone with an unanswered questions or needs for customizations. Think about it, maybe it's better to have an expert to solve your issues and projects than having a full time employee trying to understand what to do an how

Reach me at aekroft@gmail.com

Axel Mendoza
On 12/14/15, 7:47 AM

Hi @Drees Far

You need to set the field mode for the view record with value primary, like:

<field name="mode">primary</field>

Read the help of that field here:

'mode': fields.selection(

[('primary', "Base view"), ('extension', "Extension View")],

string="View inheritance mode", required=True,

help="""Only applies if this view inherits from an other one (inherit_id is not False/Null).

* if extension (default), if this view is requested the closest primary view

is looked up (via inherit_id), then all views inheriting from it with this

view's model are applied

* if primary, the closest primary view is fully resolved (even if it uses a

different model than this one), then this view's inheritance specs

(<xpath/>) are applied, and the result is used as if it were this view's

actual arch.

"""),

No comments or activity here? One more dropped bullet

Axel Mendoza
on 12/22/15, 3:11 PM

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: 12/14/15, 5:13 AM
Seen: 376 times
Last updated: 12/14/15, 7:47 AM