Odoo Help


Adding custom field while inheriting mail.thread

Nat Gimenez
on 5/4/16, 3:29 AM 1,169 views

 I'm trying to add a new field in mail.thread in order to have tags in it.

I've created a new module, named myTaggedMailThread :

from openerp.osv import osv

from openerp import api, fields, models

class myTaggedMailThread(models.Model):

   _inherit = 'mail.thread'


   _columns = {

       'current_tags': fields.Text('current_tags', help="Tags", default='test current tags')


   #current_tags = fields.Text('current_tags', help="Tags", default=' test current tag ')

myTaggedMailThread ()

But I get an error when lauching my odoo instance :

File "/opt/myOdoo/app/openerp/field.py", line 343, in __getattr__

    return self._attrs[name].

RuntimeError : maximum recursion depth exceeded

Can someone explain what I'm doing wrong please ?


Akhil P Sivan

--Akhil P Sivan--

| 5 4 7
Kochi, India
--Akhil P Sivan--

Interested in exploring Odoo both technically & functionality wise.

email-id : akhilpsivan01@gmail.com

Akhil P Sivan
On 5/4/16, 5:10 AM


You have mixed the api's in field definition. I think, that could be the problem.

Try like this in your py file:

from openerp import models, fields, api

class myTaggedMailThread(models.Model):

    _inherit = 'mail.thread'

current_tags = fields.Text(string= 'current_tags', help="Tags", default='test current tag')

Hope this helps

Hello Nat, I tried akhil's code, It work for me. Thanks @ Akhil +1

Ankit H Gandhi(AHG)
on 5/4/16, 6:50 AM

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: 5/4/16, 3:29 AM
Seen: 1169 times
Last updated: 5/4/16, 5:10 AM