Commit Graph
258 Commits
Author SHA1 Message Date
Nicolas Évrard dff5d9977c Return the display promise when creating a new record from the screen
This is necessary because otherwise it could result in concurrent update of the
models of the models used by the underlying widgets.

Closes #13545
(grafted from 1dfc23911f2a4cc071a34ec886dc43d949d4b68f)

--HG--
branch : 7.0
2024-09-24 16:37:50 +02:00
Cédric Krier d700e62f7c Increase version number
--HG--
branch : 7.0
2024-10-05 17:11:07 +02:00
Cédric Krier 16e7429867 Prepare release sao-7.0.18
--HG--
branch : 7.0
2024-10-05 17:11:00 +02:00
Cédric Krier ec1cb882ed Check loaded field synchronously when validate synchronously
#13497
(grafted from 1c470285a122607a8b9789ac36830c6155596c72)

--HG--
branch : 7.0
2024-10-03 15:09:55 +02:00
Cédric Krier d7687aed14 Backed out changeset 0e87b1cf7ea1
--HG--
branch : 7.0
2024-10-03 14:35:05 +02:00
Cédric Krier 29212c6599 Always validate record synchronously
Closes #13497
(grafted from 42db63c11a62db5e02d20cee53730be99c8c85e1)

--HG--
branch : 7.0
2024-09-06 17:47:00 +02:00
Cédric Krier 93d668a1ba Increase version number
--HG--
branch : 7.0
2024-09-16 20:15:21 +02:00
Cédric Krier 05e2e1d232 Prepare release sao-7.0.17
--HG--
branch : 7.0
2024-09-16 20:15:15 +02:00
Nicolas Évrard 87e5de96cc Do not override id as default values of failed read
Closes #13331
(grafted from 70e62980df617039e018444b7f0dcbc4bcb7e14f)

--HG--
branch : 7.0
2024-08-31 12:19:20 +02:00
Cédric Krier c783d527fa Increase version number
--HG--
branch : 7.0
2024-09-01 13:43:59 +02:00
Cédric Krier d46d875cdb Prepare release sao-7.0.16
--HG--
branch : 7.0
2024-09-01 13:43:53 +02:00
Cédric Krier 3d1324e545 Use column name to load field when copying selected rows with not loaded fields
Closes #13443
(grafted from 74cf9aea9fcad045d33fc4acc9d6900715966190)

--HG--
branch : 7.0
2024-08-07 19:02:49 +02:00
Cédric Krier dae0b95656 Do not copy button into clipboard
Closes #13442
(grafted from 175aefcb776b4e4092c2f744e56250af16dc6c57)

--HG--
branch : 7.0
2024-08-07 18:58:41 +02:00
Cédric Krier 529ca27e4e Convert to string the action key when the type of x axis is date or datetime
Closes #13440
(grafted from 937d9588e1e5b4e538cbbea097104e748b356a0e)

--HG--
branch : 7.0
2024-08-07 17:25:45 +02:00
Cédric Krier ae32cd004d Consider as stringable domain with empty clause
Closes #13414
(grafted from 49a55291512a957e496455f6474a9776e8c2c31c)

--HG--
branch : 7.0
2024-08-07 16:34:09 +02:00
Cédric Krier 09dae63e67 Use boolean type to toggle URL button visibility
Closes #13399
(grafted from 150aced210a6296d1bb0a8b3931d3618a099cefd)

--HG--
branch : 7.0
2024-07-16 16:19:14 +02:00
Cédric Krier 3df93f1c33 Increase version number
--HG--
branch : 7.0
2024-08-01 21:43:24 +02:00
Cédric Krier a06673ba9b Prepare release sao-7.0.15
--HG--
branch : 7.0
2024-08-01 21:43:18 +02:00
Cédric Krier a394b7c231 Check every rows are selected to keep global selection checked
Closes #13393
(grafted from 451236ad0b5ed240675e3db6e7c9f0dc133cdfd9)

--HG--
branch : 7.0
2024-07-05 15:15:28 +02:00
Cédric Krier 52f5803b85 Update selection after new rows has been added
The update selection method check the number of row in tbody.

Closes #13392
(grafted from 6eb6268e2aede3ec4c2df54028caf35cba654451)

--HG--
branch : 7.0
2024-07-05 10:36:07 +02:00
Cédric Krier c0fbbb9db0 Do not iterate over MultiSelection value of Dict key if it is null
Closes #13375
(grafted from d938889e4f42517b7433685091e6cfce5080063a)

--HG--
branch : 7.0
2024-06-30 01:53:24 +02:00
Cédric Krier 8952b53808 Do not allow to mutate dict value
A copy of the value is always returned so if it is modified it does not modify
the internal value of the record.
So to update Dict value, a new dictionary must be set on the field.

Closes #13374
(grafted from 82b0280d4a08c48b2ab85b4ababe2031aee9a7a2)

--HG--
branch : 7.0
2024-06-30 01:49:42 +02:00
Cédric Krier 67d28724fa Increase version number
--HG--
branch : 7.0
2024-07-17 23:39:07 +02:00
Cédric Krier 83d4671ac8 Prepare release sao-7.0.14
--HG--
branch : 7.0
2024-07-17 23:39:01 +02:00
Cédric Krier 8009654f93 Do not try to set focus to <td> without child
Closes #13394
(grafted from e4a5e94a8ad0949e5e6b74b2358e61096ccf8e98)

--HG--
branch : 7.0
2024-07-09 10:18:30 +02:00
Cédric Krier 10f9708fe0 Manually handle hiding of bootstrap Modals in search
Closes #13330
(grafted from f295f3d8b14264e592a86cc505d04ffd1b21bcc6)

--HG--
branch : 7.0
2024-06-11 09:41:46 +02:00
Cédric Krier a282fd81cd Use search text when clicking on find button of search window
Closes #13329
(grafted from 6f0db9701ffe1e43541ecf08978a46df10e6a1a1)

--HG--
branch : 7.0
2024-06-11 09:33:47 +02:00
Cédric Krier 62ac985cca Do not run menu action if the menuitem is disabled
The click event can still be triggered by the shortcut or event by clicking on
the disabled menuitem. So the callback must not run the action if the menuitem
is disabled.

Closes #13326
(grafted from d3e19261139580282719da45623a077d849523a0)

--HG--
branch : 7.0
2024-06-10 18:01:03 +02:00
Cédric Krier c7953c1d26 Test if main_menu_screen is filled before using it when destroying wizard dialog
Closes #13363
(grafted from 69b8e8f9599933292e646ca83276cfbdbafa9eb8)

--HG--
branch : 7.0
2024-06-26 13:07:53 +02:00
Cédric Krier 523341a59d Increase version number
--HG--
branch : 7.0
2024-07-01 18:04:25 +02:00
Cédric Krier 996705f774 Prepare release sao-7.0.13
--HG--
branch : 7.0
2024-07-01 18:04:19 +02:00
Cédric Krier 0dabd06465 Set focus to the first focusable child of the cell
Closes #13327
(grafted from edd4d4ea6416280f2c03f3e6b87a9b62e6cc333c)

--HG--
branch : 7.0
2024-06-10 20:04:39 +02:00
Cédric Krier 19198c34c4 Do not re-select all records if current record is empty and selection is checked
This happens when the current record is removed when it is deleted.

Closes #13325
(grafted from 5e74c9cef4b5b04930e1c5da61c576070da1a1ca)

--HG--
branch : 7.0
2024-06-10 17:23:18 +02:00
Cédric Krier 0e8b758d27 Store readonly attribute on Screen with a default value
Otherwise the attribute value may be undefined instead of being a boolean.

Closes #13324
(grafted from c0feae75063f1daac6b3c8017f165aaca3858922)

--HG--
branch : 7.0
2024-06-10 17:17:27 +02:00
Cédric Krier 743ed500fc Always update state of delete and undelete buttons in window form
Closes #13323
(grafted from 377fcba9fba2d39973067915f72848fd01bce7ed)

--HG--
branch : 7.0
2024-06-10 17:13:03 +02:00
Cédric Krier d3e43195f4 Use only the readonly from group in Window Form
Since 12e08efd3872 the readonly of the Screen depends on the selected records.
But we still wants to save the modification from the Window Form even if a
deleted record is selected.

Closes #13321
(grafted from ff288e977366b41700c6da6f7131b0e9520e363b)

--HG--
branch : 7.0
2024-06-10 17:09:41 +02:00
Cédric Krier 26d4cf09cf Set 100% width to input-group of form-text and form-richtext
Otherwise if the widget is not translated, the textarea does not expand.

Closes #13320
(grafted from 2ebdb3a1dc2dd516cf99186c29278d41081aa689)

--HG--
branch : 7.0
2024-06-10 17:02:56 +02:00
Cédric Krier 182e0a575b Exclude records without dtstart or dtend from calendar view
Closes #13302
(grafted from f41e0738102a99a92027a140cc1859d406adae3e)

--HG--
branch : 7.0
2024-06-06 10:01:55 +02:00
Cédric Krier e6de5707b5 Bind callback to the attachment window when dropping file as attachment
Closes #13182
(grafted from 6daccd38708b131c06145d7a698151040a8fd5db)

--HG--
branch : 7.0
2024-06-05 18:38:58 +02:00
Cédric Krier 58e387f9b2 Increase version number
--HG--
branch : 7.0
2024-06-15 11:05:57 +02:00
Cédric Krier 8429876bd7 Prepare release sao-7.0.12
--HG--
branch : 7.0
2024-06-15 11:05:50 +02:00
Cédric Krier 730132a931 Put textarea and richtext under an input-group
If the widget is translatable, the translate button is an input-group-btn
which must be under the same input-group as the principal input.

Closes #13238
(grafted from 20af97ade53035f1c725cb2600e9abbb2664f664)

--HG--
branch : 7.0
2024-05-14 19:44:39 +02:00
Cédric Krier d96e7d1f14 Always return a promise from _update_completion
Closes #13280
(grafted from e34aac35364fb57cfd13978e17e4984fd70b3a74)

--HG--
branch : 7.0
2024-05-25 20:40:56 +02:00
Cédric Krier b644be0933 Increase version number
--HG--
branch : 7.0
2024-05-01 11:27:42 +02:00
Cédric Krier 2daa62decb Prepare release sao-7.0.11
--HG--
branch : 7.0
2024-05-01 11:27:35 +02:00
Cédric Krier 07502cc23c Trigger record saved after reload ids when execute button
The buttons of the toolbar must be updated after having saved the current
record.

Closes #13125
(grafted from 03b3f3d5a60c9dbb6268a20fdd8f0c56157272b4)

--HG--
branch : 7.0
2024-04-21 15:23:18 +02:00
Cédric Krier f30d8934cb Wait for display to finish when reloading record
(grafted from 9023fdf384db2961e4dea922f5194b09f879834f)

--HG--
branch : 7.0
2024-04-21 15:24:26 +02:00
Cédric Krier 4e0ddf60fa Fallback to default model access if RPC request fails
(grafted from 5680160a1ab68e8e30e05265aef34eea44be0139)

--HG--
branch : 7.0
2024-04-18 19:22:07 +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 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