Skip to Content
Menu
Dette spørgsmål er blevet anmeldt
1 Svar
3776 Visninger

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
Kassér
Forfatter Bedste svar

Solve: Add copy=True field o2m on model

Avatar
Kassér
Related Posts Besvarelser Visninger Aktivitet
3
aug. 24
15426
2
jun. 23
4302
0
okt. 17
2602
1
jul. 16
10819
0
mar. 15
3639