跳至內容
選單
此問題已被標幟
2974 瀏覽次數

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

頭像
捨棄

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.

相關帖文 回覆 瀏覽次數 活動
2
10月 22
3810
3
9月 18
2441
0
1月 22
2585
1
6月 21
9919
1
8月 18
15610