summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/openerpframework.js
AgeCommit message (Collapse)Author
2015-03-18[REF] web: add module system to the web clientGéry Debongnie
This commit introduces a new module system for the javascript code. Instead of using global (namespaced) variables everywhere (like openerp.web.whatever, ...), each file declare one (or more) module with its dependencies. Each module will be loaded after its dependencies, and will be given a reference to the return values. This change is a massive departure from the way the client worked previously. It will sadly break some/most history, but I am sure that the future git ecosystem will allow you to easily browse the history past this revision (one can dream). This commit feature: * main namespace is now odoo instead of openerp * a way to define modules and dependencies (inspired by requirejs) * many files have been splitted in simpler subfiles * basic support for debugging in odoo.__DEBUG__ * no global variable (i.e. nothing in window.openerp) * many bug fixes, many new bugs Future vision: this modularization should simplify future code development, simplify debugging and will allow a serious testing effort
2015-02-12[IMP] website: create a new web editor in the backend to edit html field ↵Christophe Matthieu
with the website builder
2015-02-11[MERGE] forward port of branch 8.0 up to 33a8989Christophe Simonis
2015-02-04[FIX] web: field on change eventDenis Ledoux
This is related to rev. d17f22cde77fd6dd0fb968b1b34883c56648e93e Compare float values using float_is_zeor only if the key is 'value', meaning the changed value is the actual value of the field, not another variable of the field (widget, etc.) For instance, changing the currency_info of a float field using the monetary widget should not compare the old and new value using float_is_zero (the values are not even floats). opw-627166
2015-02-03[MERGE] forward port of branch 8.0 up to 4af53deChristophe Simonis
ignore .po and .pot changes
2015-01-28[FIX] web: digits is not always defined for float fields in jsDenis Ledoux
This rev. is related to d17f22cde77fd6dd0fb968b1b34883c56648e93e
2015-01-28[FIX] web: float compare, float is zeroDenis Ledoux
When setting a float field, the web client rounds the value entered by the user using the instance.web.round_decimals method. Nevertheless, this is possible that this method returns unrounded float, due to the float precision For example, round_decimals(53.8, 2) returns 53.800000000000004 In order to compare this new float value to the old float value and check the eventual change), we need to check if the delta between the two is almost 0. This is the goal of the float_is_zero method introduced during this rev. which is comparable to the float_is_zero method already available in the openerp server, in openerp.tools. Float values compared using the simple === operator instead of this float_is_zero method will be regarded as different in some cases, according to the float value and the precision And the value of the field will be regarded as changed, which can lead to unwanted triggers of onchanges. opw-626635
2015-01-15[FIX] web: debugger in previous commitMartin Trigaux
Damn you commit -a
2015-01-15[FIX] website_forum: description not translatedMartin Trigaux
Make the field description on a forum translatable and add it in the forum view. opw 619786
2014-12-19[FIX] web: openerpframework: replaceElement on multiple roots nodesetSimon Lejeune
jquery's `replaceWith` function behaves differently between 1.8 and 1.9. This function is used by `renderElement` of the Odoo widget API and, when called on a template with multiple root nodes, will fail to replace the whole original nodeset by the new but instead will replace every node by the new nodeset. Sample: 1) Suppose a DOM containing <div>1</div> <div>2</div> and a jquery nodeset [<div>1</div>, <div>2</div>] referring to the previous DOM part in a var named $oldel.; 2) suppose another jquery nodeset [<div>3</div>, <div>4</div>] in $el; $oldel.replaceWith($el) will result in "3434" in jquery 1.9.1 "34" in jquery 1.8.3 This issue particulary concerns us when the dom of a widget is not wrapped into single tag and when re-calling renderElement (triggering replaceElement). The fix is to wrap the element to be replaced ($oldel in the example) behind a div before calling replaceWith.
2014-11-04[FIX] fix a crash with create popup forms (web client)Géry Debongnie
it was trying to call the forme 'hide' method on the searchview. To solve the problem, I readded the method (and renamed it to do_hide for consistency with views)
2014-10-29[MERGE] forward port of branch 8.0 up to 92c7874Christophe Simonis
2014-10-27[FIX] web: cors rpc calls were missing the session cookie, resulting in new ↵Frederic van der Essen
sessions being created for every call
2014-10-21[IMP] various code improvementsGéry Debongnie
mostly styling, and related micro-changes
2014-10-16[MERGE] forward port of branch 8.0 up to 2b192beChristophe Simonis
2014-10-07[ADD] JS widgets reference documentationXavier Morel
Also fixed Widget#alive's behavior and tested it
2014-07-02Move duplicate jQuery custom plugin in openerpframeworkFabien Meghazi
2014-05-06[ADD] openerp.loadBundle()Fabien Meghazi
bzr revid: fme@openerp.com-20140506103649-wrfa25boj2chy6gl
2014-01-31[MERGE] trunk-website-alAntony Lesuisse
bzr revid: al@openerp.com-20140131005202-sjsfy3tc8ys1a325
2014-01-30[IMP] Quick fix for cros support in webclientFabien Meghazi
bzr revid: fme@openerp.com-20140130151146-twct15ruxq179ryu
2014-01-22[ADD] JSONify Date objects to a UTC datetime in OpenERP server formatXavier Morel
This way, the client can send genuine local Date objects without caring too much, the server will get them in an expected format. This can then be used by leaving Date objects in domains, and have these date objects end up correctly in the server without creators of domains having to manually serialize them to UTC from a local datetime somehow. bzr revid: xmo@openerp.com-20140122135426-zm80cj5wm9iebs76
2014-01-03[MERGE] Sync with trunkThibault Delavallée
bzr revid: tde@openerp.com-20140103151458-8hl5qlmswpxdvd7v
2013-12-18[MERGE] forward port of latest saas-2 until rev 3893 ↵Martin Trigaux
dle@openerp.com-20131218112416-2vtaq442qo8opq4u bzr revid: mat@openerp.com-20131218165033-4djghawrzllkeckg
2013-12-03[FIX] web: openerpframework.js: do not use _.strChristophe Simonis
openerpframework.js can be used as standalone library (im_livechat uses it this way) and do not depend on underscore.string.js bzr revid: chs@openerp.com-20131203132937-ss7hx1gligzai5ch
2013-12-02[MERGE] sync with trunk (to rev 3893)Christophe Matthieu
bzr revid: chm@openerp.com-20131202151847-4sf0ww58meql0e4z
2013-11-25[MERGE] forward port of branch saas-2 up to revid 3887 ↵Christophe Simonis
chs@openerp.com-20131122172422-tsd8wzqkbqknrw1w bzr revid: chs@openerp.com-20131125160506-30uia4pdwzpp54gj
2013-11-13[IMP] web: call call_kw with full route to help debuggingChristophe Simonis
bzr revid: chs@openerp.com-20131113184000-3k3dnwl5ftllq2rv
2013-11-13[ADD] hacky abort() proxy for json requestsXavier Morel
bzr revid: xmo@openerp.com-20131113151911-l4f7vlzkcht38nuc
2013-10-31[MERGE] forward port of branch saas-2 up to revid 3865 ↵Christophe Simonis
chs@openerp.com-20131031111945-u3wi11e4rykpslme bzr revid: chs@openerp.com-20131030183314-d75tbpxjjk3u79er bzr revid: chs@openerp.com-20131031144026-09f3eqfwfj2bcefs
2013-10-31[FIX] web: correct date and datetime parsing.Christophe Simonis
When creating a new Date object at a specific date, this date is treated as a UTC datetime then normalized to the browser timezone. This can lead to a change of Year/Month/Day depending of the chosen date. Using a date of a leap year date for date parsing and forcing UTC date for datetime parsing correct the month-switch errors in all timezones bzr revid: chs@openerp.com-20131031133920-yl5z4oz939smwvz8
2013-11-07[FIX] web: correct cookie parsing.Christophe Simonis
avoid reading wrong cookie by matching the whole cookie name bzr revid: chs@openerp.com-20131107143212-50hrpvkaw3gxxlop
2013-10-31[FIX] web: correct date and datetime parsing at end of month.Christophe Simonis
As `new Date()` return the current date, when we are the 31, setting the month to a month with less than 31 days will change the date to next day (1st of next month). This result to a date(time) object one month ahead of the wanted date(time). bzr revid: chs@openerp.com-20131031103333-vt68132ptj9sbr04
2013-10-11Added tests about timeouts and implemented it in jsonprpc2niv-openerp
bzr revid: nicolas.vanhoren@openerp.com-20131011133054-0dx3wxqcqbdocnlf
2013-10-11[IMP] Added some documentation in the framwork.niv-openerp
bzr revid: nicolas.vanhoren@openerp.com-20131011095424-midppkv5czebt1f2
2013-08-19[IMP] added minor feature in Widget to ease developmentniv-openerp
bzr revid: nicolas.vanhoren@openerp.com-20130819092408-rdi91pokwuuy3f5e
2013-08-08[IMP] Moved the date formatting functions in openerpframework.jsniv-openerp
bzr revid: nicolas.vanhoren@openerp.com-20130808134520-v0n2b29vuffstyu0
2013-08-06[IMP] added docniv-openerp
bzr revid: nicolas.vanhoren@openerp.com-20130806132807-rbiafmcqvbh1o79y
2013-08-06[IMP] Moved Mutex class to openerpframework.jsniv-openerp
bzr revid: nicolas.vanhoren@openerp.com-20130806131746-l43mz6aos7eupehm
2013-08-06[IMP] Improved shim for function.bindniv-openerp
bzr revid: nicolas.vanhoren@openerp.com-20130806130734-lov3aq0m4b1r4sto
2013-08-06[IMP] Merged corelib.js and coresetup.js into core.jsniv-openerp
bzr revid: nicolas.vanhoren@openerp.com-20130806122623-pq6bpkjk65jx0fnp
2013-08-06Put everything in the framework directly in the openerp namespace instead of ↵niv-openerp
the openerp.web namespace. bzr revid: nicolas.vanhoren@openerp.com-20130806085812-ek8v8k0x4m7ocu4f
2013-08-05Some commasniv-openerp
bzr revid: nicolas.vanhoren@openerp.com-20130805151544-pdaebd2o8bh70z7z
2013-08-05Perfected translations integration in the frameworkniv-openerp
bzr revid: nicolas.vanhoren@openerp.com-20130805151012-wnc7wkyiz0eay5oh
2013-08-05Copied a part of translation database to openerpframework.jsniv-openerp
bzr revid: nicolas.vanhoren@openerp.com-20130805145514-uuywlhleyfz2xoj4
2013-08-05Corrected some stuff in openerp.web.Modelniv-openerp
bzr revid: nicolas.vanhoren@openerp.com-20130805134059-3ayw6b0tqqberkaw
2013-08-05Fixed potential security issue + some detailsniv-openerp
bzr revid: nicolas.vanhoren@openerp.com-20130805133309-jds80qa5j5lgwslq
2013-08-05Ported model to the frameworkniv-openerp
bzr revid: nicolas.vanhoren@openerp.com-20130805123916-s62upxq3jwqjygt0
2013-08-05Ported some authentication methods to the Session classniv-openerp
bzr revid: nicolas.vanhoren@openerp.com-20130805111250-ws23n3b6os54qsp3
2013-08-05minor improvementsniv-openerp
bzr revid: nicolas.vanhoren@openerp.com-20130805101849-rqqx4jcmbymv5hfl
2013-08-02Make it a little bit cleaner to fetch the session_idniv-openerp
bzr revid: nicolas.vanhoren@openerp.com-20130802152432-stvg9eed7f6juvq9