Commit Graph
5642 Commits
Author SHA1 Message Date
Nicolas Évrard fb57dd9a25 Set a minimal supported version of sqlite 2025-10-06 17:36:06 +02:00
Cédric Krier 74ee169c54 Refactor of trytond.config to add cache
This removes the need to store configuration in global variable and so make it
easier to update for example for testing.

Closes #14249
2025-10-07 08:19:57 +02:00
Nicolas Évrard 736eda2333 Handle URL host of the bus on login instead of using a redirect
Browsers remove authorization header upon cross-origin redirect.

Closes #12329
2025-10-06 17:03:41 +02:00
Nicolas Évrard f0199c149b Validate the session without using the pool on bus requests 2025-10-04 15:53:18 +02:00
Nicolas Évrard a72adf0fdc Restrict sessions to the client's IP address
Closes #13909
2025-10-05 17:17:14 +02:00
Cédric Krier 8b283d14a0 Use cache functools to cache entry points 2025-09-18 10:19:13 +02:00
Cédric Krier d80a166f2a Add cache to find_path tool 2025-09-18 10:18:54 +02:00
Cédric Krier 33d85882ad Compute root path of trytond only once 2025-09-18 10:18:21 +02:00
Cédric Krier ee18ba3924 Cache the module configuration 2025-09-18 10:17:27 +02:00
Cédric Krier 8e1c951e1e Add test for register conditionals in extras depend of module 2025-09-09 14:22:28 +02:00
Cédric Krier 95456d6f92 Use tryton.cfg to register in the Pool 2025-09-18 16:42:29 +02:00
Cédric Krier da9cc4bb87 Patch global PATH variable of filestore in test
Changing the configuration value is not enough as its value is cached in the
global variable.

Closes #14248
2025-09-20 09:07:18 +02:00
Cédric Krier 80eaf304d1 Remove padding in base64 converter 2025-08-27 12:35:31 +02:00
Cédric Krier 8d56e4fbf1 Return proper bad request error for request with incorrect data 2025-09-09 22:38:27 +02:00
Cédric Krier cae48b576e Restore limit when searching for searching for wizard name
20cdba7a1bf3 removed the limit but it is still needed to extract the single
record.

Closes #14238
2025-09-18 07:48:50 +02:00
Cédric Krier b21d1497fa Use the FILTER syntax with SQL aggregate functions
Closes #14199
2025-08-27 10:17:31 +02:00
Nicolas Évrard d14e82281d Get name for wizards not linked to a model
Closes #14033
2025-09-14 15:27:16 +02:00
Nicolas Évrard cb48d24489 Add cache on ir.action.wizard get_models and get_name 2025-09-14 15:25:23 +02:00
Nicolas Évrard ace7be31be Use the EXISTS operator when using the 'where' operator in Many2One
Closes #11935
2025-09-14 12:38:50 +02:00
Cédric Krier 15f2650954 Redact sensitive values from the log
Closes #14220
2025-09-09 15:17:31 +02:00
Nicolas Évrard 689473f50f Make sure that the search order is predictable when either the limit or the offset is set
Closes #14169
2025-08-18 10:40:02 +02:00
Nicolas Évrard 77984124dd Add a test to ensure that Model._order is predictable 2025-09-11 00:30:16 +02:00
Sergi Almacellas Abellana e73ff8af6a Remove the empty notebook pages caused by field access
Closes #14157
2025-08-31 11:04:16 +02:00
Lars Wuerfel 26d931f238 Correct typos in the report documentation 2025-07-23 10:44:12 +02:00
Cédric Krier 20109ca332 Fix highlight syntax of board documentation 2025-06-26 19:05:43 +02:00
Cédric Krier d33a0e9cb0 Remove metadata columns from tutorial of table query
Since 5095928ec38a those columns are added automatically.
2025-05-10 19:38:24 +02:00
Cédric Krier 411392bb09 Use constant-time to compare session key 2025-08-07 20:55:20 +02:00
Cédric Krier dec047d676 Do not check www.gnu.org URLs
The server has a rate limit that the CI reaches.
2025-08-01 09:39:50 +02:00
Nicolas Évrard 65c93a338e Use the canonical name of the test timezone
Closes #14170
2025-08-18 11:35:25 +02:00
Cédric Krier 16cbeeee2c Use rfc role in documentation and ignore checking datatracker.ietf.org links 2025-05-03 17:10:58 +02:00
Cédric Krier acc9c6972a Add test to enforce One2Many Function field to have a setter
The clients may always try to write on One2Many even if it is readonly so such
Function field must have a setter.

Closes #8739
2025-06-17 15:02:55 +02:00
Cédric Krier c5600c0f9b Set multiple to some buttons on list view 2025-06-16 12:24:16 +02:00
Cédric Krier b88d9004ef Replace menu entry for upgrade module wizard by multiple button on module list 2025-06-13 17:40:28 +02:00
Cédric Krier 9058fc381d Simplify buttons of module 2025-06-13 17:41:01 +02:00
Cédric Krier e994731e14 Add multiple attribute to the buttons in the tree view
Closes #14072
2025-06-13 17:34:39 +02:00
Cédric Krier b0f7d45254 Manage readonly wizard
readonly wizards do not check for write access on the active model.

Closes #13989
2025-04-29 09:31:05 +02:00
Cédric Krier ee76d45fd8 Add test for methods of buttons
Closes #14121
2025-07-15 17:45:56 +02:00
Cédric Krier d0332b3852 Set default values for fields of button_change decorator
Closes #14120
2025-07-15 17:37:59 +02:00
Nicolas Évrard 8d7279778b Get ir.model Model from the pool
Closes #14131
2025-07-23 18:01:24 +02:00
Cédric Krier 750bfe2045 Do not convert integer value from binary function field
Binary fields can have two types bytes and integer when only the size is
requested. So integer value should not be converted to bytes.

Closes #14100
2025-07-03 23:10:30 +02:00
Cédric Krier 8ce69b1055 Use only foreign Many2One for domain on field for field access
The Char fields are not filled when using the foreign Many2One so the domain
must rely only on the foreign Many2One.

Closes #14081
2025-06-17 15:25:09 +02:00
Cédric Krier 380f7c6941 Slugify filename of email attachment
This gives more chance for the email to not be blocked as some mail server
implement restrictions on the filename of attachment.

Closes #14074
2025-06-15 12:19:39 +02:00
Cédric Krier 1fc8fa8809 Use chain to iterate over records to create and to write 2025-06-29 19:14:36 +02:00
Cédric Krier dbb65081b0 Do not restore values for created records when exception is raised when saving
Once a record has been created, the id is modified which change its hash value
such that it can not be found anymore.
But as the creation succeeded (and only the write part has failed) we can just
restore the values to None.

Closes #14093
2025-06-29 19:13:42 +02:00
Cédric Krier 4238add5e3 Do not set Content-Length header to data response
Since version 0.8 werkzeug set the header automatically by default.

Closes #14010
2025-06-21 23:02:52 +02:00
Nicolas Évrard 69690daa2c Fix a typo introduced in 71bad2d56f96 2025-07-02 01:02:22 +02:00
Cédric Krier b63c28503c Use recursive CTE for child/parent-of clause when the number of ids is too large
The path or MPTT queries are faster than the recursive CTE only when the number
of OR-ed clauses does not require more index scan than the CTE.
This number can be approximate to the depth of the tree.
Log10 is used to estimate the depth of the tree if it has an average of 10
children per node.

Closes #14078
2025-06-16 13:48:00 +02:00
Cédric Krier ea1393bb84 Reduce the clauses of child-of using common roots
For the path, if the longer path contains another searched path, we can ignore
it.
For MPTT, if a range is inside a larger range, we can also ignore it.

Closes #14064
2025-06-10 23:22:01 +02:00
Cédric Krier 6718a613cf Convert UnidentifiedImageError from PIL into validation error
The image conversion that are done as preprocessing of the user input should be
considered as data validation.

Closes #14084
2025-06-18 01:26:39 +02:00
Cédric Krier c3a9faea42 Convert domain without checking access
The searcher of Function field may execute code for which the user has no
access.

Closes #14077
2025-06-16 19:42:12 +02:00