跳至內容
選單
此問題已被標幟
1 回覆
3787 瀏覽次數

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!


頭像
捨棄
作者 最佳答案

Solve: Add copy=True field o2m on model

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
3
8月 24
15433
2
6月 23
4304
0
10月 17
2604
1
7月 16
10823
0
3月 15
3655