Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie

Hi All,

In one2many master line level, if i use reference field with selection field its throwing error like below,

<pre>

TypeError: Mixing apples and oranges: hr.employee(14742,).union(False)

</pre>

If i use only reference field (other selection field removed). its working fine.


Version : odoo11

ref_field = fields.Reference(selection=_select_models, string="Object")

Awatar
Odrzuć

can you please give some more details, _select_models ...etc any other related to reference.

Actually the error occurred because of reference filed referring data from two tables.

Powiązane posty Odpowiedzi Widoki Czynność
2
paź 22
3811
3
wrz 18
2446
0
sty 22
2586
1
cze 21
9924
1
sie 18
15622