Cédric Krier
35a7e696cf
Add ModelAccessProxy
...
#14907
(grafted from dafef28a1d65032628809acbfa130a2f2e74474f)
--HG--
branch : 8.0
2026-06-25 13:31:30 +02:00
Cédric Krier
aefd12642a
Use always the immutable value from the cache
...
This prevents issues like #14433 from being missed.
2025-12-19 09:39:32 +01:00
Cédric Krier
5aeff66acd
Use ModelStorage hooks instead of extending create/write/delete
2025-04-06 00:14:17 +02:00
Cédric Krier
1772caec90
Clean migrations for series before 6.0
2025-01-04 00:19:42 +01:00
Nicolas Évrard
cbdad75620
Remove old-style of super() calls
2025-04-04 00:45:18 +02:00
Udo Spallek
8b252472c4
Replace usage of docstring of Model by __string__ attribute
...
Closes #8402
2024-11-19 10:09:52 +01:00
Cédric Krier
008c1688bf
Set employee when changing company only if the user has one available value
2024-09-25 12:44:11 +02:00
Cédric Krier
e06b0dce8e
Set default companies and company for user only if there is one company
2024-09-25 12:24:54 +02:00
Cédric Krier
18f0801e60
Use design to fill companies and employees first on user form
...
To make it obvious that companies and employees must be filled first, they are
displayed first and the company and employee fields are hidden if there is no
values to select.
2024-09-24 19:31:56 +02:00
Cédric Krier
0d625d4010
Remove usage of set_user to skip check access
...
Since ce8d7a19766a the access rule are enforced only if check access is set.
2023-12-01 21:14:37 +01:00
Cédric Krier
cea1fcad74
Remove employee and employees from evaluation context of rule domain
...
Closes #12581
2023-09-24 13:56:20 +02:00
Cédric Krier
76b7bf9ffa
Unset company and employee of user when context values are not authorized
2023-05-30 16:36:25 +02:00
Cédric Krier
b8916e15b5
Prepare migration to monorepo
2022-12-16 18:50:17 +01:00