Odoo Help

Welcome!

This community 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.

0

Override create on model with no create method?

By
Ray Carnes
on 5/7/13, 6:41 PM 1,566 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.

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

0 follower(s)

Stats

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