Odoo Help

0

TypeError: this.sidebar is undefined

By
Uillino
on 9/9/15, 6:08 AM 918 views

I've a model which inherits a field from another one:

class 2ndclass(models.Model):

    _name = 'mymodel_name'

    _inherits = {'1stclass': 'id_1stclass'}

    id_1stclass = fields.Many2one('1stclass', 'First Class', widget="many2one_list")

When I create a new object, there is a small arrow near 'First Class'. If I click on It, I get this popup error:

Odoo Client Error

TypeError: this.sidebar is undefined

http://localhost:8069/web/js/web.assets_backend/c686f43:3994

Below this popup, there is another one which allows to modify the selected 1stclass id.

How can I solve it?

Thanks!


Do you have this widget many2one_list?

Drees Far
on 9/9/15, 6:35 AM
0
Drees Far
On 9/9/15, 6:38 AM

Try this:

Python:

class 2ndclass(models.Model):

_name = 'mymodel_name'

_inherits = {'1stclass': 'id_1stclass'}

id_1stclass = fields.Many2one('1stclass', 'First Class')

XML:

<field name="id_1stclass" widget="many2one_list">

Regards.

This haven't solved the problem.

Uillino
on 9/9/15, 8:30 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.

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: 9/9/15, 6:08 AM
Seen: 918 times
Last updated: 9/9/15, 6:38 AM