Skip to Content
Menú
This question has been flagged
1 Respondre
3756 Vistes

I want to duplicate all the information of the record, including the o2m field

<notebook>

     <page string="Job" name="job_estimate_id">

        <field name="job_estimate_id" attrs="{'readonly': [('state', '!=','draft')]}">

            <tree editable="bottom">

                <field name="name" invisible="1" force_save="1"/>

                <field name="job_recruitment_id" />

                <field name="no_of_recruitment" string="Quantity" />

            </tree>

        </field>

    </page>

</notebook>


Sorry, my English is not very good!

Thanks!


Avatar
Descartar
Autor Best Answer

Solve: Add copy=True field o2m on model

Avatar
Descartar
Related Posts Respostes Vistes Activitat
3
d’ag. 24
15424
2
de juny 23
4302
0
d’oct. 17
2602
1
de jul. 16
10818
0
de març 15
3634