从数据库odoo获取数据

时间:2016-11-22 09:38:04

标签: openerp odoo-9

哪种方法是在自定义模块中的res_users_log表中显示xml中的数据?

SELECT id,create_uid,create_date,write_date,write_uid   来自res_users_log

1 个答案:

答案 0 :(得分:0)

我希望这可以为您提供帮助

def _get_users_log(self):
    SQL = ('select * from res_users_log')
    self.env.cr.execute(SQL)
    for row in self.env.cr.fetchall():
            return row