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.
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.
Skapa ett konto idag för att ta del av exklusiva funktioner och engagera dig i vår fantastiska community!
Registrera dig| Relaterade inlägg | Svar | Vyer | Verksamhet | |
|---|---|---|---|---|
|
1
mars 16
|
7778 | |||
|
4
mars 15
|
13755 | |||
|
2
juli 25
|
6235 | |||
|
3
nov. 22
|
9825 | |||
|
1
mars 15
|
10241 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.
What is the problem? You can override create or write method as you have done it for other objects.