用户

Odoo将 用户 定义为具有访问数据库以执行日常任务的人。您可以添加尽可能多的用户,并且为了限制每个用户可以访问的信息类型,可以应用规则。用户和访问权限可以在任何时候添加和更改。

添加单个用户

To add new users, navigate to Settings app ‣ Users section ‣ Manage Users, and click on New.

在Odoo中强调管理用户字段的设置页面视图

填写所需信息的表单。在标签 访问权限 下,选择用户可以访问的每个应用程序中的组。

显示的应用程序列表基于安装在数据库上的应用程序。

在Odoo中强调用户表单中的访问权限选项卡的视图

After filling out all the necessary fields on the page, manually Save. An invitation email is automatically sent to the user, using the email in the Email Address field. The user must click on the link included in the email to accept the invitation, and to create a database login.

在Odoo中,用户表单的视图,显示邀请邮件已发送的通知

警告

If the company is on a monthly subscription plan, the database automatically updates to reflect the added users. If the company is on a yearly or multi-year plan, an expiration banner appears in the database. An upsell quotation can be created by clicking the banner to update the subscription. Alternatively, send a support ticket to resolve the issue.

User type

User Type can be selected from the Access Rights tab of the user form, accessible via Settings app ‣ Users section ‣ Manage Users.

There are three types of users: Internal User, Portal, and Public.

在Odoo开发者模式下查看用户表单,强调用户类型字段

小技巧

Users are considered internal database users. Portal users are external users, who only have access to the database portal to view records. See the documentation on 门户访问.

Public users are those visiting websites, via the website’s frontend.

The Portal and Public user options do not allow the administrator to choose access rights. These users have specific access rights pre-set (such as, record rules and restricted menus), and usually do not belong to the usual Odoo groups.

停用用户

To deactivate (i.e. archive) a user, navigate to Settings app ‣ Users section ‣ Manage Users. Then, tick the checkbox to the left of the user(s) to be deactivated.

After selecting the appropriate user to be archived, click the ⚙️ Actions icon, and select Archive from the resulting drop-down menu. Then, click OK from the Confirmation pop-up window that appears.

危险

Never deactivate the main/administrator user (admin). Making changes to admin users can have a detrimental impact on the database. This includes impotent admin, which means that no user in the database can make changes to the access rights. For this reason, Odoo recommends contacting an Odoo Business Analyst, or our Support Team, before making changes.

Error: too many users

If there are more users in an Odoo database than provisioned in the Odoo Enterprise subscription, the following message is displayed.

您的数据库中有多少个用户?

When the message appears, the database administrator has 30 days to act before the database expires. The countdown is updated every day.

To resolve the issue, either:

  • Add more users to the subscription by clicking the Upgrade your subscription link displayed in the message to validate the upsell quotation, and pay for the extra users.

  • Deactivate users, and reject the upsell quotation.

警告

If the company is on a monthly subscription plan, the database automatically updates to reflect the added users. If the company is on a yearly or multi-year plan, an expiration banner appears in the database. An upsell quotation can be created by clicking the banner to update the subscription. Alternatively, users can send a support ticket to resolve the issue.

Once the database has the correct number of users, the expiration message disappears automatically after a few days, when the next verification occurs.

密码管理

Password management is an important part of granting users autonomous access to the database at all times. Odoo offers a few different methods to reset a user’s password.

小技巧

Odoo has a setting to specify the length needed for a password. This setting can be accessed by navigating to Settings app ‣ Permissions section, and entering the desired password length in the Minimum Password Length field. By default the value is 8.

Minimum Password Length highlighted in the Permissions section of General Settings.

重置密码

Sometimes, users might wish to reset their personal password for added security, so they are the only ones with access to the password. Odoo offers two different reset options: one initiated by the user to reset the password, and another where the administrator triggers a reset.

允许从登录页面重置密码

It is possible to enable/disable password resets directly from the login page. This action is completed by the individual user, and this setting is enabled by default.

To change this setting, go to Settings app ‣ Permissions section, activate Password Reset, and then click Save.

在Odoo设置中启用密码重置

On the login page, click Reset Password to initiate the password reset process, and have a reset-token sent to the email on file.

Login screen on Odoo.com with the password reset option highlighted.

向用户发送重置指令

Go to Settings app ‣ Users & Companies ‣ Users, select the user from the list, and click on Send Password Reset Instructions on the user form. An email is automatically sent to them with password reset instructions.

注解

The Send Password Reset Instructions button only appears if the Odoo invitation email has already been confirmed by the user. Otherwise, a Re-send Invitation Email button appears.

此电子邮件包含重置密码所需的所有说明,以及一个链接,将用户重定向到Odoo登录页面。

一个包含Odoo账户密码重置链接的电子邮件示例

更改用户密码

Go to Settings app ‣ Users & Companies ‣ Users, and select a user to access its form. Click on the ⚙️ Actions icon, and select Change Password from, the resulting drop-down menu. Enter a new password in the New Password column of the Change Password pop-up window that appears, and confirm the change by clicking Change Password.

在Odoo上更改另一个用户的密码

注解

This operation only modifies the password of the users locally, and does not affect their odoo.com account.

If the odoo.com password needs to be changed, use the send the password reset instructions. Odoo.com passwords grant access to the My Databases page, and other portal features.

After clicking Change Password, the page is redirected to an Odoo login page where the database can be re-accessed using the new password.

多公司

The Multi Companies field on a user form allows an administrator to provide access to multiple companies for users. To configure a multi-company environment for a user, navigate to the desired user by going to: Settings app ‣ Users section ‣ Manage users. Then, select the user to open their user form, and configure with multi-company access.

Under Multi Companies in the Access Rights tab, set the fields labeled Allowed Companies and Default Company.

The Allowed Companies field can contain multiple companies. These are the companies the user can access and edit, according to the set access rights. The Default Company is the company the user defaults to, upon logging in each time. This field can contain only one company.

警告

If multi-company access is not configured correctly, it could lead to inconsistent multi-company behaviors. Because of this, only experienced Odoo users should make access rights changes to users for databases with a multi-company configuration. For technical explanations, refer to the developer documentation on 多公司指南.

在Odoo中强调用户表单中的多公司字段的视图

另请参阅

公司