Commit Graph

363 Commits

Author SHA1 Message Date
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
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
Xavier Morel 055edd7790 [ADD] automatic save of o2m rows being created/edited when clicking/focusing outside
bzr revid: xmo@openerp.com-20120614123731-x2owyp4nc1yi1ocj
2012-06-14 14:37:31 +02:00
Xavier Morel 533f17231c [FIX] if a form is not dirty, always consider the corresponding o2m[list] to be valid
the user has not modified the editable line after opening it (whether to create a new record or to edit an existing one), so shouldn't be invalid

bzr revid: xmo@openerp.com-20120613153555-fq0moy1q464l92yj
2012-06-13 17:35:55 +02:00
Xavier Morel e475bc7a2a [IMP] don;t needlessly wrap values into deferreds in pipes
bzr revid: xmo@openerp.com-20120613153412-c2byqrc66jcn0e97
2012-06-13 17:34:12 +02:00
Xavier Morel 5ec4ecf85d [FIX] O2M validation: correctly proxy validation from/to edited row of the list view, if any
bzr revid: xmo@openerp.com-20120613100819-sw93kst4dpwhnu1p
2012-06-13 12:08:19 +02:00
Xavier Morel 79044bc264 [ADD] handling of required attr on m2m fields
bzr revid: xmo@openerp.com-20120607111149-cgf3ap0yjzsxrkjx
2012-06-07 13:11:49 +02:00
msh-openerp 3dde84cb82 [FIX]Refixed the issue of pad button not rendered when we delete the pad link.
bzr revid: msh@tinyerp.com-20120607083645-nyrk6vu3fjnmj5sv
2012-06-07 14:06:45 +05:30
cpa-openerp 55954ed199 [FIX] Code optimization as per suggestion.
bzr revid: cpa@tinyerp.com-20120607060633-ewnd0kr9qzxw0tey
2012-06-07 11:36:33 +05:30
Xavier Morel af000c9dd2 [IMP] performances when opening an m2o "search" without any filtering term
Don't prefilter via name_search if no data has been entered in the m2o
field, it's going to return all records (not paginated) so it's a
waste of time and resources

bzr revid: xmo@openerp.com-20120606124717-h2p211vbrydazado
2012-06-06 14:47:17 +02:00
Xavier Morel bc25bd8cce [FIX] reloading of o2m forms in dialogs (popups) after clicking on a button
bzr revid: xmo@openerp.com-20120606123230-bjwrplz1xeekeecg
2012-06-06 14:32:30 +02:00
msh-openerp 0777583ac9 [FIX]Fixed the issue of pad button not rendered when deletes a pad from the attachment area.
bzr revid: msh@tinyerp.com-20120529074017-6woyh00mz8fl18v0
2012-05-29 13:10:17 +05:30
Xavier ALT 27c16a7721 [FIX] OPW 574218: many2one: do not prefilter records when user click on 'Search More' with empty text
- Normally when user click on 'Search More' on many2one fields, relation
   object records are prefiltered based on the text user entered in the
   many2one field.
       But if user do not enter any text before click on 'Search More',
   system will call name_search() with an empty search criteria - and
   this could be quite expensive depending on the size of the dataset!.
   (this of name_search() on more that 10.000 products...)
   
   We now do not prefilter records if search value is empty (standard domain
   filtering still apply).

bzr revid: xal@openerp.com-20120525131416-ie958wu0cihjslgc
2012-05-25 15:14:16 +02:00
Fabien Meghazi c103c34a2f [FIX] Set name when uploading an image is broken on 6.1
lp bug: https://launchpad.net/bugs/950116 fixed

bzr revid: fme@openerp.com-20120516144216-vkcb8nasefh2e3qb
2012-05-16 16:42:16 +02:00
Fabien Meghazi 515ff1eb5b [FIX] Problems with statusbar widget under IE8
bzr revid: fme@openerp.com-20120516141524-1cbrdd153h2cdukw
2012-05-16 16:15:24 +02:00
msh-openerp bb70400728 [FIX]Fixed the issue of FieldStatus widget which is not shown properly in IE8 as IE8 doesn't support rgba format, so just used transparent instead of rgba(0,0,0,0) for transparency.
bzr revid: msh@tinyerp.com-20120424100355-yhlaym1lrj42jg8g
2012-04-24 15:33:55 +05:30
Xavier ALT 12cb02a349 [FIX] web: FormOpenPopup data not correctly reloaded after clicking on a button
bzr revid: xal@openerp.com-20120417145330-ln0mpp06s886z1us
2012-04-17 16:53:30 +02:00
Xavier ALT 59de9b11fe [MERGE] web: readonly field in a class linked by a many2one doesn't refresh after clicking on a button (cherrypicked from trunk)
bzr revid: xal@openerp.com-20120420112812-pxxqg9zp61hetv2h
2012-04-20 13:28:12 +02:00
msh-openerp 66556f811a [FIX]Fixed the issue of setting filename in other field when widget=image.
bzr revid: msh@tinyerp.com-20120405112619-nlkufj2p0iv3bwbg
2012-04-05 16:56:19 +05:30
cpa-openerp 6a572a7730 [FIX] Fixed form view allow to save when m2m field required and blank.
bzr revid: cpa@tinyerp.com-20120328121211-f6jm48lh1dop7ssg
2012-03-28 17:42:11 +05:30
Fabien Meghazi 542a6e9a67 [FIX] @digits not honored by form view. field#digits not honored by page view.
lp bug: https://launchpad.net/bugs/943273 fixed

bzr revid: fme@openerp.com-20120305195800-uoiu74ee1rfm4tex
2012-03-05 20:58:00 +01:00
Fabien Meghazi 28f1ded961 [FIX] @default_focus not honored in embedded form views
lp bug: https://launchpad.net/bugs/944080 fixed

bzr revid: fme@openerp.com-20120305171656-yz1jjoin17hh8ast
2012-03-05 18:16:56 +01:00
Xavier Morel fc887bfb2f [MERGE] new, shinier and better-working diagram view
bzr revid: xmo@openerp.com-20120305103353-w8r6fk9cv8wjklts
2012-03-05 11:33:53 +01:00
niv-openerp 9cad7deeed [fix] minor problem in m2o
lp bug: https://launchpad.net/bugs/923898 fixed

bzr revid: nicolas.vanhoren@openerp.com-20120228144111-co9nl24o466zuzsb
2012-02-28 15:41:11 +01:00
Frédéric van der Essen 87f65775e0 Correct viewport integration, cosmetic changes, node loops
bzr revid: fva@openerp.com-20120224095310-r3bdlx09n5eaxrvk
2012-02-24 10:53:10 +01:00
Fabien Meghazi 5d71f85f7d [FIX] Broken reference field
lp bug: https://launchpad.net/bugs/936864 fixed

bzr revid: fme@openerp.com-20120220122208-k5pvpwodik78hnrq
2012-02-20 13:22:08 +01:00
Fabien Meghazi ac3006c5e5 [ADD] Bind form warning to Cancel button
bzr revid: fme@openerp.com-20120215123901-po1dk32p9lbgadjk
2012-02-15 13:39:01 +01:00
Fabien Meghazi 8a5f5e1199 [IMP] Restore form dirty confirmation on pager change
bzr revid: fme@openerp.com-20120215105628-i91krjqgbx28n1h2
2012-02-15 11:56:28 +01:00
Fabien Meghazi 12c1268525 [IMP] Support for One2Many
bzr revid: fme@openerp.com-20120215103405-svbhpnu3hyx2q8rb
2012-02-15 11:34:05 +01:00
Fabien Meghazi bc233c30e5 [FIX] Merge last trunk
bzr revid: fme@openerp.com-20120215095940-2jv27t91i7u5mm0r
2012-02-15 10:59:40 +01:00
Fabien Meghazi 6f98370b38 [FIX] Fix little regression about translatable fields styling
bzr revid: fme@openerp.com-20120214163443-pz7nmhj1ktbfhucm
2012-02-14 17:34:43 +01:00
niv-openerp cf6b9b6e3e [fix] complex bug in BufferedDataSet
lp bug: https://launchpad.net/bugs/925345 fixed

bzr revid: nicolas.vanhoren@openerp.com-20120214161558-k634bkwbwq0vk58p
2012-02-14 17:15:58 +01:00
niv-openerp c8912b68d8 [fix] problem with on_changes in the editable lists in o2m
bzr revid: nicolas.vanhoren@openerp.com-20120214152031-br1lq6zqx6ycdj7p
2012-02-14 16:20:31 +01:00
Fabien Meghazi c57fc93e7c [IMP] Simplify call to date picker
bzr revid: fme@openerp.com-20120214094430-p4gm11g0paau0tnh
2012-02-14 10:44:30 +01:00
Vaibhav (OpenERP) cbbd50c764 [FIX] DatePicker remains visible(block) when clicking multiple times on picker button.
lp bug: https://launchpad.net/bugs/930050 fixed

bzr revid: vda@tinyerp.com-20120214064301-4v1umyi1hls3nq28
2012-02-14 12:13:01 +05:30
Fabien Meghazi 7de6dbed4d [FIX] Share wizard: unselectable url and embed code
I used to like Firefox... That was before webkit.

lp bug: https://launchpad.net/bugs/931364 fixed

bzr revid: fme@openerp.com-20120213163120-7qt0171h81uh8bvp
2012-02-13 17:31:20 +01:00
Fabien Meghazi ba05ec55fd [ADD] Add sticky option to do_warn() and do_notify()
[IMP] Form view uses a notification when a record is not found in the database

bzr revid: fme@openerp.com-20120213123805-4dqg4oioous25nuo
2012-02-13 13:38:05 +01:00
Xavier Morel 76de030cde [ADD] UI to set default ir.values in web client's from view
lp bug: https://launchpad.net/bugs/888466 fixed

bzr revid: xmo@openerp.com-20120209151605-sqt0mzceqr8u160z
2012-02-09 16:16:05 +01:00
Xavier Morel be5bab60c8 [IMP] display string label of selection and m2o fields in defaults-setting dialog
bzr revid: xmo@openerp.com-20120209151410-49j13cfbrwwhrp23
2012-02-09 16:14:10 +01:00
Fabien Meghazi af15e1d83e [ADD] Added tipsy.clear()
bzr revid: fme@openerp.com-20120209135939-pcnmoswvnqjjb6ik
2012-02-09 14:59:39 +01:00
Fabien Meghazi 0d7ff5dec8 [FIX] Fix some tipsy stuff
Autobound on 'n' fails with absolute positioned elements.

Make tipsy checks that it's element is still attached to another element

bzr revid: fme@openerp.com-20120209105401-1jl11sy9z1qdwu3t
2012-02-09 11:54:01 +01:00
Xavier Morel fe31030bd2 [ADD] UI for set_default in form view sidebar
bzr revid: xmo@openerp.com-20120208122153-k11n7u47n1bo63sv
2012-02-08 13:21:53 +01:00
Xavier Morel 3294f58fdb [FIX] usage of Registry#clone
bzr revid: xmo@openerp.com-20120208161851-pip6d97o66uj6y35
2012-02-08 17:18:51 +01:00
Fabien Meghazi 7b3094ee8a [FIX] handle multilines in <label> tags of form views
bzr revid: fme@openerp.com-20120208143943-p6i12v8cd0ua831d
2012-02-08 15:39:43 +01:00
niv-openerp 44263a42b2 [fix] revert form refactoring branch
bzr revid: nicolas.vanhoren@openerp.com-20120208111110-p2nj0tehupxa0gmz
2012-02-08 12:11:10 +01:00
Fabien Meghazi 739b0d4861 [FIX] Binary#save_as does not send context. Breaks some accounting downloadable reports.
Example of broken report was : Accounting > Reporting > Legal Reports > Belgium Statements > Periodical VAT Declaration

bzr revid: fme@openerp.com-20120208103935-cv9nn9kg1vssosgm
2012-02-08 11:39:35 +01:00
Xavier Morel 8c0791ca17 [FIX] protection against self-recursive onchanges: add to the processed field list during call to onchange, not right before checking for it
processed field list protects against onchange recursion (direct or indirect), but it also prevented from triggering onchanges on other fields as well

bzr revid: xmo@openerp.com-20120207161733-wh2hqtax4s1nx9ic
2012-02-07 17:17:33 +01:00
Xavier Morel bba8fde187 [ADD] handling of change_default to onchange process
bzr revid: xmo@openerp.com-20120207160158-kxbue424wa3nxz03
2012-02-07 17:01:58 +01:00