[FIX] account: fixed query_get() when a domain is passed as argument (safe_eval must receive a string)

This commit is contained in:
qdp-odoo
2016-04-19 14:26:44 +02:00
parent e18660c330
commit 1df72cb01b
+1 -1
View File
@@ -1147,7 +1147,7 @@ class AccountMoveLine(models.Model):
@api.model
def _query_get(self, domain=None):
context = dict(self._context or {})
domain = domain and safe_eval(domain) or []
domain = domain and safe_eval(str(domain)) or []
date_field = 'date'
if context.get('aged_balance'):