Contributors mailing list archives

contributors@odoo-community.org

Browse archives

Avatar

Re: Group based editable tree vs form pop up edition?

by
Holger Brunn
- 27/03/2024 19:15:39
*Do you have an alternative solution to suggest for v16?*

override get_view for your model, and do group specific things there.
Or probably better, override _get_view_cache [1], and also override 
_get_view_cache_key to add 
self.env.user.has_group('the_group.youre_looking_for') or similar to the cache 
key.

I mourned the loss of group-specific view inheritance quite a bit, because you 
can do very nifty things with it. So I'm still of a mind to eventually write 
an addon that brings it back for models with some mixin applied.

[1] https://github.com/OCA/OCB/blob/16.0/odoo/addons/base/models/
ir_ui_view.py#L2635


-- 
Your partner for the hard Odoo problems
https://hunki-enterprises.com

Reference