Commit Graph
4693 Commits
Author SHA1 Message Date
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
Nicolas Évrard 05a1cf6707 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
(grafted from d51b0990639d7ca0ac289dc08f56fd84a14e3e89)

--HG--
branch : 6.0
2023-11-16 23:37:19 +01:00
Cédric Krier 99fb574dfd 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
(grafted from 3055098129d4afbf82af5fa527e3d3e357ea7021)

--HG--
branch : 6.0
2023-11-26 17:12:40 +01:00
Nicolas Évrard 888653e08d Filter history lines matching search when they're too old
Closes #12687
(grafted from f7ff1a181c0d031ea10fea722fa781885f0aec73)

--HG--
branch : 6.0
2023-11-03 19:07:11 +01:00
Cédric Krier 7b92ab380a Increase version number
--HG--
branch : 6.0
2023-11-17 19:33:10 +01:00
Cédric Krier d153811c9a Prepare release trytond-6.0.38
--HG--
branch : 6.0
2023-11-17 19:32:53 +01:00
Cédric Krier 71b8ab0f2d Avoid race condition when making directories for database cache
(grafted from b67ad422ba5062b82ffc5022cc6490564af2477f)

--HG--
branch : 6.0
2023-11-01 13:27:36 +01:00
Cédric Krier 6a73f7423e Avoid race condition when making directories for filestore
Closes #12696
(grafted from a1e568d36b05a33a91c6515cef6a4695429d7566)

--HG--
branch : 6.0
2023-11-01 13:26:37 +01:00
Cédric Krier da2f6fcbd0 Increase version number
--HG--
branch : 6.0
2023-11-03 17:46:52 +01:00
Cédric Krier 9e75ccd57a Prepare release trytond-6.0.37
--HG--
branch : 6.0
2023-11-03 17:46:35 +01:00
Cédric Krier 166280687c 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
(grafted from cfbc9e902c1d5f9bc299b536b495a98fda380369)

--HG--
branch : 6.0
2023-10-21 14:12:12 +02:00
Cédric Krier 87086931cc Use assert_not_called in Mock instead of calling not_called
(grafted from b097604b69b899117a9d3c00c3fdae8487356e48)

--HG--
branch : 6.0
2023-10-23 09:34:26 +02:00
Cédric Krier 343a431b8b Do not include depends of field without read access to view definition
Closes #12640
(grafted from b41c36a66c64974a8c5965cd111526df1574c2b1)

--HG--
branch : 6.0
2023-10-12 16:28:54 +02:00
Cédric Krier 24058779c6 Return None when date_trunc is called with NULL in SQLite
Closes #12649
(grafted from 20cdeff55e33886505d9d627b06c5943683653da)

--HG--
branch : 6.0
2023-10-17 17:09:36 +02:00
Maxime Richez a8d28ddca8 Allow to send email without files to attach
Closes #12645
(grafted from 177d9695220f1ec64eab311e11ff7c97b1880cfb)

--HG--
branch : 6.0
2023-10-16 16:48:40 +02:00
Cédric Krier ae29cc72c5 Do not store in transaction cache instances of Reference fields
If the target of the Reference field is deleted, the transaction cache is not
cleared because there is no "ON DELETE" support for Reference field. Instead
the ids are checked in the Reference.get method.

Closes #12599
(grafted from 7f25936732310704ad6296d5ab3f35e3276e2157)

--HG--
branch : 6.0
2023-09-28 17:44:29 +02:00
Cédric Krier b6bf82de3d Do not uniquely sort list in Dict field without schema
When there is no schema, the list values are not for a MultiSelection entry.

Closes #12417
(grafted from aedd6a22eabc62538664c0127739ac02acd8f429)

--HG--
branch : 6.0
2023-07-19 22:02:49 +02:00