Hello odooers
when I use compute method and onchange mehtod that time I did not get ID.
but I got self = sale.order(<NewId 0x7f5dec30b2b0>,) & self.id = <NewId 0x7f5dec30b2b0>.
I used _origin but got sale.order().
So, How can I get ID??
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Účtovníctvo
- Sklady
- PoS
- Projektové riadenie
- MRP
This question has been flagged
2
Replies
16197
Zobrazenia
Try
self._origin.id
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Registrácia| Related Posts | Replies | Zobrazenia | Aktivita | |
|---|---|---|---|---|
|
|
1
jan 25
|
1993 | ||
|
|
0
dec 24
|
1985 | ||
|
|
1
máj 24
|
3642 | ||
|
|
1
jan 24
|
2348 | ||
|
|
2
máj 22
|
15464 |
You cannot have ID of the record until it is saved.