Always hide select button on binary cell when the field is readonly

Closes #13714
(grafted from b9da884274caa17aa9c7e42891f0019a9dff9b89)

--HG--
branch : 6.0
This commit is contained in:
Cédric Krier committed 2024-11-29 13:06:08 +01:00
1 parent e3d09269ce
commit 9c96b2d67f
1 file changed
+1 -1
@@ -705,7 +705,7 @@ class _BinarySelect(_BinaryIcon):
invisible = field.get_state_attrs(record).get('invisible', False)
readonly = self.attrs.get('readonly',
field.get_state_attrs(record).get('readonly', False))
if readonly and size:
if readonly or size:
cell.set_property('visible', False)
else:
cell.set_property('visible', not invisible)