Commit Graph

765 Commits

Author SHA1 Message Date
Xavier Morel 6b907bb4d0 [FIX] can't perform action on a o2m record which is not saved in db, so forbid it.
Also yet-another-shitty-undoc-change to the way widgets and form view communicate

bzr revid: xmo@openerp.com-20120711141402-1x7frd0v3vc3649e
2012-07-11 16:14:02 +02:00
Xavier Morel e431cda2d3 [MERGE} from trunk
bzr revid: xmo@openerp.com-20120711112959-tcb9epdfc9frt6ux
2012-07-11 13:29:59 +02:00
niv-openerp 24a54675ee [FIX] problem with css classes of view managers
bzr revid: nicolas.vanhoren@openerp.com-20120710091821-qpc49vwq60k1xt3f
2012-07-10 11:18:21 +02:00
niv-openerp f078da8a52 [IMP] make the m2o a little more complex
bzr revid: nicolas.vanhoren@openerp.com-20120710085441-dt2kn4z5rk2482sy
2012-07-10 10:54:41 +02:00
Xavier Morel 9568c463b3 [FIX] conflicts between save-on-blur and action buttons in o2m
bzr revid: xmo@openerp.com-20120710073928-riswpz7f9mddqjgf
2012-07-10 09:39:28 +02:00
Fabien Pinckaers fe368d23c8 [IMP] padding between groups in forms
bzr revid: fp@tinyerp.com-20120710073145-l0rmppe2d7mpterz
2012-07-10 09:31:45 +02:00
niv-openerp b79f9b5807 [FIX] small problem with m2o
bzr revid: nicolas.vanhoren@openerp.com-20120709115727-gtxyt4kzg9c7tqot
2012-07-09 13:57:27 +02:00
Xavier Morel 46e511d1f2 [FIX] o2m validation workflow for lists, to match new edition methods
bzr revid: xmo@openerp.com-20120709110426-w6v512ff5dskmr3x
2012-07-09 13:04:26 +02:00
Xavier Morel e9921d62df [FIX] ensures the o2m is correctly saved before activating action buttons, even when a row is being edited
bzr revid: xmo@openerp.com-20120709110112-dgpm1jhb9o2lmweg
2012-07-09 13:01:12 +02:00
Xavier Morel b289447826 [TEST] saving of editor with required non-filled field, and cancelling of edition
bzr revid: xmo@openerp.com-20120704152329-81ktb8umm9xbr5wt
2012-07-04 17:23:29 +02:00
niv-openerp a9e48f1571 [FIX] hide the "or Import" in many list views
bzr revid: nicolas.vanhoren@openerp.com-20120702160951-czrvcybdrrjqj84y
2012-07-02 18:09:51 +02:00
Xavier Morel 5df6c47700 [FIX] methods capitalization
bzr revid: xmo@openerp.com-20120702133451-e5b7uozm0p36jbpr
2012-07-02 15:34:51 +02:00
Fabien Meghazi 2571ad25eb [FIX] Fixed Status bar wrapping problems
bzr revid: fme@openerp.com-20120702084119-cfmdc7vqonwb05f8
2012-07-02 10:41:19 +02:00
niv-openerp 56e595ccf9 [FIX] forgot some more field strings in previous fix
bzr revid: nicolas.vanhoren@openerp.com-20120629151001-5wyyff806j23j5h2
2012-06-29 17:10:01 +02:00
niv-openerp e3e68cf716 [FIX] cleaned field strings
lp bug: https://launchpad.net/bugs/1017921 fixed

bzr revid: nicolas.vanhoren@openerp.com-20120629150225-jssk2t3jvpph8xxi
2012-06-29 17:02:25 +02:00
Xavier Morel 656d3ac9dd [FIX] typo during process of o2m autosave
bzr revid: xmo@openerp.com-20120628143616-79bpmgty632fp0in
2012-06-28 16:36:16 +02:00
niv-openerp 7cc69d917b [FIX] minor inconsistency in m2o
bzr revid: nicolas.vanhoren@openerp.com-20120628130808-od8p8e52p02w63dc
2012-06-28 15:08:08 +02:00
Fabien Meghazi 69b7200d5a [ADD] Restore default_focus in forms
bzr revid: fme@openerp.com-20120628130249-31x3zb88fpan003m
2012-06-28 15:02:49 +02:00
niv-openerp 4f6e8b25e1 [IMP] added 'always_reload' option to m2o
bzr revid: nicolas.vanhoren@openerp.com-20120628125242-t3pf093fe88nrv8k
2012-06-28 14:52:42 +02:00
niv-openerp 0cbb2e8257 [IMP] m2o only show first line
bzr revid: nicolas.vanhoren@openerp.com-20120628123621-nt7uo6e2he83w27n
2012-06-28 14:36:21 +02:00
niv-openerp 492af8bef4 [IMP] support multiple lines in m2o
bzr revid: nicolas.vanhoren@openerp.com-20120628121745-9k3r7zfy5edgnivm
2012-06-28 14:17:45 +02:00
niv-openerp 06c9e2eb71 [IMP] added doc
bzr revid: nicolas.vanhoren@openerp.com-20120628101100-27kqrho2ez2xudrm
2012-06-28 12:11:00 +02:00
niv-openerp ec92d42e32 [FIX] email and url display 'false'
bzr revid: nicolas.vanhoren@openerp.com-20120627152922-x1wp96wcu0zbdqyk
2012-06-27 17:29:22 +02:00
niv-openerp 3f59bab1fc [FIX] problem with float_time
bzr revid: nicolas.vanhoren@openerp.com-20120627151759-5hewg29y0cbo6221
2012-06-27 17:17:59 +02:00
Fabien Meghazi ce7fb5bb37 [CHG] Ashes to ashes, dashes to underscores.
bzr revid: fme@openerp.com-20120627141249-o10e2htxqtio72l7
2012-06-27 16:12:49 +02:00
Xavier Morel f96372e178 [FIX] oe_form_field on m2m form field
bzr revid: xmo@openerp.com-20120627132701-5k9ovbu9q57uwc35
2012-06-27 15:27:01 +02:00
Xavier Morel bff8dad0f5 [ADD] flag to prevent FormView#do_show from playing into a dataset on its own
bzr revid: xmo@openerp.com-20120627100206-8492a3ozn7fudu90
2012-06-27 12:02:06 +02:00
Xavier Morel 02ad054961 [FIX] form warnings
bzr revid: xmo@openerp.com-20120627100151-t712ibqydt0vv7cf
2012-06-27 12:01:51 +02:00
Xavier Morel f20cf64bdb [FIX] merge mistake breaking button widgets of form view
bzr revid: xmo@openerp.com-20120626082413-3tnrq8nm3koactn1
2012-06-26 10:24:13 +02:00
Fabien Meghazi 52a7476bb1 [ADD] Added oe_highlight_on_dirty
bzr revid: fme@openerp.com-20120625195225-ehts5hyuscmpxeyy
2012-06-25 21:52:25 +02:00
Fabien Meghazi 2b1bd31f74 [FIX] Field chars broken since merge 6.1
bzr revid: fme@openerp.com-20120625152445-qpmoz6hpxqi2nfrz
2012-06-25 17:24:45 +02:00
Xavier Morel 7bad6e4b42 [FIX] annoying events API
bzr revid: xmo@openerp.com-20120625145052-ngqmfhsr1g33utql
2012-06-25 16:50:52 +02:00
Xavier Morel f821dd158a [IMP] use widget events instead of jquery events for form widget focus/blur management
bzr revid: xmo@openerp.com-20120625144013-0brsx0s4unar6cvg
2012-06-25 16:40:13 +02:00
Xavier Morel 54a8f9e193 [MERGE] 6.1 changes and trunk
bzr revid: xmo@openerp.com-20120625135215-az1927llmk0vw655
2012-06-25 15:52:15 +02:00
Xavier Morel 9029f24d87 [FIX] action buttons activated in editable o2m lists during or after row edition
bzr revid: xmo@openerp.com-20120625072046-29tg3vnnpkhj8fe9
2012-06-25 09:20:46 +02:00
Xavier Morel a227e1e43c [CHG] reintroduce a button at the end of the line, but use the cross as a cancel
bzr revid: xmo@openerp.com-20120625065812-6n8lxb0zimzvq1ee
2012-06-25 08:58:12 +02:00
Xavier Morel d64f983fce [FIX] correctly reload an o2m list *after* triggering an action from a row being edited
bzr revid: xmo@openerp.com-20120622150117-w04eibub93ve81mo
2012-06-22 17:01:17 +02:00
niv-openerp 4a88fba764 [IMP] minor usability issue with date widgets
bzr revid: nicolas.vanhoren@openerp.com-20120622145224-w09eagoziqipwbuy
2012-06-22 16:52:24 +02:00
niv-openerp d23ea2119f [FIX] problem with the discard button in form views
bzr revid: nicolas.vanhoren@openerp.com-20120622143849-makqspfqkqvp8rkt
2012-06-22 16:38:49 +02:00
niv-openerp 83d27ba827 [FIX] problem that made the partners view crash
bzr revid: nicolas.vanhoren@openerp.com-20120622143320-5auneze02g29hvzi
2012-06-22 16:33:20 +02:00
niv-openerp d790fecbb8 [IMP] better error reporting when there are errors in on_changes
bzr revid: nicolas.vanhoren@openerp.com-20120622133312-tvvhgr2kllag27pk
2012-06-22 15:33:12 +02:00
Xavier Morel 5182068b43 [FIX] ensure containing form is saved when triggering an action from an editable o2m list
After opening a record with a list o2m, editing said list o2m and
saving a row, clicking the action button would lose all data
explicitly changed: the o2m would just call the action without saving
the form's current state, so the corresponding server method would
only be able to use data previously saved.

Fixed by overriding do_button_action, and only calling the _super()
method after the parent form has announced it is saved (either because
nothing was changed or because it did indeed save itself).

bzr revid: xmo@openerp.com-20120622085432-mh3977uygua5bypn
2012-06-22 10:54:32 +02:00
Antony Lesuisse 5006656a28 [IMP] use Class builtin mixin support
bzr revid: al@openerp.com-20120621235641-ax1lsvi9x9foa3vd
2012-06-22 01:56:41 +02:00
niv-openerp cae22c8ff4 [FIX] Problem with float formatting, not analyzing correctly the digits parameter
bzr revid: nicolas.vanhoren@openerp.com-20120621124123-novg5wadwvvcbrkt
2012-06-21 14:41:23 +02:00
niv-openerp 2a640918c7 [FIX] potential problem with create & edit in m2o, it should not set a default_name
bzr revid: nicolas.vanhoren@openerp.com-20120621111933-s9wmabv4bh8p7n1n
2012-06-21 13:19:33 +02:00
Xavier Morel ed0a94f0d7 [IMP] focus management in date field
bzr revid: xmo@openerp.com-20120620113402-lacdu8fvq9bwrcl6
2012-06-20 13:34:02 +02:00
Xavier Morel 6a4adf2a3b [FIX] blur/focus handling in most (if not all) form widgets
bzr revid: xmo@openerp.com-20120620111527-2j23k13zc6td2deo
2012-06-20 13:15:27 +02:00
Xavier Morel 19d5cb01c7 [FIX] error caused by autosave-on-blur when vaidating a row with [Return]
bzr revid: xmo@openerp.com-20120619110350-64sb4uy2t1eydiou
2012-06-19 13:03:50 +02:00
Xavier Morel 125eead80a [FIX] focus issues with m2o contextual menu (and popup operations)
bzr revid: xmo@openerp.com-20120619093651-7rfe1pp7ucuj0ajh
2012-06-19 11:36:51 +02:00
Xavier Morel 0516533c16 [FIX] handling of focus on m2o fields (in editable list row)
* Throw out focusin/focusout: the m2o widget's completion list is
  created at the page top (body) so the editable listview can't
  generically handle arbitrary widgets via mere focusin/focusout.

* Move responsibility of focus/blur events to the form view and its
  widgets.

* Events could not just be named ``focus`` and ``blur`` due to usage
  of jquery's event system: jquery will automatically call a method of
  the event's name if it exists on the object, which conflicts with
  .web.form.Field#focus and leads to an infinite loop (as Field#focus
  focuses the field's root element, which triggers the focus event,
  which calls the focus method,...) => form-* and widget-*, can be
  switched back in trunk

* m2o mess kind-of complex, basically:

  - the core input and the menu button behave as blur/focus triggers

  - when the autocompletion list is clicked, it will temporarily
    remove the focus from the input (blurring it), and put it back
    later... on a timer. Issue is the timer, we don't want to rely on
    having a bigger timer (as later revisions of the library may
    change our timings and it's iffy to rely on timers conserving
    order perfectly); on the other hand we know the focus *will* come
    back to the input eventually. So we can just avoid propagating
    blur iif the blur is the consequence of having clicked on the
    completion list.

  - roughly the same thing happens when clicking on $drop_down (after
    fixing the handling of its final focus to be consistent, as
    $drop_down would not re-focus the input if it was *closing* the
    completion list)

  - pretty sure the menu thing does *not work at all*, but I don't
    have the courage of fixing it before committing this part.

Date/datetime widget remains to be handled, basically the core focus
handling is the same as in e.g. a charfield *but* needs to handle (and
ignore) loss of focus from clicking inside the picker
widget. Expecting the level of suck to reach unknown heights.

bzr revid: xmo@openerp.com-20120619072518-lsrhzij5asxt2aea
2012-06-19 09:25:18 +02:00