Sergi Almacellas Abellana
b5ae87d422
Post move when posting sale point transfer
...
Closes #12563
2023-10-07 19:55:15 +02:00
Sergi Almacellas Abellana
81c3d0c95c
Set focus on Many2One entry after clearing its value in sao
...
Closes #12550
2023-10-07 19:14:23 +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
655eafe328
Display optional company on lines to pay list
2023-10-02 12:05:42 +02:00
Cédric Krier
1c27be9a3e
Record.get_eval must return only loaded values
...
Sao must behave the same way as tryton does with the changeset 4d2bd7127a51.
Closes #12415
2023-09-24 19:01:07 +02:00
Cédric Krier
a2ba60730b
Set origin on shipment cost invoice line earlier
...
The origin must be set before calling on_change_product such that module like
account_tax_rule_country can fill the tax rule pattern.
Closes #12507
2023-08-29 14:11:32 +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
cea1fcad74
Remove employee and employees from evaluation context of rule domain
...
Closes #12581
2023-09-24 13:56:20 +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
Cédric Krier
6ade5351fb
Remove own session access rules
...
They are useless because session models CRWD methods are not available for
RPC.
2023-09-21 14:07:51 +02:00
Cédric Krier
1b44371641
Remove unnecessary clear of caches when groups are modified
...
It is the link between group and user that matters for the caches.
2023-09-22 13:42:59 +02:00
Cédric Krier
e3c2c10460
Remove unused name parameter from User.get_groups
2023-09-21 14:05:03 +02:00
Cédric Krier
76c442aa20
Use user groups instead of user id in key of access cache
...
This increases the cache hint as it should be less group combinations than
users.
2023-09-22 11:04:29 +02:00
Cédric Krier
498bb5ff54
Return an ordered tuple for groups of current user
...
So the tuple can be easily compared and used as key.
2023-09-20 10:15:28 +02:00
Cédric Krier
0ff2fb5651
Add user to get keyword cache
...
Since d41d48d68cdf model access is checked for window actions. So the returned
keywords depend on the user access rights.
Closes #12580
2023-09-20 09:59:02 +02:00
Cédric Krier
3333a35bda
Remove carriage return in search domain to give access to purchase
2023-09-20 09:52:02 +02:00
Cédric Krier
8c36e148e9
Register admin in purchase request group next to the group definition
2023-09-20 09:50:53 +02:00
Cédric Krier
8d7158fc89
Remove readonly access to attendance sheet
...
Since 5870e7a5b3ee models based on table query are readonly by default.
2023-09-20 09:50:15 +02:00
Cédric Krier
a30ff416a2
Remove group access on action window
...
Since d41d48d68cdf the read access to the target model of action window is
checked.
2023-09-20 09:48:14 +02:00
Cédric Krier
96a24bcaf6
Remove extra button group access
...
Since ab05d05bb811 there is no need to have access defined on button if they
are the same as the write access on the model.
Closes #12578
2023-09-20 09:45:20 +02:00
Cédric Krier
c34add03ad
Do not copy account statement descriptions to moves nor lines
...
Since 73fda56fc994 the description of the origin is used as fallback.
Closes #12615
2023-10-05 12:55:43 +02:00
Cédric Krier
98de8467ce
Do not sum empty cost used to create sale shipment cost
...
Closes #12610
2023-10-02 18:39:14 +02:00
Nicolas Évrard
3f8c74138f
Reset state of records when a sibling is in exception on node collapse
...
When loading a record raises an error, the record stays in error forever.
With the node resetted to an unloaded state another opening of the parent node
will trigger a reread which solves the transient errors
Closes #12463
2023-08-14 17:57:19 +02:00
Cédric Krier
bdb43b84b2
Remove trailing comma on time_series definition on purchase reporting per product
...
Closes #12605
2023-10-02 09:44:26 +02:00
Cédric Krier
e65b98524e
Do not store in transaction cache instances of Reference fields
...
If the target of the Reference field is deleted, the transaction cache is not
cleared because there is no "ON DELETE" support for Reference field. Instead
the ids are checked in the Reference.get method.
Closes #12599
2023-09-28 17:44:29 +02:00
Cédric Krier
c6ac00261d
Convert ImmutableDict points value from quality inspection before modify it
...
Closes #12551
2023-09-24 23:59:20 +02:00
Cédric Krier
11caf1d821
Fix wording of description help of move template
2023-09-30 22:18:47 +02:00
Cédric Krier
590fbe3aa8
Use origin description as fallback description for account move and line
...
Closes #12571
2023-09-16 10:30:44 +02:00
Cédric Krier
a28213e137
Warn when submitting, approving or proceeding payment with reconciled line
2023-09-11 12:47:13 +02:00
Cédric Krier
42c9ffb209
Warn when cancelling, grouping, rescheduling or delegating move line with payment
2023-09-08 20:52:32 +02:00
Cédric Krier
8cf114cc27
Add comment about the ISO 20022 Intellectual Property Right Policy
...
Closes #12304
2023-08-27 13:45:32 +02:00
Cédric Krier
555102f942
Display shipment state on internal shipment report
...
Closes #12501
2023-08-26 12:54:44 +02:00
Cédric Krier
8eb0fb4ecf
Display shipment state on supplier restocking list
...
Closes #12501
2023-10-03 13:01:59 +02:00