projects
/
odoo
/
odoo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2527b32
)
[IMP]Interger/float widget returning its type related value.
author
Vidhin Mehta (OpenERP)
<vme@tinyerp.com>
Fri, 23 Nov 2012 06:45:25 +0000
(12:15 +0530)
committer
Vidhin Mehta (OpenERP)
<vme@tinyerp.com>
Fri, 23 Nov 2012 06:45:25 +0000
(12:15 +0530)
bzr revid: vme@tinyerp.com-
20121123064525
-gghxxc2tdjx0hgbb
addons/web/static/src/js/search.js
patch
|
blob
|
history
diff --git
a/addons/web/static/src/js/search.js
b/addons/web/static/src/js/search.js
index
67d5911
..
88d4579
100644
(file)
--- a/
addons/web/static/src/js/search.js
+++ b/
addons/web/static/src/js/search.js
@@
-1924,7
+1924,8
@@
instance.web.search.ExtendedSearchProposition.Integer = instance.web.search.Exte
},
get_value: function() {
try {
- return instance.web.parse_value(this.$el.val(), {'widget': 'integer'});
+ var val =this.$el.val();
+ return instance.web.parse_value(val == "" ? 0 : val, {'widget': 'integer'});
} catch (e) {
return "";
}
@@
-1948,7
+1949,8
@@
instance.web.search.ExtendedSearchProposition.Float = instance.web.search.Extend
},
get_value: function() {
try {
- return instance.web.parse_value(this.$el.val(), {'widget': 'float'});
+ var val =this.$el.val();
+ return instance.web.parse_value(val == "" ? 0.0 : val, {'widget': 'float'});
} catch (e) {
return "";
}