Commit Graph
1198 Commits
Author SHA1 Message Date
Cédric Krier e430058e28 Ensure testing descriptor property of Array object
Object.getOwnPropertyDescriptor fails if the value is undefined and the method
can return null if there is no such property.
So we must ensure that the value is a Group (which means an Array).

issue8136
review53561002
2019-02-25 19:30:05 +01:00
Sergi Almacellas Abellana d5c186f9bf Clean active_* keys from context when executing an action
As the values may be already present on the context they should be
cleared in order to correctly evaluate action domains

issue7839
review68381002
2019-02-22 19:35:30 +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
Nicolas Évrard 5125415da2 Allow sao classes to use javascript properties
issue8109
review60561002
2019-02-13 16:05:41 +01:00
Cédric Krier 762ed3171d Improve the layout of CSV import and export
issue8096
review46751002
2019-02-13 11:04:09 +01:00
Cédric Krier da787239c1 Remove login prefix on login dialog
This avoid password manager to fill the database input with the login.

issue8089
review70541002
2019-02-13 10:59:48 +01:00
Cédric Krier d3ae675c97 Add support for height and width on notebook
issue8078
review45921002
2019-02-13 10:58:33 +01:00
Cédric Krier e996af01c9 Change the size of wizard dialog depending of the content
If there are any expanded widgets or it is not a form, we use a large modal
otherwise a medium.

issue8086
review60531002
2019-02-13 10:56:58 +01:00
Cédric Krier 3fd13807a2 Use tab key for tab navigation
issue8070
review49771002
2019-02-13 10:46:27 +01:00
Cédric Krier 61523d8975 Only parse the date content on Enter
It should not set the date value to today but only parse the existing input as
a date.

issue8043
review50741002
2019-02-13 10:25:09 +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 6a5f528ada Define fields to read for export CSV
issue8095
review46741002
2019-02-10 13:42:16 +01:00
Cédric Krier 9883aaaef8 Ignore operators on readonly date widget
Readonly date should not be modified by operators.

issue7932
review47791002
2019-02-10 13:16:33 +01:00
Cédric Krier 14831f35c6 Fix typo recor -> record
issue8020
2019-02-09 01:06:17 +01:00
Cédric Krier f2696197de Hide also image without src attribute
We add also the img tag on empty src attribute because it is faster for the
browser and it is the only tag we used with src attribute.

issue8066
review68461002
2019-02-05 19:05:10 +01:00
Cédric Krier 21ed1a8c3a Use horizontal form for Dict widget
This allows to vertically align label and input.
It reduces also the space for label and limit the size of checkbox.
It align the search input with others and add a placeholder.

issue7990
review45881002
2019-02-03 20:44:50 +01:00
Cédric Krier 2e772a776c Share the same behavior between Form and Dict widgets
The input numbers can share the same behavior between Form and Dict.

issue7989
review70491003
2019-02-03 20:41:51 +01:00
Cédric Krier 0deee46c8e Use standard Array.sort and do not update search_count when only ids
The current implementation of Group.sort is not correct because it does not
guarantee to replace all the records if the ordered list does not contain all
the existing records. So it is better to use the standard Array.sort method.
Also the search_count should not be updated when doing a search only for ids
as the number of record does not change.

issue8042
review50731002
2019-02-03 20:29:41 +01:00
Cédric Krier 6410b91ace Missing translation of ':'
issue8041
review54501002
2019-02-03 20:19:41 +01:00
Sergi Almacellas Abellana 6704d24f5f Do not override action context with record context
As action context is a copy of record context is does not make sense to update
the same values

issue7917
review50651002
2019-01-30 11:47:15 +01:00
Nicolas Évrard 02c3e14fd5 Use record and field properties of widget instead of method arguments
issue8020
review58491002
2019-01-23 16:58:11 +01:00
Nicolas Évrard 5be8698ac2 Do not prevent to reset X2Many widget when no record is linked to the form
It can occur when for example, you delete a record. The current code skipped
the reset of the widget which made it stays filled.
2019-01-23 14:37:31 +01:00
Cédric Krier 0b08bf2eed Reduce offset when no search result
issue7966
review60461002
2019-01-18 11:17:07 +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
Cédric Krier 1b2e479538 Add minimal height for graph
Without a minimal height, C3js can compute a too small size.

issue7984
review45871002
2019-01-17 17:17:17 +01:00
Cédric Krier fa1ca76305 Remove unsupported ja_JP translations 2019-01-08 16:46:14 +01:00
Cédric Krier 2c7ed75366 Update locales in Gruntfile for new language code
issue7863
2019-01-03 12:07:35 +01:00
Sergi Almacellas Abellana ba6dd84b4c Set skip_target to localize_domain of reference fields
issue7876
review60451002
2019-01-03 11:59:38 +01:00
Cédric Krier 836018b70c Keep column arrow up to date
When an order is set on a One2Many widget and the user reload the form, the
selected order is lost and so the client should no more display those arrow.
For that we update the arrows on each display using the screen order. And we
unset the screen order when the group change as we do not know the order of
this group.

issue7817
review70481002
2019-01-02 18:56:34 +01:00
Cédric Krier ea0fe3d620 Do not recycle first record as product result
It is not affected by issue7941 but we follow anyway the same algorithm for
both clients.

review58461002
2019-01-02 18:53:45 +01:00
Cédric Krier f98f2cdcae Remove country code from languages
issue7863
review53481002
2018-12-31 15:36:49 +01:00
Cédric Krier a262098879 Ensure translate_widget_set is always called with string
issue7922
review56511002
2018-12-30 00:17:57 +01:00
Cédric Krier ac5b8d5fbd Add support for expand, height and width attributes
issue7886
review51581002
2018-12-22 00:19:20 +01:00
Cédric Krier e037876bb5 New API to read related fields
issue7888
review58431002
2018-12-21 23:41:56 +01:00
Cédric Krier 350afb84e8 Replace Array.includes by ~Array.indexOf
Array.includes is not yet supported by IE nor phanthomjs.

issue7869
2018-12-21 19:55:19 +01:00
Nicolas Évrard 33ac9a0e46 Fix wrong function name in sao's test introduced in 95501e406c46 2018-12-21 10:40:48 +01:00
Nicolas Évrard 5798cf5cbc Fix domain inversion of child_of mixing M2O and Reference fields
Domain inversion on Reference field does not work when using the dotted
notation with a M2O field using child_of or parent_of.

To solve this we correctly compute the localization of child_of leaves when
using the dotted notation (which renders the inverse_leaf function useless).
But we must also ensure that the selection used by reference fields restrict
the choice to the right models.

issue7869
review60441002
2018-12-20 18:44:31 +01:00
Cédric Krier 47026d0076 Display empty string when notification body is null
issue7880
review72361002
2018-11-28 10:01:32 +01:00
Cédric Krier f4147cfbc9 Do not use is visible to count non invisible columns
If the table is hidden by a tab, all the headers are invisible and the
responsive class is not correctly set.
We need to have a special class for the menu to avoid responsive behavior
because it has two columns even if the thead is invisible.

issue7849
review50621002
2018-11-28 09:54:15 +01:00
Cédric Krier 864e2c8449 Fix typo for view type test in Sao.Window.Form
The attribute of the view which contains the type is view_type.
It was introduced by changeset e0a583fa4edc.

issue7847
2018-11-07 19:18:39 +01:00
Cédric Krier f73d551e72 Fix typo for view type test in Sao.Window.Form
The attribute of the view which contains the type is view_type.
It was introduced by changeset e0a583fa4edc.

issue7843
2018-11-06 23:32:18 +01:00
Cédric Krier a78bae0ed2 Do not reset tree state after save
issue7822
review54411003
2018-10-31 18:52:35 +01:00
Cédric Krier e1ffe63edc Wait all the promises when setting tree state
issue7818
review54411002
2018-10-31 18:37:24 +01:00
Cédric Krier 674c4a4977 Update tree_states only when fetched from RPC
issue7818
review54411002
2018-10-31 18:36:50 +01:00
Cédric Krier 4af35ca4f2 Correctly test for empty selected list
issue7818
review54411002
2018-10-31 18:34:37 +01:00
Cédric Krier 3a0e036cff Set the state on tree view without tree_state
issue7818
review54411002
2018-10-31 18:33:53 +01:00
Cédric Krier a26dca5c4b Correctly get parent timestamp when setting tree state
issue7818
review54411002
2018-10-31 18:32:29 +01:00
Cédric Krier 314d39aad2 Save tree state before cancel of the record on reload
issue7818
review54411002
2018-10-31 18:30:57 +01:00
Cédric Krier 630ef1f570 Do not fail on One2Many with only tree mode
switch_view should stop when it does not find the view type.
WinForm should not open if the requested view type can not be set.

issue7824
review45791002
2018-10-31 18:21:31 +01:00