openerp-india team mailing list archive
-
openerp-india team
-
Mailing list archive
-
Message #27774
[Bug 1317455] [NEW] [7.0] [account_check_writing] Amount in words and print check button are not shown in "Write Checks" form
Public bug reported:
Install account_check_writing module and create/validate a supplier
check from from Accounting > ?Write Checks"
The amount in words and print check buttons are not shown.
The attrs condition in the inherited view has incorrect condition.
attrs="{'invisible':[('allow_check','!=',1)]}"
It should be
attrs="{'invisible':[('allow_check','!=',True)]}"
Unlike python which has True==1, attrs expressions, which are evaluated
client-side using undescore.js methods, True!=1.
I think web client should map boolean values to integers in
instance.web.form.compute_domain() to maintain consistancy with python
expressions.
To find if there are similar issues in other modules, I search using the
regex:
attrs\s*=\s*"[^"]*'!?=',\s*1\s*\)[^"]*"
Only the view sale.view_order_line_form2 has this issue but it is
probably a dead view and not used anywhere.
** Affects: openobject-addons
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Addons.
https://bugs.launchpad.net/bugs/1317455
Title:
[7.0] [account_check_writing] Amount in words and print check button
are not shown in "Write Checks" form
Status in OpenERP Addons (modules):
New
Bug description:
Install account_check_writing module and create/validate a supplier
check from from Accounting > ?Write Checks"
The amount in words and print check buttons are not shown.
The attrs condition in the inherited view has incorrect condition.
attrs="{'invisible':[('allow_check','!=',1)]}"
It should be
attrs="{'invisible':[('allow_check','!=',True)]}"
Unlike python which has True==1, attrs expressions, which are
evaluated client-side using undescore.js methods, True!=1.
I think web client should map boolean values to integers in
instance.web.form.compute_domain() to maintain consistancy with python
expressions.
To find if there are similar issues in other modules, I search using
the regex:
attrs\s*=\s*"[^"]*'!?=',\s*1\s*\)[^"]*"
Only the view sale.view_order_line_form2 has this issue but it is
probably a dead view and not used anywhere.
To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/1317455/+subscriptions
Follow ups
References