Odoo Help

0

Override create on model with no create method?

By
Ray Carnes
on 5/7/13, 6:41 PM 1,872 views

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.

Sudhir Arya (SA)
on 5/8/13, 2:46 AM
0

patrick

--patrick--
1958
| 5 4 7
Baarn, Netherlands
--patrick--
patrick
On 5/7/13, 6:53 PM

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.

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

Register

Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

0 follower(s)

Stats

Asked: 5/7/13, 6:41 PM
Seen: 1872 times
Last updated: 3/16/15, 8:10 AM