Replace underscore for language tags to a hyphen because
toLocaleString expects a format of 'pt-BR' for composite tags while
tryton stores them with an underscore: 'pt_BR'.
issue7080
review41001002
To get a proper virtual keyboard on mobile, it is needed to use a input of
type 'number' when editing a numeric field. But as it is not possible to
ensure to display non signifiant digits, a text input is used with the
toLocaleString method.
Also the lang attribute is repeated on the number input because not all
browsers manage to use the global as default.
issue5233
review43621002
Since changeset d91743403415, only modified record are sent to the server, the
multiselection widget use set_client to store selected row so those record
must be marked as modified.
issue6855
review43611002
A field can be readonly by the domain inversion in the validate method. So it
should be validated again in case its domain inversion change and reset it a
non-readonly.
So only field that are always readonly can be skipped for the validation.
issue6448
review38341002
The parent test is redundant with the force_remove flag. So be removing this
test, we activate the remove/unremove feature on WinForm without parent.
issue6342
review30131002
Keeping the autocomplete always up to date is very expensive especially for
large list because the method is called once per field for each record.
Indeed autocomplete is only needed when the Char widget is displayed. So we
could just load it at display and keep it up to date when fields are changed.
issue6167
review31871002
Defines add_fields on Group and uses it instead of the one on Model.
This new method is used when setting group on Screen to ensure to trigger the
load of default values.
issue6058
review29781003
This will ensure that the JSON.stringify will dump the keys always in the same
order. Even if the key order is a implementation detail of the browser,
constructing a new Object using always the same order will guarantee a stable
stringification.
issue6045
review33631002
The changeset 5efdef4c2c7d wrongly skip the removal of existing record in the
group. So it was not possible to remove the last record of the field.
issue5878
review34271002
Current implementation is not valid as it will return false when the element is
not present on one of the list, but it should return false only if the element
is not on both lists.
issue5669
review28391002
Set the ctx.context variable to a defined context instead of an undefined one,
so all the expressions that search for context values are correctly evaluated.
issue5531
review18091002
The screen should not be read-only if the user is allowed to create record even
if he is not allowed to modify it. And it is the same for the save button.
issue5479
review19201002
- set_default should correctly pipe promises because One2Many.set_default can
be not synchronous.
- set previous group parent only if it is not empty because Screen create a
default not linked group.
- Screen.display should set current_record is not correctly set.
issue5135
review19791002
The promise doesn't always return the values if there is any autocomplete and
the promise is resolved before the set_default is called.
So we use our custom deferred that will be resolved after the call to
set_default and the autocomplete promises.
issue5222
review19721002