Commit Graph
58086 Commits
Author SHA1 Message Date
Cédric Krier 2500e09ce2 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
2024-04-16 09:16:24 +02:00
Cédric Krier 04fc53ce9a Rename prefixes/suffixes as cells and make them private 2024-04-14 17:16:39 +02:00
Cédric Krier 0845b8c1fa Set value in editable tree using the editable linked to the renderer
Closes #13078
2024-04-14 17:12:52 +02:00
Cédric Krier 8f97b59e25 Catch only RPCException on RPCExecute without exception processing 2024-04-14 11:18:31 +02:00
Cédric Krier 7d3dc69bd8 Always raise RPCException in RPCExecute
So when calling RPCExecute without processing exception, all exceptions can be
catch with RPCException.

Closes #12874
2024-04-14 11:07:33 +02:00
Cédric Krier d1dbfd6a82 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
2024-04-14 10:56:27 +02:00
Cédric Krier 95aa57c72c Test if current view is defined on screen before using it
Closes #13178
2024-04-13 15:35:15 +02:00
Cédric Krier 7af1012be3 Test if user has a company before using it in letter report
Closes #13174
2024-04-13 15:04:45 +02:00
Cédric Krier b2ccdd1d9c 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
2024-04-13 15:00:52 +02:00
Cédric Krier cf02996a09 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
2024-04-13 13:52:43 +02:00
Cédric Krier e0801df2f6 Fix call to warn method of logger
Closes #13179
2024-04-11 19:46:48 +02:00
Maxime Richez 491fb6330b Do not check access when checking warnings
Closes #13131
2024-04-15 16:22:05 +02:00
Maxime Richez 507079741c Decorate pack button of customer shipment when extending it for shipping
Closes #13131
2024-04-15 16:20:31 +02:00
Adrià Tarroja Caubet 6d37785d85 Fix typo when searching euro to get intrastat currency
Closes #13201
2024-04-18 10:12:18 +02:00
Cédric Krier c32a98f66c 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
2024-04-10 18:06:23 +02:00
Cédric Krier dda35caa21 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
2024-04-13 14:20:21 +02:00
Cédric Krier 1f2b9e15c3 Test using the icon name if it was loaded
Closes #13193
2024-04-11 19:29:30 +02:00
Cédric Krier 11b092a61b Do not fail to compute record name of opportunity reporting without employee
Closes #13114
2024-04-10 18:13:54 +02:00
Cédric Krier e69fbf7a9e Convert recursive calls of reconcile accounts wizard into loop
The recursive calls may reach the Python recursion limit if there are a lot of
accounts and parties to process.
So converting the recursion into a loop prevent reaching this limit.

Closes #13164
2024-04-05 14:39:23 +02:00
Cédric Krier de9136eed7 Do not accept compressed content from unauthenticated request
Closes #13142
2024-04-17 09:47:20 +02:00
Cédric Krier 4ecca33e0e 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
2024-04-10 17:56:20 +02:00
Cédric Krier 1f470cb4d1 Return currency instance instead of id in party getter 2024-04-10 11:25:48 +02:00
Cédric Krier b0335a27b0 Test if contextual company id is positive before using it
Closes #13176
2024-04-10 11:25:11 +02:00
Cédric Krier bf7f66afe6 Set visibility property always to the entry widget
When the password widget has autocomplete activated, the entry is a combobox.

Closes #13166
2024-04-05 18:09:19 +02:00
Cédric Krier b41e204d83 Do not hide visibility checkbox on readonly password
Closes #13165
2024-04-05 18:06:23 +02:00
Cédric Krier 8d4fd4ebb6 Fix setting view type attribute on Tab
Set nothing if there is no current tab and use the correct attribute to
retrieve the current view type.

Closes #13192
2024-04-11 19:26:13 +02:00
Cédric Krier de7bd32700 Do not copy products, categories and images to web shop
Closes #13161
2024-04-04 15:55:01 +02:00
Cédric Krier b0d38bd797 Set invoice progress of shipment cost line of sale always as 100%
Closes #13160
2024-04-04 15:13:36 +02:00
Cédric Krier 3a25fc0df9 Always return float for invoice or moves progress
The fields are Float so they must return a float.
2024-04-04 15:12:21 +02:00
Cédric Krier 07d0a29bdc Do not accept anymore datetime with null time as date
Closes #13135
2024-03-27 12:42:24 +01:00
Maxime Richez f2353c8f6a Allocate also shipment cost of 0
Closes #13155
2024-04-13 19:13:44 +02:00
Sergi Almacellas Abellana fc5edbbd8f Include uom access rule under updatable data 2024-04-03 11:24:04 +02:00
Ahmed AlBoori 844c2b503a Add scenario to test receivable rules on statement
#13063
2024-04-13 18:10:13 +02:00
Ahmed AlBoori 6d57f3498c 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
2024-03-02 06:11:36 +03:00
Ahmed AlBoori fbd83cfeb2 Correct Account Receivable Rule Model Name
Closes #13063
2024-02-28 23:33:19 +03:00
Nicolas Évrard a73b28ce96 Check for the existence of a screen before restoring size of wizard's dialog window
Closes #12944
2024-04-13 17:42:02 +02:00
Cédric Krier 38037cb8c5 Reset sales to state quotation to avoid duplicate log entries
Closes #13159
2024-04-04 12:51:18 +02:00
Cédric Krier b50911d36c Do not deduce current payment from the amount of the sale
Closes #13157
2024-04-02 16:47:01 +02:00
Cédric Krier 70f068b318 Return False on the callback on readonly window Form
When a readonly Form is closed, the callback result should always be False as
the opened record has not changed.

Closes #13156
2024-04-02 16:39:06 +02:00
Cédric Krier 89c1127952 Enforce clearing account type only on draft payment
As the receivable, payable type may evolve over time, only draft state should
enforce it.

Closes #13145
2024-03-30 11:32:22 +01:00
Cédric Krier 79e5ab807d Set posting employee only when using button
As the posted by employee field can not be modified once the invoice is
posted, the employee must be set only when it is an action of the user.
On processing the invoice, it is the internal posting method that must be used
so no employee is set nor any other warning checks.

Closes #13124
2024-03-25 10:17:35 +01:00
Cédric Krier a240337a51 Do not commit new transaction for database error processing 2024-04-02 00:34:25 +02:00
Cédric Krier 0c3f88b776 Wrap transaction description into a single line to store as origin description
Since a2f811ed0e99 it is not allowed to store multiline in Char field.

Closes #13123
2024-03-25 00:19:23 +01:00
Cédric Krier f71e90a7f3 Put gir libraries under lib also for Windows
cf5adeee978b did it for darwin but it is also useful for Windows to avoid
duplicate dlls.
2024-03-23 18:17:05 +01:00
Cédric Krier 8f291b76be Use format from server locale as fallback for date in graph view
Closes #13112
2024-03-21 09:47:45 +01:00
Cédric Krier 854efb8216 Use min date as default From Date for start amount of general ledger
Closes #12660
2024-03-17 11:36:24 +01:00
Nicolas Évrard 026ae5bff4 Use PYSON's Bool evaluation for PYSON's Not evaluation
Closes #13096
2024-03-11 16:35:39 +01:00
Nicolas Évrard 3e06f5043a Instantiate PYSON.Bool expression with new from PYSON.Not instances
Closes #13177
2024-03-11 12:43:53 +01:00
Nicolas Évrard b346fc23fb Hide notebooks and groups when they are empty
Closes #13070
2024-03-04 17:14:04 +01:00
Cédric Krier cee75c14a1 Do not distribute residual rounding to tax with 0 amount
Closes #13098
2024-03-15 13:16:33 +01:00