Commit Graph
3917 Commits
Author SHA1 Message Date
Cédric Krier bcd57a5ab2 Added search for pixmaps in site.USER_BASE
thanks to notzippy

issue4102
review12541002
2014-10-10 10:14:18 +02:00
Cédric Krier c7472b5636 Add missing "Show revisions" and remove old "Go to" in doc
review8621002
2014-10-10 10:07:57 +02:00
Cédric Krier 6df542f08d Don't restore text on many2one cleaning if not empty
The call to set_client in clean function could trigger a on_change that will
set a value to the current field. In such case, the previous text should not be
restored.

issue4238
review5701002
2014-10-10 10:05:09 +02:00
Cédric Krier f095bb4eb6 Prevent too old revision in form view
issue4211
review11551002
2014-10-10 09:59:37 +02:00
Cédric Krier c09a12e02f Empty dict value should always be an empty dictionary
The client should not detect as changed a Dict field with None as value.

issue4231
review11531002
2014-10-06 22:29:46 +02:00
Fabian Calle a60fb08437 Tryton client es_EC translation 2014-10-01 09:23:09 -05:00
Cédric Krier 5023c4ca68 Use field domain also to search key for displaying
Searching the key for displaying should also use the field domain otherwise it
could use the wrong key definition to display the value because there are not
garantee to have a unicity for the name of the key.

issue4199
review13541002
2014-09-30 09:41:59 +02:00
Cédric Krier d6d9af04bc Don't add line if key is missing when displaying dict widget
issue4208
review5671002
2014-09-30 09:41:02 +02:00
Cédric Krier 772c703a8d Update wizard button after setting record values
record-modified is not triggered when setting value via default.

issue4202
review7611002
2014-09-30 09:39:22 +02:00
Cédric Krier 8c3f22a509 Use floor division to order widget for focus
GTK internally use gint to make such computation, so to mimick it correctly we
must use a floor division.
2014-09-23 17:49:25 +02:00
Cédric Krier 985de6612e Don't set adjustment value outside the range
If adjustement value is set to a value outside the range, GTK can no more
compute the visible range.

issue4075
review8561002
2014-09-21 12:29:36 +02:00
Cédric Krier 7d3197afe2 Factorize parsing of hostname and port
and remove wrong constraint on database name.

issue2911
review13521002
2014-09-21 12:25:21 +02:00
Cédric Krier 85f8848003 Connect calendar widgets to send_modified when changed
issue4146
review11451002
2014-09-20 10:47:39 +02:00
Nicolas Évrard 96ad804af6 Display image widget in tree view
issue3729
review4011003
2014-09-19 17:13:03 +02:00
Cédric Krier 1b779c048c Ensure __and__/__or__ of PYSON is always boolean
issue4187
review9731002
2014-09-18 19:14:57 +02:00
Cédric Krier fd6c4d710c callback of Wizard.end takes an argument
issue4188
review12551002
2014-09-18 19:12:40 +02:00
Cédric Krier 7b1e3d71f6 Simplify WinSearch usage
As there is auto-completion, there is no more need to automaticaly fill the
field with unique matching result.

issue4006
review13511002
2014-09-18 19:10:42 +02:00
Cédric Krier 8316c17406 Recompute domain4inversion if domain changed
issue4174
review5611002
2014-09-18 17:41:51 +02:00
Cédric Krier 1bf537cd47 Missing removal of context on field
issue4178
review9721003
2014-09-17 22:23:35 +02:00
Cédric Krier c1360595aa Add pre-validation on button
issue4121
review5521002
2014-09-17 22:06:08 +02:00
Cédric Krier e3c9ca8930 Replace side button by icon in the entry
This ensure that all widgets have the same height inside a row.

issue4158
review11461002
2014-09-16 10:09:35 +02:00
Cédric Krier 1fca0d85b6 Use the right record to set wizard button state
When the wizard receive the record-modified signal, current_record is not yet
set on the screen so we must use the record from the signal to set the button
state.

issue4171
review7581002
2014-09-16 10:05:05 +02:00
Cédric Krier c26018a4f3 Better export window
- Add DnD on export window
- Allow to overide predefined export

review578002
2014-09-13 15:33:07 +02:00
Cédric Krier 7143326355 Set new button in focus chain of one2many
New button must be added to focus chain to allow keyboard only creation when
there is no existing record on form view.

issue4145
review13501002
2014-09-13 15:20:35 +02:00
Cédric Krier 945c0f5a5b Prefill export window with current view fields
issue4123
review8511003
2014-09-13 15:11:19 +02:00
Cédric Krier 8f03dc77b5 Fix favorite menu on OSX
As the select event is not managed by the mac menu, it must be done using a
timeout.

issue2303
review9711002
2014-09-13 12:14:08 +02:00
Cédric Krier 36cae5c5c8 Delay update_sum on tree view
update_sum can be called a lot of time as it is called in display which is
called for each record when clearing and if the list of record is large it can
be very slow.

issue4129
review8511004
2014-09-04 22:45:25 +02:00
Cédric Krier f4577bf28b Manage field context on Group value
issue4098
review11391004
2014-08-29 16:49:54 +02:00
Cédric Krier 09fbe1c1d0 Some tree states fixes
- Direct click on save should also store the tree states
- The timestamp of tree states should be ignored for form view because it is
  only for internal usage
- Store in tree states the index instead of id for new records

issue4130
issue4131
review14431002
2014-08-29 16:27:59 +02:00
Cédric Krier 944834994a Remove widget position and use tab_compare instead
issue4092
review13451002
2014-08-29 13:36:19 +02:00
Cédric Krier 4c73900104 Check if record is still in the multiselection when displaying
The records of current value could no more be in the selection if it has changed
because of the domain. So it must no more be displaied and it will be removed by
the call to set_client.

issue4029
review9541002
2014-08-19 14:36:45 +02:00
Cédric Krier 723caeea73 Don't remove unmodified non-valid record from One2Many
issue4099
review5491003
2014-08-19 14:34:04 +02:00
Cédric Krier 3291c55912 Use same order for children as focus_sort_tab to find focusable child
get_children doesn't return children ordered so they must be ordered according
to their position and the direction.

issue4089
review7451002
2014-08-19 14:29:01 +02:00
Cédric Krier ee7814658a Set focus on the first focusable child of the form if no cursor is defined
issue4091
review7441003
2014-08-19 14:27:21 +02:00
Cédric Krier 6914b254b7 Add export of selection string
issue4036
review14331002
2014-08-04 17:00:40 +02:00
Cédric Krier 2a1763c266 Fix domain inversion evaluation of constrained field
The evaluation to True of constrained clause should only be done for inversion.
Also it should be valid even if a wrong value is defined in the context.

issue4073
review14391003
2014-08-04 16:39:18 +02:00
Cédric Krier 616e9c5358 Load plugins from local user directory
The local plugins are loaded first to get precedence on the system wide
plugins.

issue4032
review13381003
2014-07-31 19:47:44 +02:00
Cédric Krier 1140618c3a Remove grand parent pool for sibling
Walking the grand parent pool could be expensif on large tree to prefetch some
records, so it seems to be a better strategy to limit to sibling.

issue4085
review5461003
2014-07-31 19:41:31 +02:00
Cédric Krier 3c479fc57f Ensure to concatenate export fields list to list
Normally, export_fields should be a list as it comes from json-rpc except when
inside neso. So in this case, it is a tuple since 2.6.

issue4065
review8491002
2014-07-29 12:38:38 +02:00
Cédric Krier d685f5b03e Save parent record after deletion without the deleted children
issue3917
review5441003
2014-07-20 12:57:24 +02:00
Cédric Krier 94cb7b10b4 Manage tree_state attribute
issue4028
review13371003
2014-07-20 12:54:40 +02:00
Cédric Krier 4c6837261b Fix missing rename of view.store
introduced in changeset 0535f5cf7e00

issue4068
review7431002
2014-07-20 12:50:17 +02:00
Cédric Krier d71f83bf47 Change range operator of search widget to be included
issue3997
review11311003
2014-07-09 00:43:21 +02:00
Cédric Krier fedf9468f9 Fix when number's factor is negative
It must use the absolute value of factor to compute the digit shift using the
logarithm.

issue4031
review11361002
2014-07-09 00:28:00 +02:00
Cédric Krier 8d440f904c Fix rename of cells into widgets in tree view 2014-07-03 12:31:21 +02:00
Sharoon Thomas a9202213b5 Add gtkrc for OSX key bindings
issue3960
review12351002
2014-06-29 09:50:29 +05:30
Cédric Krier 1ea3fef7f0 Use PopdownMixin for autocompletion on Char
issue3985
review6381002
2014-06-28 15:20:26 +02:00
Cédric Krier a70338cdc3 Block changed method when setting value in display of selection widget
When displaying record value, selection should not call focus_out.

issue3698
review11351002
2014-06-28 14:58:32 +02:00
Cédric Krier 1ec49a016b Don't use super to get the parent do_* methods of gtk widget
With some version of GTK, using super call to get the do_* function doesn't
work.  It seems it returns a meta function that will call back the do_* of the
instance. So this leads to an infinite loop.

issue4016
review5421002
2014-06-28 14:51:36 +02:00
Cédric Krier df9a86bdce Add missing synchronisation of help attribute from field to widget
since changeset 0535f5cf7e00
2014-06-26 18:57:07 +02:00