Commit Graph
100 Commits
Author SHA1 Message Date
Cédric Krier 31c1aa96f0 Use save to get message info when triggering an action
Instead of always calling save_current on the screen, it is better to call
save when the record has been modified. This allows to get message information
about failure or success but only if the record needed to be saved.

issue7430
review38231002
2018-05-23 23:29:37 +02:00
Cédric Krier 70134eff16 Manage URL and history
issue7370
review48271002
2018-05-12 00:39:59 +02:00
Cédric Krier 1fa22ec80d Typo Attachement -> Attachment
issue7310
2018-04-06 18:29:18 +02:00
Cédric Krier 9f80bb9b4f Disable buttons when clicked
and enable them after the callback is complete.

issue7148
review37131002
2018-03-27 10:49:21 +02:00
Cédric Krier 1ed3b1f90b Hide badge when zero and use absolute position
issue7181
review39201002
2018-03-25 23:52:51 +02:00
Cédric Krier bdfc7e1856 Use fixed width for badges
issue7251
review41961002
2018-03-24 00:23:45 +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
Cédric Krier fff5fe4088 Hide separators of tab menu on small screen
issue7252
review41211002
2018-03-23 22:26:45 +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 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 bfb2fcaa71 Rationalize context usage
issue7072
review43041002
2018-03-09 19:10:58 +01:00
Nicolas Évrard ae882ae78d Add keyword attribute to button tag
issue7067
review44581002
2018-01-24 14:35:44 +01:00
Sergi Almacellas Abellana 73da7e8710 Prevent undefined errors on dashboard view
Changeset c2b74d2ff7ed does not work for dashboard view, as it has no related
screen and it does not have the same tab options as form tabs
issue6867
review36721002
2017-10-20 14:55:55 +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
Sergi Almacellas Abellana 7ffa4f7b40 Don't dissable tab's action button
Otherwise is not possible to access button's actions when action is
empty

issue6521
review35001002
2017-06-01 09:20:49 +02:00
Sergi Almacellas Abellana 497b5e9951 Remove duplicated label in board view toolbar definition
issue6334
review35271002
2017-03-13 14:00:50 +01:00
Cédric Krier 203f0118f3 Ellipsize tab label longer than 20 chars
issue6284
review33851002
2017-02-25 18:38:58 +01:00
Sergi Almacellas Abellana 4e139fab4e Compute toolbar offset using navtabs parent
Since changeset f298a41cd811 navbar height is no more valid when the list of
tabs overflows

issue6292
review28031002
2017-02-23 09:31:16 +01:00
Sergi Almacellas Abellana a8134bde67 Manage screen context when exporting data
issue6264
review29221002
2017-02-21 17:34:28 +01:00
Sergi Almacellas Abellana 3ab28d5fe6 Show screen buttons when clicking action button
changeset c6408fc51ada replaced navbar items with buttons, so the screen
buttons must be read when the button is clicked.

issue6252
review29971002
2017-02-08 16:58:27 +01:00
Diego Abad ff588490d1 Click on toolbar actions buttons instead of toggle dropdown
Since changeset 33a981cc7ca7, toolbar buttons can be disabled, therefore menu
entry should try to click instead toggle dropdown.

issue6238
review31051002
2017-02-08 00:44:38 +01:00
Diego Abad 7a87c3722a Fix close and get_current on Sao.Tab
Since changeset f298a41cd811, inside 'tablist' if tooltip  is shown this will
be find next to 'li'.

issue6192
review31931002
2017-01-27 16:57:14 +01:00
Xavier Codinas 5c5bf611cf Move toolbar tooltips to bottom
Since changeset f298a41cd811 the navbar overlaps the tooltips that are
shown in the toolbar items.

issue6198
review31941002
2017-01-20 12:24:13 +01:00
Xavier Codinas caf4b57db1 Disable dropdown toolbar buttons when empty
issue6193
review31031002
2017-01-20 09:25:05 +01:00
Cédric Krier fd5e118c1b Move tablist into navbar
issue6124
review25911002
2017-01-15 18:59:21 +01:00
Cédric Krier d0a9c92d73 Replace collapse navbar by button groups
- Replace label by tooltips
- Move menu under tab title
- Show most used button on small screen

issue6120
review26971002
2016-12-27 18:17:05 +01:00
Prayash Mohapatra 8b84530cf3 Add CSV Import/Export
review27421002
2016-10-31 10:09:43 +01:00
Xavier Codinas 42ccffbae0 Add favorites menu
issue5715
review29391002
2016-10-28 09:09:52 +02:00
Cédric Krier a97be4a36a Move info-bar to the top
issue5857
review28761002
2016-09-19 22:21:09 +02:00
Sergi Almacellas Abellana bb6d80e4f6 Manage list values of res_id
The res_id value returned from an action on the server can be a list or a
number, so it must be converted to a list only when it is not a already.

issue5774
review32411002
2016-08-12 13:23:28 +02:00
Sergi Almacellas Abellana 881eca005a Replace views string with model description
issue2350
review28371002
2016-07-05 09:54:16 +02:00
Cédric Krier 05c4d2331a Add support for count on Action Window Domains
issue5548
review20991002
2016-06-14 16:39:35 +02:00
Cédric Krier 8479b536a7 Add missing fake update_unread_note for Board tab
Screen calls it in set_current_record
2016-04-28 22:12:37 +02:00
Cédric Krier 7ac86ddc2f Fix readonly tests when user has only create access
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
2016-04-21 17:15:52 +02:00
Cédric Krier 537d329ecf Fix revision management for momentjs
We need to be able to instantiate DateTime with epoch value.
And we must use the momentjs operation to manupilate milliseconds.

issue5451
review20911002
2016-04-02 15:23:39 +02:00
Cédric Krier 2d2c36eeff Add Note
issue4669
review17731004
2016-02-02 19:15:58 +01:00
Cédric Krier 1c65b5f750 Disable new and save buttons when the user is not allowed to create new records
The revision update should not overrule the model access.

issue4902
review15911002
2016-01-21 10:24:40 +01:00
Nicolas Évrard 93df2996ba Implement set_cursor
review22561002
2015-10-27 10:55:57 +01:00
Cédric Krier df798e4f9c Move info bar below the sticked toolbar 2015-10-24 13:30:12 +02:00
Cédric Krier 499035d928 Convert toolbar_def and menu_def into function
As they contains calls to i18n, their list must be constructed dynamically
instead of being stored.

issue5067
review24531002
2015-10-23 23:56:02 +02:00
Cédric Krier bd44a3f8f8 Improve offcanvas
- active by default
- fix margin
- use variables
- toggle active when tabs are added or removed

review16771002
2015-10-23 19:47:08 +02:00
Cédric Krier 922d6a3f81 No need to display disable toolbar nor menu on board
as the title makes anyway their positions change between tabs.
2015-10-23 12:42:12 +02:00
Cédric Krier 100974a71c Use a wrapper on toolbar to keep the space when toolbar is fixed
Without such fix, the size of the scrollbar can change and thus prevents to
scroll up to a record.
2015-10-23 12:21:12 +02:00
Cédric Krier 32a6d3764b Stick navbar of tab
review23561004
2015-10-22 11:41:56 +02:00
Cédric Krier d6152f8b82 Add toolbar with reload to board
review15781002
2015-10-22 11:41:16 +02:00
Cédric Krier 89c6d61536 Tab must be resized when shown 2015-10-20 00:00:20 +02:00
Cédric Krier 076d402737 Fix toolbar and menu of Tab
- Make menu workable with mouse
- Fix toggle action, relate and print
- Add missing role for accessibility
2015-10-16 03:16:24 +02:00
Cédric Krier b359bbd96a Fix typo in delete confirmation 2015-10-16 02:40:18 +02:00
Nicolas Évrard 1fc34e23db Add board views
review23531002
2015-10-15 10:33:37 +02:00