SQL error when try to search in ir.model and ir.model.field translatable fields
when try to find in m2o field to ir.model I get SQL error:
Traceback (most recent call last): File "/trytond/wsgi.py", line 117, in dispatch_request return endpoint(request, **request.view_args) File "/trytond/protocols/dispatcher.py", line 48, in rpc request, database_name, *request.rpc_params) File "/trytond/wsgi.py", line 84, in auth_required return wrapped(*args, **kwargs) File "/trytond/protocols/wrappers.py", line 156, in wrapper return func(request, pool, *args, **kwargs) File "/trytond/protocols/dispatcher.py", line 181, in _dispatch result = rpc.result(meth(*c_args, **c_kwargs)) File "/trytond/model/modelstorage.py", line 522, in search_read records = cls.search(domain, offset=offset, limit=limit, order=order) File "/trytond/model/modelsql.py", line 1342, in search cursor.execute(*select) File "/trytond/backend/postgresql/database.py", line 71, in execute cursor.execute(self, sql, args) psycopg2.errors.UndefinedTable: invalid reference to FROM-clause entry for table "b" LINE 1: ...) AND ("d"."type" = 'model')) AND ("d"."name" = (("b"."model... ^ HINT: There is an entry for table "b", but it cannot be referenced from this part of the query.
Also you could reproduce at demo5.8.tryton.org. - menú Adminstration / Model / Triggers.
- New
- write some characters in model field (not F2)
https://demo5.8.tryton.org/#demo5.8/model/ir.trigger;name=%22Triggers%22&views=%5B94%2C93%5D