Commit Graph
833 Commits
Author SHA1 Message Date
niv-openerp 452eca8952 [imp] added replace() method in Widget to ease insertion at a precise place in the dom
bzr revid: nicolas.vanhoren@openerp.com-20111122062431-zh762kivblfhwewk
2011-11-22 11:54:31 +05:30
Launchpad Translations on behalf of openerp 0e8b913842 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20111122050046-eb2hd81qu2801nxi
bzr revid: launchpad_translations_on_behalf_of_openerp-20111122051316-eovfu9qj7puxspbf
2011-11-22 05:13:16 +00:00
Fabien Meghazi 5c014979c2 [IMP] Ensure form is saved when xmo's protocol for sidebar context is used
bzr revid: fme@openerp.com-20111121163441-y200rwxk4g2jtzuj
2011-11-21 17:34:41 +01:00
Xavier Morel 89e5c72b6e [ADD] cache eviction for buffereddataset on records on which call_button has been invoked
lp bug: https://launchpad.net/bugs/885679 fixed

bzr revid: xmo@openerp.com-20111121163412-jyvpoa9smrk4qy2g
2011-11-21 17:34:12 +01:00
Xavier Morel 84d46bf4ec [FIX] provide for values to sidebar links context
lp bug: https://launchpad.net/bugs/871714 fixed

bzr revid: xmo@openerp.com-20111121141418-x4623mk77ljx4nlv
2011-11-21 15:14:18 +01:00
Xavier Morel 542928adde [ADD] protocol to allow sidebar to query its parent view for context data
bzr revid: xmo@openerp.com-20111121140908-e9b3eygtt42m9bnp
2011-11-21 15:09:08 +01:00
Fabien Meghazi 8ca42daf0a [FIX] Apply same behavior as gtk+ and old web clients concerning fields to be saved/created
Special case 'id' field, do not save this field
on 'create' : save all non readonly fields
on 'edit' : save non readonly modified fields

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

bzr revid: fme@openerp.com-20111121124030-egiajgy6fgokwmm1
2011-11-21 13:40:30 +01:00
Xavier Morel 69dba424e7 [IMP] error messages during database creation failure, with thanks to Serpent Consulting
bzr revid: xmo@openerp.com-20111121102141-95si5svzfycon9ob
2011-11-21 11:21:41 +01:00
Xavier Morel ceb67d96a6 [FIX] dialogs not closing when they trigger a report printing
bzr revid: xmo@openerp.com-20111121100257-yrhui8kx9zodnzqx
2011-11-21 11:02:57 +01:00
Yogesh (OpenERP) 7ec009c0ba [FIX] fix problem of close popup in actio type of ir_actions_report_xml.
bzr revid: ysa@tinyerp.com-20111121091451-i9lvmv6yibys17vp
2011-11-21 14:44:51 +05:30
Launchpad Translations on behalf of openerp 7dc7a38490 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20111121052226-yhr6ydr2i8dbwp8x
bzr revid: launchpad_translations_on_behalf_of_openerp-20111119051322-q109g1zgszi27u9e
bzr revid: launchpad_translations_on_behalf_of_openerp-20111121052251-ee9tr9wvqumk7n8u
bzr revid: launchpad_translations_on_behalf_of_openerp-20111121055048-51rwikms7xtq4bkz
2011-11-21 05:50:48 +00:00
Xavier Morel e1190b7a8a [FIX] correctly pass active_* context keys along when executing an action from the treeview
lp bug: https://launchpad.net/bugs/888397 fixed

bzr revid: xmo@openerp.com-20111118134555-tmnh06kmx81mvqhx
2011-11-18 14:45:55 +01:00
Xavier Morel 4df84629ea [IMP] pass along the action context when requesting a tree view
bzr revid: xmo@openerp.com-20111118134502-t6ltgtooij0ob0bt
2011-11-18 14:45:02 +01:00
Xavier Morel e6f0378bd8 [FIX] display user login in static home page
lp bug: https://launchpad.net/bugs/887969 fixed

bzr revid: xmo@openerp.com-20111118111521-7dem9bsa3z0fy3ej
2011-11-18 12:15:21 +01:00
Yogesh (OpenERP) 9d1e3b7534 [FIX] action is ir_actions_report_xml then wizard automatically close.
lp bug: https://launchpad.net/bugs/891342 fixed

bzr revid: ysa@tinyerp.com-20111118073041-x28pnecgtredpc97
2011-11-18 13:00:41 +05:30
Fabien Meghazi 1465ab1446 [IMP] Improve listview styling
bzr revid: fme@openerp.com-20111117165426-h0hbjrd3rqojgewm
2011-11-17 17:54:26 +01:00
Xavier Morel 7c629a31cc [FIX] synchronization of o2m widget saving, avoid race condition when clicking on button of unsaved record
After saving, the formview would both refresh the form and lauch the
action itself, which launches a refresh of its own.

Issue is that o2m's filling of themselves (a read) is async and
triggered by the set_value on the o2m field, so the second reload of
the form would be interspersed (between the first reload and the end
of the o2ms loading), resulting in corrupted state for the o2ms if the
button's action somehow changed the contents of the o2m (it would
remove the old records and return brand new ids during the refresh):
the set_value on the o2m would empty the o2m's dataset cache, and the
returning fetch request would try to find in cache values removed from
it, or something, blowing up everything.

Anyway, this was fixed by ensuring the button action is only executed
after the form is completely done doing its post-save reload (using
the new async set_value). This is a tiny bit brittle in that onchanges
are synchronous but call set_value, so a set_value on an o2m from an
onchange may have issues. It also increases the flicker of the view,
as the o2m is reloaded twice in quick succession.

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

bzr revid: xmo@openerp.com-20111117161426-72jzhvv3dm387uom
2011-11-17 17:14:26 +01:00
Xavier Morel 6bd9084740 [FIX] issues with asynchronous set_value handling
* field could be changed from under the closure, use _.each
* There's a bug in Deferred.queue() when passing synchronous deferred
  (including non-deferred) it's instantanously resolved

bzr revid: xmo@openerp.com-20111117160009-s702939kji69v3zf
2011-11-17 17:00:09 +01:00
Fabien Meghazi efbef31770 [FIX] callers of on_record_loaded to use promises
bzr revid: fme@openerp.com-20111117131816-991odq4m45146vfv
2011-11-17 14:18:16 +01:00
Fabien Meghazi 5ebcc65fc5 [FIX] Fixed data#read_index() so it returns same argument to callback and to .then()
bzr revid: fme@openerp.com-20111117130913-lji983yp8b7vb0do
2011-11-17 14:09:13 +01:00
Fabien Meghazi 41aded04c4 [IMP] Core callbacks always return value of original method
instead of last callback in the stack

bzr revid: fme@openerp.com-20111117130802-gyrzythtzs2nzmz5
2011-11-17 14:08:02 +01:00
Fabien Meghazi c4a10281e4 [IMP] FormView: on_record_loaded returns a promise
bzr revid: fme@openerp.com-20111117124319-61ruoa9g8we1a438
2011-11-17 13:43:19 +01:00
Fabien Meghazi eaee8c47b0 [IMP] Allows to define options per view in action flags
bzr revid: fme@openerp.com-20111117111857-bot6h87bh4tv3dfw
2011-11-17 12:18:57 +01:00
Fabien Meghazi 42cdd75942 [FIX] Strange overflow of unwrapped text in 100% width buttons under Firefox
lp bug: https://launchpad.net/bugs/885765 fixed

bzr revid: fme@openerp.com-20111117090117-m5du8bph807nhpju
2011-11-17 10:01:17 +01:00
Fabien Meghazi 811c58e697 [FIX] Fixes form's date[time] widgets problems with jQuery ui date[time]pickers
lp bug: https://launchpad.net/bugs/877976 fixed
lp bug: https://launchpad.net/bugs/885385 fixed

bzr revid: fme@openerp.com-20111116222705-dg4u0lpw6p2o8nx1
2011-11-16 23:27:05 +01:00
Serpent Consulting Services 09dd34bd06 [FIX] DB creation failure : Better message attached to the exception
lp bug: https://launchpad.net/bugs/885664 fixed

bzr revid: support@serpentcs.com-20111116201946-n3lkqtjgb0x3psa8
2011-11-17 01:49:46 +05:30
Fabien Meghazi 5bcda27aa1 [IMP] Use t-js
bzr revid: fme@openerp.com-20111116164639-y76q8quqj60r2w3j
2011-11-16 17:46:39 +01:00
Fabien Meghazi f386b74eff [IMP] QWeb2: add 'console' in reserved words
bzr revid: fme@openerp.com-20111116164210-ktn35gjb703kdrek
2011-11-16 17:42:10 +01:00
Xavier Morel d6456b277e [FIX] you get an icon, you get an icon, everybody gets anb icon!
if a searchview filter does not have an icon, default to gtk-home

bzr revid: xmo@openerp.com-20111116134805-yd4ze31j8zc5fw7u
2011-11-16 14:48:05 +01:00
Xavier Morel 901596adce [FIX] searchview needs to send the action's context when loading its view
bzr revid: xmo@openerp.com-20111116133803-f21mzgatnkr5in3p
2011-11-16 14:38:03 +01:00
Xavier Morel e33b9a722e [FIX] some badly implemented function fields return empty strings (for e.g. dates, instead of False)
treat empty strings as 'false' except for char fields

bzr revid: xmo@openerp.com-20111116100416-0713i9va49ffbzlh
2011-11-16 11:04:16 +01:00
Xavier Morel 4ea75b0da9 [IMP] don't default to debug mode when loading the client root anymore
bzr revid: xmo@openerp.com-20111116085423-wu53ydaan357ucfd
2011-11-16 09:54:23 +01:00
Xavier Morel 2215a31920 [IMP] underscore fun
bzr revid: xmo@openerp.com-20111116075246-lbrusmxekmdygwkm
2011-11-16 08:52:46 +01:00
Christophe Simonis 4d7a24e814 [IMP] nivification of Loading widget
bzr revid: chs@openerp.com-20111115165530-mvunu1bsuiq1k4du
2011-11-15 17:55:30 +01:00
Fabien Meghazi 7e9090fde7 [REM] FormView: Removed is_dirty_for_user and replaced by calling is_dirty() on fields
bzr revid: fme@openerp.com-20111115145806-hlh19loo03nmy1qx
2011-11-15 15:58:06 +01:00
Fabien Meghazi 1116d94a81 [UNFK] Restore xmo fixes that I accidentally reverted.
bzr revid: fme@openerp.com-20111115132914-74mhywoy36gm8pdd
2011-11-15 14:29:14 +01:00
Fabien Meghazi d4058abeb7 [FIX] on_ui_change triggered before on_changes in date(time) widgets
lp bug: https://launchpad.net/bugs/885681 fixed

bzr revid: fme@openerp.com-20111115124520-aqma1ti2d81oye8j
2011-11-15 13:45:20 +01:00
Fabien Meghazi db2c85635b [IMP] Upgraded unserscore version from 1.1.7 to 1.2.2 and underscore.string from 1.1.6 to 1.2.0
WARNING: underscore string does not mixin to underscore by default. Use _.str.*

bzr revid: fme@openerp.com-20111115123059-k31lhp0db2d8h22k
2011-11-15 13:30:59 +01:00
Xavier Morel e536b4ace8 [FIX] handling of groups with length 0 in ContainerDataGroup's group descriptor munger
For a group with a ${field}_count of 0, code would fallback on __count
which does not exist -> would try to set group.length to `undefined`
which leads to the property being removed from the result, blowing up
the call to `$('<td>').text(group.length)` in the listview (jQuery's
.text() apparently does not like getting `undefined` as its
parameter... who knew?)

Also make `openable` clearer, and improve style of listview in case of
an empty group (openable but length 0): remove the arrow on the left
(but leave the indent, otherwise it's ugly).

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

bzr revid: xmo@openerp.com-20111115112906-e87sf40tgr8goqps
2011-11-15 12:29:06 +01:00
Xavier Morel f6b0482130 [FIX] add active_id, active_ids and active_model to context send when fetching m2o widget values in forms
lp bug: https://launchpad.net/bugs/878189 fixed

bzr revid: xmo@openerp.com-20111115105809-phttoirkmq4rzd1w
2011-11-15 11:58:09 +01:00
Xavier Morel df134ee96c [FIX] inability to open database screen after going back to login
as well as synchronization of db list between database management and login screen (mostly on dropdb)

bzr revid: xmo@openerp.com-20111115094507-n0hs6ehjc1exua0u
2011-11-15 10:45:07 +01:00
Xavier Morel 92ba7b7fc3 [IMP] correctly synchronize dblist between db pane and login
bzr revid: xmo@openerp.com-20111115094250-8c2rq2le39oc3z7b
2011-11-15 10:42:50 +01:00
Xavier Morel 6810fd765c [FIX] only hide the database when going back to login, don't stop it entirely
the database widget seems to not restart correctly anymore, after being stopped

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

bzr revid: xmo@openerp.com-20111115093448-opym0msx0szvaeyt
2011-11-15 10:34:48 +01:00
Fabien Meghazi 90a73bb63c [FIX] Prevent jquery.tipTip to activate when source node is not attached to DOM anymore
bzr revid: fme@openerp.com-20111115091347-0wh7yf8df2y653d8
2011-11-15 10:13:47 +01:00
Fabien Meghazi 95c31ad01c [ADD] FormView: Added debug information as tooltips
bzr revid: fme@openerp.com-20111114205916-549at8roai7yrpjm
2011-11-14 21:59:16 +01:00
Fabien Meghazi 2bd2ef2cf3 [IMP] Keep domain and context source string in fields view get
bzr revid: fme@openerp.com-20111114205012-toweif7lkr54cv4e
2011-11-14 21:50:12 +01:00
Fabien Meghazi a9777f9598 [ADD] Added jQuery tipTip
bzr revid: fme@openerp.com-20111114204925-nsrkn93c3tizqzm8
2011-11-14 21:49:25 +01:00
Xavier Morel 76a02ead76 [FIX] support 'thousands' separator for floats
lp bug: https://launchpad.net/bugs/886471 fixed

bzr revid: xmo@openerp.com-20111114155332-3on98ot7o808z0gi
2011-11-14 16:53:32 +01:00
Xavier Morel 42c7cb86d9 [FIX] support 'thousands' separator for integers
lp bug: https://launchpad.net/bugs/886471 fixed

bzr revid: xmo@openerp.com-20111114154510-r6bdi22cyygh72ak
2011-11-14 16:45:10 +01:00
Xavier Morel 4aafc01a3c [ADD] function to insert 'thousands' separators
bzr revid: xmo@openerp.com-20111114153436-pj6vq6lamfrjpg7f
2011-11-14 16:34:36 +01:00