Comment by [email protected]:
I run the code for 2.8 on version 3.1.0 and get following error:
Traceback (most recent call last):
File "test.py", line 36, in <module>
user = user_obj.search([('login', '=', 'admin')], limit=1)[0]
File "/usr/lib/python2.7/dist-packages/trytond/model/modelsql.py", line
940, in search
cursor.execute(*select)
File "/usr/lib/python2.7/dist-packages/trytond/backend/postgresql/database.py",
line 309, in execute
return self.cursor.execute(sql, params)
psycopg2.ProgrammingError: column a.timezone does not exist
LINE 1: ... AS "write_date", "a"."write_uid" AS "write_uid", "a"."timez...
What needs to be adapted from the example on version 2.8?
For more information:
https://code.google.com/p/tryton/wiki/HowToUseTrytondAsAModule