Contributors mailing list archives
contributors@odoo-community.org
Browse archives
Re: Group based editable tree vs form pop up edition?
by
Holger Brunn
*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
-
Group based editable tree vs form pop up edition?
by "Raphaël Valyi" <rvalyi@akretion.com> - 27/03/2024 17:16:18 - 2-
Re: Group based editable tree vs form pop up edition?
by "Raphaël Valyi" <rvalyi@akretion.com> - 29/03/2024 08:39:01 - 0 -
Re: Group based editable tree vs form pop up edition?
by "Raphaël Valyi" <rvalyi@akretion.com> - 29/03/2024 03:13:17 - 0
-