Commit Graph
4784 Commits
Author SHA1 Message Date
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
Cédric Krier 7992d32e22 Increase version number
--HG--
branch : 6.0
2025-02-01 18:08:04 +01:00
Cédric Krier e00d986791 Prepare release trytond-6.0.58
--HG--
branch : 6.0
2025-02-01 18:07:51 +01:00
Cédric Krier ddc997adee Close the SQLite connection to memory database when the database has been dropped
Instead of relying on the garbage collector to close the connection by deleting
the object, this ensures that the memory database is actually dropped before a
new connection is instantiated and keep the database.

Closes #13796
(grafted from 0a2239fb548b5b20a9ae4d4a8c8c6c34cfed5683)

--HG--
branch : 6.0
2025-01-16 09:47:25 +01:00
Cédric Krier 6caa2667d4 Allow running field binary tests with a non memory SQLite database
By setting the filestore path as a global variable, we can modify it for the
test without changing the database path where the SQLite databases are stored.

Closes #13792
(grafted from b431c4c5ddcf6556dcfd502bad748e18d596040a)

--HG--
branch : 6.0
2025-01-05 16:02:39 +01:00
Cédric Krier b9fea7e676 Instantiate One2One target when the context of the field
Closes #13819
(grafted from 0b5ee6e071f83054de3a0c518318c4d1bd11d449)

--HG--
branch : 6.0
2025-01-14 01:19:00 +01:00
Cédric Krier adb25fa580 Expand dictionary value set to a One2One field
Closes #13818
(grafted from 6fa9bacb3d4bbd534f88c945e0dddf6bfef3e4a6)

--HG--
branch : 6.0
2025-01-14 01:07:33 +01:00
Cédric Krier 38823285cc Remove python type inherited from Many2Many of One2One
The python type is used to test the type of value set but for One2One it is an
instance which can not be tested with a simple Python type.

Closes #13817
(grafted from 34725c999ed27d30323e3dbc605b5c8522c8b924)

--HG--
branch : 6.0
2025-01-14 01:04:46 +01:00
Cédric Krier 3970ae4b5f Increase version number
--HG--
branch : 6.0
2025-01-01 20:28:55 +01:00
Cédric Krier bae29644a1 Prepare release trytond-6.0.57
--HG--
branch : 6.0
2025-01-01 20:28:42 +01:00
Cédric Krier 2ededea81f Include the depends of the getter function when depending on a Function field
Since c47b3642f1a6, the getter of a Function field may be called if there is no
value set for it on the instance.
In the on_change context, this may set the missing fields to None if they were
not defined in the depends of the method called. In addition to compute a wrong
value, those fields are then returned as modified.

Closes #13735
(grafted from 1b815539165a1212fc5c415c8920d8f5f0c55236)

--HG--
branch : 6.0
2024-12-05 16:25:16 +01:00
Cédric Krier fcd634c52e Increase version number
--HG--
branch : 6.0
2024-12-16 18:57:09 +01:00
Cédric Krier 40bcb4ecbd Prepare release trytond-6.0.56
--HG--
branch : 6.0
2024-12-16 18:56:52 +01:00
Cédric Krier 8e261df793 Do not check for integrity error the required fields with set method
Closes #13745
(grafted from 55087fb59fc93731a341c3436c5cbc99ea4cf3b1)

--HG--
branch : 6.0
2024-12-11 11:02:07 +01:00
Cédric Krier 7161339920 Increase version number
--HG--
branch : 6.0
2024-12-01 19:44:35 +01:00
Cédric Krier cc4e590f09 Prepare release trytond-6.0.55
--HG--
branch : 6.0
2024-12-01 19:44:23 +01:00