Commit Graph
2661 Commits
Author SHA1 Message Date
Cédric Krier a63c30c30b Add buttons of the view in actions menu
review3011005
2014-02-11 19:40:41 +01:00
Cédric Krier d306e07621 Don't evaluate anymore relate action with the record
This enforce the usage of only active_mode, active_id and active_ids for relate
domain otherwise the behavior is not depend of the fields present on the view
and already loaded.

issue2474
review3271002
2014-02-11 18:13:04 +01:00
Cédric Krier 3f7ee21952 Search for sequence on all views of one2many
issue3642
review3201004
2014-02-10 22:24:21 +01:00
Cédric Krier efac3f6036 Remove early attribute clearing in destroy
Removing those attributes could lead to errors where in the code we expect to
have those attributes.
It is better to leave them and let the garbage collector detect them.

review3251002
2014-02-10 22:23:04 +01:00
Cédric Krier a7ae4d4520 Fix dynamic size for translate widget
Dynamic size was added in changeset 8ee7e142c8fd but the translate widget was
not updated.

review3271004
2014-02-09 23:57:24 +01:00
Cédric Krier 2ad92c8ba2 Fix selection of column in next/previous
When _sign is negative, it doesn't select the first column but the second. So
despite of selection the wrong column, it could crash if there is only one
column in the view.

review3241004
2014-02-09 23:56:27 +01:00
Cédric Krier 34f9666bbd Don't set missing default value to False
False is not always a good valid value for the field, so it is better to let the
field dealing with default value.

issue3643
review3281002
2014-02-09 23:54:56 +01:00
Cédric Krier 6a568168bc Add context to import window
Users could expect that importing from a specific window will inherit of his
behavior like the default value of fields. So the context of this window should
be passed to the import_data call.

review2971002
2014-02-09 23:50:54 +01:00
Cédric Krier 63fce32636 Remove process call on wizard sensitive state change
This hack was added by changeset cd8bf16ecab4 to manage wizard launching other
wizards but changeset 8bcd8092c2d9 makes this hack useless.

issue3638
review3201003
2014-02-06 23:02:10 +01:00
Cédric Krier 490d4df18d Use same modified value as on_change for pre_validate
The value sent for pre_validation will be used to instanciate a record in the
same way as on_change. It is also better to get the id also for pre_validate.

review3211002
2014-02-06 22:57:15 +01:00
Cédric Krier f05a13b742 Send record-saved signal after display
When called before display, current_view could still have unformatted value on
the widgets which could be considered as different.

review3131003
2014-02-06 22:38:43 +01:00
Cédric Krier a4751b61bd Fix find button in search window
It should use the text filled in the search entry.
And it should not close the window if nothing is found.

review3101003
2014-02-06 22:36:44 +01:00
Cédric Krier 45ab9bcfa2 Allow to use other field with the binary widget
review2921002
2014-02-06 22:34:32 +01:00
Cédric Krier 88dd63fc51 Use sys.prefix instead of guessing
issue3515
review2881002
2014-01-31 22:21:41 +01:00
Cédric Krier 1b71539f20 Remember path of last edited file in binary widget
Binary widget remember the path of the last edited file, so it can be selected
by default by the open button.

issue3606
review2861002
2014-01-31 22:17:54 +01:00
Cédric Krier 36891f23da Paste on editable list create new records if needed
review2841002
2014-01-31 22:13:23 +01:00
Cédric Krier 0fce9c8a40 Drop support of Python 2.6
review2681004
2014-01-31 00:05:43 +01:00
Cédric Krier f9e5931420 Encode gettext value to match with string value
issue3587
review2991002
2014-01-26 22:17:03 +01:00
Cédric Krier 4f5b6da87c merge 2014-01-26 22:03:13 +01:00
Cédric Krier e62e15612b Add missing states management for Binary in TreeView
issue3570
review2811002
2014-01-26 22:01:32 +01:00
Nicolas Évrard 09ceaba41b reset tree_states_done when setting a screen group
The O2M screen's tree_states_done property is filled with the view id, this
property is used to know when the state must be set or not. This has the effect
of not restoring the state of O2M widget when switching from a record to
another. This change fixes this behavior.

issue3609
review2791003
2014-01-26 18:03:00 +01:00
Cédric Krier 2cd0da0d57 Don't set default value for on_change and set id
issue3487
review2501002
2014-01-26 14:30:12 +01:00
Cédric Krier 6663c2ef29 In Reference widget, return empty string for get_model() as default value
issue3571
review2521002
2014-01-18 19:46:57 +01:00
Cédric Krier 093847ba43 Remove old workaround for PyGTK < 2.22
review2681003
2014-01-16 22:12:52 +01:00
Cédric Krier cb313d2557 Force value of parent Reference field
Since 2.6, reference field can be used in One2Many so in this case the value
should be forced like for Many2One.

review2581002
2014-01-09 18:45:14 +01:00
Cédric Krier 24e7236c7a Fix reload of screen at the end of wizard
A wizard could be launch by a button defined on a children record. In this case,
the ids to reload is not the ids from the wizard as they are from the children
model but just the current record.

issue3519
review2571002
2014-01-09 18:44:16 +01:00
Cédric Krier dcfb0c178d Resize search box to not be out of the parent
Using the screen did not always work because there could be some places on the
screen that are not reachable by a window, for example a desktop toolbar.

review2061002
2014-01-04 19:35:37 +01:00
Cédric Krier 512f6262bf Rename unlink for remove
issue3457
review2291002
2013-12-20 12:35:17 +01:00
Cédric Krier 4c8f1c056d Use a sequence of records, values in write
issue3499
review1901002
2013-12-19 14:46:30 +01:00
Cédric Krier 723b4610b3 Manage position of the cursor for Many2One and Char widgets
issue2230
review660002
2013-12-12 13:25:58 +01:00
Cédric Krier 6cf942a220 domain_parser should use rec_name for relation field and list
in operator on relation field must use list of ids. So the related rec_name
should be used instead because domain_parser always uses string as value.

issue3540
review2141002
2013-12-12 13:13:08 +01:00
Cédric Krier 07f223277c Set resource before saving
Since changeset ab856042562b, excluded fields are no more validated so the
resource field is no more set on attachment by the domain inversion (it is done
on validation).

issue3525
review2131002
2013-12-12 12:47:51 +01:00
Cédric Krier a4bdf524e4 Always match completion in search
issue3527
review1981002
2013-12-12 12:45:35 +01:00
Cédric Krier f7d32cd03f Quote also label in search box
issue3526
review1971002
2013-12-12 12:43:20 +01:00
Axel Braun b1079268e1 Desktop entry fixed for scheme registration
issue3479
2013-12-06 15:33:37 +01:00
Cédric Krier 8547f02dcc Fix domain_parser test_convert_datetime to use UTC value
Since changeset 3700121868af, internal datetime are always in UTC.
2013-12-05 17:42:04 +01:00
Cédric Krier 06de330198 Refactore get_preferences for login and user preferences
issue3514
review1831002
2013-11-28 23:12:40 +01:00
Cédric Krier 38a28eacd1 merge 2013-11-20 10:06:17 +01:00
Robin Baumgartner dfdb93794e Send None for missing parent records instead of False
issue3448
review1761002
2013-11-20 08:33:58 +01:00
Cédric Krier d5ff501ccc Search limit must be int
Since usage of python-sql limit is enforced to only integer.

issue3484
review1691002
2013-11-16 19:00:14 +01:00
Cédric Krier 3c0a4bed6c Allow to search on rec_name of Reference fields
The syntax is similar to the display of Reference in list view:
<target name>,<search value>.
The target name is the name of the target model and the search value follow the
same behavior as when searching on Many2One.

review1321002
2013-11-16 18:39:17 +01:00
Cédric Krier 1dd1ce4648 Improve search for existing issue
roundup filter is not a strict equal operation so result must be filtered for
strict equality with the hash.

issue3472
review1521004
2013-11-16 01:52:39 +01:00
Cédric Krier 874359a2a5 merge 2013-11-15 15:50:09 +01:00
Nicolas Évrard 959871cf6e Use get_eval for check_required computation
issue3473
review1561002
2013-11-15 15:03:00 +01:00
Cédric Krier 71ead2327f slugify report filename
This ensure that the file name will always work on any file-system.

issue3497
review1511002
2013-11-15 12:25:20 +01:00
Cédric Krier ad1be012d1 Use local timezone as server is always UTC
issue3444
review1421002
2013-11-15 02:28:06 +01:00
Cédric Krier 7caed0c4a9 Fix wrong instantiation of Attachment
Introduced with changeset 60c08c72a159

issue3481
review1621003
2013-11-14 18:49:47 +01:00
Cédric Krier 523d3383d9 merge 2013-11-12 16:47:23 +01:00
Cédric Krier 3768c7f834 Backed out changeset c909bd88517d
Using rec_name to search key is wrong because rec_name is the string and not
the key.

issue3483
2013-11-12 16:45:42 +01:00
Cédric Krier 8cb5792f58 Don't set image on button if it is still the same
It fixes also a strange behavior of GTK that doesn't display any images if the
icon is changed before it is realized.

issue3191
review1451002
2013-11-03 20:42:34 +01:00