Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
在一些模型的开头,会有这样的导入:from odoo import SUPERUSER_ID。 我在目录中找不到这个,这个在哪里可以找到定义的,主要是做什么用的?
from odoo import SUPERUSER_ID
SUPERUSER_ID == 1
@digitalsatori 什么意思,不懂
@digitalsatori 是说admin用户就是id=1的SUPERUSE
默认id为1的是超级管理员帐号。代码在这里
id