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

Show the same form by a second tree ??

By
laribi
on 10/3/13, 12:24 PM 597 views

Hello,

Any body knows how to show an used form by another tree ( a second one) which is not of the same model???

Thanks.

0

Serpent Consulting Services Pvt. Ltd.

--Serpent Consulting Services Pvt. Ltd.--
4341
| 6 6 8
Gandhinagar, India
--Serpent Consulting Services Pvt. Ltd.--

Serpent Consulting Services Pvt. Ltd. Your Odoo/OpenERP Solution, just an email away!

Serpent Consulting Services Pvt. Ltd.
On 10/4/13, 4:37 AM

Hello laribi,

This is my simple e.g.:

<form string="Purchase Order"> <field name="partner_id"/> <field name="partner_ref"/> <field name="currency_id"/> <field name="order_line"> <tree string="Purchase Order Line"> <field name="product_id"/> <field name="name"/> <field name="date_planned"/> <field name="price_unit"/> </tree> </field> </form> Here the form is a "purchase.order" model and the tree is a "purchase.order.line"model.

0

Serpent Consulting Services Pvt. Ltd.

--Serpent Consulting Services Pvt. Ltd.--
4341
| 6 6 8
Gandhinagar, India
--Serpent Consulting Services Pvt. Ltd.--

Serpent Consulting Services Pvt. Ltd. Your Odoo/OpenERP Solution, just an email away!

Serpent Consulting Services Pvt. Ltd.
On 10/4/13, 4:53 AM
Hello laribi,

This is my simple e.g.:

 <form string="Purchase Order">
     <field name="partner_id"/>
     <field name="partner_ref"/>
     <field name="currency_id"/>
     <field name="order_line">
    <tree string="Purchase Order Line">
         <field name="product_id"/>
         <field name="name"/>
         <field name="date_planned"/>
         <field name="price_unit"/> 
   </tree>
  </field>
</form>

Here the form is a "purchase.order" model and the tree is a "purchase.order.line"model.
0

Serpent Consulting Services Pvt. Ltd.

--Serpent Consulting Services Pvt. Ltd.--
4341
| 6 6 8
Gandhinagar, India
--Serpent Consulting Services Pvt. Ltd.--

Serpent Consulting Services Pvt. Ltd. Your Odoo/OpenERP Solution, just an email away!

Serpent Consulting Services Pvt. Ltd.
On 10/4/13, 4:25 AM

Hello laribi,

Here is simple e.g :

<form string="Purchase Order"> <field name="partner_id"/> <field name="partner_ref"/> <field name="currency_id"/> <field name="order_line"> <tree string="Purchase Order Line"> <field name="product_id"/> <field name="name"/> <field name="date_planned"/> <field name="price_unit"/> </tree> </form>

Here the form is a "purchase.order" model and the tree is a "purchase.order.line"model.

0
laribi
On 10/4/13, 5:49 AM

Hello,

Thank you for the answer, but its not really my problem. I want to show a form of another model in the view tree of my model ( not a field one2many..) , i mean the main list.

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: 10/3/13, 12:24 PM
Seen: 597 times
Last updated: 3/16/15, 8:10 AM