Commit Graph

5220 Commits

Author SHA1 Message Date
Xavier Morel e00db293d1 [IMP] move domain section and label to ExtendedSearchProposition.Field
Simplifies and linearizes control flow

bzr revid: xmo@openerp.com-20130214142952-e59q9aoz4ngx9iwb
2013-02-14 15:29:52 +01:00
Xavier Morel fcf4f4443c [FIX] wrong object accessed leading to incorrect show/hide of things
bzr revid: xmo@openerp.com-20130214142545-lbog33w0bzpn354q
2013-02-14 15:25:45 +01:00
Xavier Morel 195fef053e [ADD] re-introduce 'is set' and 'is not set' operators which were added to 6.1 but never ported to 7.0
lp bug: https://launchpad.net/bugs/1013528 fixed

bzr revid: xmo@openerp.com-20130214140637-rk46j7csu0i4an31
2013-02-14 15:06:37 +01:00
Fabien Meghazi aa6cd343e8 [IMP] Custom filters: make options 'share' and 'default' exclusive
bzr revid: fme@openerp.com-20130213152158-45qlqjh02h7ua2ur
2013-02-13 16:21:58 +01:00
Fabien Meghazi e19a972890 [FIX] Menu need action link's filter is overriden by default custom filters
bzr revid: fme@openerp.com-20130213143953-nb8dqi2n1neaivm2
2013-02-13 15:39:53 +01:00
Fabien Meghazi 3cd5a856be [FIX] Properly escape values in templates
bzr revid: fme@openerp.com-20130213104229-jjlhilp355lpi22p
2013-02-13 11:42:29 +01:00
Launchpad Translations on behalf of openerp ead19a73b2 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20130213052157-zdt86kcrn8mbwa23
bzr revid: launchpad_translations_on_behalf_of_openerp-20130213052201-hnwd7qjf3tesspnh
2013-02-13 05:22:01 +00:00
Fabien Meghazi 47959a6889 [END] This is the end of the world
bzr revid: fme@openerp.com-20130212133025-544phlyp83gdabu6
2013-02-12 14:30:25 +01:00
Fabien Meghazi ef7978efde [FIX] support virtual ids
bzr revid: fme@openerp.com-20130212131852-xuq4otkb9ooloc9u
2013-02-12 14:18:52 +01:00
Fabien Meghazi 8d85375835 [IMP] Improved code and doc
bzr revid: fme@openerp.com-20130212115740-riqecuhb1zq22dkq
2013-02-12 12:57:40 +01:00
Fabien Meghazi 8d748498fb [FIX] active_ids list items should be numeric
bzr revid: fme@openerp.com-20130211144241-zvygwtgvsk17szo4
2013-02-11 15:42:41 +01:00
Fabien Meghazi cfcc0e2205 [FIX] use active_id in url states
bzr revid: fme@openerp.com-20130211141056-zjn7xy034r2331gp
2013-02-11 15:10:56 +01:00
Xavier Morel d225c56353 [FIX] typos
bzr revid: xmo@openerp.com-20130211112932-dge2jpftirclci2x
2013-02-11 12:29:32 +01:00
Launchpad Translations on behalf of openerp 669316dd1a Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20130207054042-qpy3b4buygxepdf8
bzr revid: launchpad_translations_on_behalf_of_openerp-20130208052255-nqv9i1j5bc2ql84i
bzr revid: launchpad_translations_on_behalf_of_openerp-20130208052430-ohwjhy6y3lnxqayt
bzr revid: launchpad_translations_on_behalf_of_openerp-20130208052435-47h7svyqwx223e5k
2013-02-08 05:24:35 +00:00
Olivier Dony d0c4cca10e [FIX] web: properly encode db and addons URL parameters
Passing the values unescaped could be a source of errors
and a XSS vector.

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

bzr revid: odo@openerp.com-20130207173439-ud5fos61d4pcoe2d
2013-02-07 18:34:39 +01:00
Launchpad Translations on behalf of openerp b64db1c007 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20130207054227-fy00xo21liqcoqz8
bzr revid: launchpad_translations_on_behalf_of_openerp-20130207054231-c558abx56zwr0mg2
2013-02-07 05:42:31 +00:00
Christophe Matthieu 8aa483f5a1 [IMP] chrome.js: CrashManager.warning replace message by fault_code
bzr revid: chm@openerp.com-20130206152224-e32ww9hdb1mvwa2r
2013-02-06 16:22:24 +01:00
Christophe Matthieu 33ae77e803 [IMP] web usermenu: add Help link
bzr revid: chm@openerp.com-20130206150724-t4sul7d824z498v8
2013-02-06 16:07:24 +01:00
Fabien Meghazi e1726fa1ee [FIX] FormView#do_load_state() do not call @do_show() properly
bzr revid: fme@openerp.com-20130205170556-w9xxre6lmqny33xc
2013-02-05 18:05:56 +01:00
Fabien Meghazi 862882da33 [IMP] Also check the presence of active_ids
bzr revid: fme@openerp.com-20130205120950-f4lwe2ng3ktwr033
2013-02-05 13:09:50 +01:00
Fabien Meghazi 87368f7672 [FIX] When active_id is in context, disable search default custom filters
bzr revid: fme@openerp.com-20130205104326-rab6gx4w51hgjbkb
2013-02-05 11:43:26 +01:00
Fabien Meghazi c9f2a86be5 [FIX] Calendar popup form view_id is not honored. Default form view is used instead.
Added instance.web.ViewManager#get_view_id(view_type)
Fetch the title of the popup from the parent if it's a ViewManagerAction,
    otherwise, use the current's view title.

bzr revid: fme@openerp.com-20130204124348-p79drjm72vt2j2ty
2013-02-04 13:43:48 +01:00
Vijaykumar Baladaniya 5f23b55909 [FIX] passtrough_events name replace with passthrough_events.
bzr revid: vba@tinyerp.com-20130204084307-8qremz8qi1qcwhfe
2013-02-04 14:13:07 +05:30
Launchpad Translations on behalf of openerp ffa1be00e1 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20130201054959-3q99pnpceh0ywrvw
bzr revid: launchpad_translations_on_behalf_of_openerp-20130202060018-lx1r8atxxituupav
bzr revid: launchpad_translations_on_behalf_of_openerp-20130203052931-09m8yy1o8v06eh5q
bzr revid: launchpad_translations_on_behalf_of_openerp-20130202060014-qh8fzkuorbrs0rc2
bzr revid: launchpad_translations_on_behalf_of_openerp-20130203052927-r4fv1lu71yh8hrw9
bzr revid: launchpad_translations_on_behalf_of_openerp-20130204054306-wccng6apw2bmlmdi
2013-02-04 05:43:06 +00:00
Xavier Morel 0ad34228e2 [FIX] small issue with adding an attribute called 'id' to a backbone model
triggers backbone's thinking that the model is 'not new' and trying to sync it with a remote on e.g. removal

bzr revid: xmo@openerp.com-20130131135125-1x7czib7q0kafok8
2013-01-31 14:51:25 +01:00
Xavier Morel 69171aa805 [CHG] allow deselecting a custom filter by clicking on it again in the drawer
as asked in project.task:4837:

> Cannot uncheck a custom filter by clicking on it (it's possible on
> classic filters)

bzr revid: xmo@openerp.com-20130131112617-8vul65bb4lbfbfvk
2013-01-31 12:26:17 +01:00
niv-openerp 0272007aae [FIX] minor css fix
bzr revid: nicolas.vanhoren@openerp.com-20130131104804-2d7fo5iafvrhcklk
2013-01-31 11:48:04 +01:00
Fabien Meghazi 337faa6829 [FIX] Use relative protocol in scripts url in order to avoid mixed content warnings in IE
bzr revid: fme@openerp.com-20130129142638-81uffjq3aiopr8ta
2013-01-29 15:26:38 +01:00
Xavier Morel b87102f22e [FIX] Inject user context in all domain and context evaluation
Custom keys from user context may be used in action contexts (not just
e.g. searchview filters). For instance, have a custom key
context_salesteam (in the user model) and an action defining some
search default as a function of the salesteam.

In that case, the action's context evaluation (view.js:~275) will blow
up.

Ensure that does not happen.

Note: eval_contexts already injects user_context in the reduction of
contexts to evaluate. It should be possible to alter the reduction
function to avoid having to inject instance.session.user_context
through pyeval.context(), maybe by _.extend-ing ``result_context``
into ``evaluation_context`` at the *top* of the reduction function
rather than at its bottom?

bzr revid: xmo@openerp.com-20130128130640-ksyvxvx6rlc4820n
2013-01-28 14:06:40 +01:00
Launchpad Translations on behalf of openerp b7f2a1979a Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20130126053743-gvzlf7q6x7t1epw7
bzr revid: launchpad_translations_on_behalf_of_openerp-20130127051012-oel2zn0owk19akxk
2013-01-27 05:10:12 +00:00
Xavier Morel 8e21d2a847 [FIX] avoid storing new admin password in browser history on database creation, courtesy of Holger Brunn
bzr revid: xmo@openerp.com-20130125114331-yabvigl2qjscnzv5
2013-01-25 12:43:31 +01:00
Holger Brunn e02e396925 [IMP] set _push_me: false to fix lp:1091759
bzr revid: hbrunn@therp.nl-20130125110159-b43murb3dzbp9oib
2013-01-25 12:01:59 +01:00
Xavier Morel 4c46187ebf [IMP] set_content_full_screen code, avoid duplications
bzr revid: xmo@openerp.com-20130125100547-ujawyg4ohnrofl3u
2013-01-25 11:05:47 +01:00
Xavier Morel ac550e4239 [FIX] aggregates not being displayed in list o2ms
A template alteration previously used to remove the bottom pager of
listviews in o2ms now matches aggregate field displays.

bzr revid: xmo@openerp.com-20130125085739-isro8w216gpa038a
2013-01-25 09:57:39 +01:00
Launchpad Translations on behalf of openerp 1558bb732d Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20130125060530-mvl0r5jn2ysf7amp
2013-01-25 06:05:30 +00:00
Xavier Morel e761ab7454 [FIX] domain returned by onchange
The "new" form engine performs a bunch of conversions on the form arch
from json to xml to text to json again (or something), thus the
``node`` attribute on form fields might be json but it's got no more
relation to the form's own arch (and the fields defined therein).

Meanwhile the domains processing for onchange recursively traversed
the *form*'s arch trying to find a node matching the key it had to set
its @domain to what it was given. It long predates the "new" form
engine, and since it alters the *original* arch not a copy the "new"
form engine broke it. And since that's untested, it's been broken for
a bunch of months (probably).

Fix by looking up the field according to the domain key (in
form.fields), and setting the domain in the node of the field, rather
than the node of the form's arch.

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

bzr revid: xmo@openerp.com-20130124144018-0g3sl2nej2aj6syp
2013-01-24 15:40:18 +01:00
Olivier Dony 611ff620ce [FIX] session: properly handle exceptions with unicode messages during dispatching
String formatting with an Exception param will use
str(Exception), raising an error if the exception
has non-ascii characters in the message.

bzr revid: odo@openerp.com-20130124140538-1wjjl4a12xnwn38o
2013-01-24 15:05:38 +01:00
Xavier Morel e7547a13db [REM] noise key in web manifest
bzr revid: xmo@openerp.com-20130124131102-s3342pppi2nhyk9g
2013-01-24 14:11:02 +01:00
Mohammed Shekha 54f58c82ae [FIX]Fixed the issue of sum aggregates not displayed on one2many footer.
bzr revid: msh@openerp.com-20130124120727-hhlrzr7qzk242lw0
2013-01-24 17:37:27 +05:30
Launchpad Translations on behalf of openerp 688bb77d95 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20130124053511-cxfjeh7rfwridjv1
bzr revid: launchpad_translations_on_behalf_of_openerp-20130124053515-bl01lm43wsqnoenv
2013-01-24 05:35:15 +00:00
Xavier Morel 8192977f3c [IMP] add confirmation message when removing a global custom filter
lp bug: https://launchpad.net/bugs/1103410 fixed

bzr revid: xmo@openerp.com-20130123105320-pbmeqoudpb48s87m
2013-01-23 11:53:20 +01:00
Xavier Morel ca038643b9 [FIX] rounding of float_time to the next hour should bump the hour, nor display 60mn
bzr revid: xmo@openerp.com-20130123101557-v63oxes2emrwcz19
2013-01-23 11:15:57 +01:00
Anand Patel (OpenERP) be9f4b43b7 [IMP] Added some test cases for the float_time
bzr revid: pan@tinyerp.com-20130123093155-v9rrnb38hxugv1bt
2013-01-23 15:01:55 +05:30
Xavier Morel d5ab8a4241 [IMP] IE9 supports window.getSelection
remove IE <9 usage of document.selection as we don't support these browsers anyway

bzr revid: xmo@openerp.com-20130123092946-wgtvfz3493l7p7cw
2013-01-23 10:29:46 +01:00
Xavier Morel 01ee5f60ee [FIX] pasting HTML content into the text box, then trying to navigate/alter it
Navigation implementation can only deal with straight text (and
asserts that), if HTML is pasted in a search input
InputView#getSelection will throw errors and refuse to act.

Clean up input content after a paste event, to ensure only plain text
is present so it can be navigated.

Don't forget to correctly re-set the cursor at the end of the input
data, otherwise the user will face various deep DOM errors when trying
to move around the input with the arrow keys (which he would usually
be able to do after a paste).

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

bzr revid: xmo@openerp.com-20130123091600-nd4rwqpin6qj8ult
2013-01-23 10:16:00 +01:00
Xavier Morel e5ad5f8e10 [FIX] move filter added at xmo@openerp.com-20130122135139-s3ui9hb44xd7afba to after map
If the filter is executed first, the "iteratee" is transformed to an
array (from an object) and the "key" is lost, replaced by the indices
to the array (and thus the name of the fields end up as "0", "1", "2",
... instead of their actual logical names)

bzr revid: xmo@openerp.com-20130123084422-tbl05l5j72sx528n
2013-01-23 09:44:22 +01:00
Launchpad Translations on behalf of openerp 3499c33270 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20130123060246-kt475gbzoz4f1703
bzr revid: launchpad_translations_on_behalf_of_openerp-20130123060324-z9zt3oif6p20i6mp
bzr revid: launchpad_translations_on_behalf_of_openerp-20130123060328-e0rnct2yu9lh23vp
2013-01-23 06:03:28 +00:00
Vishmita 227758417a [FIX] correctly remove existing needaction counter on reload
bzr revid: xmo@openerp.com-20130122143842-zv3tpd36glphrutu
2013-01-22 15:38:42 +01:00
Xavier Morel f0e8441130 [FIX] correctly pass context to fields_get of advanced search so fields are correctly translated & localized
bzr revid: xmo@openerp.com-20130122141657-sabov4ht6xp3so1a
2013-01-22 15:16:57 +01:00
Xavier Morel 605c171e5b [IMP] search view: don't list deprecated fields in advanced search
bzr revid: xmo@openerp.com-20130122135139-s3ui9hb44xd7afba
2013-01-22 14:51:39 +01:00