コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
6359 ビュー

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.

アバター
破棄

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

最善の回答

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.

アバター
破棄
関連投稿 返信 ビュー 活動
1
3月 16
5976
4
3月 15
11472
2
7月 25
4251
3
11月 22
7483
1
3月 15
8029