Commit Graph
362 Commits
Author SHA1 Message Date
Cédric Krier b9c591da4d Fix params order for warning dialog 2015-05-07 14:54:19 +02:00
Cédric Krier d041e5288f UniqueDialog buttons must have a type button
as they are put inside a form otherwise they behaves like a submit
2015-05-07 12:11:06 +02:00
Cédric Krier 1e44b10600 Tab.save should always return a promise 2015-05-07 12:10:11 +02:00
Cédric Krier 5a8d38a905 Add autocompletion
review17261002
2015-05-07 11:21:29 +02:00
Cédric Krier a79cdf675d Force parent in default_get 2015-04-30 17:44:14 +02:00
Cédric Krier 9f04a84515 Test if row exists before using it in get_expanded_paths 2015-04-30 17:43:50 +02:00
Nicolas Évrard 0f813b0cf7 Add Search / Create actions to many2one autocompletion popup
review15341002
2015-04-30 17:38:56 +02:00
Cédric Krier efa43c9cae Display inline all form label to ensure vertical alignment 2015-04-30 17:03:17 +02:00
Cédric Krier 283847e74d Unify glyphicon usage 2015-04-30 16:43:53 +02:00
Cédric Krier dbea601a79 Delay setting O2M field on record 2015-04-30 16:27:15 +02:00
Cédric Krier a3686bf915 Make display returning promise
When closing a modified tab without saving, the tab must be remove after the
reload and display. This prevents exception to be raised by calling display on
form widget that are removed.
2015-04-30 15:55:28 +02:00
Cédric Krier 8951d99ade Manage exception on Record and readonly state 2015-04-30 13:57:29 +02:00
Cédric Krier 0d6d6f2034 Implement sibling group load 2015-04-30 12:56:35 +02:00
Cédric Krier a838eb4e5e Wrong usage of Record.model_name instead of Record.model.name 2015-04-30 12:54:49 +02:00
Nicolas Évrard 3e803e62b4 Add autocompletion on search entry 2015-04-24 13:56:41 +02:00
Cédric Krier 813079fb5a Don't store editable tree widget
The model of the tree can change in case of reload inside another widget.
2015-04-03 20:30:30 +02:00
Cédric Krier 98988eef75 No need to call twice getAttribute 2015-04-03 20:28:59 +02:00
Cédric Krier 81adc7d0db Compare also the record rows to reconstruct tree view
As the row keeps a link to the record, the records of the group could have been
replaced by new records with exactly the same length.
2015-04-03 19:01:01 +02:00
Cédric Krier 61a891d103 Keep displaying affix when editing tree
Instead of adding a new row inside the main cell, it adds it inside the affix
table.
2015-04-03 18:47:55 +02:00
Cédric Krier 34d7e5223f Add support for Affix widget and states 2015-04-03 14:41:39 +02:00
Cédric Krier 6f8ef31aa7 Don't skip exclude_field in create_columns
exclude_field is hidden by the display.
2015-04-03 13:29:24 +02:00
Cédric Krier ca9a85b5ec Don't consider as unique clause with nested target
issue4552
review11161002
2015-03-30 22:40:07 +02:00
Cédric Krier e8e6fecc2d Filter leaf domain of Reference fields
The domain of Reference fields must be filtered out for non-valid target
because the localization will remove the target part and thus generate an
invalid domain for the specific target.

issue4680
review11141003
2015-03-30 22:37:52 +02:00
Cédric Krier e2e6a9c004 Save parent group when saving record 2015-03-27 18:24:19 +01:00
Cédric Krier e290dace9e Add missing parent validation on Group.changed 2015-03-27 17:49:50 +01:00
Cédric Krier a0a5f783b5 Add missing space before menu item name 2015-03-27 16:04:13 +01:00
Cédric Krier 717ef2594c Add missing assert on Model.delete_ 2015-03-27 16:00:20 +01:00
Cédric Krier f52be78bf2 Set min value when evaluate date/time leaf 2015-03-27 15:41:05 +01:00
Cédric Krier 174dfb57a1 Add min/max of Date/Time 2015-03-27 15:40:14 +01:00
Cédric Krier 5174e196ca Fix PYSON to test moment object instead of Date instance 2015-03-27 15:38:58 +01:00
Cédric Krier 498f671126 Wait save tree state when closing all tabs 2015-03-27 15:06:29 +01:00
Cédric Krier 9cc55449be Add selection from multiple options 2015-03-27 14:46:59 +01:00
Cédric Krier d643e42a51 Fix typo from changeset 46a4cfae7418 2015-03-27 13:10:28 +01:00
Cédric Krier a8c3da97da Use a common Dialog Object to build modal 2015-03-27 11:49:22 +01:00
Cédric Krier 03caf29438 Implement on_write
review14141002
2015-03-27 10:39:52 +01:00
Cédric Krier c9a4b92bd8 Set default empty context when undefined
As the params will be duplicated with jQuery, it will skip the undefined keys
and so the empty context will be lost.
2015-03-26 19:38:45 +01:00
Cédric Krier 19133e2898 select_change_with attribute must be tested against empty 2015-03-26 19:37:30 +01:00
Cédric Krier 4fb04e0e4c Add missing attributes to synchronise between model and views 2015-03-26 19:36:49 +01:00
Nicolas Évrard 630ba8b051 make DomainParser.operatorize support clause with null values
review15151002
2015-03-25 18:41:43 +01:00
Cédric Krier 1b4a8928f0 Fix remove after modal hide
modal hide is asynchronous and so removing the element before it has finished
to hide with fade, bootstrap will leave the backdrop.
2015-03-24 21:13:50 +01:00
Cédric Krier 5eb1fad2fe Avoid overflow of table headers in treeview 2015-03-21 02:22:27 +01:00
Cédric Krier e5870d5b21 Ensure minimum height for table data when responsive
The table data doesn't always contain an empty visible div.
2015-03-21 02:21:55 +01:00
Cédric Krier 7603eaa7b9 Don't hard-code min-width on form input
The input is also used in editable tree which has the property overflow set to
hidden so if the cell is not large enough the widget is partialy hidden.
2015-03-20 19:14:04 +01:00
Cédric Krier ff2403623a Add missing editable tree widget for time and timedelta 2015-03-20 19:11:26 +01:00
Cédric Krier c313e53791 Inline Reference field inputs 2015-03-20 18:54:11 +01:00
Cédric Krier a4124a37d5 Replace float_time style to timedelta 2015-03-20 18:48:49 +01:00
Cédric Krier 21b7ad502c Fix text alignment of number columns 2015-03-20 18:45:29 +01:00
Cédric Krier 7a2d0e8341 Make selection checkbox of treeview take the minimum width 2015-03-20 18:29:41 +01:00
Cédric Krier 0a2131ac92 Use keydown instead of keyup
When using keyup, the event is also triggered when focusing in the widget with
tab even if the key was not initially pressed on the input.
2015-03-20 17:47:25 +01:00
Cédric Krier 2a6f7bb501 Trigger activate only if Many2One is editable 2015-03-20 17:45:19 +01:00