Commit Graph
82 Commits
Author SHA1 Message Date
Cédric Krier f11d90ada0 Check every rows are selected to keep global selection checked
Closes #13393
(grafted from 451236ad0b5ed240675e3db6e7c9f0dc133cdfd9)

--HG--
branch : 6.0
2024-07-05 15:15:28 +02:00
Cédric Krier a966fca96d 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 : 6.0
2024-07-05 10:36:07 +02:00
Cédric Krier 6e322c9553 Do not iterate over MultiSelection value of Dict key if it is null
Closes #13375
(grafted from d938889e4f42517b7433685091e6cfce5080063a)

--HG--
branch : 6.0
2024-06-30 01:53:24 +02:00
Cédric Krier a8620a1725 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 : 6.0
2024-06-30 01:49:42 +02:00
Cédric Krier 0ab6215199 Do not try to set focus to <td> without child
Closes #13394
(grafted from e4a5e94a8ad0949e5e6b74b2358e61096ccf8e98)

--HG--
branch : 6.0
2024-07-09 10:18:30 +02:00
Cédric Krier 2554ccc3b3 Use search text when clicking on find button of search window
Closes #13329
(grafted from 6f0db9701ffe1e43541ecf08978a46df10e6a1a1)

--HG--
branch : 6.0
2024-06-11 09:33:47 +02:00
Cédric Krier d80992c01a 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 : 6.0
2024-06-10 18:01:03 +02:00
Cédric Krier 07d27e2391 Test if main_menu_screen is filled before using it when destroying wizard dialog
Closes #13363
(grafted from 69b8e8f9599933292e646ca83276cfbdbafa9eb8)

--HG--
branch : 6.0
2024-06-26 13:07:53 +02:00
Cédric Krier d04d76fb3a Set focus to the first focusable child of the cell
Closes #13327
(grafted from edd4d4ea6416280f2c03f3e6b87a9b62e6cc333c)

--HG--
branch : 6.0
2024-06-10 20:04:39 +02:00
Cédric Krier 39d8ca7e1b 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 : 6.0
2024-06-10 17:23:18 +02:00
Cédric Krier 67f2ae156f 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 : 6.0
2024-06-10 17:17:27 +02:00
Cédric Krier 025b726e8e Always update state of delete and undelete buttons in window form
Closes #13323
(grafted from 377fcba9fba2d39973067915f72848fd01bce7ed)

--HG--
branch : 6.0
2024-06-10 17:13:03 +02:00
Cédric Krier c629a5c04c 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 : 6.0
2024-06-10 17:09:41 +02:00
Cédric Krier 03b8a3fd28 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 : 6.0
2024-06-10 17:02:56 +02:00
Cédric Krier bb5322686e Exclude records without dtstart or dtend from calendar view
Closes #13302
(grafted from f41e0738102a99a92027a140cc1859d406adae3e)

--HG--
branch : 6.0
2024-06-06 10:01:55 +02:00
Cédric Krier be84f9a54d 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 : 6.0
2024-05-14 19:44:39 +02:00
Cédric Krier 7f4cead7b9 Always return a promise from _update_completion
Closes #13280
(grafted from e34aac35364fb57cfd13978e17e4984fd70b3a74)

--HG--
branch : 6.0
2024-05-25 20:40:56 +02:00
Cédric Krier 958148c8d1 Wait for display to finish when reloading record
(grafted from 9023fdf384db2961e4dea922f5194b09f879834f)

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

--HG--
branch : 6.0
2024-04-18 19:22:07 +02:00
Cédric Krier 1588ce814e 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 : 6.0
2024-04-16 09:16:24 +02:00
Cédric Krier 6f06be1681 Test if current view is defined on screen before using it
Closes #13178
(grafted from 6f0ae4c7719fbf129ffd0221aa9b1fa008df23e2)

--HG--
branch : 6.0
2024-04-13 15:35:15 +02:00
Cédric Krier d22c7f6a44 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
(grafted from 9ad99fba8a531f2456d1808f32fe3b9fbc598f2e)

--HG--
branch : 6.0
2024-04-02 16:39:06 +02:00
Nicolas Évrard 1ffdad78ce Use PYSON's Bool evaluation for PYSON's Not evaluation
Closes #13096
(grafted from 009133813b11f264b5e038dc9c5912dc9e0101cb)

--HG--
branch : 6.0
2024-03-11 16:35:39 +01:00
Nicolas Évrard 319527ea43 Instantiate PYSON.Bool expression with new from PYSON.Not instances
Closes #13177
(grafted from 1d8a5b96e3b2d099c0009bc16e18e77cfb860134)

--HG--
branch : 6.0
2024-03-11 12:43:53 +01:00
Cédric Krier 5f0096cb9e Revoke URLs of loaded icons
Closes #13095
(grafted from ee2fee1a4b3019a5e4bff38e830a751d9c4d0976)

--HG--
branch : 6.0
2024-03-10 01:09:35 +01:00
Cédric Krier a97a22b359 Add auto-detected fields with drag and drop handler
Closes #13082
(grafted from c52d2403d6690ac2b83c6cd381b7760cbf40fe58)

--HG--
branch : 6.0
2024-03-07 13:06:11 +01:00
Cédric Krier 4299195046 Set height to 100% for text and richtext
Closes #13058
(grafted from aed32f1a6abe0eab0d7c0e26402a52fe99ebd713)

--HG--
branch : 6.0
2024-02-25 13:40:59 +01:00
Cédric Krier 1e9b2ccc20 Use moment to parse time
Closes #13032
(grafted from 1b77b079e942f554c4f074533e209a340e5afa80)

--HG--
branch : 6.0
2024-02-21 09:52:06 +01:00
Cédric Krier 06c3363a30 Replace jshint by eslint
Closes #13087
(grafted from b2a2c9483562f6ae5430df5cc957148003ac3520)

--HG--
branch : 6.0
2024-03-26 00:10:10 +01:00
Cédric Krier 91ed58951b Define rev variable
--HG--
branch : 6.0
2024-03-25 22:37:21 +01:00
Cédric Krier 1222a88de7 Use model attribute to compute model name of CharColumn
Closes #13093
(grafted from 032f64eb30c141103210c1023dd77f96e492c55f)

--HG--
branch : 6.0
2024-03-09 11:01:34 +01:00
Cédric Krier 1bc8436a8f Set graph color from yfield
Closes #13091
(grafted from 8258ba4d71c20dce065f75a1dcf64064867ce304)

--HG--
branch : 6.0
2024-03-09 10:56:54 +01:00
Cédric Krier ace002f22d Use size from attributes when setting url_size parameters for Image
Closes #13089
(grafted from 92766aa06e107c67d9e217334c067651385229bd)

--HG--
branch : 6.0
2024-03-09 10:52:41 +01:00
Cédric Krier da420e585b Do not fail on input completion when source is an Array
Closes #13088
(grafted from 0d99c0394ebc50547cd18570833e68d908791300)

--HG--
branch : 6.0
2024-03-09 10:49:27 +01:00
Cédric Krier 8eac7634e2 Return new instances of PYSON object from PYSON shortcut methods
Closes #12985
(grafted from af58504c1e6ad2b17cac5b6c41454d7eda28c5c7)

--HG--
branch : 6.0
2024-02-03 19:29:59 +01:00
Cédric Krier a6e29407c0 Add support for timestamp field as datetime in domain parser
Closes #12776
(grafted from c2d266d5fd2591477a400f44d772e0dea499fee6)

--HG--
branch : 6.0
2024-01-30 12:07:21 +01:00
Cédric Krier e813933845 Consider null value as data for binary field
null value is set when the widget is cleared so it should not try to read it
again from the server.

Closes #12926
(grafted from a93577ad420c3bab09fb905efab954e4aaf0fbab)

--HG--
branch : 6.0
2024-01-11 16:30:10 +01:00
Cédric Krier 5d90eb0cd2 Activate scrollbar on text and richtext widget and limit resize to vertical
The minimal height is set to 5 lines and maximal to 20 lines.

Closes #12921
(grafted from 3e369e3b5addee2e6b90ebf59c3286040f44ea35)

--HG--
branch : 6.0
2024-01-10 19:07:03 +01:00
Nicolas Évrard 4067da02fe Apply overflow value to every parent group of node
Closes #12960
(grafted from 5ec515d166696653b07dd2ad61a62377b9717899)

--HG--
branch : 6.0
2024-01-26 12:40:14 +01:00
Cédric Krier 61e7ec9c0a Return children length only if children field is loaded
Closes #12906
(grafted from 096fbc73811d10b4d0860290c79ee7047342e545)

--HG--
branch : 6.0
2024-01-06 22:56:46 +01:00
Nicolas Évrard f4779b1618 Sort correclty eager and lazy fields when calling Form.display
Closes #12890
(grafted from 60a0e087ead74ae2c242c33f56977f466d3874be)

--HG--
branch : 6.0
2023-12-22 14:48:49 +01:00
Cédric Krier 7614b407ee Convert negative id value as None when set by the client
Domain inversion may force a unique value based on the default value from
PYSON evaluation. In such case it means that no record can be set.

Closes #12799
(grafted from 48463dae759ea1473b258ed905ba2c15fe96e10c)

--HG--
branch : 6.0
2023-12-17 23:39:16 +01:00
Cédric Krier c54201a1af Duplicate object tag when updating the content of Document widget
Some browser does not refresh properly the content when updating the data
attribute.

Closes #12808
(grafted from 595120b29967d30407fc5b267583dde9ed381d78)

--HG--
branch : 6.0
2023-12-07 22:50:42 +01:00
Nicolas Évrard e8954e3a7b Mark M2M records for addition in parent after they're saved
Closes #12832
(grafted from 4e8ff04aef3a2bfd175e2c77db1421810adc5159)

--HG--
branch : 6.0
2023-12-14 17:54:27 +01:00
Cédric Krier 5cbd91118c Add None value to selection for nullable_widget when search_read fails
Closes #12838
(grafted from 539dc9578430153096430ec794016b0958694552)

--HG--
branch : 6.0
2023-12-17 21:13:12 +01:00
Cédric Krier 9fe9a0674f Do not read record name for value None for inactive selection
Closes #12838
(grafted from cf35deaf9f1219bdad297c258960d314fbbc538f)

--HG--
branch : 6.0
2023-12-17 21:12:41 +01:00
Cédric Krier bb06f47f81 Set One2Many fields later
Closes #12740
(grafted from 7bbf9b5e4c5d1aa2c4c6ada3220e5379249dcf1d)

--HG--
branch : 6.0
2023-11-14 00:05:51 +01:00
Cédric Krier 027a71cc4f Validate field set later
Closes #12739
(grafted from 31958cc6bbae3c46dbaeb919221ceb317f5e2ccc)

--HG--
branch : 6.0
2023-11-14 00:05:17 +01:00
Cédric Krier 1125b524af Do not scroll into view empty element
Closes #12783
(grafted from e02eedcfbf4771b9388566152d0f56c4c3e19945)

--HG--
branch : 6.0
2023-12-03 01:51:48 +01:00
Cédric Krier 6b7550f0f7 Increase the size of expander
Closes #12733
(grafted from ea4e1936235b200489557da2212b2135fa67ddd5)

--HG--
branch : 6.0
2023-11-11 19:37:53 +01:00