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

Is only one way to add on_chanage event to inherited field, using position="replace"?

For example I want to use another solution to add on_change to move_ids field:

<field name="move_ids" position="replace">
    <field name="move_ids" on_change="on_change_move_ids()"/>
</field>
Avatar
Abbandona
Risposta migliore

Yes, you can do so.

There is another way to add/replace attribute:

<field name="move_ids" position="attributes">
    <attribute name="on_change">on_change_move_ids()</attribute>
</field>
Avatar
Abbandona
Post correlati Risposte Visualizzazioni Attività
1
gen 17
5906
3
dic 16
8515
0
mar 15
3661
0
feb 25
1361
0
gen 25
1155