Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1 Rispondi
2233 Visualizzazioni

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
Abbandona
Risposta migliore

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
Abbandona
Autore

tried and the problem still exist..

Please have a look on the updated answer.

Autore

still cannot solve it