Commit Graph
199 Commits
Author SHA1 Message Date
Nicolas Évrard 475e68df76 Remove the files of Binary fields from the Filestore
Closes #13861
2026-03-24 09:30:17 +01:00
Nicolas Évrard b44c004825 Add deletion on FileStore
We're identifying each file in the filestore with a UUID4 in order to avoid
collisions. It has the drawback that we will store twice the same file but on
the other hand we can now remove each file from the store as there is no more
collision.

In order to identify files named previously we're using textual representation
of the UUID with the hyphens. Previous IDs do not have hyphens.
2025-01-09 18:53:09 +01:00
Cédric Krier 145ce8f2f8 Make retrieval of metadata via build really quiet 2026-03-22 09:07:23 +01:00
Cédric Krier 5310b00496 Remove grouped_slice per IN_MAX
The usage of ``grouped_slice`` without size is deprecated since `=
ANY(ARRAY[%s])` is used for PostgreSQL and SQLite is used only for tests.

The ``Database.IN_MAX`` is replaced by ``backend.MAX_QUERY_PARAMS`` which is a
more accurate limit of the backend.
The SQLite limits is indeed SQLITE_MAX_EXPR_DEPTH so we use a empirical value.
2026-03-22 21:05:26 +01:00
Nicolas Évrard 299dd6b1c9 Update to Psycopg 3
Closes #10901
2026-03-22 19:53:32 +01:00
Cédric Krier e15c0b7d7a Upgrade to pyproject using hatchling as build-system 2026-03-21 18:46:34 +01:00
Cédric Krier 33856ac2a1 Add model attribute to table handler 2026-03-14 18:12:02 +01:00
Cédric Krier 2b626f1708 Document history attribute of table handler 2026-03-14 18:11:34 +01:00
Cédric Krier 57aabfb14e Support Function field without getter but SQL expression
Closes #4369
2026-01-30 18:06:45 +01:00
Cédric Krier 52326c4b08 Allow customizing SQL expression of field 2026-01-29 15:24:10 +01:00
Cédric Krier dfe58aa125 Use tables and Model as arguments for sql_column of the Field 2026-01-29 12:42:56 +01:00
Cédric Krier d7b80ff2ee Add support for basic authentication for user application
Closes #14528
2026-01-21 14:55:49 +01:00
Cédric Krier e7fa8e4461 Add environment variable to enable development mode
Closes #14530
2026-01-21 19:12:34 +01:00
Cédric Krier 2989e66585 Lazy import html2text and weasyprint 2025-12-11 17:57:01 +01:00
Cédric Krier b034e23e91 Support the conversion of MJML reports to HTML
Closes #12597
2025-12-11 16:31:51 +01:00
Cédric Krier 1623885d46 Add options to trytond.config
Closes #14483
2026-01-13 20:08:43 +01: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 476065cf11 Use creation position to format warning key for new records
The opposite position in the creation order is used instead of the id (which is
not stable over transaction retries) to format the warning key when the record
has been created during the transaction.
This ensures that the formatting of the warning key is stable over transaction
retries.

Closes #10591
2025-11-27 16:26:20 +01:00
Cédric Krier 98941a588e Allow users to subscribe to notification cron jobs
Closes #13988
2025-12-02 19:24:36 +01:00
Nicolas Évrard fa19c6226f Notify subscribed users of new message in chat 2025-12-02 18:11:10 +01:00
Cédric Krier 4dce4ec167 Add documentation for chat 2025-12-02 14:38:58 +01:00
Nicolas Évrard 929b3545cd Add support for materializing ModelSQL based on a table query 2025-12-02 00:12:08 +01:00
Cédric Krier 518e5f3f69 Store only immutable structure or make a shallow copy in MemoryCache
Closes #14347
2025-11-03 23:08:31 +01:00
Cédric Krier b7ee37bb0a Replace clean_days with log_size in the cron configuration
Closes #14319
2025-10-27 19:20:23 +01:00
Nicolas Évrard f70d515905 Add a clear cache method to the Database
ExtensionTestCase uses this new method to clear all the caches of the Database.
2025-10-28 10:57:07 +01:00
Cédric Krier 00e52f4a43 Update anchor for if-then-else link on Wikipedia
Closes #14267
2025-10-01 08:45:36 +02:00
Cédric Krier cf1ce07e9b Fix parameter name for check_modification in the documentation 2025-07-31 23:47:59 +02:00
Nicolas Évrard 58428d09b9 Do not allow translations to be set or exported unless the default language is English 2025-10-24 10:22:38 +02:00
Nicolas Évrard 6daccef092 Clarify the documentation about digits 2025-10-09 12:36:54 +02:00
Cédric Krier ecfad8ea81 Return the closest language instance for the code
When the language code is provided by an external source, a best effort
strategy must be used to always return a language.

Closes #14258
2025-09-26 08:45:49 +02:00
Cédric Krier 9f95b28eaf Add sequence_reorder to model order
Closes #14251
2025-09-23 16:04:29 +02:00
Nicolas Évrard 818f26253a Remove has_window_functions on Database 2025-10-04 22:45:53 +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 a72adf0fdc Restrict sessions to the client's IP address
Closes #13909
2025-10-05 17:17:14 +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 15f2650954 Redact sensitive values from the log
Closes #14220
2025-09-09 15:17:31 +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 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
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 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 0ad9570070 Document preferred languages order for get_email 2025-05-23 17:13:37 +02:00
Cédric Krier 301982d6f2 Add pair/unpair in tools 2025-04-30 15:12:49 +02:00
Cédric Krier e45be331a7 Lock records on transaction start
Same as c8771e45b861 but when locking only records instead of the table.

Closes #13943
2025-03-27 13:39:04 +01:00
Cédric Krier 220fd433c9 Add checkout option to cookiecutter command line in tutorial 2025-03-25 09:30:22 +01:00
Cédric Krier 854562ad6e Add default value to user in set_user testing tool 2025-03-30 15:21:11 +02:00
Cédric Krier fff5663ae1 Add DecimalNull as tools 2025-04-08 09:59:33 +02:00
Nicolas Évrard 26f7c7142b Add process local objects ala threading.local 2025-02-14 17:16:55 +01:00