跳至內容
選單
此問題已被標幟
1 回覆
1459 瀏覽次數

There happened a complaint about "read on res.users" rejected for some functions.

While I understand this should be an issue relating to permission, I have no idea how I should approach to the solution.

Anyone provides a pointer will be appreciated.

頭像
捨棄
最佳答案

For the sake of clarity, do you argue that upgrading a module using Odoo Shell is not a valid use case to be supported, despite the opposite evidence?

# use read() to not read other fields: this must work while modifying
# the schema of models res.users or res.partner
values = user.read(list(name_to_key), load=False)[0]

Recall that this works perfectly with Odoo 12.0. This is a step back. The comments on this feature indicate that the author is trying to avoid the exact problem I'm describing, and it works fine in 12.0, but not in 13.0


Regards,
J Wick

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
1
11月 24
1213
1
4月 23
2575
7
2月 23
9107
0
9月 22
1711
1
3月 22
1631