Odoo Help


Changing product name

Roberto Barreiro
on 3/9/14, 3:47 PM 1,506 views

I'm using OE7, and when I change a product name, it doesn't update the field 'name' at database in the table 'product_product'. The name of the product is translated, but I don't want this. How can I force updating name field instead to do a translation? Thanks in advice.

Roberto Barreiro
On 3/9/14, 5:35 PM

This can be solved changing the translate property at \addons\products\products.py:

class product_template(osv.osv): _name = "product.template" _description = "Product Template"

_columns = {
    'name': fields.char('Name', size=128, required=True, **translate=False**, select=True)

I have multi_variants module installed, and this trick don't works if this module is installed.

Roberto Barreiro
On 3/9/14, 4:56 PM

Solved changing translate=False at \addons\product\product.py Now changes are updated in product_template,name



#---------------------------------------------------------- class product_template(osv.osv): _name = "product.template" _description = "Product Template"

_columns = {
    'name': fields.char('Name', size=128, required=True,  translate=False, select=True)

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 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

1 follower(s)


Asked: 3/9/14, 3:47 PM
Seen: 1506 times
Last updated: 3/16/15, 8:10 AM