在OE中admin的内置帐号为SUPERUSER_ID,可以用来直接做判断登录用户是否admin [python] view plain copy print ? from openerp import SUPERUSER_ID if uid == SUPERUSER_ID: return None 转载于:https://www.cnblogs.com/jacker1979/p/3756880.html