Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
3762 Lượt xem

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!


Ảnh đại diện
Huỷ bỏ
Tác giả Câu trả lời hay nhất

Solve: Add copy=True field o2m on model

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
3
thg 8 24
15424
2
thg 6 23
4302
0
thg 10 17
2602
1
thg 7 16
10818
0
thg 3 15
3634