Commit Graph
58074 Commits
Author SHA1 Message Date
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
Cédric Krier 9e4e60c9b8 Increase version number
--HG--
branch : 7.0
2024-04-17 12:45:23 +02:00
Cédric Krier d38daa1e53 Add tag account_payment_clearing-7.0.2
--HG--
branch : 7.0
2024-04-17 12:45:13 +02:00
Cédric Krier cfe8f8a3ba Prepare release account_payment_clearing-7.0.2
--HG--
branch : 7.0
2024-04-17 12:45:12 +02:00
Cédric Krier b3fedde0dc Increase version number
--HG--
branch : 7.0
2024-04-17 12:42:12 +02:00
Cédric Krier 51c359d1ed Add tag account_payment_stripe-7.0.3
--HG--
branch : 7.0
2024-04-17 12:42:04 +02:00
Cédric Krier 47b7a31e07 Prepare release account_payment_stripe-7.0.3
--HG--
branch : 7.0
2024-04-17 12:42:03 +02:00
Cédric Krier 851b8abb63 Increase version number
--HG--
branch : 7.0
2024-04-17 12:41:20 +02:00
Cédric Krier 075e9d5ff4 Add tag account_statement_mt940-7.0.1
--HG--
branch : 7.0
2024-04-17 12:41:13 +02:00
Cédric Krier a7844f55e6 Prepare release account_statement_mt940-7.0.1
--HG--
branch : 7.0
2024-04-17 12:41:12 +02:00
Cédric Krier f0d2e98782 Increase version number
--HG--
branch : 7.0
2024-04-17 12:40:58 +02:00
Cédric Krier 09010fd661 Add tag purchase-7.0.3
--HG--
branch : 7.0
2024-04-17 12:40:48 +02:00
Cédric Krier 86e8a5ac1d Prepare release purchase-7.0.3
--HG--
branch : 7.0
2024-04-17 12:40:46 +02:00
Cédric Krier 8548f76ba6 Increase version number
--HG--
branch : 7.0
2024-04-17 12:40:34 +02:00
Cédric Krier 4a1a0da958 Add tag sale-7.0.3
--HG--
branch : 7.0
2024-04-17 12:40:25 +02:00
Cédric Krier c840e39c67 Prepare release sale-7.0.3
--HG--
branch : 7.0
2024-04-17 12:40:24 +02:00
Cédric Krier 81c97bedca Increase version number
--HG--
branch : 7.0
2024-04-17 12:37:44 +02:00
Cédric Krier 330506749f Add tag sale_advance_payment-7.0.2
--HG--
branch : 7.0
2024-04-17 12:37:37 +02:00