Commit Graph
166 Commits
Author SHA1 Message Date
Cédric Krier f6d3aa452c Add attachment preview
issue10203
review332271014
2021-04-07 23:34:51 +02:00
Cédric Krier 6cfdf61beb Improve report and CSV for tree structure
issue10116
review341431002
2021-03-07 19:07:53 +01:00
Cédric Krier a529782168 Convert forgotten format_datetime call to unique format
issue9922
2021-02-28 16:22:59 +01:00
Cédric Krier 641973a210 Set title on name element of tab
issue10084
review359211002
2021-02-20 00:54:38 +01:00
Cédric Krier 55376dbc90 Add breadcrumb as title of window form
issue7167
review343151002
2021-02-14 15:45:21 +01:00
Cédric Krier cc4b356936 Display revision on dialog
issue10059
review335531002
2021-02-14 14:03:55 +01:00
Cédric Krier ef0c5a5a37 Remove panel-body for tab wizard
issue9965
review293011002
2021-01-06 11:00:07 +01:00
Cédric Krier e0b986037b Succeed when save modified is canceled on unique new record
The reload does not set any current record so we can not compare ids.

issue9936
review314991002
2020-12-23 21:26:32 +01:00
Cédric Krier ccc2946c07 Save modified record before sending email
issue9879
review331381017
2020-12-18 00:25:57 +01:00
Cédric Krier 32bf70a424 Ask to save modified record before execute action
issue9880
review318921005
2020-12-04 18:41:38 +01:00
Cédric Krier 1ca1c35fc8 Return false when modified is not saved and not created
The return of modified_save method is used to decide to execute an action or
not. When a new record is cancelled, the client select the previous record so
we must not run the action on this one.

issue9881
review337111002
2020-12-04 18:37:36 +01:00
Cédric Krier a63c435901 Do not display next/previous button on XS screen
issue9786
review308511005
2020-11-15 23:50:46 +01:00
Cédric Krier 91bbcbe3a4 Call response with the end button attributes
Since rev 15c499b95290, the argument to response must be the button
attributes.

issue9524
review326411002
2020-10-25 11:03:29 +01:00
Cédric Krier 67f49736c7 Count only for current tab on save, delete and duplicate
issue9591
review298541002
2020-10-11 16:10:38 +02:00
Cédric Krier 137852452e Fallback to model name as title
issue9596
review300381002
2020-10-04 00:35:23 +02:00
Nicolas Évrard 6fcfb943a5 Manage deletable and writable state from ir.rule
issue9357
review290101002
2020-09-23 10:04:19 +02:00
Cédric Krier d9242e3a6b Send client email via server
issue9449
review292001002
2020-09-17 17:18:02 +02:00
Cédric Krier 5b674ad987 Always encode CSV export in UTF-8
Browsers do not support the charset in Blob, so it is already always encoded in
UTF-8. But to help users on Windows, we add the UTF-8 BOM because Windows
programs use it as magic number to detect encoding.

issue9527
review290761002
2020-09-12 18:30:11 +02:00
Cédric Krier b36da567df Customize default bootstrap theme
The bootstrap rules are imported from sao less file to override some variables.
We embed a stripped version of the bootswatch paper theme.
We also try to import an option custom.less file.

issue9427
review294011002
2020-08-16 17:43:21 +02:00
Cédric Krier 41232df6bc Disable menu button when user has no access right
Since rev c2b74d2ff7ed, the variable name does not contains the button name so
the test for menu_buttons always fails.

issue9528
review310221002
2020-08-16 16:32:59 +02:00
Cédric Krier 8d1fe05de0 Escape external strings
issue9394
review293931002
2020-06-29 17:29:45 +02:00
Sergi Almacellas Abellana 9feccfba49 Do not override icons with text
issue9388
review325521002
2020-06-05 19:12:53 +02:00
Cédric Krier 541c018e90 Escape external strings
issue9351
review301651002
2020-05-26 09:57:34 +02:00
Cédric Krier 6239ce291a Add link button
issue9051
review280841002
2020-04-13 12:21:55 +02:00
Cédric Krier 37d86382a6 Add export CSV data route
issue9090
review261011002
2020-04-12 23:10:30 +02:00
Cédric Krier ffef232014 Remove id from screen context and compare proper attributes
As mode is not always filled, we must compare only if view_ids is empty and we
must use the default value as fall-back.
The limit is a local parameter that should not be forced when opening an URL.
The screen context may be modified thanks to the context model, we must compare
the current context of the screen instead of the initial one.

issue8977
review272751003
2020-01-20 11:10:51 +01:00
Cédric Krier 4b6ac16b92 Disable button until handler promise is finished
This ensure that all the widgets have the value of the current record before
changing the record.

issue8923
review266571003
2019-12-28 17:55:47 +01:00
Cédric Krier 3c55448947 Update button_action with returned values
issue8766
review268241002
2019-12-07 16:03:36 +01:00
Sergi Almacellas Abellana f191548fa6 Use the same naming for audit fields on server and client side
issue8688
review270251002
2019-09-30 09:47:30 +02:00
Cédric Krier e6e307f575 Use locale format to export CSV from print button
issue8635
review252101002
2019-09-17 00:09:44 +02:00
Cédric Krier 13f5a6d0ba Add data when exporting from print button
issue8622
review252081003
2019-09-11 23:43:30 +02:00
Cédric Krier 3a48911870 Use panel for tab content
issue8599
review262031002
2019-09-02 18:36:52 +02:00
Cédric Krier 9b68aaa3e3 Test the right parameter in Tab.Board.compare
issue8601
review285891002
2019-08-25 13:01:53 +02:00
Cédric Krier 6b9d63ca46 Add local context to get context without session context
The issue8312 was to strict by its usage of Group._context as it misses the
context_model, the parent context or the _datetime keys.
Instead we introduce a second type of context which provides the same context
but without the session part.

issue8463
review255831002
2019-08-18 18:51:54 +02:00
Cédric Krier 3fe1f51ed0 Update display logs for new related read API
Since issue7888, the result of related fields are stored in nested
dictionaries.

issue8426
review259841002
2019-07-20 21:45:28 +02:00
Cédric Krier ce4d13b258 Do not use DOM order to find current tab
The DOM and the tabs list are not ensured to have the same order because the
DOM is modified after the view promise is resolved.
To rely only on a single information source, we store the tab as data on the
nav li.

issue8443
review249521004
2019-07-08 18:51:36 +02:00
Cédric Krier 3557de1de3 Ensure to remove only the tab from the list of tabs
Tab.close can be called multiple times (ex: closing wizard running in a tab)
so the indexOf can return -1 if the tab has already been removed.

issue8431
review263691002
2019-07-08 18:49:22 +02:00
Cédric Krier 328d7abd21 Use faster way to remove children
issue8453
review255641002
2019-06-27 14:32:36 +02:00
Cédric Krier 25bfb2d767 Set url on switch callback only if it is the current tab
The callback can be triggered when the tab is no more current.
E.g. at the end of a wizard when the screen is reloaded and displayed, the
current record is reset which trigger the callback but the wizard may have
open a new tab meanwhile.

issue8432
review259671002
2019-06-20 23:16:56 +02:00
Cédric Krier 66dbb2502e Use group _context to avoid leaking session context
When launching a new action, the context should not contain the session
context because it is automatically appended to the evaluation.
When creating a new group when the context model changed, it should not
contain the session context neither.

issue8312
review267301002
2019-05-02 12:49:12 +02:00
Cédric Krier 9e6686a0fd Do not define note method on board
The menu constructor checks the presence of the method to fill the menu or
not. But The board can not have any note.
2019-04-28 01:11:43 +02:00
Cédric Krier da45c2dcac Do not make visible close tab button on small screen
The navbar where there is already a close button is collapsed only on extra
small screen.

issue8291
review267271002
2019-04-24 23:42:44 +02:00
Cédric Krier 1a50e08fba Replace affix by sticky position
issue8214
review259181002
2019-03-28 19:33:23 +01:00
Cédric Krier 2f96f858ae Add CSV exports to print toolbar
issue8130
review54571002
2019-03-22 17:21:20 +01:00
Cédric Krier 854b4adc73 Improve note button
* Add resources method to ModelStorage
* Support badge on icon
* Display unread and total of notes
* Add two extra colors for icon

issue8122
review70561002
2019-03-22 12:16:36 +01:00
Cédric Krier ebe1ab5340 Remove unnecessary calls to fields_view_get
Screen.count_tab_domain should be called after the switch_view as it is done
in tryton. This avoid to trigger a call to fields_view_get for the
domain_parser.
Screen.switch_view is performing one extra loop compared to tryton. This
trigger and extra call fields_view_get.

issue8167
review60581002
2019-03-15 11:14:16 +01:00
Cédric Krier e9613f70b1 Replace remaining set_current_record by assignation
issue8109
2019-02-15 23:07:15 +01:00
Nicolas Évrard 0bb7ce4af7 Use properties
issue8109
review47811003
2019-02-14 16:31:31 +01:00
Cédric Krier 536879fe83 Loop over tabs when reaching end
issue8071
review47781002
2019-02-10 22:54:30 +01:00
Cédric Krier 9b07e6a7bc Add support for plugins and add translate view as example
issue7942
review54461002
2019-01-18 10:23:13 +01:00