I would like to ask, what is the point of checking whether superuser has specific access groups in Odoo 14?
My understanding was, that superuser has/ignores all access groups.
stock/models/res_config_settings.py
def set_values(self):
...
was_operations_showed = self.env['stock.picking.type'].with_user(SUPERUSER_ID)._default_show_operations()
res = super(ResConfigSettings, self).set_values()
...
return res
addons/stock/models/stock_picking.py
def _default_show_operations(self):
return self.user_has_groups('stock.group_production_lot,'
'stock.group_stock_multi_locations,'
'stock.group_tracking_lot')