Nicolas Évrard
5ea2598611
Call set_modified on record in set_client
...
403bc7a95b0a introduced set_modified as a record method but not a field one.
It was unfortunately called on the field in set_client in the same commit.
Closes #12061
2023-02-01 17:54:26 +01:00
Cédric Krier
7958f04d66
Set default badge and sent record message when current record is None
...
Closes #12032
2023-01-24 01:00:12 +01:00
Cédric Krier
ef11936771
Apply muted visual for deleted or removed row
...
Closes #7355
2023-01-24 00:41:48 +01:00
Nicolas Évrard
1fdfe31b1e
Get directly the string value of Selection fields in non editable views
...
Closes #10331
2023-01-29 01:12:24 +01:00
Cédric Krier
8532fa3bd5
Update One2Many validate to use promise based API of pre_validate
...
Closes #12039
2023-01-30 00:16:07 +01:00
Cédric Krier
4573a5c90e
Call preventDefault as soon as possible in sao
...
This is safer in case exception is raised before so the browser may try to
submit the form and trigger a reload of the application.
Closes #6419
2023-01-27 00:03:00 +01:00
Nicolas Évrard
e1361ddac3
Use arrow functions in Sao.Window.Form.response
2023-01-26 22:46:53 +01:00
Nicolas Évrard
45043d706e
Use a promise based API for Record.pre_validate()
...
Closes #12039
2023-01-25 15:14:26 +01:00
Cédric Krier
d62f2acb08
Instantiate always Screen for xxx2Many fields with the same parameters
...
The screen must be instantiated with the context of the parent screen so
eventual field_view_get would give the same result.
The limit must always be set to None/null to ensure to load all the records.
The breadcrumb must be set to show navigation to the user.
Closes #3140
2023-01-21 19:37:19 +01:00
Cédric Krier
82b10ce017
Fix typo when calling get_state_attrs introduced by a151a379886f
2023-01-21 19:39:55 +01:00
Cédric Krier
5836fd178c
Do not select first record by default
...
Closes #11814
2022-12-30 23:41:40 +01:00
Cédric Krier
26b9f97577
Use & and | as boolean operator in search widget
...
Closes #11962 , #8714
2022-12-27 17:36:16 +01:00
Cédric Krier
3aadada047
Use toggle button and label on translate dialog
...
A toggle button with a label is easier to understand that it should be toggled
to edit.
It is cleaner to only display a fuzzy label than having a column of
checkboxes.
Closes #3125
2023-01-13 00:54:37 +01:00
Hodei Navarro
8afe6df925
Add border type to images
...
Closes #11458
2023-01-03 11:17:34 +01:00
Cédric Krier
9d402b3807
Set record as modified before calling changed methods
...
Setting the record as modified clear the info bar but the changed methods
result may add messages to the info bar. So they must be added after the
clearing to let user see them.
Closes #11970
2022-12-29 13:24:06 +01:00
Cédric Krier
ad6931ab5c
Send record modified only when widget is actually modified
...
#11970
2022-12-29 13:21:39 +01:00
Cédric Krier
84d80a454f
Refresh info bar when record is modified
...
#11970
2022-12-29 13:20:31 +01:00
Cédric Krier
6bcb3c9868
Do not trigger record message if the current record did not changed
...
#11970
2022-12-29 13:19:01 +01:00
Nicolas Évrard
3632c51c18
Manage domain on id in single value list as unique
...
Closes #11953
2023-01-02 11:49:34 +01:00
Nicolas Évrard
8d3d4c79ff
Do not validate domain on empty fields unless they're required
2022-12-21 22:29:24 +01:00
Cédric Krier
62e8201d5a
Add unit test reports
2023-01-08 01:55:20 +01:00
Cédric Krier
5f8b891f62
Increase verbosity of tox
2022-12-28 00:26:31 +01:00
Cédric Krier
e745f06e5f
Add more prefixes for humanized number
...
Closes #11918
2022-12-26 13:00:02 +01:00
Cédric Krier
42b023587e
Cache digits and symbol on the field instance of the client
...
Closes #11825
2022-12-30 23:34:52 +01:00
Cédric Krier
e76de7cb81
Convert multiselection into selection for screen domain parser
...
When the selection of multiselection fields is a method, it must be converted
into a list like the selection fields.
Closes #11968
2022-12-28 10:41:52 +01:00
Nicolas Évrard
c1f8fdf664
Do not use default record size limit when it is null
...
Closes #11924
2022-12-29 10:51:47 +01:00
Cédric Krier
c3867c6423
Display the number of selected records on xxx2Many
...
Closes #11813
2022-12-23 19:39:29 +01:00
Nicolas Évrard
2b6801f02c
Use record from group when setting O2M from values
...
Closes #11951
2022-12-23 23:54:21 +01:00
Nicolas Évrard
37ebcfc633
Use left part of domain leaf in unique_value return value
...
The left part must be returned because when the value is unique we also use the
name of field for further checks
Closes #11952
2022-12-20 13:37:06 +01:00
Cédric Krier
5d3e4a39f2
Prepare migration to monorepo
2022-12-16 23:16:08 +01:00
Cédric Krier
bba0707929
Prepare migration to monorepo
2022-12-16 14:46:28 +01:00