Mohammed Shekha(Open ERP) has proposed merging
lp:~openerp-dev/openobject-client-web/6.0-opw-17321-msh into
lp:openobject-client-web/6.0.
Requested reviews:
OpenERP Core Team (openerp)
For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-client-web/6.0-opw-17321-msh/+merge/75126
Hello,
To generate the issue install italian or french language.
Goto Accounting -> Journal Entries -> Journal Items,
now select a record which has writeoff amount 0.00 and Reconcile Entries from
act_window.
There should be only two buttons "Cancel" and "Reconcile" because there is an
attrs on addons side but it will show three buttons, that means attrs are not
working.
This is because of decimal point notation of language, for italian and french
value of writeoff input will have 0,00 so thats why
attrs="{'invisible':[('writeoff','!=',0)]}" will not work.
So changed the code by evaluating the value of input widget when kind is float
or integer.
Thanx.
--
https://code.launchpad.net/~openerp-dev/openobject-client-web/6.0-opw-17321-msh/+merge/75126
Your team OpenERP R&D Team is subscribed to branch
lp:~openerp-dev/openobject-client-web/6.0-opw-17321-msh.
=== modified file 'addons/openerp/static/javascript/form_state.js'
--- addons/openerp/static/javascript/form_state.js 2011-05-09 13:41:12 +0000
+++ addons/openerp/static/javascript/form_state.js 2011-09-13 07:18:45 +0000
@@ -202,7 +202,12 @@
var elem_value;
if(elem.is(':input')) {
- elem_value = elem.val();
+ elem_kind = elem.attr('kind')
+ if(elem_kind == 'float' || elem_kind == 'integer'){
+ elem_value = eval(elem.val());
+ }else{
+ elem_value = elem.val();
+ }
} else {
elem_value = elem.attr('value') || elem.text();
}
_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to : [email protected]
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help : https://help.launchpad.net/ListHelp