Skip to Content
Menu
This question has been flagged

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

Portretas
Atmesti

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.

Related Posts Replies Rodiniai Veikla
2
spal. 22
3808
3
rugs. 18
2437
0
saus. 22
2578
1
birž. 21
9903
1
rugp. 18
15586