Commit Graph
4709 Commits
Author SHA1 Message Date
Cédric Krier aa0e0caaa3 Increase version number
--HG--
branch : 6.0
2024-08-01 21:33:02 +02:00
Cédric Krier b2e89f6389 Prepare release trytond-6.0.50
--HG--
branch : 6.0
2024-08-01 21:32:46 +02:00
Cédric Krier 0507d6b0c7 Do not store empty list for MultiSelection key of Dict
Closes #13376
(grafted from 15a76a9d124c436ccbc1d9a9d9cde94731be8cde)

--HG--
branch : 6.0
2024-06-30 01:55:55 +02:00
Cédric Krier 0a5bf1ceb6 Increase version number
--HG--
branch : 6.0
2024-07-17 23:37:34 +02:00
Cédric Krier 1f0e65d1c8 Prepare release trytond-6.0.49
--HG--
branch : 6.0
2024-07-17 23:37:17 +02:00
Cédric Krier 57a1398ef5 Cast numeric columns for order expression on SQLite
Closes #13397
(grafted from 97e889240413ac521a15dc81453499bb888039c0)

--HG--
branch : 6.0
2024-07-13 15:35:01 +02:00
Cédric Krier cba76e245a Set type declaration in column names of SQLite only on top-level query
Closes #12532
(grafted from c07764f86f1655997d1271a5d2b30b9607a02a72)

--HG--
branch : 6.0
2024-06-30 16:25:41 +02:00
Cédric Krier 74a69ef57d Fix test_set_key of FieldDictTestCase
Closes #13314
(grafted from 00f2b092c74fd4b8974a464f7685f24e71a6e025)

--HG--
branch : 6.0
2024-06-08 17:19:40 +02:00
Cédric Krier fb6ae4953f Increase version number
--HG--
branch : 6.0
2024-06-15 11:03:52 +02:00
Cédric Krier d42e12f425 Prepare release trytond-6.0.48
--HG--
branch : 6.0
2024-06-15 11:03:37 +02:00
Cédric Krier 41d735ab4d Do not convert to False when importing translated translated which is empty
Closes #13276
(grafted from 6e744a5da63179ef8f8d2bc2ed69e6188163d618)

--HG--
branch : 6.0
2024-05-22 18:07:32 +02:00
Cédric Krier 4bf8dfb182 Do not commit readonly transaction even with channel
Even if the backend allows NOTIFY query on readonly transaction, it is strange
to commit readonly transaction because the backend may not enforce the
readonly.
Also commit performs other actions that may not be wanted like commit
datamanager or clear cache.
A procedure that requires to perform a NOTIFY should have a non-readonly
transaction.

Closes #12542
(grafted from 03611153e9bc9a0d169447c4ca946ad49c81ad47)

--HG--
branch : 6.0
2024-05-23 14:22:42 +02:00
Cédric Krier cf8f04be0b Use a readonly transaction to load module without update
Closes #12542
(grafted from 62775217456fe35fcc19a49d527f3baba67b0149)

--HG--
branch : 6.0
2024-05-23 14:18:51 +02:00
Cédric Krier e3d5d30060 Increase version number
--HG--
branch : 6.0
2024-06-02 17:58:05 +02:00
Cédric Krier 6dc96c5b9b Prepare release trytond-6.0.47
--HG--
branch : 6.0
2024-06-02 17:57:52 +02:00
Nicolas Évrard fd2dbc8ad3 Use English when fetching records from the database
Closes #13204
(grafted from f4d5c22dd02905eb6007b5661d720147ee6ce1fe)

--HG--
branch : 6.0
2024-04-18 19:00:34 +02:00
Cédric Krier 61b8e0e1e6 Increase version number
--HG--
branch : 6.0
2024-05-01 11:10:32 +02:00
Cédric Krier 3e789b270f Prepare release trytond-6.0.46
--HG--
branch : 6.0
2024-05-01 11:10:15 +02:00
Adrià Tarroja Caubet 8194ea8ab1 Clear view toolbar cache when email templates are modified
Closes #13072
(grafted from aaced85022248371ebea50482914d5df13bb477e)

--HG--
branch : 6.0
2024-04-21 17:29:41 +02:00
Cédric Krier e6fe291bde Prevent to get user_id from request without view_args
If user_id is accessed before view_args has been setup, we should not cache
`None` as value but instead raise an exception.
The `user_id` may be accessed before the mapping if the request is logged
because the representation of the request used the `rpc_method` which needs to
parse the request data. But since 1923117e935d parsing compressed content is
only allowed for request with `user_id`.
So we can no more include the `rpc_method` is the request has not yet been
mapped and so it has a `view_args`.

Closes #13203
(grafted from 0630029c1d5a0a2c7bd45086957f2e0fbed4c427)

--HG--
branch : 6.0
2024-04-18 19:28:04 +02:00
Cédric Krier bffbc47e1c Use function to not copy custom report content
The Function fields are not copied so it is the storage field that must have a
default value.

Closes #13170
(grafted from 96d629fe11a710b395d9981881c5dfda1674becf)

--HG--
branch : 6.0
2024-04-13 15:00:52 +02:00
Cédric Krier e68d2fb949 Remove ending commit when loading modules
The commit call was added by a6624f31ff20 to release lock because Cache.resets
was called inside the transaction.
But Cache.resets was removed in a83631f4ba67 and Cache does not create any new
transaction since.
And since 2fd8c5f88265 the transaction is even committed only on module
update.
(grafted from 0548d73c7ce3b4e07b6b76007f2592ed2be945ff)

--HG--
branch : 6.0
2024-03-13 08:42:10 +01:00
Cédric Krier 7b140442fc Increase version number
--HG--
branch : 6.0
2024-04-17 12:29:12 +02:00
Cédric Krier 092b3e1d18 Prepare release trytond-6.0.45
--HG--
branch : 6.0
2024-04-17 12:28:58 +02:00
Cédric Krier 58ff5d1447 Do not accept compressed content from unauthenticated request
Closes #13142
(grafted from 1923117e935de62276352585185ced6d854bcb3d)

--HG--
branch : 6.0
2024-04-17 10:20:39 +02:00
Cédric Krier 8bbd5f647b Do not commit new transaction for database error processing
(grafted from 15d80de804c51a5557fae817f697201f08abfa99)

--HG--
branch : 6.0
2024-04-02 00:34:25 +02:00
Nicolas Évrard 1ffdad78ce Use PYSON's Bool evaluation for PYSON's Not evaluation
Closes #13096
(grafted from 009133813b11f264b5e038dc9c5912dc9e0101cb)

--HG--
branch : 6.0
2024-03-11 16:35:39 +01:00
Cédric Krier 083b85c718 Do not round Decimal to validate digits
Decimal may raise an InvalidOperation error if the context does not allow the
needed precision.
But rounding is not necessary for Decimal as we can just test the exponent
from the tuple version.

Closes #13138
(grafted from 776889be97e4c1b8917a9090338511d8008c625b)

--HG--
branch : 6.0
2024-03-28 09:25:55 +01:00
Cédric Krier 891e1d0f81 Increase version number
--HG--
branch : 6.0
2024-04-04 09:39:38 +02:00
Cédric Krier 4e1bc3d08f Prepare release trytond-6.0.44
--HG--
branch : 6.0
2024-04-04 09:39:24 +02:00
Cédric Krier 2c82990fb8 Do not stop pool on refresh if modules list is empty
A Pool.refresh may be triggered on Pool.init if a cache listener is started by
the new transaction of load_modules. In such cache the pool is empty just
after the init.

Closes #13101
(grafted from 4c210ce062018f7021c2ac5328d558ca8e9899fa)

--HG--
branch : 6.0
2024-03-17 18:10:19 +01:00
Cédric Krier 4da191fd3c Remove readthedocs
(grafted from 2f67994e59b0bca29d7b0632a51540774b109140)

--HG--
branch : 6.0
2024-03-04 00:52:20 +01:00
Cédric Krier 57c90f1f36 Increase version number
--HG--
branch : 6.0
2024-03-03 13:03:47 +01:00
Cédric Krier 85841ec417 Prepare release trytond-6.0.43
--HG--
branch : 6.0
2024-03-03 13:03:29 +01:00
Cédric Krier 86b9bc0823 Clear transaction tasks on retry of with_transaction decorator
Closes #13008
(grafted from 6ba5facee41af77e391409382d9aef7a6b4b576a)

--HG--
branch : 6.0
2024-02-06 13:26:34 +01:00
Cédric Krier 74c7ec3685 Increase version number
--HG--
branch : 6.0
2024-02-15 19:26:55 +01:00
Cédric Krier 2cbaf7b2fc Prepare release trytond-6.0.42
--HG--
branch : 6.0
2024-02-15 19:26:38 +01:00
Cédric Krier 123cc415ef Define explicitly escape char used for like operators
For now we rely on the default value set by python-sql but SQL-92 does not
define a default value.

Closes #12933
(grafted from 659160cd1681a6a1bc98d51a97d7765ee8d31714)

--HG--
branch : 6.0
2024-01-14 13:32:27 +01:00
Cédric Krier fa4f2eac78 Increase version number
--HG--
branch : 6.0
2024-02-03 11:59:03 +01:00
Cédric Krier ced8d807ba Prepare release trytond-6.0.41
--HG--
branch : 6.0
2024-02-03 11:58:39 +01:00
Cédric Krier 57b96bc3df Add template filters after being cached
The MemoryCache copy the stored template since 7bbbb91621ab but Genshi
Template clear the filters when copied.

Closes #12963
(grafted from 3111fe5130705da70e46b07e4b7cb47012430964)

--HG--
branch : 6.0
2024-01-28 00:34:12 +01:00
Cédric Krier 951618e3d6 Prevent modify mutable cached value
The cached values are copied when set and copied again when returned so the
stored values can never be modified.

Closes #9558
(grafted from 7bbbb91621ab3759dfdc04de3aa1754c89ef145d)

--HG--
branch : 6.0
2024-01-15 23:48:50 +01:00
Cédric Krier 79a23ca262 Display the actual wrong ids in domain rule error message
Closes #12907
(grafted from 4ebe825f8202d35630c08b0fbd5d1c93bd9124c3)

--HG--
branch : 6.0
2024-01-07 19:11:58 +01:00
Cédric Krier f457409f1b Increase version number
--HG--
branch : 6.0
2024-01-16 00:09:16 +01:00
Cédric Krier ebfaadbc8c Prepare release trytond-6.0.40
--HG--
branch : 6.0
2024-01-16 00:08:59 +01:00
Cédric Krier cafa0ca21d Do not fail to get keyword action with empty record id
Closes #12767
(grafted from 9b28b3b64550681b1ff2b37c7dcaa82874032c42)

--HG--
branch : 6.0
2023-12-23 18:50:58 +01:00
Cédric Krier 95208803b3 Instantiate list of ids when exporting data with domain as list of ids
Closes #12868
(grafted from 645ee58d8a4ae278cd2613ff2b16cc0b859046a8)

--HG--
branch : 6.0
2023-12-23 18:26:00 +01:00
Cédric Krier a61494e8a8 Increase version number
--HG--
branch : 6.0
2023-12-16 10:51:26 +01:00
Cédric Krier 5675414be1 Prepare release trytond-6.0.39
--HG--
branch : 6.0
2023-12-16 10:51:11 +01:00
Hartmut Goebel 2ca461397f 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
(grafted from 91a09102ec61a08f57868bc9f030fdcb9ab831c8)

--HG--
branch : 6.0
2023-11-19 12:16:03 +01:00