Ir al contenido
Menú
Se marcó esta pregunta
1 Responder
3779 Vistas

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 Mejor respuesta

Solve: Add copy=True field o2m on model

Avatar
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
3
ago 24
15428
2
jun 23
4303
0
oct 17
2602
1
jul 16
10821
0
mar 15
3644