Hi everyone.
I have to update everytime one field's value based on another object's field. How to achieve it.Please share ur ideas.Thanks in advance.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
Hi everyone.
I have to update everytime one field's value based on another object's field. How to achieve it.Please share ur ideas.Thanks in advance.
Yes u can go to create method in that model check condition and update value.
@api.model
def create(self, vals):
if values[u'key1'] = 'Something':
values[u'key2'] = 'update value'
<remaining code>
Crea un account oggi per scoprire funzionalità esclusive ed entrare a far parte della nostra fantastica community!
Registrati| Post correlati | Risposte | Visualizzazioni | Attività | |
|---|---|---|---|---|
|
10
mag 20
|
9539 | |||
|
1
gen 16
|
7116 | |||
|
1
gen 25
|
24397 | |||
|
1
mag 21
|
6362 | |||
|
5
gen 17
|
5148 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.