Odoo Help


3 Answers

Cyril Gaspard (GEM) France

--Cyril Gaspard (GEM)--
| 6 6 10
Paris, France
--Cyril Gaspard (GEM)--

Forum contributor since 2008

Rank #1 on first OpenERP forum

OpenERP award "Top Contributor" 2011, for my actions on forum

Odoo forum moderator

Cyril Gaspard (GEM) France
4/6/13, 5:29 PM


you must inherit product.product class and add fields you want to add in python and xml files.

For the search, you just have to override the function name_get by add the contained of field you add.


xiaolong97427 France
2/26/13, 8:05 PM

I can't post link, but search here (help.openerp.com) for : " How to add extra fields to a model? "

1 Comment
Cristian Chile
2/27/13, 4:10 PM

it looks like the Xiaolong's link. I tried to add the new Field in the Database Structure -> Models but It throws an error: assert self._rec_name in self._columns.keys() + ['id'], "Invalid rec_name %s for model %s" % (self._rec_name, self._name) AssertionError: Invalid rec_name name for model product.product. Searching in the web seems to be a bug

fenshuajiang China
2/27/13, 12:52 AM

use model "product_variant_multi"

xiaolong97427 France
2/27/13, 2:57 AM

Yes it's a possibility as well, but the module is not compatible with V7 yet. I trying to install and facing a lot of problem.

Jay United States
2/27/13, 5:43 AM

Just tested out product_multi_variant, don't think it is fully ported to v7, nor think it is the right answer to Cristian. Correct me if I am wrong.

Cristian, I feel your question is similar to mine link:[http://help.openerp.com/question/1652/any-existing-addon-can-solve-my-problem-sales-analysis-based-on-products-multi-attributes/]. Take a look and comment back if you want.

Ask a Question
Keep Informed
1 follower(s)
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