Cédric Krier
dfadc5b62b
Do not fail to get keyword action with empty record id
...
Closes #12767
2023-12-23 18:50:58 +01:00
Cédric Krier
1cc73c08ab
Convert __export_row from static method to instance method
2023-12-23 18:30:59 +01:00
Cédric Krier
7b3107a8a0
Instantiate list of ids when exporting data with domain as list of ids
...
Closes #12868
2023-12-23 18:26:00 +01:00
Cédric Krier
7c7af11e7a
Check selection of dict schema when selection or help selection are modified
...
It is the modification of stored field that must be checked and not the json
version.
Closes #12781
2023-12-17 20:33:32 +01:00
Cédric Krier
0d437d341c
Use empty value Function xxx2Many fields without initial value
...
Since d142b33fa3ab the on_change_with relies on _changed_value. But for
Function xxx2Many fields if their value is not in the initial value, we should
not retrieve it from the database because the result will be the same as the
one set by on_change_with.
Closes #12836
2023-12-15 18:09:30 +01:00
Cédric Krier
071364744e
Use sortable function to test origin of xxx2Many
2023-12-02 18:33:07 +01:00
Cédric Krier
37ef23134a
Order xxx2Many targets by id origin instead of order name
...
The ordering is only to group records for cache alignment, so ordering by id
avoid to have to join on the origin table.
Closes #12795
2023-12-02 18:25:11 +01:00
Cédric Krier
1c0ff8eec2
Do not try to read action values if the ID does not exist
2023-12-17 22:57:20 +01:00
Cédric Krier
3d3ffc5c7c
Do not check access when retrieving action ID
...
The ID does not contain any security data. If the user does not have access to
the action, an access error will be raised later when actual values are read.
Closes #12803
2023-12-17 22:54:17 +01:00
Cédric Krier
2b0d50afc4
Compare leaf values only of the same type to sort domain
...
Closes #12792
2023-12-12 18:02:14 +01:00
Cédric Krier
278c61466b
Prefix record name with "record" in validation error message
2023-11-17 23:00:57 +01:00
Cédric Krier
779b329705
Use string version for selection values in error message
2023-11-17 19:55:48 +01:00
Cédric Krier
9ad54faa98
Update documentation to use python3 instead of python
2023-11-20 00:04:08 +01:00
Cédric Krier
0d625d4010
Remove usage of set_user to skip check access
...
Since ce8d7a19766a the access rule are enforced only if check access is set.
2023-12-01 21:14:37 +01:00
Nicolas Évrard
8c82dccd9f
Filter history using SQL
...
Closes #12687
2023-10-29 01:31:05 +02:00
Nicolas Évrard
2f2f15e49b
Create indexes on the history table
...
Closes #12686
2023-10-30 16:37:40 +01:00
Nicolas Évrard
67fe5021ba
Do not prevent to fill the cache of fields with a datetime_field set
...
The value of those fields do not depend on the value of the datetime_field,
only the value of the remote fields read.
Closes #12715
2023-11-22 01:29:47 +01:00
Nicolas Évrard
32fa5569ad
Do not prevent to fill the cache of fields with a context
...
The value of those fields in the database do not depend of the context and
Function fields getter depending on context are tested separately.
Closes #12715
2023-12-12 22:48:01 +01:00
Nicolas Évrard
59b686b264
Report DatabaseOperationalError as an HTTP Service Unavailable error
...
Closes #12736
2023-11-13 10:42:37 +01:00
Cédric Krier
08a5b65618
Always pass the field name to convert value from getter of Function field
...
Closes #12802
2023-12-05 12:33:33 +01:00
Cédric Krier
3567c87ebc
Test workflow graph report
2023-11-19 17:50:14 +01:00
Hartmut Goebel
1bcf23721c
Make state node of workflow graph unique
...
Quite a few model have states with the same name (e.g. "open",
"close). When creating Workflow Graphs for several of these models at
once, the nodes of these states must be distinguished. Otherwise the
graphs will overlap and eventually even overwrite each other.
Closes #12253
2023-11-19 12:16:03 +01:00
Cédric Krier
9358d7197f
Do not clear log_records of Transaction if it is empty
...
When the transaction fails to start, the log_records may still be None.
Closes #12793
2023-12-01 20:55:20 +01:00
Cédric Krier
2cc7faec53
Update tutorial to use PEP517 when installing in editable mode
...
Closes #12701
2023-11-20 00:00:26 +01:00
Cédric Krier
e58a569f23
Do not force value for single list on multi-value field
...
Fields based on multi-value must not be forced to the single value of a list.
Closes #12737
2023-11-14 00:00:15 +01:00
Cédric Krier
ba7badec6e
Retry to send email when server unexpectedly disconnect
...
Closes #12790
2023-12-01 09:54:40 +01:00
Sergi Almacellas Abellana
afa4a20176
Make record rules documentation more explicit
2023-11-23 15:04:06 +01:00
Nicolas Évrard
300bad3f6b
Assert that only one thread is active in trytond.application
2023-11-22 01:37:11 +01:00
Nicolas Évrard
50c102a2e5
Do not start threads before the end of the evaluation of trytond.application
...
When uwsgi forks workers it can happen that python execute the code from one of
the launched thread (eg: the cache listener or trytond-status). In that case
python will keep executing the thread and never switch to the main thread. Thus
preventing to listen for incoming connections.
Closes #12758
2023-11-16 23:37:19 +01:00
Cédric Krier
4779c72913
Limit size of database cache dump to 40 chars
...
Each backend has their limit. 40 chars is picked as limit to match the size of
mercurial hash.
Closes #12754
2023-11-26 17:12:40 +01:00
Nicolas Évrard
e1e6492a40
Add a test on search of historical records
2023-11-23 17:56:11 +01:00
Nicolas Évrard
bd5e4d6714
Filter history lines matching search when they're too old
...
Closes #12687
2023-11-03 19:07:11 +01:00
Cédric Krier
e6d8dbd359
Use default access for ModelSQL based on table_query when method is extended
...
When the create/write/delete methods are extended, we should assume that
developer has implemented such access.
Closes #12757
2023-11-16 18:55:47 +01:00
Cédric Krier
7270cc86fa
Remove non updated targets of xxx2Many when importing data
...
Closes #12625
2023-10-09 11:42:36 +02:00
Nicolas Évrard
02650a0ffd
Share record's _ids when saving new records
...
Closes #12657
2023-11-11 13:48:16 +01:00
Cédric Krier
f8ca4ce512
Avoid race condition when making directories for database cache
2023-11-01 13:27:36 +01:00
Cédric Krier
ee8782f102
Avoid race condition when making directories for filestore
...
Closes #12696
2023-11-01 13:26:37 +01:00
Nicolas Évrard
a42cb450f7
Add timeout parameter on RPC calls
...
Closes #11293
2023-10-08 00:08:52 +02:00
Cédric Krier
38da6a0451
Increase version number
2023-10-30 18:51:13 +01:00
Cédric Krier
65f477f731
Prepare release 7.0.0
2023-10-30 18:17:32 +01:00
Cédric Krier
70dcf79404
Check access without and with domain rule at the same time for read and write
...
For read and write operation, we must first check without domain rule to
ensure the ids exist before testing with the domain rules.
Closes #12668
2023-10-25 16:27:58 +02:00
Cédric Krier
c577fad900
Update translations [skip ci]
2023-10-28 14:15:23 +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
ff376d7d01
Prevent storing Decimal with too much trailing zero
...
The trailing zero are kept in the Decimal and rendered in the string
representation which is unexpected for a field with limited digits.
Closes #12587
2023-10-21 14:12:12 +02:00
Cédric Krier
b43f3165fb
Do not fail on DNSException when running test
...
Closes #12628
2023-10-21 16:22:50 +02:00
Cédric Krier
420e0a48d6
Add pairwise_longest tools
2023-10-18 23:11:07 +02:00
Cédric Krier
4e010a988f
Add support for Python 3.12
2023-10-22 19:40:55 +02:00
Cédric Krier
9425bf19b2
Remove EGG_MODULES dictionary
...
It is no more used since d29ec7a37dca.
2023-10-23 09:53:30 +02:00
Cédric Krier
2d599f67cf
Replace pkg_resources by importlib
...
pkg_resources is deprecated in favor of importlib.resources,
importlib.metadata.
2023-10-23 16:49:01 +02:00