<feed xmlns='http://www.w3.org/2005/Atom'>
<title>Odoo/addons/web/static/src/js/openerpframework.js, branch 14.0</title>
<subtitle>The current checkout of upstream Odoo</subtitle>
<link rel='alternate' type='text/html' href='http://erp.ceuconsult.com:9000/Odoo/'/>
<entry>
<title>[REF] web: add module system to the web client</title>
<updated>2015-03-18T08:01:49+00:00</updated>
<author>
<name>Géry Debongnie</name>
<email>ged@odoo.com</email>
</author>
<published>2015-03-09T15:34:27+00:00</published>
<link rel='alternate' type='text/html' href='http://erp.ceuconsult.com:9000/Odoo/commit/?id=e8a00bc50da435d3859118ca127d20a2eb9a0cab'/>
<id>e8a00bc50da435d3859118ca127d20a2eb9a0cab</id>
<content type='text'>
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
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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
</pre>
</div>
</content>
</entry>
<entry>
<title>[IMP] website: create a new web editor in the backend to edit html field with the website builder</title>
<updated>2015-02-12T10:58:12+00:00</updated>
<author>
<name>Christophe Matthieu</name>
<email>chm@odoo.com</email>
</author>
<published>2015-02-09T12:40:49+00:00</published>
<link rel='alternate' type='text/html' href='http://erp.ceuconsult.com:9000/Odoo/commit/?id=28ed28f9451edcb32f70daf7082d2ae91148b79c'/>
<id>28ed28f9451edcb32f70daf7082d2ae91148b79c</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>[MERGE] forward port of branch 8.0 up to 33a8989</title>
<updated>2015-02-11T16:25:33+00:00</updated>
<author>
<name>Christophe Simonis</name>
<email>chs@odoo.com</email>
</author>
<published>2015-02-11T16:25:33+00:00</published>
<link rel='alternate' type='text/html' href='http://erp.ceuconsult.com:9000/Odoo/commit/?id=7f2de623788f2ae02ba75997f156d141a92cff34'/>
<id>7f2de623788f2ae02ba75997f156d141a92cff34</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>[FIX] web: field on change event</title>
<updated>2015-02-04T12:03:39+00:00</updated>
<author>
<name>Denis Ledoux</name>
<email>dle@odoo.com</email>
</author>
<published>2015-02-04T11:58:19+00:00</published>
<link rel='alternate' type='text/html' href='http://erp.ceuconsult.com:9000/Odoo/commit/?id=3636aeb59dd463820ecd1bd5a59f3a1f541da190'/>
<id>3636aeb59dd463820ecd1bd5a59f3a1f541da190</id>
<content type='text'>
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
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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
</pre>
</div>
</content>
</entry>
<entry>
<title>[MERGE] forward port of branch 8.0 up to 4af53de</title>
<updated>2015-02-03T17:47:42+00:00</updated>
<author>
<name>Christophe Simonis</name>
<email>chs@odoo.com</email>
</author>
<published>2015-02-03T17:47:17+00:00</published>
<link rel='alternate' type='text/html' href='http://erp.ceuconsult.com:9000/Odoo/commit/?id=fa75094e6ff712963d9b809106ca69d39fd45246'/>
<id>fa75094e6ff712963d9b809106ca69d39fd45246</id>
<content type='text'>
ignore .po and .pot changes
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
ignore .po and .pot changes
</pre>
</div>
</content>
</entry>
<entry>
<title>[FIX] web: digits is not always defined for float fields in js</title>
<updated>2015-01-28T17:53:12+00:00</updated>
<author>
<name>Denis Ledoux</name>
<email>dle@odoo.com</email>
</author>
<published>2015-01-28T17:52:34+00:00</published>
<link rel='alternate' type='text/html' href='http://erp.ceuconsult.com:9000/Odoo/commit/?id=457b940c0ee73fd2bb357e7ae9c10f3e96115e89'/>
<id>457b940c0ee73fd2bb357e7ae9c10f3e96115e89</id>
<content type='text'>
This rev. is related to d17f22cde77fd6dd0fb968b1b34883c56648e93e
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This rev. is related to d17f22cde77fd6dd0fb968b1b34883c56648e93e
</pre>
</div>
</content>
</entry>
<entry>
<title>[FIX] web: float compare, float is zero</title>
<updated>2015-01-28T14:09:10+00:00</updated>
<author>
<name>Denis Ledoux</name>
<email>dle@odoo.com</email>
</author>
<published>2015-01-28T13:57:12+00:00</published>
<link rel='alternate' type='text/html' href='http://erp.ceuconsult.com:9000/Odoo/commit/?id=d17f22cde77fd6dd0fb968b1b34883c56648e93e'/>
<id>d17f22cde77fd6dd0fb968b1b34883c56648e93e</id>
<content type='text'>
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
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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
</pre>
</div>
</content>
</entry>
<entry>
<title>[FIX] web: debugger in previous commit</title>
<updated>2015-01-15T14:38:16+00:00</updated>
<author>
<name>Martin Trigaux</name>
<email>mat@odoo.com</email>
</author>
<published>2015-01-15T14:38:16+00:00</published>
<link rel='alternate' type='text/html' href='http://erp.ceuconsult.com:9000/Odoo/commit/?id=48002b3278df3808549d68fcad7fa178c99b88d2'/>
<id>48002b3278df3808549d68fcad7fa178c99b88d2</id>
<content type='text'>
Damn you commit -a
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Damn you commit -a
</pre>
</div>
</content>
</entry>
<entry>
<title>[FIX] website_forum: description not translated</title>
<updated>2015-01-15T14:37:31+00:00</updated>
<author>
<name>Martin Trigaux</name>
<email>mat@odoo.com</email>
</author>
<published>2015-01-15T14:37:16+00:00</published>
<link rel='alternate' type='text/html' href='http://erp.ceuconsult.com:9000/Odoo/commit/?id=fc9ce0bcff3f211dbb722a09a65af2a364c25acf'/>
<id>fc9ce0bcff3f211dbb722a09a65af2a364c25acf</id>
<content type='text'>
Make the field description on a forum translatable and add it in the forum view. opw 619786
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Make the field description on a forum translatable and add it in the forum view. opw 619786
</pre>
</div>
</content>
</entry>
<entry>
<title>[FIX] web: openerpframework: replaceElement on multiple roots nodeset</title>
<updated>2014-12-19T16:49:13+00:00</updated>
<author>
<name>Simon Lejeune</name>
<email>sle@openerp.com</email>
</author>
<published>2014-12-15T13:16:10+00:00</published>
<link rel='alternate' type='text/html' href='http://erp.ceuconsult.com:9000/Odoo/commit/?id=01409c1d7b0050942ba5e53ff4f3bb927fd3eb51'/>
<id>01409c1d7b0050942ba5e53ff4f3bb927fd3eb51</id>
<content type='text'>
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
    &lt;div&gt;1&lt;/div&gt;
    &lt;div&gt;2&lt;/div&gt;
and a jquery nodeset [&lt;div&gt;1&lt;/div&gt;, &lt;div&gt;2&lt;/div&gt;] referring to the
previous DOM part in a var named $oldel.;
2) suppose another jquery nodeset [&lt;div&gt;3&lt;/div&gt;, &lt;div&gt;4&lt;/div&gt;] 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.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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
    &lt;div&gt;1&lt;/div&gt;
    &lt;div&gt;2&lt;/div&gt;
and a jquery nodeset [&lt;div&gt;1&lt;/div&gt;, &lt;div&gt;2&lt;/div&gt;] referring to the
previous DOM part in a var named $oldel.;
2) suppose another jquery nodeset [&lt;div&gt;3&lt;/div&gt;, &lt;div&gt;4&lt;/div&gt;] 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.
</pre>
</div>
</content>
</entry>
</feed>
