Welcome!

This community is for professionals and enthusiasts of our products and services.Share and discuss the best content and new marketing ideas,build your professional profile and become a better marketer together.

Register
1

How can I extend a view?

By
Diogo Duarte
on 11/4/15, 10:27 PM397 views

How can I extend a view? 


0
Diogo Duarte
On11/4/15, 10:28 PM

You need to set a new view and use the inherit_id field to identify the view you are extending like

<field name="inherit_id" ref="target_view_id"/>" before "<field name="arch" type="xml">

You can then use XPath expressions to locate and insert/change/delete elements. Odoo also provides shortcut notations if you want to avoid XPath syntax like

<field name="target_field" position="before"><field name="new_field"/></field>

The position attribute used with the locator element is optional, and can have the following values: after; before; inside; replace; attributes.


Your Answer

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

Keep Informed

About This Community

This community is for professionals and enthusiasts of our products and services.Share and discuss the best content and new marketing ideas,build your professional profile and become a better marketer together.

Read Guidelines

Question tools

2 follower(s)

Stats

Asked: 11/4/15, 10:27 PM
Seen: 397 times
Last updated: 11/5/15, 1:25 AM