Commit Graph
83 Commits
Author SHA1 Message Date
Cédric Krier f33d5cdb1c Remove all keyBinds from datetimepicker
datetimepicker stops the propagation and prevents default for event with key
bound even if the handler does nothing.
This prevents to have Return to trigger the default submit or Escape to stop
list edition.
But as datetimepicker uses jQuery.extend to setup the options, we can pass
null for keyBinds to remove all the defaults.

issue7246
review45301002
2018-03-24 13:52:56 +01:00
Cédric Krier bf3ed92722 Add position and count label on one2many widget and tree view
issue6738
review35611002
2018-03-24 00:22:03 +01:00
Nicolas Évrard ea7c53e830 Add support of expand attribute on group tag
issue7220
review39221003
2018-03-23 16:27:32 +01:00
Cédric Krier 5026b0a088 Exclude widget buttons from keyboard navigation
- set tabindex to -1 for button widgets
- replace button by input-group-addon on PYSON
- do not set focus on negative tabindex on Modal

issue6739
review43441002
2018-03-22 22:00:36 +01:00
Cédric Krier 9fffae3358 Ensure consistent treeview rendering by using fixed table-layout
- always use fixed table-layout
- define col for each column with a relative width
- add title to content and header of cells in case of overflow
- remove padding when editing cell
- remove padding and margin on button in treeview

issue7245
review37111002
2018-03-22 21:49:46 +01:00
Cédric Krier 9ae0b3a4f0 Set toolbar attribute of the RichText widget
The toolbar attribute is used in set_readonly.

issue7241
review44791002
2018-03-22 19:34:30 +01:00
Cédric Krier 59918ccc77 Replace tooltip by title and aria-label
As we display only text, it is more efficient to use title attribute. But we
must also set aria-label because not all screen readers read the title.
We add also the missing tooltip on some buttons.

issue6828
review41201002
2018-03-22 16:58:40 +01:00
Cédric Krier 1299a868c1 Add Screen.load and use it when opening Window.Form in Many2One
The changeset 4392ca20106e changed the order of the calls to group.load and
set_group. So no current_record was set when Window.Form was called.

issue7239
review40201002
2018-03-22 10:39:48 +01:00
Nicolas Évrard 47302a35ab Add support for search_* attributes on relational fields
issue6081
review31901003
2018-03-21 18:01:35 +01:00
Nicolas Évrard 95f1f412d5 Ensure that Date and DateTime widget uses the same keybindings as the GTk client
issue7176
review44071002
2018-03-16 17:13:12 +01:00
Cédric Krier d694b17804 Create explicitly the tbody for the table of the Form Container
issue7209
review37081002
2018-03-15 00:25:51 +01:00
Cédric Krier bfb2fcaa71 Rationalize context usage
issue7072
review43041002
2018-03-09 19:10:58 +01:00
Xavier Codinas af0b82fddb Use spellcheck and lang attributes for textbox widget
issue6889
review39851002
2018-02-12 10:56:22 +01:00
Cédric Krier e182cbd947 Add support for icon on tab
issue7060
review43021002
2018-02-07 00:41:43 +01:00
Cédric Krier 53300b651f Support field name on image tag
issue7058
review35851002
2018-01-23 22:15:21 +01:00
Cédric Krier 1944564f1c Use input number and toLocaleString for numeric fields
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
2017-11-27 22:18:09 +01:00
Sergi Almacellas Abellana 6a472c1384 Manage name attribute on form group
issue6894
review37801002
2017-11-27 11:12:08 +01:00
Cédric Krier 2048128573 Implement translation on richtext widget
issue6891
review36811002
2017-11-21 20:50:27 +01:00
Cédric Krier cf8ab8ad02 Remove padding for group with with col -1 and 1
issue6829
review39771002
2017-11-10 10:52:22 +01:00
Cédric Krier 824b3d740f Ensure to activate only visible page
issue6861
review36751002
2017-10-30 10:00:04 +01:00
Cédric Krier 10002cae74 Do not rely on previously stored current record display form widgets
The current record may have changed between the start of the fields load and
when the promesses are resolved.

issue6888
review37791002
2017-10-30 09:58:54 +01:00
Cédric Krier eff574e7f5 Apply the same padding to all nested form-container
issue6763
review38691002
2017-09-21 00:16:24 +02:00
Cédric Krier 3d3f9b652d Wait to have read all the fields before set state and display
The state of a field can depend on the value of another field.

issue6687
review43461002
2017-09-07 21:04:17 +02:00
Cédric Krier 2c53a4ed0f Improve binary/image buttons
- show/hide clear/select button
- move open as primary icon of filename
- show download only when there is data to download

issue6719
review35561002
2017-09-07 18:45:44 +02:00
Cédric Krier e6e8057485 Ensure focus element is evaluated to receive the focus
The .find method returns only the children that match but not the element
itself.

issue6737
review35591002
2017-09-03 11:39:14 +02:00
Sergi Almacellas Abellana c9e521b6b1 Manage string attribute on group
issue6611
review35581002
2017-08-31 11:13:09 +02:00
Cédric Krier d027e9ee81 Add keyboard shortcuts
issue6104
review32881002
2017-08-30 18:27:52 +02:00
Cédric Krier f240d86595 Unify toolbar and menu definition
- Use a unique definition
- Update states of both toolbar and menu
- Use a more logical order

issue5644
review30871002
2017-08-30 18:19:04 +02:00
Cédric Krier 6d88ae0b5f Add readonly and required class on widget
issue6643
review39511002
2017-08-07 19:58:48 +02:00
Cédric Krier 43687122a2 Manage zero as stored id
issue6653
review38481002
2017-07-26 23:37:20 +02:00
Cédric Krier 1f5038dd14 Use right form view in Many2One and WinSearch
The first view which is a tree must be removed from the view ids as mode of
the screen is form only.

issue6510
review35501002
2017-07-26 23:26:09 +02:00
Sergi Almacellas Abellana 02290bebe6 Don't remove false values from dict fields
issue6650
review35511002
2017-07-19 09:29:06 +02:00
Sergi Almacellas Abellana e21a03c1ce Use boolean value for searching translatable fields
issue6621
review34251002
2017-07-03 18:07:41 +02:00
Cédric Krier 16f37bd281 Use None as limit for xxx2Many and menu
The sort uses search_filter to retrieve the sorted ids list but this method use
the limit attribute of the screen. The xxx2Many values has no limit.

issue6363
review32161002
2017-03-23 23:05:01 +01:00
Sergi Almacellas Abellana e5e096bc1a Correctly instanciate DatePicker on Dict.Date field
issue6347
review33941002
2017-03-14 10:25:06 +01:00
Sergi Almacellas Abellana 764ea099c3 Don't set readonly attribute on One2Many screen if field is readonly
issue6287
review27131002
2017-02-21 16:12:31 +01:00
Cédric Krier 62de349a26 Disable create new record from key on read-only editable tree
and implement access and size limit check.

issue6220
review26091002
2017-02-17 18:47:59 +01:00
Xavier Codinas 45620d0400 Use filename when file download
issue5991
issue6051
review33671002
2017-02-17 12:37:58 +01:00
Diego Abad a7592b361b Add missing var declaration for m2m_size
introduced in changeset 0cd451bc7739

issue6221
review27921002
2017-01-27 18:08:28 +01:00
Cédric Krier aa57fc7d33 Add support for size on Many2Many
issue6204
review33781002
2017-01-25 23:39:21 +01:00
Cédric Krier 4fcca9e7bf Missing length conversion of field value for size limitation test
issue6197
review33771002
2017-01-25 23:38:01 +01:00
Cédric Krier 505d770a11 Load autocomplete only on display of Char widget
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
2017-01-13 20:04:53 +01:00
Xavier Codinas 667b387bdd Allow to show plain text in password field
issue5607
review33721002
2017-01-13 09:17:26 +01:00
Cédric Krier 4b780e4f20 Manage negative value for col attribute
issue2090
review29851002
2016-12-21 23:14:10 +01:00
Cédric Krier 10af5e80af Support toolbar attribute for richtext widget
issue3551
review31601002
2016-11-01 12:32:44 +01:00
Cédric Krier 59b5a6d8b2 Grow multiselection widget to show all items if yexpand is not set
When there are few options, the widget is often used with no yexpand to look
like a normal field. But in this case, some options could be not visible and
user could miss them.

issue5994
review33571002
2016-10-31 22:50:52 +01:00
Xavier Codinas c6d021edf0 Add PYSON widget
issue4631
review20901002
2016-10-31 13:42:13 +01:00
Xavier Codinas c46b036745 Add TranslateDialog for translatable fields
issue5804
review28681002
2016-10-29 20:50:48 +02:00
Cédric Krier 306f5dd7ca Use get method in Binary widget when field has not get_data method
The binary widget can be used with non-binary field which does not have
get_data method like Char.

issue5989
review29701002
2016-10-28 19:22:18 +02:00
Cédric Krier 7ca45ca0c2 Make binary widget works with non-binary field
The method get_size must be used only if the field has it otherwise the length
of the raw data should be used.
String must be used for set_client if the field is not Binary.

issue5924
review33431002
2016-10-13 09:37:39 +02:00