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

Hello all,

I'm trying to modify this window when creating a new contact from the customer form?

Does it have a external ID?


Image :





Ảnh đại diện
Huỷ bỏ

+1 this new window is useless IMO. You need to goi back to contacts to fill the rest of the information

Câu trả lời hay nhất

You need to inherit the form view of res.partener to make changes on it.

try like this to change that you want in your image,

<record id="view_partner_form_inherited" model="ir.ui.view">
    <field name="name">res.partner.form.inherited</field>
    <field name="model">res.partner</field>
    <field name="inherit_id" ref="base.view_partner_form"/>
    <field name="arch" type="xml">
        <xpath expr="//field[@name='child_ids']/form/sheet/group/group[2]" position="replace">
            <group>
                <!--write your fields here-->
            </group>
        </xpath>
    </field>
</record> 
Ảnh đại diện
Huỷ bỏ
Tác giả

Thanks for your answer. I will do that. I didn't see the code for the button 'Create'. I was sure that this button was a <button> tag but it didn't find this tag in this code. By which concept this button appears in the partner form?

It's because of this <field name="child_ids" mode="kanban"......>

If you remove mode="kanban" then it becomes like a tree view.

Tác giả

Thanks for all! It works well!

Hi @Bharat, have any idea about how to implement this things in c# ?

Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 10 22
4604
1
thg 2 22
8711
2
thg 3 15
6136
0
thg 3 15
4722
1
thg 2 23
8508