Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
6197 Zobrazení

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.

Avatar
Zrušit

What is the problem? You can override create or write method as you have done it for other objects.

Nejlepší odpověď

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.

Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
1
bře 16
5803
4
bře 15
11271
2
čvc 25
4066
3
lis 22
7316
1
bře 15
7849