Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
6723 Widoki

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.

Awatar
Odrzuć

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

Najlepsza odpowiedź

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.

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
1
mar 16
6177
4
mar 15
11863
2
lip 25
4559
3
lis 22
7786
1
mar 15
8298