How can I update a sale.order field without getting into the write() method?
If I want to change the state of the sale.order without this = write({'state', 'test'}) ?
Thank you
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
How can I update a sale.order field without getting into the write() method?
If I want to change the state of the sale.order without this = write({'state', 'test'}) ?
Thank you
You can try this:
self.env['sale.order'].browse(record_to_change_id).state = 'test'
Hi,
You can give compute method and return value to your field. It will show your value in the field and will not call write method.
Stwórz konto dzisiaj, aby cieszyć się ekskluzywnymi funkcjami i wchodzić w interakcje z naszą wspaniałą społecznością!
Zarejestruj się| Powiązane posty | Odpowiedzi | Widoki | Czynność | |
|---|---|---|---|---|
|
0
paź 22
|
2660 | |||
|
0
kwi 20
|
3181 | |||
|
0
paź 24
|
189 | |||
|
1
lip 20
|
4141 | |||
|
0
maj 20
|
4424 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.