İçereği Atla
Menü
Bu soru işaretlendi
1 Cevapla
7133 Görünümler

Hi. I have problem with proper rendering value in the form wthen i have two or more many2many fields. The contents of the fields is a copy of the contents of another field, even though they have been savedwith other values. I found issue in odoo github describing that same error what I have \https://github.com/odoo/odoo/issues/3286 . Is someone known solution to this problem

Avatar
Vazgeç
En İyi Yanıt

When you declare your many2many, you can choose/force yourself the tbl with the key relation.

More info here... http://odoo-new-api-guide-line.readthedocs.io/en/latest/fields.html#many2many


arel_ids = fields.Many2many(comodel_name='res.users',
relation='table_name',
column1='col_name',
column2='other_col_name')
Specific options:
    comodel_name: name of the opposite model
    relation: relational table name
    columns1: relational table left column name
    columns2: relational table right column name


Avatar
Vazgeç
İlgili Gönderiler Cevaplar Görünümler Aktivite
1
Kas 19
7065
0
Tem 17
5871
3
Haz 16
4727
2
Şub 16
6103
0
Mar 16
6810