【问题标题】:how to start using res.users in openerp development ?如何开始在 openerp 开发中使用 res.users ?
【发布时间】:2013-08-30 02:33:22
【问题描述】:

您好,我一直在开发 openerp 模块。我一直在使用 python 和 eclipse IDE 进行开发。 我已经开发了一些 openerp 模块作为用户界面的简单表单设计。我想知道 res.users 的用法。我已经看到这个对象被多次使用,但我并没有真正弄清楚它的需要和用途。我想清除它,因为我是 openerp 开发世界的新手。我还需要一些关于如何使用它的指导?请尽快回复我。

感谢您的建议

【问题讨论】:

  • res.users 是用于定义用户及其权限的表

标签: android python eclipse openerp


【解决方案1】:

res.users 是包含系统所有用户及其详细信息的模型。匹配的 Postgres 表是 res_users

以如下方式使用它:

def do_stuff(self, cr, uid, ids, context = None):
   user = self.pool.get('res.users').browse(cr, uid, uid, context = context)
   print(user.name)

【讨论】:

    猜你喜欢
    • 2013-07-26
    • 1970-01-01
    • 2010-11-19
    • 2015-11-15
    • 1970-01-01
    • 2019-06-20
    • 2010-09-12
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多