Cédric Krier
4dc63af59f
Compute precision also on number without digits
...
The %s format type even inside locale doesn't produce a localized string.
So we must determine the precision of the value to format instead of relying on
the %s.
issue5062
review23591002
2015-10-22 18:16:26 +02:00
Cédric Krier
599612cf2e
Fix reload on board view
...
It is the actions that must be displayed when reloading the board.
issue5060
review16761002
2015-10-21 18:02:31 +02:00
Cédric Krier
aba3e13833
Always keep the oldest timestamp
...
The optimistic lock should be checked with the oldest timestamp to be safer.
issue2687
review23561002
2015-10-18 16:53:03 +02:00
Cédric Krier
b07f9ee1cc
Let GenericText instantiate renderer for Selection
...
The GenericText connect the renderer to the send_keys callback which manage the
keypress event for editable tree. It will be lost if the Selection widget
override the renderer. GenericText was designed to allow to pass the renderer
class to instantiate so Selection widget should use this method.
issue5044
review15741002
2015-10-18 16:49:29 +02:00
Cédric Krier
072ba2ee3c
Remove custom drag-motion management
...
The GTK+ issue that needed this hack is fixed since 2.24.7
Also the hack did not manage the scroll nor the expand which is now managed by
GTK+ internals.
issue5026
review16671002
2015-10-15 00:53:32 +02:00
Cédric Krier
00e572d466
Set a textual value for Image cell
...
on_copy uses the textual value to fill the clipboard so the best textual value
for image is the size.
issue4918
review20441002
2015-10-10 17:48:57 +02:00
Cédric Krier
e1412d79b4
Make digits with None behaves like None digits
...
issue5019
review23501002
2015-10-08 19:41:04 +02:00
Cédric Krier
7d803387f3
Add missing create access when searching on Many2One in list view
...
issue4916
review22521002
2015-10-08 13:07:47 +02:00
Cédric Krier
6d3fa6fcbc
Use italic labels for editable fields
...
issue5008
review18641002
2015-10-05 11:14:46 +02:00
Cédric Krier
d8638c46cc
Escape '_' in button string
...
issue5012
review22491004
2015-10-05 11:08:37 +02:00
Cédric Krier
bb12565cf8
Fix time widget to display 00:00
...
time(0, 0) is evaluated to False so the test for None must be explicit
to set correctly 00:00.
issue4969
review22501002
2015-10-03 11:57:11 +02:00
Cédric Krier
2a0b090a32
Remove default (16, 2) digits
...
trytond doesn't enforce any digits if it is None,
so the client must do the same.
issue4742
review22491002
2015-10-03 11:54:48 +02:00
Cédric Krier
cfaab49c57
Manage readonly widget attribute in TreeView.next_column
...
issue4772
review21421002
2015-10-03 11:52:34 +02:00
Cédric Krier
a7f436ba2a
Use package_data instead of data_files
...
package_data must be used for data that are closely related to the package's
implemenation. This is the case of the pixmaps and the locale.
issue4983
review24421002
2015-10-03 11:45:10 +02:00
Cédric Krier
bcf150d76f
Export selected record only
...
This also allow to export records inside a tree.
issue4995
review16641002
2015-10-01 22:48:40 +02:00
Cédric Krier
9388fe80b2
Fix translation of timedelta separators
...
They must be unique per language and made of one char.
issue4988
review19481002
2015-10-01 17:07:55 +02:00
Cédric Krier
e659588c1c
Correctly manage message after save and copy
...
The success of the screen command should manage the display of the right
information message.
issue4697
review18601002
2015-09-25 18:04:41 +02:00
Cédric Krier
8290aca548
Use HTML for RichText widget
...
issue4962
review20381002
2015-09-25 17:55:01 +02:00
Cédric Krier
ddbde7cdaf
Correctly set xxx2many modified by on_change
...
set_on_change should not trigger any signal but it should register
the field as modified.
issue4968
review20391002
2015-09-24 22:51:13 +02:00
Cédric Krier
8bd9720e2a
Fix localize_domain to strip 4th element only for Reference field
...
The 4th element should only be removed is the localized field is a Reference
field otherwise it must be kept.
issue4975
review24401002
2015-09-22 22:53:35 +02:00
Cédric Krier
6848037a3f
Don't hide column with unique value in tree view
...
The domain doesn't apply to the children of a tree view, so the unique value is
only unique at the top-level.
issue4973
review24391002
2015-09-22 09:31:34 +02:00
Cédric Krier
43dda96085
Use right values for Progressbar widgets
...
Use internal value as fraction/value and use the client value to display the
percentage.
issue4974
review17511002
2015-09-19 18:15:38 +02:00
Cédric Krier
9e83f8eeed
Center column titles
...
issue4963
review21381003
2015-09-16 18:16:23 +02:00
Cédric Krier
6c8004536a
Add support for invisible progressbar in tree view
...
issue4952
review19451002
2015-09-16 18:03:48 +02:00
Cédric Krier
376aa61375
Remove custom support of visible on CellRenderer
...
gtk.CellRenderer supports this property since pygtk 2.22
issue4953
review22411002
2015-09-16 18:02:37 +02:00
Cédric Krier
9bce0ea081
Popup invalid message for button pre-validation
...
issue4930
review24341002
2015-09-13 00:22:17 +02:00
Cédric Krier
6a9a2ba04d
Missing change list Progressbar to work with float between 0 and 1
...
issue4929
2015-09-07 23:59:40 +02:00
Cédric Krier
79a68bc927
Add Hungarian
...
issue4874
2015-09-02 14:06:08 +02:00
Cédric Krier
ae520344dc
Change Progressbar to work with float between 0 and 1
...
issue4929
review16561002
2015-08-28 10:57:15 +02:00
Cédric Krier
c071f0b338
Add Fast Tabbing option
...
This option allows to disable the behaviour of skipping readonly fields for
tabbing navigation and thus makes them accessible.
issue4910
review19381002
2015-08-25 17:51:00 +02:00
David Harper
52adfda63e
TreeStore of import and export does not need colour anymore
...
changeset 37b76806c878 removed the colour on the trees.
issue4927
review20361002
2015-08-22 08:47:32 +02:00
Cédric Krier
ddda520ebd
Refactor Binary and Image form widget
...
Move shared code from both in a Mixin class
review21351002
2015-08-21 15:36:11 +02:00
Cédric Krier
7ec8672961
Use PopdownMixin methods to set value on Reference widget
...
issue4898
review23341002
2015-08-14 18:15:20 +02:00
Cédric Krier
03800b5116
Fix wrong super method name 'on_start_editing' for CellRendererTextCompletion
...
changeset c77863df6c24 changed the method to 'do_start_editing'
2015-08-11 11:27:33 +02:00
Cédric Krier
ba39e36699
Fix fall-back date format
...
The date_format must come from screen context as fall-back.
The date_format must be set on all actions context
issue4892
review19351002
2015-08-10 11:10:17 +02:00
Cédric Krier
f95677d1ad
Fix TypeError during min/max computation in Graph
...
If the field is a datetime, a date or a timedelta but the value if None, it
could be compared to an existing instance and so raise a TypeError.
So the min/max value must be set with a correct value and TypeError must be
catched if the record value is None.
issue4888
review16501002
2015-08-10 11:07:08 +02:00
Cédric Krier
a402de9ad3
Don't set_current_folder on FileChooser
...
This is no more considered as a good policy.
issue4872
review23321002
2015-07-28 08:03:19 +02:00
Cédric Krier
e9274ff748
Use a domain_parser for the current view and instanciate it on demand
...
issue4773
review16491002
2015-07-28 07:49:43 +02:00
Cédric Krier
d0695f2fc5
opt-in for Mac integration
...
The Mac integration is not fully stable for now.
issue4595
review19341002
2015-07-28 07:48:08 +02:00
Cédric Krier
7db7a67ec7
Decode windows HOME using the file system encoding
...
GTK requires to have string encoded in utf-8.
issue4870
review16471002
2015-07-28 07:43:27 +02:00
Cédric Krier
3ecb999739
Check if field is loaded before adding its timestamp
...
issue4876
review20331003
2015-07-28 07:41:48 +02:00
Cédric Krier
c5c084faee
Don't decode file name from get_preview_filename
...
The file name received from get_preview_filename is already encoded in utf-8.
issue4871
review8251002
2015-07-28 07:40:44 +02:00
Cédric Krier
10c271ed4e
Fix reverse typo when setting mnemonic widget of DBCreate
...
Introduced in changeset 815fc36eeeff
issue4883
2015-07-20 17:56:07 +07:00
Cédric Krier
4e57f9c341
Add mnemonic widget to label
...
and set ATK name for widgets without label
issue3180
review8231002
2015-07-17 21:54:30 +02:00
Cédric Krier
688b8d15f9
Add missing test on field in set_column_widget
...
Field can be None when adding a column for a button
Introduced in changeset 37b76806c878
issue4882
2015-07-17 15:12:42 +02:00
Cédric Krier
69d5b47868
Inherit from standard cellrenderer when possible
...
issue3463
review15511002
2015-07-16 22:53:05 +02:00
Cédric Krier
93a687838d
Remove colors on widgets
...
- Bold label of required fields
- Explicit error message for invalid record
issue4861
review18391002
2015-07-16 22:35:31 +02:00
Cédric Krier
701770dbdd
Add selection shortcuts to reference widget
...
issue4860
review21291002
2015-07-16 01:10:24 +02:00
Cédric Krier
8779eed1fb
Add Italian
2015-07-09 15:46:01 +02:00
Cédric Krier
a02057498a
Remove custom keyboard shortcuts on treeview
...
and add standard shortcuts in the help.
issue4830
review20291002
2015-07-09 15:35:33 +02:00