Commit Graph

5420 Commits

Author SHA1 Message Date
Launchpad Translations on behalf of openerp 6a2da1c2f7 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20130421053215-jdbdrur8vk4zu5tc
bzr revid: launchpad_translations_on_behalf_of_openerp-20130420064852-b6bt9syb79h1x16m
bzr revid: launchpad_translations_on_behalf_of_openerp-20130421053233-g4dbsfidsqrs301v
bzr revid: launchpad_translations_on_behalf_of_openerp-20130421053237-8jhzy2qe55bb766x
2013-04-21 05:32:37 +00:00
Fabien Meghazi d94936132a [MERGE] Fixed http controllers inheritance
bzr revid: fme@openerp.com-20130418171750-7oldgiewo1eewxk7
2013-04-18 19:17:50 +02:00
Xavier Morel d4977dd3bb [FIX] missing translation mark in error message
lp bug: https://launchpad.net/bugs/1125159 fixed

bzr revid: xmo@openerp.com-20130418125640-87g9sdowig7w565d
2013-04-18 14:56:40 +02:00
Olivier Dony dc24794855 [FIX] web: support integer/float fields in search view via auto-completion + tests
integer/float fields were not offering auto-completion in search views,
making them unsearchable except via advanced search.
This patch adds the missing complete() function and removes the incorrect
value_from() function that did not conform to the 7.0 search view API.
It seemed to be a leftover of the 6.1 search field implementation
of get_value(), wrongly renamed for 7.0.

Also includes corresponding tests.

bzr revid: odo@openerp.com-20130418112001-388op1t8ugr0rhfn
2013-04-18 13:20:01 +02:00
Xavier Morel 3da2aaf488 [IMP] only use name of class being created: module is incorrect for dynamically created classes
bzr revid: xmo@openerp.com-20130418094315-qk8m13s4zzvojauw
2013-04-18 11:43:15 +02:00
Xavier Morel db4d08e3a9 [FIX] Extension of controller in-place with explicit spec of same _cp_path
When extending a controller in-place (e.g. A(Controller), B(A)) and
providing the exact same _cp_path as parent (no-op) execution path
would go into handler for _cp_path overwriting and raise an assertion
error for overwriting of existing controller.

Except this is allowed (if ugly) pattern, so warn & ignore behavior
(it is harmless).

bzr revid: xmo@openerp.com-20130418092405-wrmmrd648b9koefu
2013-04-18 11:24:05 +02:00
Launchpad Translations on behalf of openerp 56b5446431 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20130417055748-w9lnddgiwwvrfpbl
bzr revid: launchpad_translations_on_behalf_of_openerp-20130418060606-6hezu76yxwsqgc11
2013-04-18 06:06:06 +00:00
Xavier Morel c19bc50648 [FIX] ids of deleted records living in shared dataset when clicking on list row
When a record is activated, the listview will do some jiggling around
assigning the ids of internal dataset to the one shared between all
views, this is mostly for the case where one switches from a "grouped"
list view, so the form view only cycles on the "current" group.

Problem is, that internal dataset is not correctly synchronized with
the shared one, so when the id is removed from the shared dataset it
is *not* removed from the internal one(s), and when the switch is made
the ids from the internal dataset are set on the shared one and
reintroduce the deleted record, leading to the form view's incorrect
state.

Fix the issue by updating the dataset's ids list when a record is
deleted from the records tree.

Also extracted some stuff from DataSetSearch's unlink callback so it
can be overridden and is more stable across datasets.

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

bzr revid: xmo@openerp.com-20130416152000-06dbwkgdb8zlf9pc
2013-04-16 17:20:00 +02:00
Xavier Morel a455d6c2b2 [FIX] correctly handle group_by_no_leaf when no grouping applied
If there are no grouping field specified *but* group_by_no_leaf is
specified, should call read_group with no grouping fields: will
generate a single group (which can not be opened) for all of the
model.

Necessary for analysis views since individual "records" make no sense.

bzr revid: xmo@openerp.com-20130416092344-2pqog8f7xprn6hsh
2013-04-16 11:23:44 +02:00
Launchpad Translations on behalf of openerp c13ceba6b9 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20130412060536-q07q8ed9v8ldi2kv
bzr revid: launchpad_translations_on_behalf_of_openerp-20130414055031-dgknuaf8a4dhgt16
bzr revid: launchpad_translations_on_behalf_of_openerp-20130413063110-rtd3r7hxe54yb8eq
bzr revid: launchpad_translations_on_behalf_of_openerp-20130414054933-k6o13mitp3dl62xq
bzr revid: launchpad_translations_on_behalf_of_openerp-20130415060648-klbxmc1afr5jq4vb
bzr revid: launchpad_translations_on_behalf_of_openerp-20130412060533-fq4nwi1i6h39y7pl
bzr revid: launchpad_translations_on_behalf_of_openerp-20130413063146-745583mwivnzgjqj
bzr revid: launchpad_translations_on_behalf_of_openerp-20130414055028-v2dnk713g9ydbvpo
bzr revid: launchpad_translations_on_behalf_of_openerp-20130415060722-gvarcrrppfcq777a
2013-04-15 06:07:22 +00:00
Fabien Meghazi 428fdca40a [FIX] FormRenderingEngine: allow class propagation to group cells
bzr revid: fme@openerp.com-20130411163238-qy377cdnn9enax34
2013-04-11 18:32:38 +02:00
Launchpad Translations on behalf of openerp e2620bb5c7 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20130410055459-5aphwzsdpres8fvu
bzr revid: launchpad_translations_on_behalf_of_openerp-20130411144402-pc6d2zj1j2x3y3jp
2013-04-11 14:44:02 +00:00
Frédéric van der Essen 174ef7b490 [MERGE] adding a rounding method that is compliant with the server side rounding method
bzr revid: fva@openerp.com-20130409154129-gul9hkn0p4nt24md
2013-04-09 17:41:29 +02:00
Frédéric van der Essen a5e4d757a1 [FIX] add a correct rounding algorithm to be able to duplicate server-side financial computations
lp bug: https://launchpad.net/bugs/1157761 fixed

bzr revid: fva@openerp.com-20130409144414-nqnmkny5cxrmyru1
2013-04-09 16:44:14 +02:00
Fabien Meghazi 905d13671b [FIX] Do not autofocus Notebook pages by default
bzr revid: fme@openerp.com-20130409122852-f4ikugl83otx8423
2013-04-09 14:28:52 +02:00
Launchpad Translations on behalf of openerp 6fe10fc8e5 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20130409055857-v475gufg9pm5zbqy
bzr revid: launchpad_translations_on_behalf_of_openerp-20130409055920-gtfw1ljrgaej1u0u
bzr revid: launchpad_translations_on_behalf_of_openerp-20130406063645-b7q6s71zvtm9orxm
bzr revid: launchpad_translations_on_behalf_of_openerp-20130407060119-7ojh5lykuwm3ydbn
bzr revid: launchpad_translations_on_behalf_of_openerp-20130409055924-46ylmw1wqri80wgs
2013-04-09 05:59:24 +00:00
Christophe Simonis ecdc3b1873 [FIX] web: company_logo does not try to load the pool + failback correctly if the database does not exists or is not an openerp database
bzr revid: chs@openerp.com-20130405134747-7rkmz5d4r0buhhxj
2013-04-05 15:47:47 +02:00
Launchpad Translations on behalf of openerp 0f53186e2b Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20130404145702-julajxe3ktc5uqc4
bzr revid: launchpad_translations_on_behalf_of_openerp-20130405062320-27t6hdfy9b9zt7ns
2013-04-05 06:23:20 +00:00
Olivier Dony f0320d4258 [FIX] web: company_logo route may be accessed with uid = False in some cases, it should still work
bzr revid: odo@openerp.com-20130404143144-3o2j0xbwh4m84tu8
2013-04-04 16:31:44 +02:00
Fabien Meghazi 30cce00296 [FIX] Date[time] widget width issues on OSX
bzr revid: fme@openerp.com-20130404102306-hrinhnldt5dxqcy7
2013-04-04 12:23:06 +02:00
Fabien Meghazi 8a20760fc8 [FIX] DataSet#size() problem + FormView#on_button_delete() shall pop breadcrumb on empty dataset
bzr revid: fme@openerp.com-20130404101459-m9q90e32qwf068lw
2013-04-04 12:14:59 +02:00
Launchpad Translations on behalf of openerp 665cd6c6ea Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20130403150332-0q7u1so0j76xbo3n
bzr revid: launchpad_translations_on_behalf_of_openerp-20130403150338-iksqy6aim64hko1m
2013-04-03 15:03:38 +00:00
Xavier Morel 3df2a146cd [FIX] logging capture when testing embedded in server, handler hooks are more complex than through oe
bzr revid: xmo@openerp.com-20130403135849-ufnn2a1hdu938p7p
2013-04-03 15:58:49 +02:00
Xavier Morel ebc1cb227d [IMP] make logger not propagate when captured
bzr revid: xmo@openerp.com-20130403123442-p96cj73lwtxa2sek
2013-04-03 14:34:42 +02:00
Xavier Morel cfcda2b032 [IMP] reduce scope of captured logger
bzr revid: xmo@openerp.com-20130403121039-qdq6tz012uc7lgdh
2013-04-03 14:10:39 +02:00
Xavier Morel bc07cab28c [IMP] export formats have no need to inherit from the export controller
bzr revid: xmo@openerp.com-20130403091025-wjb23mzbmdyjnahm
2013-04-03 11:10:25 +02:00
Xavier Morel 41784d0aec [FIX] Export and Reports controllers have no need to extend View
bzr revid: xmo@openerp.com-20130403082635-9dmdi4cco3kawiib
2013-04-03 10:26:35 +02:00
Christophe Matthieu f3ce4dedf3 [FIX] view_form: Fixed the issue of attachment was not added in any other language, because action URL was getting translated.
bzr revid: chm@openerp.com-20130402144039-y0xoaijds4ipw7g0
2013-04-02 16:40:39 +02:00
Xavier Morel 1f421e7928 [FIX] redefinition and in-place extension scenarios for controllers
bzr revid: xmo@openerp.com-20130402143217-pfe2288iodw9r81g
2013-04-02 16:32:17 +02:00
Fabien Meghazi cea7a7a0ab [FIX] m2o does not use @alive()
lp bug: https://launchpad.net/bugs/1160192 fixed

bzr revid: fme@openerp.com-20130402133952-xz2qaoygg83ks3tx
2013-04-02 15:39:52 +02:00
Launchpad Translations on behalf of openerp 252bcc802f Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20130330060824-pc5f2pj14gj0ak27
bzr revid: launchpad_translations_on_behalf_of_openerp-20130331055726-frtzw3gc9ut4wx4y
bzr revid: launchpad_translations_on_behalf_of_openerp-20130401053127-tolr13p1b3bhjny1
bzr revid: launchpad_translations_on_behalf_of_openerp-20130402054749-t3x0zc7qk3n4man2
bzr revid: launchpad_translations_on_behalf_of_openerp-20130330060920-k0cnlpk0rxcli841
bzr revid: launchpad_translations_on_behalf_of_openerp-20130331055741-loojniiz6du9upat
bzr revid: launchpad_translations_on_behalf_of_openerp-20130401053211-yvt1h32v41rs6jje
bzr revid: launchpad_translations_on_behalf_of_openerp-20130402054814-fwg742kzhsupr6kc
bzr revid: launchpad_translations_on_behalf_of_openerp-20130329051100-3ul1k4qwwm2f49gt
bzr revid: launchpad_translations_on_behalf_of_openerp-20130330060923-wch1f8ndmb15nu6x
bzr revid: launchpad_translations_on_behalf_of_openerp-20130331055759-aj1nc93t9420lov0
bzr revid: launchpad_translations_on_behalf_of_openerp-20130401053215-kqqgqefzp95fa1tk
bzr revid: launchpad_translations_on_behalf_of_openerp-20130402054817-k33rri349nc2ioiz
2013-04-02 05:48:17 +00:00
Xavier Morel 23904b523a [TEST] test normal inheritance of controllers
bzr revid: xmo@openerp.com-20130329141645-m70aitx3kv74yo97
2013-03-29 15:16:45 +01:00
Xavier Morel 17eaf9e92a [TESTS] add dispatcher tests
bzr revid: xmo@openerp.com-20130329140329-a78lqt87str80v99
2013-03-29 15:03:29 +01:00
Fabien Meghazi c94c81c8ac [FIX] Remove dirty flag on save
lp bug: https://launchpad.net/bugs/1099380 fixed

bzr revid: fme@openerp.com-20130328210718-85lemijdjc79hhea
2013-03-28 22:07:18 +01:00
Olivier Dony 35d61bbd8b [FIX] web search: correct previous fix to properly handle searching for 0 on number fields
Also removed useless HTML escaping and added basic tests.

bzr revid: odo@openerp.com-20130328153502-v71q2m60wh37ganq
2013-03-28 16:35:02 +01:00
Olivier Dony 300d5be0e6 [FIX] web: int/float fields were not offering auto-completion in search views, making them un-searchable except via advanced search
Added the missing complete() function and removed the incorrect
value_from() override that seemed to be a leftover remnant
of the 6.1 search field implementation of get_value(), wrongly
renamed for 7.0.

bzr revid: odo@openerp.com-20130328120337-lao4o9i0owsbpysi
2013-03-28 13:03:37 +01:00
chirag patel 4f8f192df0 [FIX] Fixed autocomplete of search view hide behind overlay.
bzr revid: cpa@tinyerp.com-20130328063346-1aib1n3on9pdr81u
2013-03-28 12:03:46 +05:30
niv-openerp ab154e8cbc [FIX] small code problem in set defaults feature
lp bug: https://launchpad.net/bugs/1112232 fixed

bzr revid: nicolas.vanhoren@openerp.com-20130322163935-557zk749eiuswpcg
2013-03-22 17:39:35 +01:00
niv-openerp 13863aaa99 [FIX] deferred problems when clicking too quickly on some menu items
lp bug: https://launchpad.net/bugs/1100280 fixed

bzr revid: nicolas.vanhoren@openerp.com-20130322162310-135hd0hoak8k5oq6
2013-03-22 17:23:10 +01:00
Xavier Morel 03330ea230 [FIX] minor presentational offset issue
missed mis-handling of oe_selected in xmo@openerp.com-20130321155123-211iht7c6zme712e

bzr revid: xmo@openerp.com-20130322103606-60ayhrsn5gmgyu2h
2013-03-22 11:36:06 +01:00
dle@openerp.com 6311e080ac [FIX]testing.js: replace testing.case by testing['case'] for compatibility (IOS < 5, IE8)
bzr revid: dle@openerp.com-20130322101606-u8v8lyh59r3qnnk1
2013-03-22 11:16:06 +01:00
Fabien Meghazi 2b40c8ba9e [FIX] Fix FormFields#focus()
The focus() of AbstractFormField should return false if field
is not focusable otherwise it breaks FormView's#autofocus()

Also added checks of existance of the element to focus.
Those errors makes it harder to find other bugs

bzr revid: fme@openerp.com-20130321220636-1pja2ahsdstyl8kz
2013-03-21 23:06:36 +01:00
Xavier Morel 839ceca3e4 [FIX] visible text in Chrome on Linux after applying text-to-icon
@include text-to-icon makes the text invisible (and adds an icon), but
some platform apparently don't apply the text's transparency (or
visibility) to its shadow, leading to the invisible text's shadow
still being noticeably visible (an interesting literary idea, an
"invisible" man who still casts a shadow?) as if the text had not been
erased. Furthermore, combined with the 1px font size it made the text
look like some sort of screen smudge or glitch.

Fix by erasing the text-shadow as well as the text.

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

bzr revid: xmo@openerp.com-20130321164741-iakau7g1kfq2mqu4
2013-03-21 17:47:41 +01:00
Xavier Morel 3c5d38918b [FIX] filter preceded by an invisible filter in the same group
On click on a filter in the drawer, FilterGroup would just match the
offset of the filter in the group's DOM with an index in the internal
#filters array. 

This worked until invisible fields, and then again only for filters
*preceded* by an invisible sibling in the same group: invisible
filters are not rendered in the DOM, so the indexes would get out of
sync.

Fix by using explicit indexes stored in a filter's @data-index and
using that to get the filter object/node.

An alternative fix (but hackier I think): instead of not rendering
invisible filters, render them with display: none. Remains an option
in the future if needed...

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

bzr revid: xmo@openerp.com-20130321155123-211iht7c6zme712e
2013-03-21 16:51:23 +01:00
Xavier Morel 3b2e26af18 [FIX] incorrect array joins
Array#join() is equivalent to Array.join(', '), not Array.join('') as in Python.

For some reason the tests didn't break, but...

bzr revid: xmo@openerp.com-20130321155105-dwgprqldk39r3xk2
2013-03-21 16:51:05 +01:00
Fabien Meghazi f4a98e143b [MERGE] Date Picker is not translated into local language
lp bug: https://launchpad.net/bugs/1101072 fixed

bzr revid: fme@openerp.com-20130321115330-cz7gk7il6hkvntw9
2013-03-21 12:53:30 +01:00
Olivier Dony 57ca8fb11a [FIX] base.xml: improve backwards compatibility of SearchView.filters template to resolve JS errors on OpenERP Apps where 2 different versions of the web client frameworm can be mixed
The incompatible change was introduced at revision
 rev. 3803 revid:xmo@openerp.com-20130304152047-8xaczg9qdx6ug2p1.

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

bzr revid: odo@openerp.com-20130321112020-l9fwle08s37z4oqi
2013-03-21 12:20:20 +01:00
Fabien Meghazi c20977eed8 [FIX] Form binary fields 'Select' and 'Save as' buttons does not work under IE9
lp bug: https://launchpad.net/bugs/1092869 fixed

bzr revid: fme@openerp.com-20130321103407-nh0ncw0vrqba7zfm
2013-03-21 11:34:07 +01:00
Launchpad Translations on behalf of openerp 4083df915f Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20130321050259-e16287z7tx5x2hr1
bzr revid: launchpad_translations_on_behalf_of_openerp-20130321050350-7j423tm3q7n124on
bzr revid: launchpad_translations_on_behalf_of_openerp-20130321050354-6gc2gobnj24c9gso
2013-03-21 05:03:54 +00:00
Christophe Simonis 8fd08f900f [FIX] web: Fix old versions of Webkit (such as ones used on iOS < 6 or PhantomJS <= 1.7)
which does not have Function.prototype.bind function

bzr revid: chs@openerp.com-20130320143652-xqglvte5kwvtwl5i
2013-03-20 15:36:52 +01:00