Commit Graph
58091 Commits
Author SHA1 Message Date
Cédric Krier ee1e71331d Prepare release tryton-7.0.10
--HG--
branch : 7.0
2024-05-01 11:14:12 +02:00
Cédric Krier 1463aa57e8 Increase version number
--HG--
branch : 7.0
2024-05-01 11:09:20 +02:00
Cédric Krier 93f6b3e327 Add tag trytond-7.0.11
--HG--
branch : 7.0
2024-05-01 11:09:04 +02:00
Cédric Krier a2a61fb5dc Prepare release trytond-7.0.11
--HG--
branch : 7.0
2024-05-01 11:09:03 +02:00
Cédric Krier 951ffbf946 Support loading plugins without sources
cx_Freeze include only the bytecodes version of the translation plugin.

Closes #13208
(grafted from c06fd05a195bfb9bae5dd388a366c0d58c2005a4)

--HG--
branch : 7.0
2024-04-23 13:38:29 +02:00
Cédric Krier 67eb9531f0 Use find_packages to fill packages for build_exe
Otherwise cx_Freeze does not include the translation plugin as it is
dynamically loaded.

Closes #13208
(grafted from 0ab3cefbe003fb39da8b2f3dbb265743ed763f36)

--HG--
branch : 7.0
2024-04-23 13:19:54 +02:00
Cédric Krier 5623f2bcf6 Use id as default payee value on pay invoice wizard
Closes #13140
(grafted from 1a12707bd33d013f3f1853e7843742727018abf6)

--HG--
branch : 7.0
2024-04-21 15:33:42 +02:00
Cédric Krier 956b5d8136 Check only shipment with cost method 'order' to invoice shipment cost on order
If the sale is linked to a shipment with a different cost method than order,
it should not be considered to decide to invoice or not the sale shipment
cost.

Closes #13171
(grafted from f290dbb1479d4a4e4aabb2f66d93bf4e042f42e6)

--HG--
branch : 7.0
2024-04-08 17:45:01 +02:00
Cédric Krier a6e822f877 Depends on xxx2many fields when they are assigned by a change function
Closes #13099
(grafted from 4a24c323d44a3b5ab440b1bafc4b3b9005500642)

--HG--
branch : 7.0
2024-04-22 08:59:48 +02:00
Cédric Krier 07502cc23c Trigger record saved after reload ids when execute button
The buttons of the toolbar must be updated after having saved the current
record.

Closes #13125
(grafted from 03b3f3d5a60c9dbb6268a20fdd8f0c56157272b4)

--HG--
branch : 7.0
2024-04-21 15:23:18 +02:00
Cédric Krier ec568c1e79 Ensure current record has been saved before execute button action
(grafted from 8d4e44642bd96d29436f327eb9eba591214fb7e7)

--HG--
branch : 7.0
2024-04-21 15:25:14 +02:00
Cédric Krier f30d8934cb Wait for display to finish when reloading record
(grafted from 9023fdf384db2961e4dea922f5194b09f879834f)

--HG--
branch : 7.0
2024-04-21 15:24:26 +02:00
Cédric Krier 4e0ddf60fa Fallback to default model access if RPC request fails
(grafted from 5680160a1ab68e8e30e05265aef34eea44be0139)

--HG--
branch : 7.0
2024-04-18 19:22:07 +02:00
Cédric Krier 680d515c2a Encode with gzip only if a session exists
Since 1923117e935d the server does not accept compressed content for
unauthenticated request.
(grafted from 97cbe01195da6938e7f718d07e436c8a2856e3a2)

--HG--
branch : 7.0
2024-04-18 19:15:47 +02:00
Cédric Krier 2b48cf703f Do not display cancelled moves in shipment reports
Closes #13202
(grafted from 29176a5201d492908cbb816b8fed9492bb6fdc8e)

--HG--
branch : 7.0
2024-04-18 14:49:49 +02:00
Cédric Krier d92c741136 Compute cache key for record rules using all models
As model can inherit the access rules from another, the key must include the
keys of those other models.

Closes #13162
(grafted from b04f36d27c78663851f6859e266aac203afd7600)

--HG--
branch : 7.0
2024-04-17 20:22:10 +02:00
Cédric Krier d1484be87e Use strict locale parsing for date and datetime
Closes #12314
(grafted from 484efc68bef80fe1492d1efdac2a0484ff2eee05)

--HG--
branch : 7.0
2024-04-11 13:04:01 +02:00
Cédric Krier ea942a8f97 Fill tax rule pattern with default empty countries
A rule line for a country is not expected to be used when the country is
unknown.

Closes #13169
(grafted from cea3c89a740248a84ce48a906f1b1c33ba0fac5e)

--HG--
branch : 7.0
2024-04-08 12:13:33 +02:00
Adrià Tarroja Caubet 8d9773f85b Clear view toolbar cache when email templates are modified
Closes #13072
(grafted from aaced85022248371ebea50482914d5df13bb477e)

--HG--
branch : 7.0
2024-04-21 17:29:41 +02:00
Cédric Krier 29c8790c40 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 : 7.0
2024-04-18 19:28:04 +02:00
Cédric Krier 024e58b716 Use jQuery remove to remove children row elements
We can not rely on the row node to always have a parent node as toggle_row is
a callback to an event that can be executed after the row has already be
removed from the DOM.

Closes #13198
(grafted from 7e3ab58418656857275f3888386d840ca336858f)

--HG--
branch : 7.0
2024-04-16 09:16:24 +02:00
Cédric Krier e270e564e1 Set value in editable tree using the editable linked to the renderer
Closes #13078
(grafted from 56282fb2dc5fb61b7f41a3fee36ec3df082384c2)

--HG--
branch : 7.0
2024-04-14 17:12:52 +02:00
Cédric Krier e9c214e303 Always raise RPCException in RPCExecute
So when calling RPCExecute without processing exception, all exceptions can be
catch with RPCException.

Closes #12874
(grafted from 372dbf53977e872ae62dbc8d6ce5bdc3bcacec69)

--HG--
branch : 7.0
2024-04-14 11:07:33 +02:00
Cédric Krier 0e197d5eec Parse text as datetime when it is a string
The on_paste method is calling value_from_text for each widget using the
string from the clipboard.
So textual value needs to be supported even for date and time widgets which
uses a cell renderer that provides datetime value.

Closes #12860
(grafted from 06448d7bdb976b7057a465ca332bbc638e91653e)

--HG--
branch : 7.0
2024-04-14 10:56:27 +02:00
Cédric Krier 3d976ba795 Test if current view is defined on screen before using it
Closes #13178
(grafted from 6f0ae4c7719fbf129ffd0221aa9b1fa008df23e2)

--HG--
branch : 7.0
2024-04-13 15:35:15 +02:00
Cédric Krier 3c67364ddd Test if user has a company before using it in letter report
Closes #13174
(grafted from 532ac5ce0458557de16512c2751c2e394924e7e1)

--HG--
branch : 7.0
2024-04-13 15:04:45 +02:00
Cédric Krier e41c237bc0 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 : 7.0
2024-04-13 15:00:52 +02:00
Cédric Krier 00757cfb12 Do not fail to get product location for shipment without warehouse
The warehouse of internal shipment is computed and may be empty if the from
location does not have a warehouse.

Closes #13129
(grafted from f4f85f4d31f0afe83bb8662d1c15ceecadbd753e)

--HG--
branch : 7.0
2024-04-13 13:52:43 +02:00
Cédric Krier b243bdb4fa Fix call to warn method of logger
Closes #13179
(grafted from 0dd9d993f1cfd1b3b9b83e1108e0ffbf193c87ad)

--HG--
branch : 7.0
2024-04-11 19:46:48 +02:00
Maxime Richez 98d89d896c Decorate pack button of customer shipment when extending it for shipping
Closes #13131
(grafted from 710bafa013393a2ebd3731d890fad427c75df1f1)

--HG--
branch : 7.0
2024-04-15 16:20:31 +02:00
Adrià Tarroja Caubet 53b0e25d3d Fix typo when searching euro to get intrastat currency
Closes #13201
(grafted from 61e80b049607949aa9e6055f3942b13c81ad9f22)

--HG--
branch : 7.0
2024-04-18 10:12:18 +02:00
Cédric Krier 27ad262c68 Do not try to round or convert list price of project revenue
By using list_price_used we are sure to have a list price in the company
currency so there is not need for conversion.
Also list price of a product can be empty so we should not try to round it.

Closes #13110
(grafted from 710927560bfe722fc02c0d22bbdf2c1615f787a7)

--HG--
branch : 7.0
2024-04-10 18:06:23 +02:00
Cédric Krier 2cf3c4a317 Test if queue batch is boolean
In Python bool type is a subtype of integer so it must be tested first.
Also by converting other types to int, we catch any other wrong types.

Closes #13133
(grafted from 2c7c6983eecc716cddc3dcfce7c417e902257df0)

--HG--
branch : 7.0
2024-04-13 14:20:21 +02:00
Cédric Krier 4309eefced Do not fail to compute record name of opportunity reporting without employee
Closes #13114
(grafted from 6cdbfed2effb3f71b3f688564de4471da095546f)

--HG--
branch : 7.0
2024-04-10 18:13:54 +02:00
Cédric Krier 8fc1fe62e7 Do not fail when testing if account is set on invoice line for project
If there is no product defined on the project, the call to on_change_product
for the invoice line does not set the account field.

Closes #13111
(grafted from 01992016f36efdf8576a2453a084ba642e43d74f)

--HG--
branch : 7.0
2024-04-10 17:56:20 +02:00
Cédric Krier 78a6017ae8 Test if contextual company id is positive before using it
Closes #13176
(grafted from fa023763f7b00cd4fbfa9e818bf25db9e259cfbd)

--HG--
branch : 7.0
2024-04-10 11:25:11 +02:00
Cédric Krier 3b36968b65 Set visibility property always to the entry widget
When the password widget has autocomplete activated, the entry is a combobox.

Closes #13166
(grafted from e159bd2cd8bf9aa408ce8cda144ef41195f01ea3)

--HG--
branch : 7.0
2024-04-05 18:09:19 +02:00
Cédric Krier d17baa1452 Do not hide visibility checkbox on readonly password
Closes #13165
(grafted from d5e4cb50c2bcfd90ab0e8b09679f5b435bbb681e)

--HG--
branch : 7.0
2024-04-05 18:06:23 +02:00
Cédric Krier 87135f32d5 Always return float for invoice or moves progress
The fields are Float so they must return a float.
(grafted from 68824d0fd7e6b7568db499d0a6594476c7f9ab66)

--HG--
branch : 7.0
2024-04-04 15:12:21 +02:00
Maxime Richez ece062ecf4 Allocate also shipment cost of 0
Closes #13155
(grafted from 9a2d0edb8d8b3903e47b74bc339ba4d2ec6df097)

--HG--
branch : 7.0
2024-04-13 19:13:44 +02:00
Ahmed AlBoori 67bb5d05df Use positional argument when applying account receivable rule
The ModelView.button decorator is expected first positional argument to be
named records so we can not use keyword argument in this case.

Closes #13063
(grafted from d860272ff5b1f8e707cc29a358c288e7a83dbe70)

--HG--
branch : 7.0
2024-03-02 06:11:36 +03:00
Ahmed AlBoori c8ce760192 Correct Account Receivable Rule Model Name
Closes #13063
(grafted from 008beeeb86d7045d956e9894a606f31fe2f1d0d1)

--HG--
branch : 7.0
2024-02-28 23:33:19 +03:00
Nicolas Évrard b0ae3e4fa5 Check for the existence of a screen before restoring size of wizard's dialog window
Closes #12944
(grafted from af40ac94803e01092fccbdc553cc772f251b9abd)

--HG--
branch : 7.0
2024-04-13 17:42:02 +02:00
Cédric Krier 4c1cb2a9d3 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 : 7.0
2024-03-13 08:42:10 +01:00
Cédric Krier ed86a4525e Increase version number
--HG--
branch : 7.0
2024-04-17 12:46:11 +02:00
Cédric Krier 4e9e0b6e72 Add tag account-7.0.6
--HG--
branch : 7.0
2024-04-17 12:46:00 +02:00
Cédric Krier 8f7e83b77d Prepare release account-7.0.6
--HG--
branch : 7.0
2024-04-17 12:45:58 +02:00
Cédric Krier e7b10d1406 Increase version number
--HG--
branch : 7.0
2024-04-17 12:45:47 +02:00
Cédric Krier 23d862429e Add tag account_invoice-7.0.4
--HG--
branch : 7.0
2024-04-17 12:45:38 +02:00
Cédric Krier b6ee288b05 Prepare release account_invoice-7.0.4
--HG--
branch : 7.0
2024-04-17 12:45:37 +02:00