Commit Graph
5731 Commits
Author SHA1 Message Date
Nicolas Évrard a56b42b66c Rename history sequence when the table is renamed
Just like in ff68233bdeb1 we need to also rename the history sequence name as
the migration to identity relies on the sequence name including the table name.

Closes #14598
2026-02-10 18:21:47 +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 a5bb7d8835 Remove old field names when updating model data
Closes #14511
2026-01-17 00:55:00 +01:00
Cédric Krier b57bedf337 Support clause on multiselection field with operator in and value None
Closes #14520
2026-01-19 16:40:01 +01:00
Cédric Krier 146bcb0ab0 Add test for reference field referring unknown target 2026-01-10 18:40:47 +01:00
Cédric Krier 947a63c456 Make the user menu favorites unique
Closes #14213
2026-01-16 10:07:03 +01:00
Cédric Krier 40a3345fb5 Convert index expression to string to instantiate psycopg2 SQL
Closes #14487
2026-01-24 08:51:39 +01:00
Cédric Krier 89bc2930df Set DESC as index options instead of the expression 2026-01-14 00:35:13 +01:00
Cédric Krier 9535c89f3f Ensure to always surround USING expression with parenthesis in CREATE INDEX
Closes #14487
2026-01-13 16:50:08 +01:00
Cédric Krier a77ff4bc99 Fail when getting view arch on test 2026-01-23 10:47:56 +01:00
Cédric Krier 1623885d46 Add options to trytond.config
Closes #14483
2026-01-13 20:08:43 +01:00
Cédric Krier 40ce993a5b Defer patching requests default agent when it is imported
Importing requests module in `trytond/__init__.py` prevents the gevent monkey
patch to be applied to the requests module as it is imported before.

Closes #14461
2026-01-03 13:45:10 +01:00
Cédric Krier aecb2942fe Compare HTTP status code to HTTPStatus enum 2025-12-18 15:18:53 +01:00
Cédric Krier f1fbd7abb3 Allow filtering users to be notified by cron tasks
Closes #14432
2025-12-16 17:28:32 +01:00
Cédric Krier 7be632030d Dumps action value of cron notify if it is not yet a string
Closes #14431
2025-12-16 17:21:41 +01:00
Cédric Krier f41a2bdef5 Log exception when opening view arch 2025-12-15 17:12:22 +01:00
Cédric Krier ce26ef12dc Do not use cached report instance
We must always use a copy of the cached report instance to allow to add
directives to the template before being prepared.

Closes #14460
2026-01-03 12:53:56 +01:00
Cédric Krier ce7e973e85 Log exception when retrieve file ID from the filestore for Binary field 2025-12-15 17:11:51 +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 402913d4cd Log event using the transaction of the records
Closes #14446
2025-12-23 09:55:34 +01:00
Cédric Krier 3b6b39de82 Use ID read of note in tests
Closes #14450
2025-12-25 09:54:24 +01:00
Cédric Krier d45e29e6ad Always surround WHERE clause with parentheses in EXCLUDE constraint
Closes #14449
2025-12-24 11:38:45 +01:00
Cédric Krier 6b9135321c Pass XML-RPC string to GzipStream instead of bytes
Since 0a04dc8fa935 the GzipStream class expect a string or a generator of
strings but not bytes.

Closes #14445
2025-12-22 20:11:10 +01:00
Cédric Krier 2ab19cf6eb Save wizard session states in new transaction for readonly wizard
The transaction is readonly which prevents to save in the database the session
with states.

Closes #14442
2025-12-23 09:52:40 +01:00
Cédric Krier f9a6bd7379 Ensure get_preferences_fields_view modifies mutable field definitions
Closes #14433
2025-12-18 21:24:26 +01:00
Cédric Krier a727c747ae Register a set and frozenset marshalling function for both JSON-RPC and XML-RPC
This completes 0a0f4db765fb for #14387
2025-12-18 19:18:12 +01:00
Cédric Krier 704da3630b Compare element to replace new view tree from inherit application against None
lxml raises a warning about truth-testing on element.

Close #14429
2025-12-16 11:56:31 +01:00
Cédric Krier 122ade0b30 Increase version number 2025-12-15 21:34:54 +01:00
Cédric Krier 692810e7b8 Prepare release 7.8.0 2025-12-15 20:17:16 +01:00
Cédric Krier 954f137e65 Update translations [skip ci] 2025-12-15 18:00:12 +01:00
Cédric Krier 433ef85ac8 Test action window using existing records from the keywords
Since 225529c5e779 the ids do not start at 1 so it must search for existing
records to test.
2025-12-14 13:57:42 +01:00
Nicolas Évrard 7bdb724da2 Search on the Target model in O2M when it has an active field
When comparing a one2many to None we should search on the Target model in order
to ensure the correct handling of the active field. Otherwise there might be
records that wouldn't be found by the search yet their one2many fields come up
empty.

Closes #14370
2025-11-14 18:11:20 +01:00
Nicolas Évrard 64424d1a90 Use the target id to compute the filter clause of a O2M field compared to None
Closes #14373
2025-12-13 14:57:52 +01:00
Nicolas Évrard a23df14c83 Use different starting point for IDs of table when testing
Closes #3799
2025-12-13 14:30:28 +01:00
Cédric Krier b5c13ef379 Use the right primary column name for PostgreSQL database method
On history table the primary column is `__id` instead of `id`.
2025-12-13 14:33:42 +01:00
Cédric Krier a9408ddd2f Implement setnextid for SQLite database 2025-12-13 14:31:19 +01:00
Cédric Krier 626b8e768c Stream json and gzip response
Closes #14409
2025-12-05 20:59:59 +01:00
Cédric Krier 815bd08c8e Auto reload the server when tryton.cfg files are modified
Since 6eb1a23b7457 the tryton.cfg files contains the model to register.
Therefore if they change, the server must be reloaded.
2025-12-03 12:10:53 +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 cd223660ff Make option --all appends the res module to the list of updates
Since d237ff78d187 the res module is not updated even if it depends on ir
module because it is an early module.

Closes #14401
2025-11-28 15:32:06 +01:00
Cédric Krier 946805c0f3 Do not create fs_values and values for ir_model_data in init SQL
Since 49ca1e40161c those fields have been replaced by field_names.

Closes #14400
2025-11-28 10:19:03 +01:00
Nicolas Évrard 9d4966e41f Filter Many2Many group fields on active = True
When the field is used in a domain adding this filter ensure that comparison
with None will succeed when there are only inactive groups in the field.

Closes #14369
2025-12-03 08:47:20 +01:00
Cédric Krier 72d637cec9 Test if field_names is None instead of empty in ModelStorage hooks
Closes #14382
2025-11-21 11:50:54 +01:00
Cédric Krier 98941a588e Allow users to subscribe to notification cron jobs
Closes #13988
2025-12-02 19:24:36 +01:00
Cédric Krier 8ab505205d Allow users to subscribe to chats 2025-12-02 13:08:05 +01:00
Nicolas Évrard fa19c6226f Notify subscribed users of new message in chat 2025-12-02 18:11:10 +01:00
Nicolas Évrard 48dcd6ffdd Add user notification 2025-12-02 13:08:54 +01:00
Cédric Krier 4dce4ec167 Add documentation for chat 2025-12-02 14:38:58 +01:00
Nicolas Évrard 784eba9791 Correctly get model and id of resource when checking the Channel access rights 2025-10-02 09:44:58 +02:00