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
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Księgowość
- Zapasy
- PoS
- Project
- MRP
To pytanie dostało ostrzeżenie
1
Odpowiedz
7131
Widoki
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
Podoba Ci się ta dyskusja? Dołącz do niej!
Stwórz konto dzisiaj, aby cieszyć się ekskluzywnymi funkcjami i wchodzić w interakcje z naszą wspaniałą społecznością!
Zarejestruj sięPowiązane posty | Odpowiedzi | Widoki | Czynność | |
---|---|---|---|---|
|
1
lis 19
|
7063 | ||
|
0
lip 17
|
5869 | ||
|
3
cze 16
|
4725 | ||
Object button don't call method in python
Rozwiązane
|
|
2
lut 16
|
6100 | |
|
0
mar 16
|
6805 |