Commit Graph
5181 Commits
Author SHA1 Message Date
Cédric Krier b719d8aed1 Add rstcheck 2023-03-15 16:33:19 +01:00
Cédric Krier 0f85e6d97d Use classmethod to compute state of module dependency 2023-03-16 10:02:15 +01:00
Cédric Krier 750d282999 Update module list by batch 2023-03-16 10:06:10 +01:00
Cédric Krier be8d6807ba Set login name as default email from address 2023-03-10 13:10:08 +01:00
Cédric Krier b2cd506f71 Use no breaking space to format number
Closes #5239
2023-02-23 14:14:01 +01:00
Cédric Krier 39af6a02e3 Fallback to code to format currency without symbol 2023-02-23 13:39:07 +01:00
Cédric Krier 0993aff5dc Add sort method to order like ModelStorage.search 2023-02-22 17:01:46 +01:00
Cédric Krier e97ce7c685 Set __class__ to mocked model on TranslateModel 2023-02-22 16:59:48 +01:00
Cédric Krier 9c1486a8d1 Document that no triggers are called with restore history 2023-02-20 23:06:20 +01:00
Cédric Krier 2b0dcbc3c9 Reset cache when restore history of ModelSQL
Closes #5086
2023-02-20 23:03:59 +01:00
Cédric Krier f7f597a150 Support domain method for all fields
Closes #4884
2023-02-20 17:01:40 +01:00
Cédric Krier b0e89eac00 Remove password hash also from the transaction cache
Closes #12120
2023-03-07 16:33:58 +01:00
Cédric Krier 8568e9df77 Clean translations of resources that do not exist anymore
Closes #2796
2023-02-18 19:05:26 +01:00
Cédric Krier 0d0cd7ee45 Keep all transaction caches still referenced
The LRUDict is replaced by a WeakValueDictionary to keep all used transaction
caches such as they can be cleared by ModelStorage.
But we still keep the latest cache used so they are not removed from the
WeakValueDictionary too soon when such cache has been created to be pre-filled
like in ModelSQL.search.

Closes #12119
2023-03-07 15:43:53 +01:00
Cédric Krier a5e36bc232 Do not copy password hash nor reset from user 2023-03-15 16:09:10 +01:00
Cédric Krier a76301e902 Add error message for invalid default fields in ModelStorage.copy 2023-03-15 09:50:26 +01:00
Cédric Krier 0102c650fc Ensure only existing field names are in default value of ModelStorage.copy
Closes #3535
2023-02-18 18:11:40 +01:00
Cédric Krier 251051ad61 Do not alter argument values of with_transaction decorator
Closes #12108
2023-02-26 00:20:09 +01:00
Cédric Krier 5cc5a8f672 Update tox.ini to set py311 and remove py37 2023-03-03 00:17:18 +01:00
Cédric Krier e47f108844 Test page name attribute is an existing field 2023-02-12 12:02:13 +01:00
Cédric Krier 45dd6f213c Support SMALLINT and REAL as backend types 2023-02-21 00:25:38 +01:00
Cédric Krier f912ec5b45 Remove BigInteger field
Closes #6792
2023-02-21 00:25:05 +01:00
Nicolas Évrard 039761e061 Remove support for Python 3.7 2023-01-29 20:36:51 +01:00
Nicolas Évrard 777ee10f27 Add support for Python 3.11 2023-01-27 11:02:47 +01:00
Cédric Krier 4e3b817b81 Require at least version 0.12 of werkzeug
Closes #12021
2023-02-19 11:23:50 +01:00
Cédric Krier 609583221b Retry on database operation error when locking table on transaction start 2023-02-19 22:12:41 +01:00
Cédric Krier 96c0f1ec4d Rollback and clear tasks on database error in transaction of tests 2023-02-19 22:13:35 +01:00
Cédric Krier cb348ca880 Clear tasks when transaction is rollback
The tasks records are removed on rollback so there is no need to try to run
them.
2023-02-19 20:58:01 +01:00
Cédric Krier 8dc8454449 Manage transaction error in trytond-admin
Since c8771e45b861 TransactionError can be raised and is raised when creating
the ir.configuration singleton (1f462acb3b55).

Close #12087
2023-02-19 01:17:44 +01:00
Cédric Krier 1c56b9190a Test domain validation for xxx2many fields 2023-02-19 12:15:45 +01:00
Cédric Krier d5d758b59e Format value of xxx2many field with record names in Model.__names__ 2023-02-19 13:25:27 +01:00
Cédric Krier 30d2bcb2a8 Find invalid records of xxx2Many field using intersection
For xxx2Many field, the contain test is not working correctly because the
field value is a tuple of records which is never in the list of invalid
relations.

Closes #12099
2023-02-17 12:56:18 +01:00
Nicolas Évrard d6b8e9671b Set the fallback application name when connecting to postgres
Closes #12074
2023-02-20 23:22:39 +01:00
Cédric Krier de8d5477a0 Do not use One2Many with filter to get MultiValue records
The filter may prevent to find the right value.

Closes #12078
2023-02-10 16:10:08 +01:00
Cédric Krier b55fe71383 Set default attributes on Transaction __new__ method
Closes #5617
2023-02-05 00:36:58 +01:00
Nicolas Évrard c17cf5243f Keep using _database_cache if the specific cache hasn't been reset
Closes #12079
2023-02-14 13:28:36 +01:00
Cédric Krier 7843e47389 Add scroll time for calendar view 2023-01-28 10:42:58 +01:00
Cédric Krier fd3ea318a8 Allow cache size to be configured
Closes #11383
2023-01-14 20:11:32 +01:00
Cédric Krier 40db6c18a6 Test message of DomainValidationError 2023-02-07 16:44:30 +01:00
Cédric Krier 222b39c54f Fill DomainValidationError message using an invalid record
The invalid relations are the invalid records only if Target is the class.
2023-02-07 16:44:14 +01:00
Cédric Krier eeb0bc72d4 Apply sphinx-lint to documentation 2023-02-04 21:02:37 +01:00
Nicolas Évrard 967a41f467 Add global and local set of ignored context keys
Closes #11234
2023-02-06 18:40:00 +01:00
Cédric Krier cebf486f6f Enforce unique creation of singleton with lock and constraint
Closes #10748
2023-01-30 14:54:07 +01:00
Cédric Krier 3be0472924 Test all depends of fields
Since 4ceb8ad07bd5 the depends attribute contains only some of the depending
fields. Tests should include the computed depends.
2023-01-27 14:04:37 +01:00
Cédric Krier b48e4966d5 Add functions and attribute to handle check access and active records
Closes #11863
2022-12-30 13:56:10 +01:00
Nicolas Évrard 556918f7c5 Check that fields used to order are sortable
Closes #11747
2023-01-16 11:12:29 +01:00
Nicolas Évrard e2a56a6cac Add searchable and sortable methods on Field 2023-01-02 22:12:09 +01:00
José Antonio Díaz Miralles 2668ff013a Do not write creation values in ModelSingleton 2023-02-03 20:08:26 +01:00
Cédric Krier 9375dcb878 Ensure right model is used in Many2One sql_format
Closes #6074
2023-01-23 00:12:44 +01:00
Cédric Krier 9ae4f0e80c Copy original state of wizard to avoid side effect
Closes #4948
2023-01-22 01:41:52 +01:00