Commit Graph
4223 Commits
Author SHA1 Message Date
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
Cédric Krier 294ec4efc6 Catch QueryCanceled when running DBLogin
changeset bf55d0d38d01 moved the catch but missed that run() could raise this
exception if cancel button is clicked.
2016-05-31 16:07:44 +02:00
Cédric Krier 2f065da300 Manage custom login process
The password is removed from the login window. The login parameters are filled
using asks pop-up until login success. The same login method is used to renew
the session.

issue5521
review23011002
2016-05-31 12:51:46 +02:00
Sergi Almacellas Abellana 5e7fc37b10 Use get_client in calendar events to get proper timezone
issue5579
review27301002
2016-05-30 15:29:16 +02:00
Nicolas Évrard 7b28d779c6 Use get_quotechar when guessing CSV file format 2016-05-27 18:24:26 +02:00
Cédric Krier 2b1d256bdd Improve Many2One icons
- add a clear icon
- move open icon as primary

issue4540
review24181002
2016-05-25 11:35:39 +02:00
Cédric Krier 46c584787d Remove Screen.parent hack in Attachment and Note
The modified test in Screen.switch_view can be moved to
Screen.default_row_activate only, so the Attachment and Note screen doesn't
require to have a fake parent to switch views.

issue5558
review20201002
2016-05-25 11:13:23 +02:00
Cédric Krier 9e74caa4f9 Set view values before testing modified record for translate pop-up
The view values are not always set when the method is triggered by an entry
icon which doesn't grab the focus.

issue5555
review26291002
2016-05-25 11:10:36 +02:00
Cédric Krier d09c31a36e MimeType in .desktop must end with a semicolon 2016-05-19 11:08:51 +02:00
Cédric Krier 50ad44b340 Set sizing to TREE_VIEW_COLUMN_FIXED for column without field
Columns like button have not a field defined but their sizing should any way be
fixed otherwise the Treeview containing such columns will never be in fixed
height mode and so all records of the view will always be read.

issue5546
review23091002
2016-05-19 11:06:45 +02:00
Prayash Mohapatra 169b316cb8 Remove unused Board.widgets list
issue5063
review18131002
2016-05-10 11:47:57 +02:00
Cédric Krier 80d5120936 Fix typo decoder -> decode from changeset 2753ae3e9865 2016-05-10 11:46:43 +02:00
Maxime Richez bcc5038e94 Clear filename when clear button is pressed
When the clear button of a binary field is pressed, you
would expect the filename to be cleared too, but the
associated field remains unchanged.

issue2633
review16201002
2016-05-10 11:12:00 +02:00
Cédric Krier 77623908c9 Manage PYSON in tree_invisible attribute
issue5425
review17181002
2016-05-10 10:29:48 +02:00
Cédric Krier be4f9f558e Re-update translations 2016-05-07 15:09:39 +02:00
Cédric Krier 0f48b55d51 Increase version number 2016-05-02 15:35:01 +02:00
Cédric Krier 6ffe4cee23 Added tag 4.0.0 for changeset 44d8ed92ff90 2016-05-02 15:34:04 +02:00
Cédric Krier 43e5acb140 Prepare release 4.0.0 2016-05-02 15:34:02 +02:00
Cédric Krier 5db2511ef8 Create record before binding widget to activate
Otherwise setting default boolean value trigger the activate action which fails
because the container has not yet the screen set.
2016-05-02 12:54:21 +02:00
Cédric Krier 04280f95f5 slugify hostname and database in IPC
As they are used to create a file, they can not contain invalid chars.

issue5356
review20171002
2016-05-01 22:45:57 +02:00
Cédric Krier 6f17b8fe0c Encode uri into filesystem encoding before urlopen
issue5503
review21941002
2016-05-01 22:44:42 +02:00
Cédric Krier 9d1171cca0 Update translations 2016-05-01 11:00:11 +02:00
Cédric Krier 2c1da06779 Cast keyword_open into int
It is needed to correctly evaluate the value "0"

issue5379
review18071002
2016-04-29 23:01:39 +02:00
Cédric Krier b6eccbb959 Limit nested import to One2Many
The ModelStorage.import_data can only support nested for One2Many, so this must
be limited on the interface.

issue5427
review25281002
2016-04-28 20:58:50 +02:00