Commit Graph
4799 Commits
Author SHA1 Message Date
Cédric Krier 71a31a3283 Increase version number
--HG--
branch : 6.0
2025-11-21 01:27:38 +01:00
Cédric Krier 297ce9e9be Prepare release trytond-6.0.70
--HG--
branch : 6.0
2025-11-21 01:27:27 +01:00
Cédric Krier dd53078f27 Enforce access check in export_data
As the method is using instances to construct the exported data, the access
must be checked explicitly.

Closes #14366
(grafted from 4e3e875a295e533244d0f28c1cf2efe5187489ba)

--HG--
branch : 6.0
2025-11-17 12:26:57 +01:00
Cédric Krier 50248f6b31 Include the traceback only in RPC responses in development mode
Closes #14354
(grafted from 8693a06919f2ceac1aa9f36ab6069325198ec94b)

--HG--
branch : 6.0
2025-11-12 14:56:34 +01:00
Cédric Krier 4d644d7be8 Enforce access check in HTML editor route
Use .read and .write instead of .browse and .save when editing field via the
HTML editor.

Closes #14364
(grafted from 1103361fdaf6d9da12fe6455d871a4eba089d768)

--HG--
branch : 6.0
2025-11-17 10:28:49 +01:00
Cédric Krier 91030094af Increase version number
--HG--
branch : 6.0
2025-11-02 16:58:45 +01:00
Cédric Krier 0307ebf3c6 Prepare release trytond-6.0.69
--HG--
branch : 6.0
2025-11-02 16:58:34 +01:00
Nicolas Évrard 9cba89d10f Use SQL queries to restore history
Restoring a fields.Dict value failed before using this pure SQL solution.
Also such a solution will be more efficient by minimizing the amount of python
code run.

Closes #14031
(grafted from c81b7d05a51c491f1c7060506144bf50d395c075)

--HG--
branch : 6.0
2025-05-20 18:28:23 +02:00
Cédric Krier 773c2e92fa Use sub-test when testing search domain with deactivable mixin
(grafted from 4c8bb51f47ab3ba881bb5738f3387d656f5ed52a)

--HG--
branch : 6.0
2025-08-23 20:29:51 +02:00
Cédric Krier 8421df4104 Increase version number
--HG--
branch : 6.0
2025-10-02 23:25:06 +02:00
Cédric Krier 42e49d0815 Prepare release trytond-6.0.68
--HG--
branch : 6.0
2025-10-02 23:24:54 +02:00
Cédric Krier 7d56a7bf94 Patch global PATH variable of filestore in test
Changing the configuration value is not enough as its value is cached in the
global variable.

Closes #14248
(grafted from 2967a503290b9b6d724a1da46b80523e75536179)

--HG--
branch : 6.0
2025-09-20 09:07:18 +02:00
Cédric Krier 43400b86af Increase version number
--HG--
branch : 6.0
2025-09-15 18:06:42 +02:00
Cédric Krier b748549ca7 Prepare release trytond-6.0.67
--HG--
branch : 6.0
2025-09-15 18:06:32 +02:00
Nicolas Évrard 66f7c90cac Make sure that the search order is predictable when either the limit or the offset is set
Closes #14169
(grafted from 303c314c8c10e77c346c1ab4ee2d707d15957b15)

--HG--
branch : 6.0
2025-08-18 10:40:02 +02:00
Cédric Krier a2da4442be Increase version number
--HG--
branch : 6.0
2025-09-03 20:26:55 +02:00
Cédric Krier 65577c1e1b Prepare release trytond-6.0.66
--HG--
branch : 6.0
2025-09-03 20:26:43 +02:00
Lars Wuerfel 75ce19c8bf Correct typos in the report documentation
(grafted from c856f5fc2736eb35f286e360368e6a3dca3858a0)

--HG--
branch : 6.0
2025-07-23 10:44:12 +02:00
Cédric Krier 09b475101e Set default values for fields of button_change decorator
Closes #14120
(grafted from 8210e7db85599228bcdb65019e8cbfab6b913334)

--HG--
branch : 6.0
2025-07-15 17:37:59 +02:00
Cédric Krier 1ac9eaa096 Increase version number
--HG--
branch : 6.0
2025-07-15 23:05:54 +02:00
Cédric Krier d150e23256 Prepare release trytond-6.0.65
--HG--
branch : 6.0
2025-07-15 23:05:38 +02:00
Cédric Krier 85c5a34401 Do not restore values for created records when exception is raised when saving
Once a record has been created, the id is modified which change its hash value
such that it can not be found anymore.
But as the creation succeeded (and only the write part has failed) we can just
restore the values to None.

Closes #14093
(grafted from a56b25f536568b808bc4c57b6cee03408eaf06f2)

--HG--
branch : 6.0
2025-06-29 19:13:42 +02:00
Cédric Krier 32366c9db7 Do not set Content-Length header to data response
Since version 0.8 werkzeug set the header automatically by default.

Closes #14010
(grafted from 5d2842d92f356a260afaa974ab5a413031505e95)

--HG--
branch : 6.0
2025-06-21 23:02:52 +02:00
Cédric Krier a59906a1e2 Increase version number
--HG--
branch : 6.0
2025-07-01 23:19:19 +02:00
Cédric Krier c5e7d94524 Prepare release trytond-6.0.64
--HG--
branch : 6.0
2025-07-01 23:19:08 +02:00
Cédric Krier a09c30e705 Do not fail if the cache name to clear does not exist
Cache instance can be created on usage like in ValueMixin, so a process may not
have an instance of the cleared cache.

Closes #14067
(grafted from f87b9d37d071aba0b1eaea2c5e9d6accac06aa74)

--HG--
branch : 6.0
2025-06-12 12:48:22 +02:00
Cédric Krier 5dec092e9d Increase version number
--HG--
branch : 6.0
2025-06-04 23:09:40 +02:00
Cédric Krier ed5275d325 Prepare release trytond-6.0.63
--HG--
branch : 6.0
2025-06-04 23:09:29 +02:00
Nicolas Évrard 8a86a3395e Use class access model when testing for parent access
(grafted from f2734a16eb1d28f654ffc3ae6cd45b9d2af8726e)

--HG--
branch : 6.0
2025-05-22 10:59:36 +02:00
Nicolas Évrard f5e8c1e53c Remove notification events from the queue after the wait times out
Closes #14022
(grafted from 23bbeb1772ec7d5e27876e638337d9f2d81bbf19)

--HG--
branch : 6.0
2025-05-14 12:12:54 +02:00
Cédric Krier 8c84250c99 Increase version number
--HG--
branch : 6.0
2025-05-02 22:11:12 +02:00
Cédric Krier e6baa877a2 Prepare release trytond-6.0.62
--HG--
branch : 6.0
2025-05-02 22:11:01 +02:00
Cédric Krier f9d7f6d9bd Process on a copy of imported data
The process_lines of ModelStorage.import_data pop rows when importing One2Many.
But if the transaction has to be restarted for example if a lock is needed, the
original data from the request has been altered for the second call losing some
or all the data to be imported.

Closes #13984
(grafted from 2cb96c1427d7c0edcb1c9b5b410e220db3f8958e)

--HG--
branch : 6.0
2025-04-28 10:49:34 +02:00
Cédric Krier 87647dfebd Do not clear non unique help translation
The help translations may be composed of partitioned strings.

Closes #13978
(grafted from 0cbf346b9ea5c1c25e3c97482b3d296432e441aa)

--HG--
branch : 6.0
2025-04-23 18:32:04 +02:00
Cédric Krier a6496de097 Increase version number
--HG--
branch : 6.0
2025-04-03 00:39:39 +02:00
Cédric Krier 0dcc940be7 Prepare release trytond-6.0.61
--HG--
branch : 6.0
2025-04-03 00:39:27 +02:00
Cédric Krier 84c7b3a416 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
(grafted from 57e97b6d957e1b472eea3fb7bbdf2ecf03abfc6a)

--HG--
branch : 6.0
2025-03-15 13:31:57 +01:00
Cédric Krier 896ccf9075 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
(grafted from 993d890dd786424c2cd00009045ad95a09075e72)

--HG--
branch : 6.0
2025-03-09 11:23:43 +01:00
Cédric Krier 3d65696554 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
(grafted from 12e80f41c37e1f77d1ae539e84989956a70da0d9)

--HG--
branch : 6.0
2025-03-04 23:00:16 +01:00
Cédric Krier 98ae81a74f 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
(grafted from f7b12ada27377ec42a05b539791855e6f64c497f)

--HG--
branch : 6.0
2025-02-26 23:51:39 +01:00
Cédric Krier 00eced7712 Increase version number
--HG--
branch : 6.0
2025-03-04 22:16:04 +01:00
Cédric Krier 5849dedd29 Prepare release trytond-6.0.60
--HG--
branch : 6.0
2025-03-04 22:15:52 +01:00
Cédric Krier cfcc82be78 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.
(grafted from e5ed9fc71d218c967bdbfc9489773905e5a5466c)

--HG--
branch : 6.0
2025-02-10 01:39:24 +01:00
Cédric Krier c8dd23d259 Do not fail to translate model field that does not exist
(grafted from e63effe09ce756cd0e66ad635255dedc8d807c7b)

--HG--
branch : 6.0
2025-01-29 23:23:22 +01:00
Cédric Krier 2be6c7b64d Set access as readonly on model field when module is set
(grafted from fd1d0abd2a9256813c654f609b158be3ce3ef9f3)

--HG--
branch : 6.0
2025-01-29 23:20:40 +01:00
Cédric Krier cbea0056e9 Increase version number
--HG--
branch : 6.0
2025-02-16 11:58:15 +01:00
Cédric Krier 26d65206dc Prepare release trytond-6.0.59
--HG--
branch : 6.0
2025-02-16 11:58:04 +01:00
Cédric Krier 6ee7e4cd36 Do not fail to clean when help selection is None
Closes #13862
(grafted from 7459598460593b98dd6a04ecf24551266290e2eb)

--HG--
branch : 6.0
2025-02-09 19:51:04 +01:00
Cédric Krier c2f0f9b849 Always define translation source name
The source name may be used to translate the help selection.

Closes #13839
(grafted from 1b88570858c0188293c5531ce86b1eef96d23086)

--HG--
branch : 6.0
2025-01-26 17:01:20 +01:00
Cédric Krier cee6b17006 Create translation entries for help selection values
Closes #13840
(grafted from c8b60954484f6111ce028ad76dd3a9bfd6f367fc)

--HG--
branch : 6.0
2025-01-26 17:06:46 +01:00