Odoo Help


Override create on model with no create method?

Ray Carnes
on 5/7/13, 6:41 PM 2,177 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 (ERP Harbor Consulting Services)
on 5/8/13, 2:46 AM



| 5 4 7
Baarn, Netherlands
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.


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)


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