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
- Bogføring
- Lager
- PoS
- Project
- MRP
Dette spørgsmål er blevet anmeldt
2
Besvarelser
15169
Visninger
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!
Tilmeld digRelated Posts | Besvarelser | Visninger | Aktivitet | |
---|---|---|---|---|
|
1
jan. 25
|
1324 | ||
|
0
dec. 24
|
1331 | ||
|
1
maj 24
|
2780 | ||
|
1
jan. 24
|
1745 | ||
|
2
maj 22
|
14651 |
You cannot have ID of the record until it is saved.