Commit Graph
176 Commits
Author SHA1 Message Date
Cédric Krier 314b4cf0ac Do not display search_count if it is not higher than limit
On small set of record when records are deleted the number of record could
become lower than the initial search_count. As maintaining a correct
search_count is complex, it is simpler to never display it if it is lower than
the search limit.

issue10789
review383501003
(grafted from 6b2e33b1025568f56aa23972fc02115da18496fc)

--HG--
branch : 6.0
2021-10-31 10:20:24 +01:00
Cédric Krier 09f2165a74 Use tab_domain when comparing tabs
issue10441
review381241002
(grafted from 287382c0d95e03d280b2353b7d098b634ead68f1)

--HG--
branch : 6.0
2021-10-26 19:40:49 +02:00
Cédric Krier ac628353be Create toolbar synchronously
The record_message function needs that all the buttons are created when it is
triggered. So we can not delay the creation with an asynchronous call.

issue10783
review360151002
(grafted from a6315854511588fef77cc83c5e37d13b31c55727)

--HG--
branch : 6.0
2021-10-03 00:40:18 +02:00
Cédric Krier 700b6abf70 Add wizard to main element of tab and remove top padding
issue10764
review369711002
(grafted from 8e040db8b68b2e4f88c4873087a1a516551db7d0)

--HG--
branch : 6.0
2021-09-20 10:28:22 +02:00
Maxime Richez 6a725d5ef9 Close tab when cancelling save on new record
issue10480
review363421002
(grafted from bea021af96d55137e35bae1ade78aff6799890e3)

--HG--
branch : 6.0
2021-09-10 19:37:47 +02:00
Cédric Krier 9202300f26 Fill buttons attribute with action, relate and print buttons
issue10410
(grafted from ebf162f8546abbbe6a243f7ec4db8a2df7182c98)

--HG--
branch : 6.0
2021-09-09 22:57:09 +02:00
Cédric Krier 1a2a1ce12f Disable toolbar buttons based on record message
In order to update the disabled property, we must store the button tag in
Sao.Tab.buttons.
The property must be computed by taking into account if the dropdown has
children.
And the resource buttons must check against undefined record_id.

issue10410
review355431002
(grafted from a7d07e635e86983fee5ef8decb4e5294ba72f78a)

--HG--
branch : 6.0
2021-09-02 23:17:33 +02:00
Cédric Krier bb5467a660 Restore the tabs scroll position when switching tab
issue10633
review336751002
(grafted from d9927b9ac1d7f62983ac33163c67afaa92c52ada)

--HG--
branch : 6.0
2021-08-12 18:47:54 +02:00
Cédric Krier 586eff1dc3 Do not call Screen.selected_paths because it is a property
issue10580
review359831006
(grafted from ea6e63cf727e8710224f133fc9929d53872da89c)

--HG--
branch : 6.0
2021-07-22 00:01:54 +02:00
David Harper 0713e6735e Only hide next/previous buttons on XS screens if they exist
issue10467
review346411002
(grafted from 16479a3d9f7e4c2a5d43e0ab2242a0e04b4aea84)

--HG--
branch : 6.0
2021-06-07 22:21:49 +01:00
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