Commit Graph
4907 Commits
Author SHA1 Message Date
Cédric Krier ae6978354e Limit the size of grouped insert depending on number of columns inserted 2023-04-11 15:57:57 +02:00
Cédric Krier 1d2f4d7163 Reuse on_change_with_result to convert result of Function field getter 2023-04-15 09:15:46 +02:00
Cédric Krier e74fe80df9 Convert instances in RPC call result for on_change_with on field
Since d142b33fa3ab0fe5af25957f90ee77fe7eee51b3 the on_change_with method can
return instances.

Closes #12217
2023-04-14 13:09:23 +02:00
Cédric Krier 0233bfe8d6 Format using SQL Identifier type sequence name
The sequence functions are using string parameters so for case sensitive
sequence name we must pass a string containing double-quoting if necessary.

Closes #12194
2023-04-08 11:24:45 +02:00
Cédric Krier 4d950fc8e9 Do not quote sequence name coming from pg_get_serial_sequence
The result of the function is already quoted to be suitably formatted for
passing to the sequence functions.
2023-04-08 11:12:20 +02:00
Cédric Krier d49f0ce8fc Set cron timezone with default value
Closes #12056
2023-04-11 00:12:33 +02:00
Cédric Krier a826d91015 Ensure reset password has at least the minimal length for password
Closes #12028
2023-04-11 00:08:28 +02:00
Cédric Krier 61f2f749f4 Update model data also when old values are different from the current values
Closes #12190
2023-04-06 20:36:25 +02:00
Cédric Krier cb3fcf5d48 Do not strip monetary thousands separator
Closes #12191
2023-04-06 20:39:18 +02:00
Cédric Krier ace9beeab4 Log transition only for updated records
Closes #12202
2023-04-11 15:10:27 +02:00
Cédric Krier 6c1f09e551 Do not always enforce access on resource selection
When the reference field is validated (without check access), it should not
fail for SelectionValidationError if the user has no access to the resource.

Closes #12178
2023-04-03 10:54:50 +02:00
Nicolas Évrard 4301c56033 Drop default on id column of history tables
The migration introduced in baa87cf1a343 would fail because previous migration
would have wrongly set a default value in id column of history tables

Closes #12186
2023-04-05 19:36:27 +02:00
Cédric Krier 43b1d28326 Return rec_name for on_change_with of xxx2One and Reference
Closes #9638
2023-03-26 00:29:14 +01:00
Cédric Krier 4d6b36e711 Support return instances for Function getter and on_change_with
Closes #9640
2023-03-25 01:27:19 +01:00
Cédric Krier 9ad95c58ed Log modification of sale and purchase header via wizard 2023-02-08 19:05:00 +01:00
Cédric Krier 17bbce3919 Log events for ModelStorage
It logs by default:
 - the write and delete done directly by the users
 - the execution of a button
 - the execution of wizard state that has modified the database
 - the workflow transition to a new state
2023-02-08 19:03:29 +01:00
Nicolas Évrard 5179e6cd40 Insert multiple rows at once
Closes #12106
2023-03-02 22:43:30 +01:00
Nicolas Évrard e18d604aa8 Use IDENTITY column for table id columns 2023-03-13 17:59:29 +01:00
Nicolas Évrard eef0c3d870 Do not shadow previously defined table handler 2023-03-24 18:07:29 +01:00
Nicolas Évrard 37f2ed9e84 Update definitions of constraints only when they changed
Closes #12136
2023-03-13 17:58:27 +01:00
Nicolas Évrard 09dbef446e Do not pass class to __table_handler__ classmethod 2023-03-13 17:56:41 +01:00
Nicolas Évrard d945809d35 Update all table definitions or only those specified in arguments
Closes #12136
2023-03-13 17:55:28 +01:00
Cédric Krier 2808d7dfc2 Fix languages variable name typo in emails 2023-03-27 16:11:19 +02:00
Cédric Krier c689590c8e Clear password hash read even if there is no cache
This was introduced by 2c557f1b4882
2023-04-01 00:18:01 +02:00
Cédric Krier f40cea7507 Do not fails to clear password from cache if there is no cache
This was introduced in 7b5157206d32

Closes #12165
2023-03-30 22:36:18 +02:00
Cédric Krier 1aa9226401 Publish convert_from method
Closes #9007
2023-03-23 00:33:22 +01:00
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