Commit Graph
5549 Commits
Author SHA1 Message Date
Cédric Krier 1e151a15a2 Remove support for Python 3.8 2025-04-06 12:11:03 +02:00
Cédric Krier 6d8b42c687 Add support for Python 3.13 2025-04-06 12:10:20 +02:00
Cédric Krier 39af772212 Do not override all written ids by ids from each argument in ModelSQL write
6f1447bdd702 makes ModelSQL.write retrieve the list of ids written from
_before_Write but they should be used as-is to call _after_write (and others).
2025-04-07 00:18:19 +02:00
Cédric Krier 5aeff66acd Use ModelStorage hooks instead of extending create/write/delete 2025-04-06 00:14:17 +02:00
Cédric Krier 45122b77c0 Add on_write to ModelStorage 2025-02-24 13:39:52 +01:00
Cédric Krier e9fe355663 Add on_delete to ModelStorage 2025-02-19 17:52:22 +01:00
Cédric Krier ae3cd83668 Rename "on_" columns of trigger 2025-02-20 09:29:52 +01:00
Cédric Krier 4b7b5a4739 Add check_modification to ModelStorage 2025-03-01 16:10:13 +01:00
Cédric Krier 72c96ec778 Add on_modification to ModelStorage 2025-02-19 23:01:52 +01:00
Cédric Krier defc4c46c5 Add preprocess_values to ModelStorage 2025-02-24 12:58:37 +01:00
Cédric Krier 121c279f47 Add before/after methods for CWRD methods of ModelStorage 2025-04-05 16:33:40 +02:00
Cédric Krier 027384000b Add compute fields to ModelStorage 2025-01-15 21:37:11 +01:00
Cédric Krier 1772caec90 Clean migrations for series before 6.0 2025-01-04 00:19:42 +01:00
Nicolas Évrard cbdad75620 Remove old-style of super() calls 2025-04-04 00:45:18 +02:00
Cédric Krier e9cd9d1163 Increase delay between transaction retries
Since c8771e45b861 the retry is no more a countdown but an increasing count, so
the sleep time must be adapted to also increase over retries.

Closes #13910
2025-03-07 21:54:11 +01:00
Cédric Krier 5bc3c53f6b Compare integrity error message with the constraint name prefixed by the table name
The TableHandler adds the table name as prefix to the constraint name so when
comparing with the integrity error message, it should also be added.
Especially if the constraint name is hashed by the TableHandler conversion
because the result is completely different.

Closes #13922
2025-03-15 13:31:57 +01:00
Cédric Krier 34686ae187 Do not include record with NULL field in nested negative clause on None
Since 87456218dcc9, record with NULL field is include in nested negative clause
but this should not applied if the operand is or contains None.

Closes #13911
2025-03-09 11:23:43 +01:00
Cédric Krier 9806aab7f2 Set default value for clean timeout of cache in config 2025-03-04 23:10:52 +01:00
Cédric Krier 881df99a24 Add configuration of select timeout for cache channels 2025-03-04 23:08:13 +01:00
Cédric Krier 723a820494 Query the database after each timeout of the listeners
This permit to keep the connection alive when the database is killing idle
connections.

Closes #13902
2025-03-04 23:00:16 +01:00
Cédric Krier cfeb3685f4 Convert empty string to None for match value
It is not possible from the clients to force to store None value instead of
empty string.

Closes #13890
2025-02-26 23:51:39 +01:00
Cédric Krier 8544521766 Raise UserError from the database exception
This adds the traceback of the original exception in the log.

Closes #13912
2025-03-09 16:07:58 +01:00
Cédric Krier 203a5f3a34 Add color as type of icon and image
Closes #13808
2025-01-09 18:52:36 +01:00
Cédric Krier 093fb115ff Add color widget to form view
Closes #13800
2025-01-08 16:53:34 +01:00
Cédric Krier 4f5c54dd40 Return series instead of version for remote call
This provides only the required information about the server.
2025-01-03 19:01:08 +01:00
Cédric Krier 1edefbeae5 Limit access to database from the same series as the server
The last series to which the database was updated is stored in
ir.configuration.
With this information, the list of databases is filtered for the same series.
Remote access to a database is restricted to databases available in the list.

Closes #13791
2025-01-06 15:54:02 +01:00
Cédric Krier 8b8c65da84 Fill wizard state view instance with default value
Closes #13693
2024-11-20 10:34:13 +01:00
Cédric Krier efdda3a111 Restore assignation of string and integer value for Date, DateTime, Time and Timedelta fields
Closes #13873
2025-02-15 01:38:51 +01:00
Udo Spallek b245323c30 Fix typo in alt text of documentation logo
Closes #13895
2025-02-28 00:49:48 +01:00
Cédric Krier d78d99cb94 Prohibit calling convert_order on Function field
Closes #13872
2025-02-15 01:15:07 +01:00
Cédric Krier 5b39e5aad4 Fix typo in size_limits of ModelStorage.write
fd45274f2455 use a set as size_limits but it must be a dictionary.
2025-02-26 00:56:24 +01:00
Cédric Krier 58a8663a8b Remove fallback password hash checks
The fallback was added by cc5aba3b12c7 for password hash stored before 5.0.
2024-12-01 14:31:18 +01:00
Cédric Krier cac922b6ca Replace passlib by pwdlib
Closes #12936
2024-12-01 14:25:26 +01:00
Cédric Krier 9cb5d6d83a Raise HTTP exception when RPC convert request argument 2024-11-28 10:23:37 +01:00
Cédric Krier 611198f9f1 Add size limit for RPC arguments
Closes #10301
2024-11-28 09:31:43 +01:00
Cédric Krier 65d3f86149 Store the ignore search limit option of export
Closes #13601
2024-12-12 23:16:41 +01:00
Cédric Krier 2efc39346c Do not try to delete XML data without id
If the record has already been cleaned, there is no need to try to delete again.
2025-02-10 01:39:24 +01:00
Cédric Krier c91542adfb Do not retrieve current transaction to fetch model attribute
It is the transaction stored on the instance that must be used and which is set
by the context manager.
2025-01-21 18:43:23 +01:00
Cédric Krier 7a4182ad6a Do not fail to translate model field that does not exist 2025-01-29 23:23:22 +01:00
Cédric Krier a878b8055d Improve form view of model field 2025-01-29 23:22:18 +01:00
Cédric Krier 8915b6f61e Set access as readonly on model field when module is set 2025-01-29 23:20:40 +01:00
Cédric Krier 715a1a0b32 Set readonly states for foreign many2one on model field based on module
Closes #13565
2025-01-29 23:20:07 +01:00
Cédric Krier d6764027f1 Do not validate empty email in trytond-admin command
Closes #13837
2025-01-26 00:47:27 +01:00
Cédric Krier 2ccd9dec09 Include translation fuzzy in cache key of translated message
Closes #13805
2025-01-12 01:47:50 +01:00
Cédric Krier 709bebe701 Use base URL as logo link and include homepage in TOC
This way the navigation in the documentation is unified.
2025-02-09 15:19:19 +01:00
Cédric Krier c2e8d187d1 Do not fail to clean when help selection is None
Closes #13862
2025-02-09 19:51:04 +01:00
Cédric Krier 504f3013cc Disable counting in super search call of ResourceAccessMixin only when enforcing access
The search method must always return an integer when count is True.

Closes #13846
2025-01-29 11:45:42 +01:00
Cédric Krier 2337e61b71 Skip empty filename as configuration file 2025-02-08 14:35:59 +01:00
Hartmut Goebel d009490e4e Make empty environment variable TRYTOND_LOGGING_LEVEL be treated as unset 2025-02-08 14:40:10 +01:00
Hartmut Goebel 76e335d894 Make empty environment variable TRYTOND_TZ be treated as unset 2024-01-20 22:51:08 +01:00