error when consulting account chart
Bug #535601 reported by
Nicolas Bessi - Camptocamp
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Addons (MOVED TO GITHUB) |
Fix Released
|
Medium
|
Vinay Rana (OpenERP) |
Bug Description
Hello,
when working with consolidated account a small bug may appear there may be And And in sql because some string are not empty.
This fix the problem :
=== modified file 'account/
--- account/account.py 2010-03-03 08:39:20 +0000
+++ account/account.py 2010-03-10 09:41:06 +0000
@@ -211,9 +211,9 @@
wheres = [""]
- if query:
+ if query.strip():
- if aml_query:
+ if aml_query.strip():
query = " AND ".join(wheres)
Related branches
To post a comment you must log in.
Hello Nicolas,
Would you please introduce us to such a situation which can generate the bug?
We agree with your solution, but we don't see any way to face to this error.
Thank you for noting this point.