Commit Graph
715 Commits
Author SHA1 Message Date
Sergi Almacellas Abellana 1ac44a9ee1 Correctly return record on screen.new
Return a new promise when creating a new record on screen in order
to get the value of the nested promise, otherwise an undefined
value is returned and this breaks the callbacks that manipulate
the returned record.

issue6066
review30811003
2016-11-24 16:55:25 +01:00
Cédric Krier 1092e979ad Order the keys of Dict value to allow comparison with JSON.stringify
This will ensure that the JSON.stringify will dump the keys always in the same
order. Even if the key order is a implementation detail of the browser,
constructing a new Object using always the same order will guarantee a stable
stringification.

issue6045
review33631002
2016-11-21 21:00:43 +01:00
Cédric Krier eb95cbeeff Remove old record in One2Many._set_value only if it is not in the new value
Always removing previous record makes the parent record being wrongly
considered as modified.

issue6044
review34451002
2016-11-21 20:59:33 +01:00
Cédric Krier 239470c997 Wait default_get before displaying new record
Soft validate the record when setting new fields.
And ensure correct default value for validate parameter in set_default.

issue5822
review32791002
2016-11-21 20:58:23 +01:00
Xavier Codinas 7fb3881746 Correctly bind calendar processing attribute
issue6042
review34441002
2016-11-18 12:38:11 +01:00
Diego Abad 421a5b1f04 Add missing datepickerbutton on filter screen
Since changeset 07b6b0d53296, eonasdan-bootstrap-datetimepicker
lib was updated to 4.17.42 version.

Since 4.17.37 datetimepicker requires a class to be
set on the button to open the widgets, so we should
set this class in order to make the datetimepicker
work with latest versions.

issue6020
review32761002
2016-11-09 17:58:49 +01:00
Cédric Krier aa395ba7b9 Close CVS dialog after message
issue6009
review30751002
2016-11-05 19:52:18 +01:00
Xavier Codinas f93ac7e418 Ensure that calendar events are loaded before reloading it
issue5756
review34411002
2016-11-03 12:11:09 +01:00
Xavier Codinas 7c0ea20b5a Use Sao.config.title when logout
issue5968
review28981002
2016-11-02 11:08:33 +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
Cédric Krier 24b522c7fc Make Bool PYSON evaluate to false empty Time and TimeDelta
As Time and TimeDelta are moment Object, Bool should specially evaluate those
instances.

issue5993
review25781002
2016-10-31 17:20:44 +01:00
Cédric Krier 6b83651828 Destroy wizard after exception in create call
issue5975
review32741002
2016-10-31 17:18:43 +01:00
Xavier Codinas c6d021edf0 Add PYSON widget
issue4631
review20901002
2016-10-31 13:42:13 +01:00
Prayash Mohapatra 8b84530cf3 Add CSV Import/Export
review27421002
2016-10-31 10:09:43 +01:00
Diego Abad e9d5e32a25 Set axis configuration on graph views for non timeseries
As c3 use indexed as default x axis type, 'category' type
must be added when labels are not Date or DateTime fields.

issue5997
review31661002
2016-10-30 00:20:07 +02:00
Diego Abad dbb9384bb4 Convert to moment default format of date_format
issue5955
review27691002
2016-10-29 23:48:13 +02: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
Sergi Almacellas Abellana 64c6426593 Manage the text color and background color in calendar view
issue5953
review33541002
2016-10-28 18:02:37 +02:00
Xavier Codinas 57c2bb2731 Add title in Sao.config
issue5968
review29671002
2016-10-28 09:57:18 +02:00
Sergi Almacellas Abellana 862f877011 Correctly computed selected records on remove
Also return an empty promise when records are empty

issue5987
review26851002
2016-10-28 09:22:07 +02:00
Xavier Codinas 0dfb0b242f Remove exclamation point on user error messages
issue5978
review34401002
2016-10-28 09:17:07 +02:00
Xavier Codinas 42ccffbae0 Add favorites menu
issue5715
review29391002
2016-10-28 09:09:52 +02:00
Sergi Almacellas Abellana deedbb8cb4 Show records names in wizard title
issue5933
review29591002
2016-10-27 09:56:34 +02:00
Cédric Krier 662bee311b Add support for button rule
issue5944
review28911002
2016-10-26 09:45:38 +02:00
Jan Grasnick 7c3f2a2072 Add support for datetime_field to Many2One, Reference
issue4579
review30671002
2016-10-26 09:37:06 +02:00
Xavier Codinas e814e196d8 Add calendar view
issue5756
review32361002
2016-10-26 09:15:05 +02:00
Cédric Krier 970c92abfc Use cancel_record instead of removing from group
cancel_record uses Screen.remove which ensure the cursor is correctly set after
the removal.
This also ensure that cancel_record remove only the current record.

issue5852
review29641002
2016-10-25 23:14:20 +02:00
Cédric Krier d950a96805 Do not apply screen domain on xxx2Many field
The screen domain on those fields only means at least one record
and not all records.

issue5948
review30621003
2016-10-25 23:12:12 +02:00
Sergi Almacellas Abellana 4894953e36 Add string representation of PYSON statements
issue5952
review32681002
2016-10-21 11:55:53 +02:00
Sergi Almacellas Abellana 314d108c95 Use the same src text for boolean in ScreenContainer and in DomainParser
Otherwise the translated value may return a different value and then it's
comparison will fail.

issue5904
review32631002
2016-10-13 17:00:44 +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
Sergi Almacellas Abellana 3208eb242d Use model name as tab title when opening records from global search
issue5938

review26771002
2016-10-08 20:39:00 +02:00
Sergi Almacellas Abellana 1a0b281fd4 Use current record id when opening an action from a button
issue5935

review28871002
2016-10-06 09:59:46 +02:00
Cédric Krier c9b9abcd79 Avoid calling unnecessary domain_parser
The construction of the domain_parser can generate RPC calls so it is better to
avoid construct it if possible.

issue5918
review31581002
2016-10-05 22:43:21 +02:00
Cédric Krier a068158241 Reduce the number of call to ir.ui.view_tree_state
The state should not be loaded for view without the tree_state attribute and
neither for view with a unsaved parent.

issue5917
review34301002
2016-10-05 22:36:32 +02:00
Sergi Almacellas Abellana 1748eb1214 Test for query status to determine if session has to be renewed
Since changeset 8d160f24aa4a
issue5928
review27671002
2016-10-05 09:22:29 +02:00
Sergi Almacellas Abellana 1bfc17f69c Update tab_count when using a search filter
issue5864
review32601002
2016-10-03 09:37:08 +02:00
Sergi Almacellas Abellana f91f298274 Update eonasdan-bootstrap-datetimepicker to latest stable version
Since 4.17.37 datetimepicker requires a class to be set on the button
to open the widgets, so we should set this class in order to make the
datetimepicker work with latest versions

issue5860
review33361002
2016-09-28 15:36:27 +02:00
Sergi Almacellas Abellana 3f11bf77d9 Backout changset d247d8711294
issue5796
2016-09-28 15:15:34 +02:00
Cédric Krier 430058b891 Comply to the JSON-RPC specification
issue5782
review28651002
2016-09-27 11:57:55 +02:00
Cédric Krier 9900f149f7 Fix MultiSelection widget
Since changeset bef1325dba46, the select element is named select instead of el.
And changeset a024901a96d4 wrongly moved the call to set_client only when value
was empty.

issue5894
review26691002
2016-09-21 00:19:51 +02:00
Sergi Almacellas Abellana c0f49e52c8 Merge recursive results in DomainParser.parse_clause
We should use jQuery.merge instead of Array.concat, as concat creates a new
Array (which was not correctly returned) and jQuery.merge merges the contents
of both arrays in the first array.

issue5883
review26651003
2016-09-20 09:49:57 +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 aa3048c23b Increase filter box size on bigger screens
Customize size depending on the screen sizes so it's rendered bigger on
computer devices while mantaining the same aspect in smaller devices

issue5879

review30481002
2016-09-16 09:45:05 +02:00
Cédric Krier b4900eda05 Empty value in O2M should remove existing record
The changeset 5efdef4c2c7d wrongly skip the removal of existing record in the
group. So it was not possible to remove the last record of the field.

issue5878
review34271002
2016-09-15 22:23:50 +02:00
Sergi Almacellas Abellana 37d91cb526 Don't set button text when reusing existing button elements
Since changeset 4744202e7c6a button elements are reused, so we must
only add its text when it does not exist otherwise the label is shown
multiple times.
issue5870

review32571002
2016-09-13 10:24:42 +02:00
Sergi Almacellas Abellana d6b3ae4ba0 Add noeval to PYSONDecoder
issue1616
review25491002
2016-09-13 10:15:42 +02:00
Cédric Krier 65e3f3d39c Fix rename of label to title in xxx2Many
The changeset a05aa6335ba6 renamed the label variable into title but it misses
the id attribute management.

issue5861
2016-09-08 17:08:41 +02:00