Hi, I'm receiving the below error when trying to print an invoice. It's failing on the assertion. We are using the latest 8.0 branch without any code changes.
File "/opt/odoo/openerp/http.py", line 530, in _handle_exception
return super(JsonRequest, self)._handle_exception(exception)
File "/opt/odoo/openerp/http.py", line 567, in dispatch
result = self._call_function(**self.params)
File "/opt/odoo/openerp/http.py", line 303, in _call_function
return checked_call(self.db, *args, **kwargs)
File "/opt/odoo/openerp/service/model.py", line 113, in wrapper
return f(dbname, *args, **kwargs)
File "/opt/odoo/openerp/http.py", line 300, in checked_call
return self.endpoint(*a, **kw)
File "/opt/odoo/openerp/http.py", line 796, in __call__
return self.method(*args, **kw)
File "/opt/odoo/openerp/http.py", line 396, in response_wrap
response = f(*args, **kw)
File "/opt/odoo/addons/web/controllers/main.py", line 953, in call_button
action = self._call_kw(model, method, args, {})
File "/opt/odoo/addons/web/controllers/main.py", line 941, in _call_kw
return getattr(request.registry.get(model), method)(request.cr, request.uid, *args, **kwargs)
File "/opt/odoo/openerp/api.py", line 241, in wrapper
return old_api(self, *args, **kwargs)
File "/opt/odoo/openerp/api.py", line 363, in old_api
result = method(recs, *args, **kwargs)
File "/opt/odoo/addons/account/account_invoice.py", line 383, in invoice_print
return self.env['report'].get_action(self, 'account.report_invoice')
File "/opt/odoo/openerp/api.py", line 239, in wrapper
return new_api(self, *args, **kwargs)
File "/opt/odoo/openerp/api.py", line 546, in new_api
result = method(self._model, cr, uid, self.ids, *args, **kwargs)
File "/opt/odoo/addons/report/models/report.py", line 261, in get_action
# Run wkhtmltopdf process
File "/opt/odoo/openerp/api.py", line 241, in wrapper
return old_api(self, *args, **kwargs)
File "/opt/odoo/openerp/models.py", line 1650, in search
return self._search(cr, user, args, offset=offset, limit=limit, order=order, context=context, count=count)
File "/opt/odoo/openerp/api.py", line 241, in wrapper
return old_api(self, *args, **kwargs)
File "/opt/odoo/openerp/models.py", line 4603, in _search
query = self._where_calc(cr, user, args, context=context)
File "/opt/odoo/openerp/api.py", line 241, in wrapper
return old_api(self, *args, **kwargs)
File "/opt/odoo/openerp/models.py", line 4428, in _where_calc
where_clause, where_params = e.to_sql()
File "/opt/odoo/openerp/osv/expression.py", line 1245, in to_sql
q, p = self.__leaf_to_sql(leaf)
File "/opt/odoo/openerp/osv/expression.py", line 1112, in __leaf_to_sql
"Invalid value %r in domain term %r" % (right, leaf)
AssertionError: Invalid value account.invoice(1,) in domain term ('report_name', '=', account.invoice(1,))