Commit Graph

758 Commits

Author SHA1 Message Date
Thibault Delavallée 864d011200 [MERGE] Merged with web/trunk.
bzr revid: tde@openerp.com-20120702170010-x07duh86vejoup9u
2012-07-02 19:00:10 +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
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
Thibault Delavallée 30b3844638 [MERGE] Merged with mail-state-tde, recently updated with trunk.
bzr revid: tde@openerp.com-20120626130805-mrg2c3uyh5o1h1uo
2012-06-26 15:08:05 +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
Thibault Delavallée e6ad094ffb [MERGE] Merged with mail-state-tde, better than the last merge.
bzr revid: tde@openerp.com-20120621152143-wrc0tj0nepwk2pj1
bzr revid: tde@openerp.com-20120621152613-h6jecsggf1c1dbqy
2012-06-21 17:26:13 +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
Thibault Delavallée 97e94941cb [REF] view_form: removed a forgotten debug line.
bzr revid: tde@openerp.com-20120620084454-e8vezrij11bqakx7
2012-06-20 10:44:54 +02:00
Thibault Delavallée 9278eec4e9 [MERGE] Merged with mail-state-tde, recentl updated with trunk.
bzr revid: tde@openerp.com-20120618075927-j20g7wlztipxsukx
bzr revid: tde@openerp.com-20120619074110-ioj5y4sfawrpvtcf
bzr revid: tde@openerp.com-20120620074240-gt3a3a7xyv31b4nx
2012-06-20 09:42:40 +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
niv-openerp 623c6d20f2 [FIX] problem in o2m list
bzr revid: nicolas.vanhoren@openerp.com-20120618143817-uz268911f0j0omrj
2012-06-18 16:38:17 +02:00
niv-openerp 59d0d15b03 [IMP] Improved error reporting in some cases
bzr revid: nicolas.vanhoren@openerp.com-20120618140250-smh45bbecf4qaa5v
2012-06-18 16:02:50 +02:00
Xavier Morel 70b0af1375 [IMP] jQuery exposes focusin and focusout, use that instead of its manual implementation
bzr revid: xmo@openerp.com-20120618073431-gmeo349oskbld53t
2012-06-18 09:34:31 +02:00
Fabien Pinckaers c566531784 [IMP] add a class to factorize view manager layout
bzr revid: fp@tinyerp.com-20120615161012-xeahmm33omrnro76
2012-06-15 18:10:12 +02:00
Thibault Delavallée f0e50ce71c [ADD] Added text_html / FieldTextHtml widget. Basically, it is a FieldText widget with the CLEditor added on the textarea. Some customization work will have to be done though.
bzr revid: tde@openerp.com-20120615143520-irw7ougo19c0fvi8
2012-06-15 16:35:20 +02:00
Thibault Delavallée 4bcfefc1b3 [MERGE] Merged with mail-state-tde branch, recently updated with trunk.
bzr revid: tde@openerp.com-20120611104153-6jdibqpb91j96yh2
bzr revid: tde@openerp.com-20120612080733-kuvu2adf4yimwc0d
bzr revid: tde@openerp.com-20120614084104-bq35p2qdkjw2bswb
bzr revid: tde@openerp.com-20120615082243-ur6p3xkt6k5k1h3r
2012-06-15 10:22:43 +02:00
Fabien Meghazi 0e5ef33fdc [IMP] Remove useless code in binary fields
bzr revid: fme@openerp.com-20120614155758-lglfapqxkrctrfn4
2012-06-14 17:57:58 +02:00
niv-openerp 4d386b402d [IMP] Only displays warning in m2o if the user typed something.
bzr revid: nicolas.vanhoren@openerp.com-20120614142309-xf4pj2oo5bl7zh9x
2012-06-14 16:23:09 +02:00
Fabien Meghazi edcf216d33 [FIX] Saving a binary field not saved yet crashes
lp bug: https://launchpad.net/bugs/1010475 fixed

bzr revid: fme@openerp.com-20120614150010-ik6f3rqk8li314aq
2012-06-14 17:00:10 +02:00