Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
2967 Visualizzazioni

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")

Avatar
Abbandona

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.

Post correlati Risposte Visualizzazioni Attività
2
ott 22
3810
3
set 18
2437
0
gen 22
2582
1
giu 21
9910
1
ago 18
15590