Commit Graph
4666 Commits
Author SHA1 Message Date
Cédric Krier 237826bb43 Use separate XML parser in Views
issue8131
review54561002
2019-03-11 12:02:58 +01:00
Cédric Krier c27b618f96 Add size attribute to image tag
issue8146
review49781002
2019-03-09 17:10:34 +01:00
Cédric Krier 4f3532487f Reduce noise when extracting and updating catalogs
We omit the header as they are not filled nor used.
We do not put location in comment as they are changing too often.
We ignore the obsolete translations.

issue8160
review47871002
2019-03-09 16:59:41 +01:00
Cédric Krier 66de4b7512 Use between numbers in filter box
issue8149
review53571002
2019-03-08 23:50:42 +01:00
Cédric Krier b1dd1e7331 Avoid comparison between tuple and int in one2many position
Such comparison is no more supported on Python 3.

issue7998
review46801002
2019-03-08 18:45:21 +01:00
Cédric Krier 0fb0609697 Try to use native time zone of Windows
The dateutil implementation fails on Windows for date before epoch.

issue8145
review58541002
2019-03-08 18:39:27 +01:00
Cédric Krier 016c531971 Use set_entry_text_column on Gtk.ComboBox
issue8139
2019-03-05 16:14:32 +01:00
Cédric Krier d7a23577f3 Fix typo from Gtk.Align instead of Gtk.Alignment
issue8139
2019-03-05 15:47:57 +01:00
Cédric Krier c356bb7641 Remove pygtkcompat and clean most deprecation warnings
issue8139
review47841002
2019-03-05 13:23:45 +01:00
Cédric Krier b660ae55b6 Allow to click button on readonly record in tree view
issue8154
review47861002
2019-03-04 18:58:26 +01:00
Cédric Krier 38dd94c2f8 Use set_underline for menu item of form
issue8129
review74471002
2019-03-04 18:52:05 +01:00
Cédric Krier b43242df31 Use search_read in CSV export
issue8128
review45951002
2019-03-04 18:50:55 +01:00
Cédric Krier 77eb3c38ea Allow cells to have multiple renderers
Each cell can define prefixes and suffixes renderer which will be added to the
column using their expand property.
We use this new feature to replace the CellRendererBinary by
CellRendererClickablePixbuf's for each buttons.
We implement also an editable cell for Reference fields by using a Selection
and a Many2One cell.
In order to be able to navigate between cells of the same column, we do not
validate anymore the field when the cell is left for another of the same
record (this is a similar behavior to the form). Also the next and previous
columns are checked if they are editable if start_editing is set to ensure to
stay in edition mode during the all navigation.

issue8112
issue6918
review46761002
2019-03-03 12:36:36 +01:00
Nicolas Évrard 4d0a2f13ca Remove use of screen.current_record and screen.group from views
issue8067
review62411002
2019-03-01 15:05:50 +01:00
Cédric Krier a5d0aec172 Fill 'to' with 'from' value on filter box
When the from value is changed, we fill the to with the value of the from so
the operator will be equal by default.

issue8104
review50761002
2019-02-26 16:22:00 +01:00
Cédric Krier a7f95e009c Reorder search entry buttons
issue8099
review50751002
2019-02-26 16:09:12 +01:00
Cédric Krier 9796c83459 Add tab domain in url
issue7841
review46691002
2019-02-26 16:05:25 +01:00
Cédric Krier 3b0d862675 Use string from node attribute
The XML attribute must have the priority on the field definition.

issue8123
review45941002
2019-02-26 16:02:53 +01:00
Cédric Krier c4549aa939 Replace filter window by popover
The fix the focus not being set under some window manager.

issue8061
review48711002
2019-02-26 15:50:28 +01:00
Cédric Krier 353b90e8bf Remove '-' between widgets in Reference field
This is too follow the sao design.

issue8116
review72411002
2019-02-26 15:47:20 +01:00
Cédric Krier 3c164dfd1a Use idle_add to set active on combobox from match selected of dropdown
Without this delay, it generates warnings when the selection is done with the
mouse or a SIGABRT when it is done with the keyboard.

issue8115
review46781002
2019-02-26 15:42:26 +01:00
Cédric Krier d0ddc163f4 Do not use set_text of Many2One and Reference when setting only string
changeset 13d81b52b4c4 replaced some direct call to wid_text.set_text by the
set_text but it set_text on Reference expect to receive a tuple (from
get_client). So when set_text is called just to clear or update the wid_text
it loose the selection of Reference.
Indeed as most of the time, it is called with an empty string, there is no
need to set the position of the entry.

issue8114
review54541002
2019-02-26 15:41:03 +01:00
Sergi Almacellas Abellana 4507ec63fd 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:46 +01:00
Cédric Krier 9180bed90c Migrate cellrenderer to introspection and store editable
In order to limit issue with vfunc, it is better to follow the best practice
by using introspection without pygtkcompat.
Also vfunc may have issue with object created by it and returned, so it is
safer to keep a Python reference to on the Python class.

issue8110
review47811002
2019-02-20 12:14:12 +01:00
Cédric Krier 74eb7d4e94 Delay execution of CellRendererBinary callbacks
If those callbacks open a popups, GTK shows some warning and eventually it
leads to a segmentation fault. So we delay them using by executing them when
the loop is idle.

issue8111
review48731002
2019-02-20 12:04:00 +01:00
Cédric Krier 9e1fa47b2c Set default size on dialog of CSV windows
issue8016
2019-02-19 15:56:58 +01:00
Cédric Krier 7a1a18ee9a Prefix login title with Tryton
issue8091
review60541002
2019-02-13 11:02:32 +01:00
Cédric Krier 9aa60f5a2e Display version on login dialog
issue8090
review70551002
2019-02-13 11:01:22 +01:00
Cédric Krier 22080c2d75 Test all widgets of the field for expand
A form can have multiple widget for the same field, so we must test all of
them for expand.

issue8016
review51621002
2019-02-13 10:56:22 +01:00
Cédric Krier 358be93e23 Use tab key for tab navigation
issue8070
review49771002
2019-02-13 10:46:27 +01:00
Cédric Krier 39a3b4bf00 Use ShortcutsWindow
issue8072
review58511002
2019-02-13 10:44:04 +01:00
Cédric Krier 11ba44a3dc Remove record and field on widget display call
changeset fb74e8d64b9d missed to remove it from Form.reset

issue8107
2019-02-13 10:13:35 +01:00
Cédric Krier d3ab928971 Define fields to read for export CSV
issue8095
review46741002
2019-02-10 13:42:16 +01:00
David Harper 5ebf689c5b Rename informations to information
issue7926
review54491002
2019-02-06 22:34:13 +01:00
Cédric Krier a35d6077f6 Improve size request of form widgets
issue8016
review45911002
2019-02-05 19:24:07 +01:00
Cédric Krier 5d570f8924 Use Mixin to share common behavior between Form and Dict widgets
The Integer and Float widgets of form and dict can share the same Entry
handlers.

issue7989
review66511002
2019-02-03 20:41:27 +01:00
Cédric Krier 8a3e2498dc Ensure sort key always return an integer
When sorting tree model, it is possible that some ids are not in the ordered
list (because they do not fit anymore in the domain). So we return the number
of records so they are moved at the end of the list.

issue8042
review53531002
2019-02-03 20:29:09 +01:00
Cédric Krier e3da9f8726 Remove call to window_list_toplevels when destroying NoModal
The test was added by changeset 5b5d0c1660e9 to prevent case when the parent
was destoyed before the NoModal. This happened when creating a record from the
search window. But this is no more the case with changeset b87844203f77 as the
search window is destroyed before the creation of the form window.
As the window_list_toplevels has shown multiple times to generate segmentation
fault, it is safer to stop calling it and remove the test which is normally no
more needed.

issue8049
review52621002
2019-02-03 20:25:03 +01:00
Cédric Krier 08048027cd Always append ':' at the end of the string
issue8041
review51611002
2019-02-03 20:19:17 +01:00
Sergi Almacellas Abellana 5ede351d44 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:04 +01:00
Cédric Krier ad45f2bc69 Always display tree views to keep model up to date
Any tree view may be used even if it is not shown e.g. to save tree state. So
the model of TreeView which keeps a reference to the group must be updated if
the group has changed.

issue7885
review60491002
2019-01-30 10:11:33 +01:00
Cédric Krier c7dfe09cb8 Rely on editing property of renderer to set value
In Python3, the 'remove-widget' is not trigger when the selected row is
changed. This makes the attribute editabletree_entry not reliable. Instead we
should use the editing property of the renderer and manage the editable
reference on the widget (which is a cleaner separation concept). This allows
also to remove duplicate code in set_value by calling on_editing_done.

issue7936
review46711002
2019-01-30 10:10:00 +01:00
Cédric Krier 257978a01f Fix link syntax in documentation 2019-01-30 10:04:52 +01:00
Cédric Krier 224ef0fee1 Raise NotImplementedError instead of NotImplemented
issue8022
review49731002
2019-01-30 10:00:49 +01:00
Cédric Krier 91b8091d5d Connect dict widgets to the right activate callback
On activate of Entry and on toggle CheckButton, the parent must be activate.
The toggled handler must also be blocked when activate the CheckButton by code
to avoid unnecessary callbacks.

issue7987
review49701002
2019-01-30 09:33:51 +01:00
Nicolas Évrard c975fd890c Use record and field properties of widget instead of method arguments
issue8020
review58491002
2019-01-23 16:58:11 +01:00
Cédric Krier 3fcef1f985 Reduce offset when no search result
issue7966
review60461002
2019-01-18 11:17:07 +01:00
Cédric Krier f3565724be Allow to redirect bus request
issue7943
review48691003
2019-01-18 11:01:22 +01:00
Cédric Krier b4ae7cb9ef Use filled login to select profile
The login should not be changed when editing the host or database.

issue7928
review72381002
2019-01-07 21:57:13 +01:00
Cédric Krier 4a11d8ee19 Improve profile edition with empty and similar value
Prevent IndexError when path has been removed.
Clear the db_cache when adding new entry.
Do not remove existing profile when edited with same name than another.

issue7946
review51601002
2019-01-07 21:55:50 +01:00