Commit Graph

4972 Commits

Author SHA1 Message Date
Christophe Matthieu b83c11d61a [FIX] web_form: FieldMany2ManyBinaryMultiFiles get_value work with default_value and unloaded value
bzr revid: chm@openerp.com-20121211105045-0kugxoijdxh8sm7s
2012-12-11 11:50:45 +01:00
Fabien Meghazi c124fc3281 [FIX] Roundtrips binary field value if not bin size
lp bug: https://launchpad.net/bugs/1082616 fixed

bzr revid: fme@openerp.com-20121211103357-csqirmhxehmszyu4
2012-12-11 11:33:57 +01:00
Xavier Morel e616a9aa14 [FIX] would be better if we could write to textareas as well
bzr revid: xmo@openerp.com-20121211101901-1lqbca199wbce2ld
2012-12-11 11:19:01 +01:00
Xavier Morel d165b1715c [FIX] broken writing to selection field from web UI
lp bug: https://launchpad.net/bugs/1088764 fixed

bzr revid: xmo@openerp.com-20121211090610-qoh1zazzpp00sx5l
2012-12-11 10:06:10 +01:00
Launchpad Translations on behalf of openerp cc69fe1b25 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20121211044948-8q9vf1f9ftrzq4wm
bzr revid: launchpad_translations_on_behalf_of_openerp-20121211050318-3noic2ymt0j497rw
2012-12-11 05:03:18 +00:00
Antony Lesuisse f83bfeff0b [IMP] cleanup menu method mess
do_* were introduce for testing this is not needed anymore

bzr revid: al@openerp.com-20121211021338-8s3jqpfraku1tmsj
2012-12-11 03:13:38 +01:00
Xavier Morel 456ce8cd36 [FIX] intermittent test failure
when test is run right at the boundary between two seconds, after rounding to second generated date and reference date could differ.

check that generated date is within a small range (date created before and date created after) instead of equal to reference

bzr revid: xmo@openerp.com-20121210165006-y720xrwlo37sjwm8
2012-12-10 17:50:06 +01:00
niv-openerp aee4b7fb92 [IMP] modified chrome frame message to display better in IE8
bzr revid: nicolas.vanhoren@openerp.com-20121210155021-5b7j4626p52uz1ei
2012-12-10 16:50:21 +01:00
Xavier Morel 45f3ee1909 [FIX] xmo@openerp.com-20121210143808-wt4jmi4x0pg85xb8 issue: don't store value from non-existent input
bzr revid: xmo@openerp.com-20121210154411-vrju22fwq7gsjblm
2012-12-10 16:44:11 +01:00
Raphael Collet 43ca577f99 [FIX] js tests: add an abstraction over instance to create properly an assertion function
bzr revid: rco@openerp.com-20121210154309-mubr65ildpiw2wpx
2012-12-10 16:43:09 +01:00
niv-openerp 526c856f7e [FIX] problem in View class, the is_action_enabled() method assumed the existence of the fields_view attribute despite the fact that class never setted that attribute
bzr revid: nicolas.vanhoren@openerp.com-20121210153646-ulbsja1mt9re25wz
2012-12-10 16:36:46 +01:00
Raphael Collet 38994104f0 [IMP] js tests: when testing pyeval on datetimes, avoid comparison with an indepent call to new Date()
bzr revid: rco@openerp.com-20121210151828-lfzyfy75oldkjxk5
2012-12-10 16:18:28 +01:00
Fabien Meghazi 7852c12d8a [FIX] Better fix for unclickable z-indexed items in dialogs. (Patching jQuery UI dialog)
bzr revid: fme@openerp.com-20121210145239-0x1sprin6hp66ghl
2012-12-10 15:52:39 +01:00
Xavier Morel d1b9cfce37 [FIX] form widgets failing to return correct value on programmatic save
Editable list was losing value when switching to other row from edited
cell (edit, tab-to-next-fiend then change record worked).

When changing row (by clicking on an other row or pressing up/down),
the list view simply request saving the current form and — once that
is done — switches the form to the new row.

The issue is in what happens *during* form-saving: for most text-based
fields (e.g. CharField-like) the field returns its internal
value. Said internal value was only synchronized when the internal
form control (input or textarea) fired the ``change`` event... and the
change event only fires *after blurring* (leaving) the current
field. So the form saving (and thus the retrieval of field values)
occured before the field could sync its internal value with the one
entered by the user.

Added a bunch of commit_value override to perform this synchronization
right before the field's value is requested.

Also removed an extraneous trailing comma in an array, and removed 2
useless temp storage (unused variables beyond their assignment).

bzr revid: xmo@openerp.com-20121210143808-wt4jmi4x0pg85xb8
2012-12-10 15:38:08 +01:00
Vo Minh Thu 3e6c62d472 [IMP] web.http: _load_addons load the addons in a reproducible way.
I believe there are potential circular imports that can break
because of openerp.modules.module ImportHook, but they are
deifficult to reproduce when the import order is not always
the same.

bzr revid: vmt@openerp.com-20121210140411-ranw3jc3mwu3ymty
2012-12-10 15:04:11 +01:00
Thibault Delavallée 5d2d4dea2c [MERGE] Needaction loading update.
This web revision modifies the way needaction are loaded. Now they are loaded independently of the menus. After having loaded and displayed the various menus, a call to the server is done to avoid a long latency between the login and the display of menus. Needaction counter will be displayed as soon as they are available.

bzr revid: tde@openerp.com-20121210131658-pgy3t9t71f0z2yd5
2012-12-10 14:16:58 +01:00
Thibault Delavallée 1ca5e68b1f [MERGE] Sync with trunk.
bzr revid: tde@openerp.com-20121130093732-i8y10ayjqiaq5t7p
bzr revid: tde@openerp.com-20121204142854-pauouyapnw7z8zwj
bzr revid: tde@openerp.com-20121205101544-k4ui6thr0ibzw0vx
bzr revid: tde@openerp.com-20121210125423-81wbh4af9sxdqjki
2012-12-10 13:54:23 +01:00
Xavier Morel 70f8f99b35 [FIX] prevent propagation of [UP] and [DOWN] keydown events in form m2o
these events are used by the autocompletion widget internally, if they
bubble upwards they also get handled by the list view which interprets
them as going up/down the list.

Prevent the latter by suppressing bubbling of these events.

bzr revid: xmo@openerp.com-20121210112203-3mry0pvecri0pv9o
2012-12-10 12:22:03 +01:00
Xavier Morel e972b6a5d4 [FIX] cancel list edition on search
Otherwise, if a search is performed while creating or editing a line
(e.g. in logged calls, create a line without saving then try to apply
a filter) the edition section (and new line) disappears but the list
remains in "edition" mode (e.g. save/discard button) even though
edition data is missing (trying to save or discard will error out).

bzr revid: xmo@openerp.com-20121210100914-delia5bhmtgrujpu
2012-12-10 11:09:14 +01:00
Xavier Morel f9e610a890 [FIX] don't lose debug mode when clicking on logo
bzr revid: xmo@openerp.com-20121210100137-h2ydpz6b63c48b1z
2012-12-10 11:01:37 +01:00
Launchpad Translations on behalf of openerp 7f1d5daf2f Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20121210043931-72a32pz7q282df45
bzr revid: launchpad_translations_on_behalf_of_openerp-20121210044428-d9bzm1dnqc26voci
2012-12-10 04:44:28 +00:00
Antony Lesuisse 35b52c5b65 [FIX] test_js typo
bzr revid: al@openerp.com-20121209043015-curop98b936em7bn
2012-12-09 05:30:15 +01:00
Antony Lesuisse eaf4780bd5 [FIX] runbot use db_password for admin_passowrd
bzr revid: al@openerp.com-20121209040103-65om8phyuj71u167
2012-12-09 05:01:03 +01:00
Antony Lesuisse 4040b8caa6 [IMP] testjs command
To tun the tests:

  createdb t
  /server/openerp-server --addons-path=addons,web/addons server -d t -i web_tests_demo

Once the server is ready, run, in an other shell:

  /server/openerp-server --addons-path=addons,web/addons testjs

bzr revid: al@openerp.com-20121209024810-cdi2s9ftr97x8l5p
2012-12-09 03:48:10 +01:00
Antony Lesuisse a2508290c2 [DOC] qweb rationale
bzr revid: al@openerp.com-20121208084846-1g1oksufswazkvko
2012-12-08 09:48:46 +01:00
Launchpad Translations on behalf of openerp a325343c42 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20121208045847-0s126yjr8uwtmumb
bzr revid: launchpad_translations_on_behalf_of_openerp-20121208045953-wihh2b6ioie9o11i
bzr revid: launchpad_translations_on_behalf_of_openerp-20121208052110-nf16120fhniyh9zh
2012-12-08 05:21:10 +00:00
niv-openerp d2863fbd59 [IMP] added "disabled" on buttons in list view during execution of asynchrnous operation
bzr revid: nicolas.vanhoren@openerp.com-20121207154640-609iwn2y093kw171
2012-12-07 16:46:40 +01:00
Launchpad Translations on behalf of openerp c09b9cb5f9 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20121207043623-mrfjgzunwq1dlmmh
bzr revid: launchpad_translations_on_behalf_of_openerp-20121207044755-avo3gbucdjj6i0ms
2012-12-07 04:47:55 +00:00
Fabien Meghazi 3dbed3b90d [MERGE] Removed fields_view_get from web controller. Replaced by instance.web.fields_view_get
bzr revid: fme@openerp.com-20121206161749-0cx1xychzqe96fb2
2012-12-06 17:17:49 +01:00
Xavier Morel 7ac99cbeaf [FIX] form selection field: don't interpret value 0 as false in the template when the code doesn't do so
bzr revid: xmo@openerp.com-20121206135114-nuwc3wdc6zatbl3d
2012-12-06 14:51:14 +01:00
Fabien Meghazi 96408a36f0 [MERGE] Unclickable z-indexed items in dialogs. (Patching jQuery UI dialog)
The jQuery UI team will not fix the bug because they redisigned
their dialog's code base for their future version (1.10)

http://bugs.jqueryui.com/ticket/5466#comment:8

bzr revid: fme@openerp.com-20121206133126-zc64pkhoh4s89q32
2012-12-06 14:31:26 +01:00
Fabien Meghazi 173a8b9d4d [FIX] QWeb: purge compiled template when template is added
bzr revid: fme@openerp.com-20121206132115-6fyedomrrchrxc43
2012-12-06 14:21:15 +01:00
Xavier Morel d9528501cf [IMP] qweb doc
bzr revid: xmo@openerp.com-20121206120440-17m9q0yhc4osd157
2012-12-06 13:04:40 +01:00
Fabien Meghazi 21927bc249 [FIX] error in tree view during refactoring
bzr revid: fme@openerp.com-20121206091334-c2z76kbmibqq0jgq
2012-12-06 10:13:34 +01:00
Fabien Meghazi 6562cc3d18 [MERGE] trunk
bzr revid: fme@openerp.com-20121205160808-7zd3c6y6pm26pj47
2012-12-05 17:08:08 +01:00
Fabien Meghazi bf6bdf017b [IMP] Changed tests according to new client side fields view get
bzr revid: fme@openerp.com-20121205160656-0mg1hnv35vk27adh
2012-12-05 17:06:56 +01:00
Fabien Meghazi 4c66504f78 [STEP BACK] One step back in the cleaning process. Maybe for v8.
bzr revid: fme@openerp.com-20121205160536-p9dm7zdxq2qb9mqs
2012-12-05 17:05:36 +01:00
Xavier Morel 5122dab978 [ADD] bit o' tutorial for web modules
bzr revid: xmo@openerp.com-20121205132854-j0r8qgh5u2qwlqj1
2012-12-05 14:28:54 +01:00
Launchpad Translations on behalf of openerp 538834d9c3 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20121206044118-gn1y04y813l6skve
bzr revid: launchpad_translations_on_behalf_of_openerp-20121206045406-0pzpwmkyyxre13hn
2012-12-06 04:54:06 +00:00
Antony Lesuisse 5c53674c2e [FIX] views remove unused session property
bzr revid: al@openerp.com-20121206014334-8a11s1iqysq6v9e1
2012-12-06 02:43:34 +01:00
Antony Lesuisse 0c3f9f691b [FIX] chrome template use a template url for the logo, needed for demo
bzr revid: al@openerp.com-20121205124218-0qdvqed5td9mh84k
2012-12-05 13:42:18 +01:00
Fabien Meghazi 96d3fbe37b [IMP] No need to strip whitespaces afterall
bzr revid: fme@openerp.com-20121205110039-o4kt0mpbq2b5zbd2
2012-12-05 12:00:39 +01:00
Fabien Meghazi 8d9367a873 [FIX] Do not insert Elements instead of HTMLElements in the dom
bzr revid: fme@openerp.com-20121205105933-y3glnms4dnk7k2uz
2012-12-05 11:59:33 +01:00
Fabien Meghazi 595ba7a799 [FIX] Remove fvg steps from form view
bzr revid: fme@openerp.com-20121205093522-4mws91b2i14f7j1z
2012-12-05 10:35:22 +01:00
Launchpad Translations on behalf of openerp aec7ff5024 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20121205052048-tvbqvj40zdyoxtf0
bzr revid: launchpad_translations_on_behalf_of_openerp-20121205054308-gayp86s3a2we62y7
2012-12-05 05:43:08 +00:00
Fabien Meghazi c867595eed [FIX] Strip whitespace for jsonified fvg.arch
bzr revid: fme@openerp.com-20121204170230-k074c181dt0x920f
2012-12-04 18:02:30 +01:00
Fabien Meghazi 58b44d5082 [IMP] Removed fields_view_get from controllers. Add a helper client side.
bzr revid: fme@openerp.com-20121204163948-pctxvy55w34e1pg9
2012-12-04 17:39:48 +01:00
Xavier Morel ae53b85d90 [FIX] clicks toggling @readonly radio buttons
bzr revid: xmo@openerp.com-20121204162354-6c4z8lvah683c5qx
2012-12-04 17:23:54 +01:00
Christophe Matthieu 2f38a4425f [MERGE] view list: Show the menu sidebar when a child item is showed.
bzr revid: chm@openerp.com-20121204141416-cay34shj7h5y4a6q
2012-12-04 15:14:16 +01:00
Xavier Morel c04b5b7e1f [IMP] client actions doc fixes
bzr revid: xmo@openerp.com-20121204094925-0h0un3eg6znnxy7i
2012-12-04 10:49:25 +01:00