Cédric Krier
a65692c7f6
Prepare release trytond-7.0.1
...
--HG--
branch : 7.0
2023-11-17 19:30:56 +01:00
Cédric Krier
f80501842d
Avoid race condition when making directories for database cache
...
(grafted from b67ad422ba5062b82ffc5022cc6490564af2477f)
--HG--
branch : 7.0
2023-11-01 13:27:36 +01:00
Cédric Krier
5021282648
Avoid race condition when making directories for filestore
...
Closes #12696
(grafted from a1e568d36b05a33a91c6515cef6a4695429d7566)
--HG--
branch : 7.0
2023-11-01 13:26:37 +01:00
Cédric Krier
6c91d493b6
Increase version number
...
--HG--
branch : 7.0
2023-10-30 18:49:03 +01:00
Cédric Krier
65f477f731
Prepare release 7.0.0
2023-10-30 18:17:32 +01:00
Cédric Krier
70dcf79404
Check access without and with domain rule at the same time for read and write
...
For read and write operation, we must first check without domain rule to
ensure the ids exist before testing with the domain rules.
Closes #12668
2023-10-25 16:27:58 +02:00
Cédric Krier
c577fad900
Update translations [skip ci]
2023-10-28 14:15:23 +02:00
Cédric Krier
cfde98e54a
Backed out changeset fc478f7d7004
2023-10-28 00:16:32 +02:00
Nicolas Évrard
a09de147a6
Add timeout parameter on RPC calls
...
Closes #11293
2023-10-08 00:08:52 +02:00
Cédric Krier
ff376d7d01
Prevent storing Decimal with too much trailing zero
...
The trailing zero are kept in the Decimal and rendered in the string
representation which is unexpected for a field with limited digits.
Closes #12587
2023-10-21 14:12:12 +02:00
Cédric Krier
b43f3165fb
Do not fail on DNSException when running test
...
Closes #12628
2023-10-21 16:22:50 +02:00
Cédric Krier
420e0a48d6
Add pairwise_longest tools
2023-10-18 23:11:07 +02:00
Cédric Krier
4e010a988f
Add support for Python 3.12
2023-10-22 19:40:55 +02:00
Cédric Krier
9425bf19b2
Remove EGG_MODULES dictionary
...
It is no more used since d29ec7a37dca.
2023-10-23 09:53:30 +02:00
Cédric Krier
2d599f67cf
Replace pkg_resources by importlib
...
pkg_resources is deprecated in favor of importlib.resources,
importlib.metadata.
2023-10-23 16:49:01 +02:00
Cédric Krier
a1e91f40e4
Rename assertRaisesRegexp into assertRaisesRegex
...
assertRaisesRegexp has been renamed in Python 3.2
2023-10-23 09:33:50 +02:00
Cédric Krier
f70666b6fb
Use assert_not_called in Mock instead of calling not_called
2023-10-23 09:34:26 +02:00
Cédric Krier
aa677eb7b8
Do not include depends of field without read access to view definition
...
Closes #12640
2023-10-12 16:28:54 +02:00
Cédric Krier
ada6602717
Return None when date_trunc is called with NULL in SQLite
...
Closes #12649
2023-10-17 17:09:36 +02:00
Maxime Richez
9394d64c2a
Allow to send email without files to attach
...
Closes #12645
2023-10-16 16:48:40 +02:00
Cédric Krier
80e19a25eb
Remove EGG_MODULES to rely only on imported module path
2023-10-12 01:30:18 +02:00
Cédric Krier
325c4866a6
Use distinct icons for save and download
...
Closes #12627
2023-10-09 14:41:24 +02:00
Cédric Krier
f7bfe72e7f
Filter search result of model with resource
...
The user needs to have read access to the resource target.
Closes #12588
2023-10-14 14:53:22 +02:00
Cédric Krier
1436ea9b51
Add [x|y][expand|fill] attribute to button in form RNG
...
Closes #12617
2023-10-05 16:23:02 +02:00
Cédric Krier
f2fe641927
Add preview of sequence
...
Closes #12609
2023-10-02 18:10:30 +02:00
Cédric Krier
ccf653da1d
Support create record from autocomplete with default values
2023-09-26 23:45:07 +02:00
Cédric Krier
d8530fc867
Support default value from context
2023-09-25 17:53:23 +02:00
Cédric Krier
92b3416d79
Add autocomplete method on ModelView
2023-09-25 17:22:40 +02:00
Cédric Krier
293214d231
Use likify in ModelStorage search_global
2023-09-25 16:37:07 +02:00
Cédric Krier
a3877cadb3
Add likify tools
2023-09-25 16:42:04 +02:00
Cédric Krier
fc5368eb51
Use __file__ attribute of loaded module for egg modules
...
Since pip >= 23, the Distribution location does not point to the development
directory.
Closes #12582
2023-09-27 09:37:07 +02:00
Cédric Krier
b0d1fc6946
Do not get context for rule evaluation as root
...
Since f2d4e71a704e the context must be computed for each rule so the loop must
be outside of the root context used to browse the rules (to avoid infinite
recursion)
2023-10-07 14:49:07 +02:00
Cédric Krier
c03ee084ce
Clear cache when specific types and models are modified
...
The cached values linked to translations are rarely modified but other
translations can be modified very often by users.
2023-09-23 18:22:20 +02:00
Cédric Krier
6019dd7f03
Remove user from contextual key of Cache
...
The user was added by 08e1868e307c because it was part of the arguments of the
cached function before.
But actually cache would have better hit ratio without the user as many users
should share the same context.
2023-09-23 16:02:38 +02:00
Cédric Krier
abefd595dd
Use memory cache for RNG
...
The cache store the etree element so it can only be cached in memory.
2023-09-22 15:50:50 +02:00
Cédric Krier
ee99fbd13c
Clear action keyword cache when translations are changed
...
The cache contains the translated label of the actions.
2023-09-22 15:49:13 +02:00
Cédric Krier
a4b9b500a3
Clear view toolbar cache when translations are changed
2023-09-22 15:48:16 +02:00
Cédric Krier
03ba93f402
Use groups as key for fields_view_get cache
...
This permits to not clear the cache when users or actions are modified.
2023-09-22 15:39:26 +02:00
Cédric Krier
1cb892e7a9
Remove context on RNG cache
...
The content of RNG does not depend on the context.
2023-09-22 15:28:58 +02:00
Cédric Krier
013c746067
Remove context from keyword cache
...
The cached values depend only on the language and the groups of the user.
2023-09-22 15:26:54 +02:00
Cédric Krier
09b9d5b2f0
Remove context from view toolbar cache
...
The cached values depend only on the language and the groups of the user.
2023-09-22 15:22:57 +02:00
Cédric Krier
75cc41763b
Clean unrelated comment in ModelButton delete
2023-09-22 12:58:20 +02:00
Cédric Krier
7e7d855c22
Expand menu column in favorite list
2023-09-21 17:54:29 +02:00
Cédric Krier
85a9575a95
Require a user application
...
There is no empty option so it is in fact required so it is better that the UI
manage it.
2023-09-21 17:53:48 +02:00
Cédric Krier
0c8303994e
Remove user from evaluation context of rule domain
...
Closes #12581
2023-09-24 13:35:39 +02:00
Cédric Krier
d87effab7b
Allow customizing context per model for rule
2023-09-24 13:59:00 +02:00
Cédric Krier
d2908701c6
Use dedicated method to skip user warning
2023-09-24 13:23:53 +02:00
Cédric Krier
01b47f30c8
Remove own view search access rules
...
Instead we use dedicated get/set/unset methods which enforce access rights.
2023-09-21 17:55:29 +02:00
Cédric Krier
0dfb4dc591
Remove own export access rules
...
Instead we use dedicated get/set/unset methods which enforce access rights.
2023-09-21 17:55:40 +02:00
Cédric Krier
e47cee2065
Remove own favorite access rule
...
The favorites are managed by dedicated get/set/unset methods which enforce
same user.
So we can just restrict modification to administrator group.
2023-09-21 14:51:42 +02:00