Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
1 Balas
1465 Tampilan

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.

Avatar
Buang
Jawaban Terbai

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

Avatar
Buang
Post Terkait Replies Tampilan Aktivitas
1
Nov 24
1218
1
Apr 23
2578
7
Feb 23
9112
0
Sep 22
1712
1
Mar 22
1641