Commit Graph
246 Commits
Author SHA1 Message Date
Cédric Krier cb4e1e1c2d Do not include removed records in the search domain of One2Many
Adding an OR-ed clause prevents the domain inversion to set any unique values
when creating a record from the search window.
The removed records can be re-add with the undelete button instead.

Closes #14540
(grafted from 4a30450c54bd6d75614fa1cfffeb7498a669cbcf)

--HG--
branch : 6.0
2026-01-23 09:57:31 +01:00
Cédric Krier 768438dbce Scroll element in to view using center and for all the scrollable ancestors
Closes #14527
(grafted from accca4565e9092605e19afdb22d1bed33d1edab2)

--HG--
branch : 6.0
2026-01-20 18:43:53 +01:00
Cédric Krier 24f1666083 Increase version number
--HG--
branch : 6.0
2026-02-01 11:05:52 +01:00
Cédric Krier 2143c9c813 Prepare release sao-6.0.72
--HG--
branch : 6.0
2026-02-01 11:05:46 +01:00
Cédric Krier 8620c70847 Do not compare records order with negative id
Closes #14508
(grafted from 9fdf4dbd66f2f603d73268f1a4048849e3e19854)

--HG--
branch : 6.0
2026-01-16 12:11:35 +01:00
Cédric Krier 041c9cd90a Increase version number
--HG--
branch : 6.0
2026-01-15 21:59:09 +01:00
Cédric Krier 0fe11542de Prepare release sao-6.0.71
--HG--
branch : 6.0
2026-01-15 21:59:03 +01:00
Cédric Krier 3914212c79 Prevent default event when clicking on Many2One link from a tree view
If the event is not prevented, the URL is cleared if there is already a tab for
the resource because the tab show event update the URL before the execution of
the default event.

Closes #14453
(grafted from 4f4137559b00b9f377a0f6f0c918e292297a8950)

--HG--
branch : 6.0
2025-12-29 15:50:58 +01:00
Cédric Krier 95212ca8a4 Increase version number
--HG--
branch : 6.0
2025-12-17 19:26:23 +01:00
Cédric Krier d8585b30be Prepare release sao-6.0.70
--HG--
branch : 6.0
2025-12-17 19:26:16 +01:00
Cédric Krier ca03769eaf Fix domain parser for Reference field when there is no value but a target
Closes #14413
(grafted from 332b8107a181f3c14e0e3c39eed393bab0cc619b)

--HG--
branch : 6.0
2025-12-14 20:12:58 +01:00
Cédric Krier 139db54944 Limit editable tree click event to the tab
This permits the navigation between tabs.

Closes #14393
(grafted from 9fe27176548921f8d056f006940256a68472ef42)

--HG--
branch : 6.0
2025-11-26 21:34:50 +01:00
Nicolas Évrard c5b3e04ad0 Use the form part of view_ids when opening a Many2One in a new tab
Closes #14391
(grafted from e4480cb7619e46c879eb3534560d15e1c68e2fbc)

--HG--
branch : 6.0
2025-11-26 16:41:20 +01:00
Cédric Krier 8918efd80f Do not sum digits for widget width when some parts are unknown
Closes #14384
(grafted from cd8a0670dd5c6274062e92a40a39509105c800ec)

--HG--
branch : 6.0
2025-11-27 01:14:59 +01:00
Cédric Krier 0823ddee14 Increase version number
--HG--
branch : 6.0
2025-11-21 01:21:18 +01:00
Cédric Krier 4bc7a568bb Prepare release sao-6.0.69
--HG--
branch : 6.0
2025-11-21 01:21:12 +01:00
Cédric Krier e9b8b53e25 Escape completion content with custom format
Closes #14363
(grafted from cd3931840db95bf96064b7f4f44f068f78df3c76)

--HG--
branch : 6.0
2025-11-20 17:03:46 +01:00
Cédric Krier a6d9739ba7 Force reload on save of record
07831c6eddaf implemented the default value as `false` but in tryton it has
always been `True` since b8658ba902a5.
Some save calls relies on the record being reloaded like in the editable tree
when selecting another row.
This synchronise the behavior of all save calls between tryton and sao.

Closes #14345
(grafted from 1c20b8ef85a418d3c00e1495deb203317b4355c1)

--HG--
branch : 6.0
2025-11-03 11:16:05 +01:00
Nicolas Évrard 2dcadb7fff Use the local context when launching a graph_open action
Using the local context allow us to access the context of the field shown by
the graph when the graph shows a One2Many field.

Closes #14341
(grafted from f186b83936dbde32aca06b3a329bf519df2c8232)

--HG--
branch : 6.0
2025-10-31 18:04:31 +01:00
Nicolas Évrard f948c305fb Return the data name as the action key when launching the graph_open action
The ids of each record is in fact indexed by the name of the label in a pie
chart

Closes #14340
(grafted from b69cd826844dd5625eafd75e15d06db5b1300427)

--HG--
branch : 6.0
2025-10-31 18:02:26 +01:00
Cédric Krier acf040a6ab Use the view_ids attribute to open the Many2One target from tree view
Closes #14327
(grafted from 34ffdbb7306e9d8158a91e056b0e06fe17b63091)

--HG--
branch : 6.0
2025-10-28 17:17:31 +01:00
Cédric Krier 98fdb482fa Increase version number
--HG--
branch : 6.0
2025-11-02 17:40:14 +01:00
Cédric Krier 35737ca3c7 Prepare release sao-6.0.68
--HG--
branch : 6.0
2025-11-02 17:40:07 +01:00
Nicolas Évrard f4379db6a3 Find new key names using the definition from the dict widget's field
Closes #14323
(grafted from 488a1008680c71a0b8a6ec71797ae6f74338f3ab)

--HG--
branch : 6.0
2025-05-22 18:24:57 +02:00
Nicolas Évrard 9166f3a718 Skip the validation of the parent field of group
This is required because it can happen that a x2M field will have some records
set through an on_change but if the x2M is not linked to a screen then
exclude_field won't be set.

Closes #14283
(grafted from 1e7411d1bf84cdf75359e1ce9c5f4943fc50ad23)

--HG--
branch : 6.0
2025-10-09 18:50:07 +02:00
Cédric Krier f34f267402 Increase version number
--HG--
branch : 6.0
2025-10-20 14:36:49 +02:00
Cédric Krier 3629a8f9c2 Prepare release sao-6.0.67
--HG--
branch : 6.0
2025-10-20 14:36:42 +02:00
Cédric Krier 43928d4be6 Use sandboxed iframe to display document
The HTML element used to display the document is based on the mimetype.
And by default a sandboxed iframe is used to isolate the unsafe content from
the parent context.

Closes #14290
(grafted from 7909b26211575e6b5dc02156dd1327bb73c55673)

--HG--
branch : 6.0
2025-10-20 10:10:22 +02:00
Cédric Krier b43c266d37 Increase version number
--HG--
branch : 6.0
2025-10-02 23:35:43 +02:00
Cédric Krier 3198c9a758 Prepare release sao-6.0.66
--HG--
branch : 6.0
2025-10-02 23:35:36 +02:00
Cédric Krier de61264a9f Keep original order for data on pie chart
Closes #14222
(grafted from 69fb0b49980da7a5b7629470db9c438e7da8a9af)

--HG--
branch : 6.0
2025-09-10 00:56:46 +02:00
Cédric Krier 01069dff6f 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 : 6.0
2025-09-10 00:53:45 +02:00
Cédric Krier 6421855e3c Increase version number
--HG--
branch : 6.0
2025-09-15 18:08:13 +02:00
Cédric Krier fd67adab9b Prepare release sao-6.0.65
--HG--
branch : 6.0
2025-09-15 18:08:07 +02:00
Cédric Krier 9b1dc601d4 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 : 6.0
2025-09-02 14:28:57 +02:00
Cédric Krier 7796d63789 Pass also the number as formatting parameter to ngettext
Closes #14204
(grafted from 31be52ae4271021ef94202a9fe69d69399aeb9a8)

--HG--
branch : 6.0
2025-08-28 18:16:48 +02:00
Cédric Krier 858ad9329f Increase version number
--HG--
branch : 6.0
2025-08-01 23:38:21 +02:00
Cédric Krier c35f108f99 Prepare release sao-6.0.64
--HG--
branch : 6.0
2025-08-01 23:38:15 +02:00
Nicolas Évrard 7197d426ae Set current screen context in import / export windows
Closes #14128
(grafted from 09d720be3179027f9220590b49c3be065c2cf190)

--HG--
branch : 6.0
2025-07-23 14:10:32 +02:00
Cédric Krier 09488a97da Increase version number
--HG--
branch : 6.0
2025-07-15 23:07:34 +02:00
Cédric Krier 08ddd47458 Prepare release sao-6.0.63
--HG--
branch : 6.0
2025-07-15 23:07:28 +02:00
Cédric Krier eac14701ce 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 : 6.0
2025-07-11 15:19:22 +02:00
Cédric Krier 2346ddcf36 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 : 6.0
2025-07-15 10:21:41 +02:00
Cédric Krier c0a04dc245 Increase version number
--HG--
branch : 6.0
2025-07-01 23:22:30 +02:00
Cédric Krier 216930dce9 Prepare release sao-6.0.62
--HG--
branch : 6.0
2025-07-01 23:22:24 +02:00
Cédric Krier f37d6bd173 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 : 6.0
2025-05-23 12:53:44 +02:00
Cédric Krier 57a9415061 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 : 6.0
2025-05-28 18:15:07 +02:00
Cédric Krier 4beed1ac60 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 : 6.0
2025-05-28 18:11:23 +02:00
Cédric Krier daaf930fe5 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 : 6.0
2025-05-28 18:05:16 +02:00
Cédric Krier 1412d80a4c 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 : 6.0
2025-05-28 18:02:21 +02:00