Commit Graph
347 Commits
Author SHA1 Message Date
Cédric Krier 3de53c8489 Fix order and z-index of backdrop for stacked modal
Closes #14588
(grafted from 8646addd9393e463e250a0a29cdd8f06b7b77ca7)

--HG--
branch : 7.0
2026-02-06 19:00:24 +01:00
Cédric Krier 5c3be297b9 Switch the view when user cancel the new record
Closes #14583
(grafted from 86b3db529010f8fa36dfee4949f160f77298efc3)

--HG--
branch : 7.0
2026-02-05 18:21:05 +01:00
Cédric Krier 6eff01b06a Set revision context before clearing the screen
This prevents the clear method (which set the current record to null) to update
the URL with the old revision and thus opens a new tab.

Closes #14577
(grafted from 804f498790430d3fd89a274d5e261fb80b0c5520)

--HG--
branch : 7.0
2026-02-04 15:26:34 +01:00
Cédric Krier 8804f7e574 Increase version number
--HG--
branch : 7.0
2026-02-18 18:58:04 +01:00
Cédric Krier 8acfbc2560 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 : 7.0
2026-01-23 09:57:31 +01:00
Cédric Krier efaa8bfc56 Scroll element in to view using center and for all the scrollable ancestors
Closes #14527
(grafted from accca4565e9092605e19afdb22d1bed33d1edab2)

--HG--
branch : 7.0
2026-01-20 18:43:53 +01:00
Cédric Krier e205645869 Increase version number
--HG--
branch : 7.0
2026-02-01 11:05:27 +01:00
Cédric Krier 5f313e2fbe Load icon field before rendering affix
Closes #14509
(grafted from 3d658b7f3aaaa3cb707466d09fce3a6895e8963f)

--HG--
branch : 7.0
2026-01-16 13:16:50 +01:00
Cédric Krier 1d8dd39fea Do not compare records order with negative id
Closes #14508
(grafted from 9fdf4dbd66f2f603d73268f1a4048849e3e19854)

--HG--
branch : 7.0
2026-01-16 12:11:35 +01:00
Cédric Krier 1c540e5972 Increase version number
--HG--
branch : 7.0
2026-01-15 21:58:49 +01:00
Cédric Krier abe33cd900 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 : 7.0
2025-12-29 15:50:58 +01:00
Cédric Krier a64cf2105d Increase version number
--HG--
branch : 7.0
2025-12-20 21:16:38 +01:00
Cédric Krier 5f58dc0d73 Set toolbar button sensitiveness based on record id instead of position
(grafted from 2d8bed1160c9595b7ff2eb3f26114e8d6e7ea02f)

--HG--
branch : 7.0
2025-12-18 00:39:38 +01:00
Cédric Krier 22f0798d6f Increase version number
--HG--
branch : 7.0
2025-12-17 19:25:54 +01:00
Cédric Krier e62e7d92c5 Fix domain parser for Reference field when there is no value but a target
Closes #14413
(grafted from 332b8107a181f3c14e0e3c39eed393bab0cc619b)

--HG--
branch : 7.0
2025-12-14 20:18:25 +01:00
Cédric Krier 3fb3f840c9 Limit editable tree click event to the tab
This permits the navigation between tabs.

Closes #14393
(grafted from 9fe27176548921f8d056f006940256a68472ef42)

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

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

--HG--
branch : 7.0
2025-11-27 01:14:59 +01:00
Cédric Krier 8a7992ac9a Increase version number
--HG--
branch : 7.0
2025-11-21 01:20:55 +01:00
Cédric Krier 22f15e20bb Escape completion content with custom format
Closes #14363
(grafted from cd3931840db95bf96064b7f4f44f068f78df3c76)

--HG--
branch : 7.0
2025-11-20 17:03:46 +01:00
Cédric Krier db854e9ee2 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 : 7.0
2025-11-03 11:16:05 +01:00
Nicolas Évrard 22d237710e 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 : 7.0
2025-10-31 18:04:31 +01:00
Nicolas Évrard 9721118711 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 : 7.0
2025-10-31 18:02:26 +01:00
Cédric Krier 53b16904d4 Use the view_ids attribute to open the Many2One target from tree view
Closes #14327
(grafted from 34ffdbb7306e9d8158a91e056b0e06fe17b63091)

--HG--
branch : 7.0
2025-10-28 17:17:31 +01:00
Cédric Krier 7197fabe39 Increase version number
--HG--
branch : 7.0
2025-11-02 17:38:48 +01:00
Nicolas Évrard df27881761 Find new key names using the definition from the dict widget's field
Closes #14323
(grafted from 488a1008680c71a0b8a6ec71797ae6f74338f3ab)

--HG--
branch : 7.0
2025-05-22 18:24:57 +02:00
Nicolas Évrard c75fdc144e 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 : 7.0
2025-10-09 18:50:07 +02:00
Cédric Krier 12e3e683ab Increase version number
--HG--
branch : 7.0
2025-10-20 14:36:20 +02:00
Cédric Krier 6be8a7134b 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 : 7.0
2025-10-20 10:10:07 +02:00
Cédric Krier 8f50c82f0d Increase version number
--HG--
branch : 7.0
2025-10-02 23:34:39 +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 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 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
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 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 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