Commit Graph
55 Commits
Author SHA1 Message Date
Nicolas Évrard b973f371c8 Add a contextual read limit for related fields 2024-04-08 13:13:14 +02:00
Cédric Krier cd3395b233 Add email constructor from message 2024-02-21 21:43:50 +01:00
Cédric Krier 3cc0bb6c15 Add send_message methods to sendmail
Closes #13048
2024-02-21 21:38:53 +01:00
Cédric Krier 0dffe1087c Add fmany2one field
Closes #13051
2024-02-22 17:36:51 +01:00
Cédric Krier e0f11efc94 Allow creation of foreign key on non primary key 2024-02-22 19:08:43 +01:00
Cédric Krier ec5a00c82e Make pool initialization atomic
An instance of pool is created per thread and it stores a reference to the
current pool values.
When the pool is initialized, a temporary reference is set on the instance so
only the values for this thread is modified. Once the initialization is
complete, the new pool value replace the global values.
Each instances is refreshed with the global values after the pool has been
stopped.

Closes #11401
2024-03-06 18:28:38 +01:00
Cédric Krier c6f095c760 Do not copy readonly relational fields
Closes #12849
2023-12-20 13:56:57 +01:00
Cédric Krier e5a6aba9bb Support list of single value in sortable_values tools 2024-01-15 20:31:33 +01:00
Nicolas Évrard 75d1af9f84 Allow creating index concurrently 2023-09-27 17:20:20 +02:00
Cédric Krier 93980a94b8 Find module paths using entry points
Closes #12900
2024-01-05 19:57:49 +01:00
Cédric Krier b913ad45d8 Add assert methods to test tools
Closes #12879
2023-12-29 19:02:08 +01:00
Nicolas Évrard 2f2f15e49b Create indexes on the history table
Closes #12686
2023-10-30 16:37:40 +01:00
Nicolas Évrard a42cb450f7 Add timeout parameter on RPC calls
Closes #11293
2023-10-08 00:08:52 +02:00
Cédric Krier cfde98e54a Backed out changeset fc478f7d7004 2023-10-28 00:16:32 +02:00
Nicolas Évrard a09de147a6 Add timeout parameter on RPC calls
Closes #11293
2023-10-08 00:08:52 +02:00
Cédric Krier 420e0a48d6 Add pairwise_longest tools 2023-10-18 23:11:07 +02:00
Cédric Krier ccf653da1d Support create record from autocomplete with default values 2023-09-26 23:45:07 +02:00
Cédric Krier d8530fc867 Support default value from context 2023-09-25 17:53:23 +02:00
Cédric Krier 92b3416d79 Add autocomplete method on ModelView 2023-09-25 17:22:40 +02:00
Cédric Krier a3877cadb3 Add likify tools 2023-09-25 16:42:04 +02:00
Nicolas Évrard d1d2437daf Use multiple jobs to dump and restore a test database 2023-09-16 12:36:43 +02:00
Nicolas Évrard c32c645483 Support database cache as template for tests on PostgreSQL 2023-10-02 11:16:27 +02:00
Cédric Krier ea98511139 Add route test case 2023-09-12 18:52:14 +02:00
Cédric Krier 208ac87281 Add support for scanning code 2023-07-04 17:50:50 +02:00
Cédric Krier 9aa4a8583b Add decorator on RPC 2023-08-16 10:39:16 +02:00
Cédric Krier e862ca836a Run doc tests with different globals
Closes #12441
2023-07-29 15:11:05 +02:00
Nicolas Évrard 6893789faa Rename function with_inactive_records in documentation
The commit e6c72b1f23e7 added the function but the documentation used another
name
2023-06-13 13:39:22 +02:00
Cédric Krier 7c6137f070 Document active test in ModelStorage 2023-07-05 12:57:15 +02:00
Cédric Krier f4210f8143 Document active field part of DeactivableMixin 2023-07-05 12:36:46 +02:00
Cédric Krier a40be04d82 Document on_change methods under ModelView instead of Model 2023-07-04 18:39:28 +02:00
Cédric Krier 66f10aed84 Add email validation tools 2023-04-29 18:52:40 +02:00
Cédric Krier dd2b2fbb23 Add sum_tree helper 2023-06-04 09:30:39 +02:00
Nicolas Évrard 4f28d7ac39 Shorten arguments when logging 2023-05-03 23:13:42 +02:00
Cédric Krier b4d78247cf Support returning more than one nextid 2023-04-22 11:05:23 +02: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
Cédric Krier 1aa9226401 Publish convert_from method
Closes #9007
2023-03-23 00:33:22 +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 9c1486a8d1 Document that no triggers are called with restore history 2023-02-20 23:06:20 +01:00
Cédric Krier f912ec5b45 Remove BigInteger field
Closes #6792
2023-02-21 00:25:05 +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 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 b48e4966d5 Add functions and attribute to handle check access and active records
Closes #11863
2022-12-30 13:56:10 +01:00
Nicolas Évrard e2a56a6cac Add searchable and sortable methods on Field 2023-01-02 22:12:09 +01:00
Cédric Krier 871695b912 Add support for barcode and QR code
Closes #11791
2022-12-26 22:32:03 +01:00
Nicolas Évrard 1fdfe31b1e Get directly the string value of Selection fields in non editable views
Closes #10331
2023-01-29 01:12:24 +01:00
Cédric Krier 3c506fe15d Add ButtonActionException and RPCReturnException
The RPCReturnException returns the result method instead of raising an
exception.
The ButtonActionException launch an action instead of executing the button.

Closes #12009
2023-01-17 13:26:42 +01:00
Cédric Krier 389ad47590 Rename ModelStorage.count into ModelStorage.estimated_count
count is too common name for a standard method like #12016 reveals.
2023-01-17 23:01:08 +01:00
Cédric Krier dd222215eb Lock table on transaction start
When trying to lock a table, we check if it was locked at the start of the
transaction otherwise we raise a TransactionError so the all transaction is
restarted over with the table added to the table to lock.
This ensures when a table is locked that we always read the last committed
values.

Closes #10870
2022-12-26 15:05:56 +01:00
Nicolas Évrard 4f5c0ae3fa Remove target_search on Many2One 2022-12-22 02:43:16 +01:00