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

Changing product name

By
Roberto Barreiro
on 3/9/14, 3:47 PM 1,395 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.

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

0
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

#----------------------------------------------------------

Products

#---------------------------------------------------------- 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 community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

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