Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
6368 Lượt xem

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.

Ảnh đại diện
Huỷ bỏ

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

Câu trả lời hay nhấ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.

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 3 16
5978
4
thg 3 15
11482
2
thg 7 25
4260
3
thg 11 22
7490
1
thg 3 15
8035