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>
Create an account today to enjoy exclusive features and engage with our awesome community!
Registrar-se| Related Posts | Respostes | Vistes | Activitat | |
|---|---|---|---|---|
|
10
de maig 20
|
9524 | |||
|
1
de gen. 16
|
7082 | |||
|
1
de gen. 25
|
24371 | |||
|
1
de maig 21
|
6335 | |||
|
5
de gen. 17
|
5120 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.