Odoo Help


Custom Line Option Similar to Order Line

on 11/14/16, 11:35 AM 314 views

Hey all,

I need some structure similar to sale.order and sale.order.line. I have created a custom module with two models, a form, a list, and a QWEB report. Now, the problem I have is adding several item lines (identical in function to sale.order.line) to the view. Currently, all I can do is open a kanban and create one item line. I want several. Below is the is the view form.

<record model="ir.ui.view" id="view_order_confirmation_form">

    <field name="name">view.order.confirmation.form</field>

    <field name="model">order.confirmation</field>

    <field name="arch" type="xml">

        <form string="Confirmation Form">


                <group class="col-xs-6">

                    <field name="order_number"/>

                    <field name="customer_id"/>

                    <field name="order_date"/>

                    <field name="gender" widget="radio"/>



                    <page string="Items">

                        <field name="order_confirmation_line" mode="tree,kanban">

                            <form string="Confirmed Items">


                                        <field name="device_quantity"/>

                                        <field name="serialnumber"/>

                                        <field name="item_name"/>

                                        <field name="manufacturer"/>

                                        <field name="model_number"/>











On 11/15/16, 7:33 AM

My issue was my model relationship. I had a many2one relationship and that was not correct.

On 2/16/17, 12:44 AM

Hi, do you mind sharing the code? I have the same issue

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 platform 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.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)


Asked: 11/14/16, 11:35 AM
Seen: 314 times
Last updated: 2/16/17, 12:44 AM