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 a column doesn't work

By
chesucr
on 2/23/15, 11:05 AM 725 views

Hello,

I'm trying to modify the "description" column. I want to convert it in "no translatable". I use the belower code but it doesn't work. Am I doing anything wrong? Is this the best way to do it? 

  class CustomProduct(orm.Model):

    _inherit = 'product.template'    

  _columns = {                      

        'description': fields.text('Description',translate=False, help="..."),

}

0

zbik

--zbik--
5941
| 6 4 7
Lodz, Poland
--zbik--


zbik
On 2/23/15, 11:31 AM

You add in __openerp__.py

"depends" : ['product']

This code, in new api, works in my test system, (your code not works, may be orm issue?)

class CustomProduct(models.Model):
    _inherit = 'product.template'    

    description = fields.Text('Description',translate=False, help="...")

 

thanks for answering, but I already had that dependency

chesucr
on 2/23/15, 11:45 AM

answer updated

zbik
on 2/23/15, 2:00 PM

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: 2/23/15, 11:05 AM
Seen: 725 times
Last updated: 3/16/15, 8:10 AM