Commit Graph
764 Commits
Author SHA1 Message Date
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
Cédric Krier f6b4e58aaf Merge Spanish's into Spanish (Latin American) 2016-10-08 12:43:17 +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 df9edd62ae Add tests with OR clauses for DomainParse.parse_clause
issue5883
review26651003
2016-09-20 09:51:19 +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 0f2a922ffe Rename language codes
issue5443
2016-09-10 23:27:57 +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
Nicolas Évrard 3e735b24c5 Honor required and readonly status in [OM]2M title label
issue5649
review21081002
2016-09-08 10:16:04 +02:00
Sergi Almacellas Abellana 17d1d721df Resolve display promise when all the rows of a tree view are displayed
Since changeset 82c4ec24b675, the tree is drawn asynchronously but some
methods may require the tree to be fully rendered to compute its values, so
the display method must return a promise that resolves when all of the rows
are displayed

issue5849
review33331002
2016-09-06 12:40:03 +02:00
Cédric Krier 9d36b52d6b Let drone run npm as root
see https://docs.npmjs.com/misc/scripts#user
2016-09-05 16:17:29 +02:00
Cédric Krier ff5a3971ab Allow root when running bower
drone run tests as root but bower does not want to run as root
without this option.

review26641002
2016-09-05 15:43:19 +02:00
Sergi Almacellas Abellana fb246e1315 Do not convert null values to zero in Decimal fields
Javascript Number converts null to 0, but the original value must be preserved
so we avoid converting null values to Decimal.

issue5846
review28711002
2016-09-05 13:14:22 +02:00
Nicolas Évrard 04229ae077 Use c3 names configuration to prevent name clashes
review33311002
issue5523
2016-09-02 12:36:13 +02:00
Sergi Almacellas Abellana 40b1629775 Add support for pyson_order on action window
issue5844
review21251002
2016-09-01 11:12:37 +02:00
Cédric Krier 58d81d27f8 Do not show error dialog on 404 during login
issue5837
review32541002
2016-08-31 22:58:38 +02:00
Sergi Almacellas Abellana a3a3c64d23 Make datetimepicker locale aware
- Set the moment locale when setting user language
- Pass the moment locale to datepicker instances

issue5797
review21201002
2016-08-29 09:35:54 +02:00
Cédric Krier a2ef328750 Fix Screen.domain_parser to filter only field in view
and remove duplicate 'id' addition

issue5815
review30441002
2016-08-25 19:12:43 +02:00
Cédric Krier 73481748c1 Reuse existing cell when redrawing row
It is better to avoid remove/append on the DOM to prevent to trigger a repaint.
So we should reuse existing cell if possible instead of replacing it on each
redraw.

issue5803
review21211002
2016-08-25 19:11:24 +02:00
Cédric Krier 41c69e6827 Extend existing table when More is clicked on list view
issue5802
review27571002
2016-08-25 19:08:27 +02:00
Xavier Codinas f35ca92d8a Restore tab default order when no manual change
issue5763
review32401002
2016-08-25 16:23:22 +02:00
Cédric Krier 31d0c8d333 Improve responsiveness of Sao.View.Tree.display
- Use replaceWith to construct the new table body
- Call redraw on a bunch of rows asynchronously
- Improve visible test in redraw by using references

issue5801
review27561002
2016-08-25 15:49:43 +02:00
Xavier Codinas a3d5cce4b5 Allow to update fields in DomainParser
issue5821
review27591002
2016-08-24 16:12:26 +02:00
Cédric Krier b86adb86de Replace ok/cancel icons by GTK+ one
The Tango version are in CC-by-sa-2.0 which is not considered as a free license
by Debian project. So we replace them by the standard GTK+ version.

issue5788
review31461002
2016-08-19 21:52:10 +02:00
Sergi Almacellas Abellana 032d7e5833 Add missing bind on XXX2Many edit and add
Changeset 5b447f80162c added async callbacks when opening and editing XXX2Many
fields, but they were not bound to the correct object so the object properties
are not read correcty.

issue5780
review31411002
2016-08-17 11:00:00 +02:00
Sergi Almacellas Abellana a7370447b9 Remove already deleted records on on_write result
issue5771
review26521002
2016-08-17 10:57: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
Cédric Krier 56e3197283 Manage null value in One2Many._set_value
null could be a valid value when the read fails and a default null value is
used instead.

issue5729
review26501002
2016-08-10 22:44:42 +02:00