Commit Graph
4246 Commits
Author SHA1 Message Date
Sergi Almacellas Abellana 0951bd03e9 Add test from parse_clause with nested generator
issue5883
review26661002
2016-09-20 09:52:25 +02:00
Cédric Krier fdce24fc3b Show non editable widget as insensitive
Since changeset 37b76806c878, there is no visual hint for the editable property
of a widget. So we will change the normal fg/base/bg for their insensitive
values.

issue5855
review28741002
2016-09-19 22:34:29 +02:00
Cédric Krier 0c31ae95ea Move info-bar at the bottom
issue5857
review28751002
2016-09-19 22:20:08 +02:00
Cédric Krier d4149a33b9 Empty value in O2M should remove existing record
The changeset b05bedef260a wrongly skip the removal of existing record in the
group. So it was not possible to remove the last record of the field.

issue5878
review31521002
2016-09-15 22:23:10 +02:00
Cédric Krier ea0e436226 Set correctly image on ImageMenuItem
issue5872
review34261002
2016-09-15 22:22:16 +02:00
Sergi Almacellas Abellana 20fe330660 Manage readonly on field translations
issue5824
review31481002
2016-09-13 10:19:57 +02:00
Cédric Krier da1da413ff Normalize lang to be able to convert it into windows name
issue5443
review27631002
2016-09-12 21:09:26 +02:00
Cédric Krier a5b7c30428 Rename language codes
issue5443
2016-09-10 23:27:44 +02:00
Cédric Krier 68c90d3fbb Add overwrite confirmation on file selection dialog
The feature is only available for GTK >= 2.8
so it is activated using duck typing.

issue5851
review30461002
2016-09-10 10:43:12 +02:00
Nicolas Évrard b99c5b0988 Honor required and readonly status in [OM]2M title label
issue5649
review29301002
2016-09-08 10:15:03 +02:00
Cédric Krier 083a267516 Set parent on RPCProgress only for asynchronous call
It is is useless to change the cursor for synchronous call because the event
loop will not have a chance to update the cursor.

issue5845
review29491002
2016-09-06 09:28:46 +02:00
Cédric Krier f6bbc1db50 Do not popup error message in favorit_set
The method is triggered by the menu select event which will trigger a
segmentation fault in GTK if a popup (error message or login) is displayed
during the callback.
So we just ignore the error and let the callback triggered a next time.

issue5843
review32561002
2016-09-06 09:07:08 +02:00
Cédric Krier b58937a4d5 Do not store in calendar invalid event
The user could create an event with an end date before the start date during
edition. So event must not be added to the store of GooCalendar because it does
not support such inconsistency.

issue5723
review33291002
2016-08-31 23:00:05 +02:00
Cédric Krier d214800cda Show up login dialog on 404 error when login
Only 404 needs to go back to login dialog.

issue5837
review21231003
2016-08-31 22:58:05 +02:00
Cédric Krier 36aab63dac Convert file names from gtk.FileChooserDialog
On POSIX, it is encoded using the file system encoding.
On Windows, it is always UTF-8.
See http://www.pygtk.org/pygtk2reference/class-gtkfilechooser.html#FileNamesAndEncodings

issue5671
review21231002
2016-08-31 22:55:03 +02:00
Xavier Codinas 0f98f48d8c Restore tab default order when no manual change
issue5763
review29441002
2016-08-25 16:29:45 +02:00
Cédric Krier 2b1412c835 Stop using dtstart when dtend is not defined
Goocalendar supports to have None as value for end date so we must use it if
dtend is not defined.
Also it is better to fail directly on missing dtstart attribute.

issue5786
review32431002
2016-08-25 15:44:28 +02:00
Cédric Krier 2e6c7ce418 Limit connection pool size to 4
issue5787
review28661003
2016-08-23 18:37:24 +02:00
Cédric Krier d016d4c08c Return None on exception in server_version
dblogin does not except to receive an exception in test_server_version.
Raising an exception makes the dialog freeze.
The raise was introduced probably by mistake by changeset 0eb1d501ca9d.

issue5789
review31451003
2016-08-19 21:31:17 +02:00
Sergi Almacellas Abellana 3875d535d8 Manage view types in calendar view
issue5761
review22211002
2016-08-17 10:55:52 +02:00
Cédric Krier 3735e089dc Show wizard dialog before adding screen widget
The dialog must be shown before the screen is display otherwise if it contains
a treeview with icons, they will not be displayed because the view will not yet
be realized.

issue4805
review25551002
2016-08-10 22:51:08 +02:00
Cédric Krier 67e36759ba Manage None value in One2Many._set_value
None could be a valid value when the read fails and a default None value is
used instead.

issue5729
review28611002
2016-08-10 22:43:19 +02:00
Cédric Krier 151ccace2a Set 'default_rec_name' context key when query default_get
The last searched text is used as default rec_name.

issue4136
review31261002
2016-08-04 23:56:09 +02:00
Cédric Krier ecf9704545 Fix concurrency login
- Do not loose old session before new one is created
- Restore raising exception if login is locked (lost in changeset bf55d0d38d01)

issue5742
review32351003
2016-08-01 21:07:28 +02:00
Cédric Krier 2dbfdd8d9a Trigger editing-done on ComboBox changed only if a row is selected
The CellRendererTime uses also a ComboBoxEntry for editing but parsing it on
every change does not work because the parsing will expect a valid time format
otherwise the current text will be erased.
So to keep the original goal of changeset 3591350f0018 which is to trigger
"editing-done" when an option from the drop-down menu is selected, the callback
on "changed" must ensure there is an active row selected.

issue5746
review28601002
2016-08-01 21:03:36 +02:00
Sergi Almacellas Abellana 69fc48c197 Fix popup_menu populate and set edit screen title
Introduced on changeset f24d94fe2d5c

issue5752
review30391002
2016-07-28 10:48:39 +02:00
Cédric Krier 68c51a4614 Import pkg_resources when needed
Recent setuptools version comes with _vendor directory under pkg_resources. As
py2exe does not include it but when frozen pkg_resources is no needed so it is
better to import it only when needed.

issue5739
review28561002
2016-07-26 23:04:01 +02:00
Sergi Almacellas Abellana d2a0ea31db Add tests from DomainParser.complete_reference
issue5731
review30361002
2016-07-26 15:54:44 +02:00
Nicolas Évrard 4866e72ef1 Call autocompletion when setting record value
issue5712
review30331002
2016-07-20 13:22:25 +07:00
Cédric Krier f84e50e616 Allow None in Greater/Less PYSON
issue5711
review31361002
2016-07-19 07:42:01 +07:00
Cédric Krier 35190bd85f Missing rename File into Connection for accel map entries
The rename was done in changeset 9da26612368c
2016-07-18 08:54:53 +07:00
Sergi Almacellas Abellana c9ed4fcbf7 Call rec_name function on Attachment and Notes title
issue2350
review31321002
2016-07-12 09:20:19 +02:00
Cédric Krier 8832aaa6a8 Don't set cursor if treeview has no more a model
This can happen because set_cursor is often called using idle_add so the
treeview could have been destroyed in the meantime.

issue5069
review27491002
2016-07-11 18:35:42 +02:00
Cédric Krier 8313790c0e Improve contextual menu of tree view
- Don't modify the selection
- Don't show single record options on multiple selection
- Don't show paste option if the view is not editable

issue2198
review31291002
2016-07-11 18:24:43 +02:00
Sergi Almacellas Abellana 2af733f5ce Remove database management
issue5384
review30261003
2016-07-07 16:06:30 +02:00
Cédric Krier 6ddb79e169 Destroy import/export dialog after actually performing the action
To read the parameters encoded by the user, the dialog should still be there
otherwise it is the default values that used.

issue5677
review29331002
2016-07-07 10:30:24 +02:00
Cédric Krier 7d70fbfea2 Fix form view in Many2Many
The first view which is a tree must be removed from the view ids as mode of the
screen is form only.

issue5378
review26461002
2016-07-07 10:25:48 +02:00
Sergi Almacellas Abellana a50ba9aac4 Replace views string with model description
issue2350
review25171002
2016-07-05 09:54:43 +02:00
Jeremy Mousset 3e85bb4d57 Make sure date is treated as such in editabletree
issue5674
review32261002
2016-07-04 18:14:06 +02:00
Cédric Krier 0c1188c9ae Clear the new record for Preference
The Preference window create a new record to simulate the read using
preferences values. But this mark the record has modified and prevent to click
on buttons. So the new record must be canceled just after "new" call.

issue5663
review28351002
2016-06-30 21:55:35 +02:00
Cédric Krier 9f85b8762f Button can be sensitive on readonly records or group
issue5010
review27381002
2016-06-30 21:51:52 +02:00
Cédric Krier d1301c7128 Limit readonly state for xxx2Many
issue5041
review25221002
2016-06-30 21:42:54 +02:00
Xavier Codinas ce6b853b27 Add test for completion on empty value
issue5664
review22121002
2016-06-27 19:11:17 +02:00
Cédric Krier a33641f99f Call on_change's even if the field is readonly
This is not in the model part that the readonly must be enforced by only on the
widget side.

issue5637
review26351002
2016-06-21 13:20:46 +02:00
Sergi Almacellas Abellana a6eb4a81a7 Correctly manage filename_field when clearing Binary fields
Introduced in changeset 0764dd5c004f

issue5646
review25241002
2016-06-17 13:28:44 +02:00
Sergi Almacellas Abellana ed7116d592 Show records names in relate window title
issue5221
review18111003
2016-06-15 09:43:52 +02:00
Cédric Krier a36399c76e Add support for count on Action Window Domains
issue5548
review25081002
2016-06-14 16:39:00 +02:00
Sergi Almacellas Abellana 4869c505ce Fix search_box autocomplete for empty values
issue5619
review28271002
2016-06-09 17:41:52 +02:00
Sergi Almacellas Abellana 1c00b54b8f Remove window_name on Action Window
issue5611
review18211002
2016-06-08 10:35:30 +02:00
Sergi Almacellas Abellana c513d97512 Use actions instead of widgets for setting focus on board view
widgets where removed on changeset 4daf166b0d41
issue5586
review22031002
2016-06-01 17:52:46 +02:00