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

TypeError: this.sidebar is undefined

By
Uillino
on 9/9/15, 6:08 AM 495 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

--Drees Far--
1130
| 5 2 6
Tunis, Tunisia
--Drees Far--
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

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