Commit Graph
4405 Commits
Author SHA1 Message Date
Cédric Krier e4ecd0c91a Increase version number 2017-10-30 14:48:41 +01:00
Cédric Krier 80c7f46de2 Added tag 4.6.0 for changeset d7ed5002e472 2017-10-30 14:48:24 +01:00
Cédric Krier 281f2934d6 Prepare release 4.6.0 2017-10-30 14:48:24 +01:00
Adrien 49d4eea7bb Use group-changed to update wizard buttons states
record-modified is often call earlier because the listener is not supposed to
use the values. But group-changed is triggered by record-changed which is
called when all the fields are really changed included from on_change calls.

issue6576
review43421002
2017-10-29 00:46:11 +02:00
Cédric Krier 101ac60781 Update translations 2017-10-28 16:50:46 +02:00
Cédric Krier f42a1c0c73 Simplify process_exception to allow better callback management
process_exception should only be used for RPCProgress exception and other
should let be managed by sys.excepthook.

issue6731
review36691002
2017-10-25 18:47:21 +02:00
Cédric Krier 67cdb2374e Modify loaded record in set_client and set_on_change of O2M
Since changeset 361ac7c348d9, only modified record are sent to the server, the
multiselection widget use set_client to store selected row so those record
must be marked as modified.

issue6855
review39801002
2017-10-21 10:47:42 +02:00
Cédric Krier 8b593beff7 Use dirname of executable for current dir
The changeset 8ec708476327 wrongly removed the call to dirname.

issue6862
review39811002
2017-10-18 15:01:40 +02:00
Cédric Krier 48e170c1a4 Consider Reference field with negative record as empty
issue6749
review39721002
2017-10-11 22:42:38 +02:00
Cédric Krier d61d164a94 Decode path with file system encoding if it is not a unicode
The environment variable APPDATA and sys.executable on windows are bytes under
Python2 and strings under Python3.

issue5810
review38851002
2017-10-10 10:49:43 +02:00
Cédric Krier 6b4341214f Use None as yoptions
GTK+-3 does not support to have int as options so we must use None which works
also on GTK+-2.

issue6804
review40711002
2017-10-08 11:43:33 +02:00
Albert Cervera i Areny 2a0607f1eb Do not fail when completing selection with last value None
This may happen when searching for several values which need to be quoted
using ';"'.

issue6714
review41511002
2017-10-05 22:33:14 +02:00
Cédric Krier b5872e7350 Update domain parser test
Since changeset fb7c6e9e50b0, domain parser uses datetime_strftime which
always format year with 4 digits.

issue6797
review38781002
2017-10-02 16:23:27 +02:00
Cédric Krier 75ca8736d9 Add context_model to URL
issue6750
review44341002
2017-10-02 16:09:17 +02:00
Cédric Krier 9187e9cfc6 Add only modified records of xxx2Many
issue6754
review36611002
2017-09-27 18:48:02 +02:00
Cédric Krier d8362cd409 Copy CA certificate when compiling for win32
ssl version of msys2 does not use the default certificate of Windows but only
the certificates bundled in OPENSSLDIR.

issue6771
review38721002
2017-09-27 18:39:03 +02:00
Cédric Krier 8c52c82dfb Allow to export model and record name of Reference fields
issue5667
review44291003
2017-09-26 01:27:10 +02:00
Cédric Krier 77a8b71c2a Replace unset_editable by Screen readonly for WinSearch
This ensures to have the visual layout of a non-editable tree view.

issue6752
review44291002
2017-09-15 19:43:27 +02:00
Cédric Krier de174eedef Remove record from the Group in reversed order
This limit the number of cursor changes on large list as the changes are that
the cursor is still on the top.

issue6741
review39661002
2017-09-11 21:43:08 +02:00
Cédric Krier 64aad613a0 Use set_buffer instead of instantiation parameter of TextView
GTK+-3 does not support instantiation with parameter.

issue6753
review43481002
2017-09-11 21:41:28 +02:00
Cédric Krier 2786017458 Manage also 401 HTTP status to renew session
This is a similar status to 403 also used by the server.

issue6748
review40641002
2017-09-07 21:08:29 +02:00
Cédric Krier 0b3bc06ec6 Use client limit for window action with empty limit
issue6740
review40621002
2017-09-07 21:02:03 +02:00
Cédric Krier a0010fdf13 Allow to encode Decimal in ViewSearch
issue6744
review35621002
2017-09-07 21:00:28 +02:00
Cédric Krier 3fd64d5205 Improve binary/image buttons
- show/hide clear/select button
- move open as primary icon of filename
- show download only when there is data to download

issue6719
review37641002
2017-09-07 18:44:55 +02:00
Cédric Krier 95f877489d Improve treeview headers
- Use same alignment as the widget
- Use grid lines vertical on non-editable
- Use grid lines both on editable

issue6681
review37601002
2017-09-03 11:30:04 +02:00
Cédric Krier f8df73da42 Use widget instead of type to set column fixed
issue6696
review43371002
2017-08-31 23:42:58 +02:00
Cédric Krier eadae22a7c Add missing shortcuts
issue6104
review41481002
2017-08-30 18:27:10 +02:00
Cédric Krier e41987fc84 Unify toolbar and menu definition
- Use a unique definition
- Update states of both toolbar and menu
- Use a more logical order

issue5644
review27861002
2017-08-30 18:17:48 +02:00
Cédric Krier 1c4c1de629 Do not read data from the server if the value is a _FileCache instance
If the value was just set by the user, it should not read the data from the
server but use the new data set by the user.

issue6718
review38561002
2017-08-28 18:31:07 +02:00
Cédric Krier 8318682c0c Mark tree states as done for view without tree_state attribute
set_tree_state can be called later with a different view_type and this should
not change the tree.

issue6473
review35251002
2017-08-28 18:26:59 +02:00
Cédric Krier f40b0b2e1c Make readonly, required and invalid widget themable
- add classes to the widget
- provide a minimal application style
- allow to load a user theme
- add the profile name to the main window

issue6643
review35141002
2017-08-07 19:58:00 +02:00
Cédric Krier 0f87253c1f Do not try to update keys if an RPCException occurs
issue6689
review38511002
2017-08-07 19:53:11 +02:00
Cédric Krier 4c58011892 Allow to execute button on readonly record and group
issue6659
review40551002
2017-08-04 00:31:26 +02:00
Karla Stenger 309fe6944a Add profile_name or login details in title
issue6598
review42471002
2017-07-29 19:45:00 -03:00
Cédric Krier 2f587dd73a Use keyword argument model to instantiate ComboBoxEntry
Gtk+-3 supports only keyword arguments

issue6588
2017-07-27 18:56:31 +02:00
Cédric Krier cf66296f61 Test correctly if saved record has the id 0
issue6646
review42531002
2017-07-27 10:26:24 +02:00
Cédric Krier 81d0b96cb2 Catch all Exception on RPC call that does not process them
Those methods should never fail because the UI can not manage them.

issue6662
review35201002
2017-07-26 23:54:43 +02:00
Cédric Krier 20869dd732 Compare to end instead of '\0' as GTK3 return empty string instead
issue6656
review35171002
2017-07-26 23:41:08 +02:00
Cédric Krier 2fd3cb3793 Convert color to 2 digit hexadecimal instead of relying on pygtk __str__
issue6656
review35171002
2017-07-26 23:40:45 +02:00
Cédric Krier 2110d7ee41 Use get_color_selection instead of the pygtk colorsel attribute
issue6656
review35171002
2017-07-26 23:39:52 +02:00
Cédric Krier 5df7e7c315 Do not hide the search window when combobox shows its popup
When a combobox shows its popup, the search window loose the focus so in this
case it must not be hidden.

issue6654
review41451003
2017-07-26 23:38:16 +02:00
Cédric Krier 71faf9f652 Use right form view in Many2One and WinSearch
The first view which is a tree must be removed from the view ids as mode of
the screen is form only.

issue6510
review40531002
2017-07-26 23:25:21 +02:00
Sergi Almacellas Abellana 656a9bb6ca Ensure screen view_ids is always a list
issue6649
review42541002
2017-07-19 09:27:47 +02:00
Cédric Krier 57500675c3 Apply widget style to editable entry
The Char widget with autocomplete should apply the style on the entry widget
instead of the ComboBoxEntry.

issue6620
review41431002
2017-07-16 23:52:05 +02:00
Karla Stenger 28ff257d25 Update CONFIG['login.profile'] after connection succeeds
issue6597
review36461002
2017-07-13 12:06:20 -03:00
Cédric Krier 3b001b3348 Clear profile combo when filling entries and on each loop 2017-07-13 00:01:17 +02:00
Cédric Krier d7354aa4c3 Missing removal of port in option parser
issue6595
2017-07-12 23:59:48 +02:00
Cédric Krier 302757db53 Do not store host/port split
There is a mismatch between how the profiles are stored. Sometimes the host
contains the port and sometimes not. So we rationalize this by removing the
storage of the port and always store the full host as the user type it.

issue6595
review36421002
2017-07-12 20:00:59 +02:00
Cédric Krier 62770b9b06 Set sequence when editable tree create new record
If the editable view has a sequence attribute, it must set the sequence when
creating new record otherwise the sequence field is left empty and there is no
guarantee that the order will be preserved on the save.

issue6622
review36421003
2017-07-12 19:27:36 +02:00
Cédric Krier 363366b39f Add Attr* constructors to Pango
This implements the same constructors as pygtk for pango.

issue6600
review41421002
2017-07-11 00:14:46 +02:00