Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
1 Ответить
6344 Представления

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.

Аватар
Отменить
Related Posts Ответы Просмотры Активность
1
мар. 16
5940
4
мар. 15
11446
2
июл. 25
4213
3
нояб. 22
7451
1
мар. 15
8007