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

I am editing the sales order form and I cannot change the attribute of product_id

I can hide the field by using

<field name="product_id" position="replace"/>

but when I use 

<field name="product_id" position="replace">

<field name="product_id" />

</field>

it still using the on_change function of the original product_id, how do i solve it?

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

Hi,

you have also one option as like below.

<field name="product_id" position="replace">

</field>

<field name="name" position="after">

    <field name="product_id" />

</field>

or 

<field name="product_id" position="attributes" >

    <attribute name="on_change"></attribute>

</field>

I hope it will resolve your issue of on_change.

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

tried and the problem still exist..

Please have a look on the updated answer.

Tác giả

still cannot solve it