Commit Graph
362 Commits
Author SHA1 Message Date
Cédric Krier 8f50c82f0d Increase version number
--HG--
branch : 7.0
2025-10-02 23:34:39 +02:00
Cédric Krier 3f7f5ff036 Prepare release sao-7.0.37
--HG--
branch : 7.0
2025-10-02 23:34:32 +02:00
Cédric Krier 09ce83f255 Keep original order for data on pie chart
Closes #14222
(grafted from 69fb0b49980da7a5b7629470db9c438e7da8a9af)

--HG--
branch : 7.0
2025-09-10 00:56:46 +02:00
Cédric Krier d35be3cb2f Use the length of data to generate color scheme on pie chart
We need a different color for each data instead of each y field.

Closes #14221
(grafted from b2342474d157c0986255a1f71afef93fb142bf09)

--HG--
branch : 7.0
2025-09-10 00:53:45 +02:00
Cédric Krier 807483ba4c Increase version number
--HG--
branch : 7.0
2025-09-15 18:07:52 +02:00
Cédric Krier de0a583d51 Prepare release sao-7.0.36
--HG--
branch : 7.0
2025-09-15 18:07:45 +02:00
Cédric Krier d1fbd46421 Update height of list-form when it is set on xxx2Many widget
The current view element is the `list-form` so it is not found. Instead we must
search from the content element of the xxx2Many widget because it replicate the
CSS rule.

Closes #14212
(grafted from 92e472849bc1bfe06e65cb05d6c1f30240e8786a)

--HG--
branch : 7.0
2025-09-02 14:28:57 +02:00
Cédric Krier cdc5da2dab Pass also the number as formatting parameter to ngettext
Closes #14204
(grafted from 31be52ae4271021ef94202a9fe69d69399aeb9a8)

--HG--
branch : 7.0
2025-08-28 18:16:48 +02:00
Cédric Krier 2c5c3991a2 Increase version number
--HG--
branch : 7.0
2025-09-03 20:31:44 +02:00
Cédric Krier 17091b9328 Prepare release sao-7.0.35
--HG--
branch : 7.0
2025-09-03 20:31:38 +02:00
Cédric Krier 782c141134 Set selected class before changing current record and do not rely on toggle
The class must be set before changing the current record because the property
selected_records relies on the classes and this method is called when changing
the current record to set the sensitivity of the buttons.
Also clicking a second time on the row must unselect the row which is not
possible to implement with the toggling of the class.

Closes #13980
(grafted from 8ab0895c5f6dc5bdfa96756c1abd3ab368bbf754)

--HG--
branch : 7.0
2025-08-01 11:08:58 +02:00
Cédric Krier fe426fc9ce Ensure date in log window is always a string
The date can be null for example for record having been just created without
any modification later.

Closes #14142
(grafted from b0e8386a00d05907b3ac06bfd03810d6a0d5f886)

--HG--
branch : 7.0
2025-08-01 10:20:59 +02:00
Cédric Krier 08bca7a9ac Increase version number
--HG--
branch : 7.0
2025-08-01 23:37:59 +02:00
Cédric Krier 11a6120e84 Prepare release sao-7.0.34
--HG--
branch : 7.0
2025-08-01 23:37:53 +02:00
Nicolas Évrard 70f2d5c50b Set current screen context in import / export windows
Closes #14128
(grafted from 09d720be3179027f9220590b49c3be065c2cf190)

--HG--
branch : 7.0
2025-07-23 14:10:32 +02:00
Cédric Krier 09090eb2cf Increase version number
--HG--
branch : 7.0
2025-07-15 23:07:12 +02:00
Cédric Krier 70484b1698 Prepare release sao-7.0.33
--HG--
branch : 7.0
2025-07-15 23:07:02 +02:00
Cédric Krier d9b65cd5dd Stop propagation of click event on button in tree view
If the button is going to be executed, the selection of the row must not change
so the propagation must be stopped before reaching the row.

Closes #14118
(grafted from b6496a9986e52e6573e45e422d5535362744938f)

--HG--
branch : 7.0
2025-07-11 15:19:22 +02:00
Cédric Krier 28a069fae3 Do not change the selection of row when starting the edition
The edition of tree row relies on having the current record of the screen set
to the row edited. This can be only guarantee if we do not change the
selection.

Closes #14097
(grafted from 64ddd011cdc1a25649f0f0fa68255073e70d3e84)

--HG--
branch : 7.0
2025-07-15 10:21:18 +02:00
Cédric Krier 1a36f2157a Increase version number
--HG--
branch : 7.0
2025-07-01 23:22:07 +02:00
Cédric Krier f42ec96f44 Prepare release sao-7.0.32
--HG--
branch : 7.0
2025-07-01 23:22:00 +02:00
Cédric Krier 95e31b4d7d Remove unecessary semicolon in tab modified_save
The semicolon was introduced in 14150ef09fb6
(grafted from 14099a86df73f9b13f2ebce85938489eed6af691)

--HG--
branch : 7.0
2025-06-29 02:10:35 +02:00
Cédric Krier c14099ba7c Do not save tree state when setting value on form view
(grafted from caf7ffa6d65ac4ff9c5cfe62c5f5e96dca520ef5)

--HG--
branch : 7.0
2025-06-01 12:45:53 +02:00
Cédric Krier 754c1c1014 Always wait for the promise of save_tree_state
#14048
(grafted from 14150ef09fb62f67803fe1589e6f8031c43f063a)

--HG--
branch : 7.0
2025-06-01 12:45:06 +02:00
Cédric Krier e689a0d636 Store the selected state before deselect all the rows
We must toggle the state of the row based on the original state.
Otherwise on single mode, clicking on a selected row keep it selected.

Closes #14045
(grafted from 9beab3cc71d067f603a133540bac10eb77ea3228)

--HG--
branch : 7.0
2025-05-28 18:15:07 +02:00
Cédric Krier 948320b6ce Unselect other rows when radio button of row is selected
The selection of a radio button, deselect automatically the other radio button
so we must update the selection of other rows to remove the selected class.

Closes #14044
(grafted from c4a0963472cf36475b3868f28fe12aac58e1f343)

--HG--
branch : 7.0
2025-05-28 18:11:23 +02:00
Cédric Krier 5d11dc8af7 Change the border color of checkbox and radio when focus
This provides a visual hint that the element has the focus.

Closes #14043
(grafted from 3899ec3c773815dd78935e9c3471a7c54310d0af)

--HG--
branch : 7.0
2025-05-28 18:05:16 +02:00
Cédric Krier 4dee0a16c5 Do not execute tab shortcuts if there is a modal open
The modals are linked to the current tab so we can not change the tab as long
as there is a modal.

Closes #14042
(grafted from 3ed4b328369cff714b8d2269b1521a01acf5c6d5)

--HG--
branch : 7.0
2025-05-28 18:02:21 +02:00
Cédric Krier 9f63f797c2 Apply filter on icon under primary background
Otherwise the icon is not visible as it has the same color as the background.

Closes #14032
(grafted from 008fec3346bdc8ce48b0cba63869f866b91dc0e8)

--HG--
branch : 7.0
2025-05-21 17:10:34 +02:00
Cédric Krier 4e07ab9e56 Remove thousand separator when converting domain string to float
Since c8d97fac the domain parser format number using locale but the atof
function does not remove the thousand separator which could prevent Number to
parse the string.

Closes #14024
(grafted from dc438f32fa7887e5e0e241a6154a1c685e9cda20)

--HG--
branch : 7.0
2025-05-23 12:53:44 +02:00
Cédric Krier 3a8e0e24a5 Increase version number
--HG--
branch : 7.0
2025-06-04 23:20:02 +02:00
Cédric Krier fe279bf8e6 Prepare release sao-7.0.31
--HG--
branch : 7.0
2025-06-04 23:19:55 +02:00
Cédric Krier 449c4477cd Avoid parsing image content as XML is they do not look like XML
This prevent the browser to log an error in the console.
Also we test for the presence of svg tag to be sure it is an svg image.

Closes #14019
(grafted from 286d03999217e1ea39231bb286cfa926d2f47486)

--HG--
branch : 7.0
2025-05-14 12:56:23 +02:00
Cédric Krier aad0f73ed5 Store URL to open before getting the preferences
The preferences may execute actions which may change the original URL at the
login. Such that the original URL is never open.
This is more visible since ac5d71376fca which makes the actions sequential.

Closes #13975
(grafted from 792784aa4fa3ee0e95f078fc87573d8bc4a859f8)

--HG--
branch : 7.0
2025-05-21 11:16:56 +02:00
Cédric Krier 4f9088a7d6 Set default value via domain inversion only when deferred operand is id
Other cases for deferred operand can not be deduced as unique for sure.

Closes #14005
(grafted from 7bf6ea18fe8ea12330c0aff2e6456b3d12c86228)

--HG--
branch : 7.0
2025-05-08 18:22:54 +02:00
Nicolas Évrard b5f6cfdf36 Use the initial precision when applying factor to a field without digits
Without digits the full representation of the number is used which might not
be the expected behaviour because applying the factor will result in a number
which short representation could be surprising to the user.

Closes #10460
(grafted from 6b292fe0dbb05cebbc17ba7fbbddb19d39f675dc)

--HG--
branch : 7.0
2025-05-19 11:31:28 +02:00
Cédric Krier dd967dbe9d Increase version number
--HG--
branch : 7.0
2025-05-15 19:20:11 +02:00
Cédric Krier 4b645ea5e4 Prepare release sao-7.0.30
--HG--
branch : 7.0
2025-05-15 19:20:04 +02:00
Cédric Krier 2d5ebabbee Do not fail to reload modified view without a current record
It may happen that a tree view is considered as modified even if there is no
current record. In this case we should not try to compare the id of the current
record before and after reload as it is not defined.

Closes #13998
(grafted from 331d52d447992f2bc923df8cd8bf88690460f637)

--HG--
branch : 7.0
2025-05-05 12:33:01 +02:00
Cédric Krier aa96c69088 Use larger translation dialog for expanded widget
Closes #13987
(grafted from c2863a3bf130e88c0dc97866d4a5bff699af944d)

--HG--
branch : 7.0
2025-04-28 22:12:01 +02:00
Cédric Krier e2077bb557 Increase display size only once per more row
This ensures that the growing rate between display size and rows is the same.

Closes #13972
(grafted from c8cfddd30e18453eea57dca6d80fcc7b992cb61e)

--HG--
branch : 7.0
2025-04-14 09:52:31 +02:00
Cédric Krier b3b8553ed8 Increase version number
--HG--
branch : 7.0
2025-05-02 22:14:18 +02:00
Cédric Krier 761db04f84 Prepare release sao-7.0.29
--HG--
branch : 7.0
2025-05-02 22:14:11 +02:00
Cédric Krier f2bd578f2f Declare vals_to_set on the common block where it is used
e38f22986aac reuse vals_to_set later so linter may complain about it not being
defined.
(grafted from 81360b8ae682fb56f85d4ad6f5f779e0418cc3ce)

--HG--
branch : 7.0
2025-04-30 08:44:05 +02:00
Cédric Krier 27ad4351b2 Use locale format in domain parser and search filter for numbers
Closes #13966
(grafted from c8d97facfb0b24bfbcc8f2335f3ad0218a39f900)

--HG--
branch : 7.0
2025-04-07 23:43:31 +02:00
Cédric Krier f24a63fbd0 Compute digits of float value before applying factor
When applying the factor, we introduce new rounding issue which falsify the
computation of digits.
So it is better to compute the digits using the initial value (coming from the
string parsing) and update the digits based on the order of the factor.

Closes #13964
(grafted from 3606a9f176d0312d9645d05902b74192391538e4)

--HG--
branch : 7.0
2025-04-04 18:51:30 +02:00
Cédric Krier c506b61c38 Correctly clear all kinds of info bar messages
Closes #13951
(grafted from 1ac765ca877a67800c4341176f031ee221e48caf)

--HG--
branch : 7.0
2025-03-28 17:20:49 +01:00
Cédric Krier af631cb392 Trigger record message even if current record has not changed
a2c50d4993cc disabled the trigger but it is needed to update the toolbar label
when the number of selected record is changed but not the current record.
(grafted from 1241c492e4045df9f617be2944a616c9838230fc)

--HG--
branch : 7.0
2025-03-28 17:13:21 +01:00
Nicolas Évrard fdab2269a1 Use hasOwnProperty to check for key presence in object
(grafted from cf8342493b04bbe07b172f2e078549ef3de00210)

--HG--
branch : 7.0
2025-04-15 18:38:45 +02:00
Nicolas Évrard ae4f4c3ba1 Do not set twice the result of an on_change call in a x2many
Closes #13971
(grafted from e38f22986aac2e37fa5b2ca448152f49698475e6)

--HG--
branch : 7.0
2025-04-15 16:14:37 +02:00