[FIX] Field monetary handles "digits" like the float field.
bzr revid: nicolas.vanhoren@openerp.com-20130228165117-z9r9ua18xohn7rgm
This commit is contained in:
parent
a176ef579e
commit
b413e00d6a
|
@ -5373,10 +5373,10 @@ instance.web.form.FieldMonetary = instance.web.form.FieldFloat.extend({
|
|||
});
|
||||
},
|
||||
parse_value: function(val, def) {
|
||||
return instance.web.parse_value(val, {type: "float"}, def);
|
||||
return instance.web.parse_value(val, {type: "float", digits: (this.node.attrs || {}).digits || this.field.digits}, def);
|
||||
},
|
||||
format_value: function(val, def) {
|
||||
return instance.web.format_value(val, {type: "float"}, def);
|
||||
return instance.web.format_value(val, {type: "float", digits: (this.node.attrs || {}).digits || this.field.digits}, def);
|
||||
},
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue