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:
- सीआरएम
- e-Commerce
- लेखांकन
- इन्वेंटरी
- PoS
- प्रोजेक्ट
- MRP
This question has been flagged
2
Replies
16185
Views
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!
Sign up| Related Posts | Replies | Views | Activity | |
|---|---|---|---|---|
|
|
1
जन॰ 25
|
1982 | ||
|
|
0
दिस॰ 24
|
1973 | ||
|
|
1
मई 24
|
3634 | ||
|
|
1
जन॰ 24
|
2340 | ||
|
|
2
मई 22
|
15455 |
You cannot have ID of the record until it is saved.