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

Hi,


Let's say I want to add a field called extra_information on sales.order (form) and I use the code below:

<record id="edit_sale_order_form" model="ir.ui.view">
<field name="name">sale.order.form</field>
<field name="model">sale.order</field>
<field name="inherit_id" ref="sale.view_order_form"/>
<field name="arch" type="xml">
<field name="payment_term_id" position="after">
<field name="extra_information"/>
</field>

</field>
</record>

From what I've learned Odoo is:

  • First going to load the original sale.view_order_form xml

  • Than load my modification adding the extra_information field

  • Than show the "modified xml" to the user


Is it possible for me to take a look at that "modified xml"?


It should be something similar to this:

...
<field name="currency_id" invisible="1"/>
<field name="payment_term_id" options="{'no_open':True,'no_create': True}"/>
<field name="extra_information"/>

</group>
</group>
<notebook>
...


Thanks in advance!

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

Hi,

You can activate the developer mode and open the corresponding view, click the Debugger Button near the logged in user name in the top bar. Click on the Fields View Get,



Here you can see the final view architecture that user see,



Thanks

Ảnh đại diện
Huỷ bỏ
Tác giả

Thanks Niyas, but how can I check that "final architecture" for PDF/HTML reports?

Tác giả Câu trả lời hay nhất

Thanks Niyas, but how can I check that "final architecture" for PDF/HTML reports?

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 12 16
7878
0
thg 2 25
1270
0
thg 1 25
1100
1
thg 12 24
1399
1
thg 6 22
5534