stock.inventory has no create method.
If I wanted to auto populate the Inventory Reference field (name) then how would I do this?
Super to osv.create somehow?
The write method is too late for me - I want the user to see the auto populated name.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
stock.inventory has no create method.
If I wanted to auto populate the Inventory Reference field (name) then how would I do this?
Super to osv.create somehow?
The write method is too late for me - I want the user to see the auto populated name.
The create method is part of Model (if I am correct), which is inherited by stock.inventory. All object do have the create method
So you can override the method, just make sure you use the same input-parameters as other objects.
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign upRelated Posts | Replies | Views | Activity | |
---|---|---|---|---|
|
1
Mar 16
|
5460 | ||
|
4
Mar 15
|
10900 | ||
|
2
Oct 23
|
3713 | ||
|
3
Nov 22
|
7042 | ||
|
1
Mar 15
|
7611 |
What is the problem? You can override create or write method as you have done it for other objects.