İçereği Atla
Menü
Bu soru işaretlendi
1 Cevapla
6217 Görünümler

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
Vazgeç

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

En İyi Yanıt

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
Vazgeç
İlgili Gönderiler Cevaplar Görünümler Aktivite
1
Mar 16
5826
4
Mar 15
11307
2
Tem 25
4099
3
Kas 22
7361
1
Mar 15
7881