Commit Graph
4681 Commits
Author SHA1 Message Date
Cédric Krier aaf9e9e75c Improve note button
* Add resources method to ModelStorage
* Support badge on icon
* Display unread and total of notes
* Add two extra colors for icon

issue8122
review70561002
2019-03-22 12:16:36 +01:00
Cédric Krier 8a179f313b Store wizard buttons instead of using get_action_area
get_action_area is deprecated so we store the buttons added as action to
remove them via their parent in clean.

issue8139
review72441002
2019-03-22 11:57:42 +01:00
Cédric Krier a9d51c25af Replace Arrow by Image
issue8139
review58561002
2019-03-22 11:56:04 +01:00
Cédric Krier 0d865d4225 Remove shortcuts from labels 2019-03-22 11:40:32 +01:00
Cédric Krier 3e3f142458 Remove fast tabbing
The focus_chain is deprecated in GTK+3 so we can no more implement easily the
fast tabbing. Instead we remove focusable property on buttons that are not
needed because they have shortcuts.

issue8181
review261071002
2019-03-22 11:26:31 +01:00
Cédric Krier 1f2ab1a743 Open CSV file with empty newline
The csv module takes care of managing the newline so we must open the file
without the universal new line management.

issue8006
review269131002
2019-03-22 11:20:53 +01:00
Cédric Krier 9b4542821c Add shortcuts for switch and remove on One2Many
issue8180
review273061002
2019-03-15 12:58:58 +01:00
Cédric Krier a6321a5e68 Resize wizard dialog on show
Setting default size is not enough if the wizard was already shown.

issue8178
review56641003
2019-03-15 12:56:32 +01:00
Cédric Krier cb74d1ffde Set fixed width for label in calendar toolbar
issue8177
review56641002
2019-03-15 12:55:07 +01:00
Cédric Krier 3f757cd0d0 Remove send error to bug tracker
and rename roundup.url configuration to bug.url

issue8173
review74491002
2019-03-15 12:46:34 +01:00
Cédric Krier 2b357a6312 Test not field instead of None
issue8188
review271071003
2019-03-15 11:19:48 +01:00
Cédric Krier 14bd3c9c65 Remove usage of _USERNAME in send_bugtracker
_USERNAME has been removed from rpc since changeset efacc2b32116

issue8171
review53581002
2019-03-15 11:16:58 +01:00
Cédric Krier 85e1d33760 Do not override exception variable in "except as"
The variable is removed outside the except block.

issue8172
review46811002
2019-03-15 11:15:41 +01:00
Cédric Krier 10fd4df21e Remove unused underscore in add_field_names 2019-03-13 16:49:14 +01:00
Cédric Krier c7970d8452 Replace Table by Grid
issue8139
review58551002
2019-03-13 16:41:00 +01:00
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