Skip to Content
Menu
This question has been flagged
1 Reply
2039 Views

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?

Avatar
Discard
Best Answer

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.

Avatar
Discard
Author

tried and the problem still exist..

Please have a look on the updated answer.

Author

still cannot solve it