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

odoo 8: How can I call a template from an inherited form view

By
karim
on 4/29/15, 6:57 AM 825 views


I am a beginner in odoo 8. I want to use the template (template id = "Variants") that is in the website_sale module in the form view of "Order lines" that has an external_id (ref="sale.view_order_form"). so I made inheritance like this:

<record id="multiple_variante_sale_order_form" model="ir.ui.view">
         <field name="name">sale.order.form</field>
         <field name="model">sale.order</field>
         <field name="inherit_id" ref="sale.view_order_form"/>
         <field name="arch" type="xml">
            <xpath expr="//notebook/page/field/form/group/group/field[@name='product_id']" position="after">
                 -- here I want to call the template of the wesite_sale <template id="Variants" > --
            </xpath>
         </field>

Can I do this? if yes, how can I do this?

Hello any one have to solution or give some hint to inherit template in form view i want to use import button or functionality at the sale order line for importing data from sale order line

sarkar
on 1/4/16, 2:48 AM
0
arsyal
On 5/5/15, 3:43 AM

Yes i think you can do that

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: 4/29/15, 6:57 AM
Seen: 825 times
Last updated: 5/5/15, 3:44 AM