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

Hi all, 
Is it possible to make Odoo fetch data from a field in Odoo to another field?
I have tried to make a related field, but then both fields are updated when the "parent" field is updated and the "child" field should not update. 
So for an item no. I have a revision no. and this number I would like to transfer to a field under a specific serial number - which is why I would like it to not update when the revision is changed on the item number as the revision for the specific item number should be historic so we can trace back. 

But is this possible? 

Avatar
Abbandona
Risposta migliore

Hi,

Either you can use onchange or compute method here and if there is already a value in your second field, then you can skip further assignment of value to this field.

* change related to compute
* if already there is value in the field, dont update again from compute

Thanks

Avatar
Abbandona