Odoo Help

0

Override a column doesn't work

By
chesucr
on 2/23/15, 11:05 AM 852 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--
6263
| 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

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.

Register

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)

Stats

Asked: 2/23/15, 11:05 AM
Seen: 852 times
Last updated: 3/16/15, 8:10 AM