开始¶
创建新电子表格¶
要创建新电子表格:
打开 Odoo 文档,导航到应创建电子表格的分区或文件夹。
点击 新建 并选择 电子表格。
小技巧
或者,从 全部 文件夹中,点击 新建 并选择 电子表格,然后选择应在哪个 文件夹 中创建该电子表格。
点击 空白电子表格;若要使用现有的 模板 创建新电子表格,请选择相应的模板。
点击 创建 。
点击屏幕顶部的
未命名电子表格以编辑电子表格的名称。
小技巧
您还可以通过以下方式创建新电子表格:
在已打开的电子表格的菜单栏中,点击 ;或
直接从相应的应用,通过 插入列表、数据透视表或图表 到一个新电子表格中。
在这些情况下,新电子表格会保存在 Odoo 文档的 我的驱动 个人文件夹中。
模板¶
电子表格模板可让您快速创建电子表格,而无需从零开始。例如,您可以为月度预算报告或季度销售佣金报告创建模板。
创建模板¶
任何电子表格都可以保存为模板。
要创建模板:
打开相应的电子表格,或 创建一个新电子表格。
在菜单栏中,点击 。如有需要,修改默认的 模板名称,然后点击 确认。
小技巧
It is also possible to create a template by making a copy of an existing template and editing it.
By default, templates are available to all users on the database. To restrict the use of a template, define the relevant user groups in the template settings.
重要
Once a spreadsheet is saved as a template, any further changes to the open spreadsheet are saved only in that spreadsheet. To make changes to the template, edit the template.
使用模板¶
要使用模板创建新电子表格,请打开文档应用并点击 。选择相应的模板,然后点击 创建。
或者,前往 ,然后在相应模板所在行点击 新建电子表格。
注解
默认情况下,新电子表格继承模板的名称,该名称显示在屏幕顶部。要重命名电子表格,请点击名称并进行编辑。
管理和编辑模板¶
进入 管理模板。移除 我的模板 筛选器 以查看数据库中的所有模板。
可以执行以下各种操作:
Control access to a template by clicking into the Access Groups field, then deleting user groups or selecting user groups from the dropdown, as relevant.
点击屏幕右侧的 创建副本 以复制现有模板。新模板显示在列表底部。点击 名称 可进行编辑。
点击 编辑 以编辑现有模板(包括您刚刚复制的模板),然后进行所需修改。修改会自动保存。
要删除模板,请勾选其旁边的复选框,点击 操作,然后点击 删除。
上传文件¶
可以将 .xlsx 或 .csv 格式的文件上传到 Odoo 文档,并使用 Odoo 电子表格打开。操作步骤如下:
打开 Odoo 文档,导航到应保存电子表格的分区或文件夹。
点击 新建 并选择 上传。
选择相应的
.xlsx或.csv文件,然后点击 打开。点击已上传的文件。
默认情况下,文件在用 Odoo 电子表格打开后,原始文件将被删除。若要在 Odoo 文档的同一文件夹中保留原始文件,请禁用 将源文件移入回收站。
点击 使用 Odoo 电子表格打开。
现在可以在 Odoo 电子表格中对该文件进行完整编辑。
Basic sheet actions¶
Users with Editor rights to a spreadsheet have various options for managing the spreadsheet’s sheets from the bottom bar:
(plus): adds a new sheet to the right of the active sheet.
Click the (down caret) on a sheet’s tab or right-click the tab to open a menu with the following options:
Delete: deletes the sheet, after requiring confirmation.
Hide sheet: hides the sheet from the bottom bar and makes it inaccessible to users with only Viewer rights.
Duplicate: creates a copy of the sheet beside the original sheet.
Rename: makes the name of the sheet directly editable in its tab.
小技巧
Alternatively, double-click the sheet’s tab to edit the sheet name directly.
Change tab color: select an existing or custom color to add a colored bar to the bottom of the sheet’s tab. Tab colors appear as dots beside the sheet name when using the (menu) icon to see a list of all sheets in the spreadsheet.
Change grid color: select an existing or custom color to change the color of the grid of the individual sheet.
Move sheet right or Move sheet left: moves the sheet one position to the right or left.
小技巧
Alternatively, click and drag a sheet’s tab to the desired position.
Lock sheets¶
Users with Editor rights can lock sheets to prevent accidental modifications to the sheet’s data.
To do so, click the (down caret) on a sheet’s tab or right-click the tab, then click Lock sheet.
Any user with Editor rights can unlock the sheet by clicking Unlock sheet from the bottom bar menu.
Hide sheets¶
Users with Editor rights can hide sheets that should not be visible, for example, if data is not ready to be shared or is being used only for calculations by other sheets.
To do so, click the (down caret) on a sheet’s tab or right-click the tab, then click Hide sheet.
The sheet is then removed from the bottom bar, but still included, with its name grayed out, in the list of all sheets accessible via the (menu) icon. Users with:
Viewer rights cannot open a hidden sheet.
Editor rights can open a hidden sheet via the (menu) icon; this restores the sheet’s tab on the bottom bar.
管理电子表格¶
Users with Editor rights to a spreadsheet have various options for managing the spreadsheet via the File menu:
创建副本:创建当前电子表格的副本,其具有相同的 区域设置 (或语言环境)。
分享:允许您配置电子表格的访问权限,将其 分享 给特定用户或复制可分享链接。对于包含动态 Odoo 数据、需要分享给不具备相应数据访问权限的用户的电子表格,您可以对其进行 冻结并分享。
更多内容
下载:以
.xlsx格式下载电子表格。小技巧
拥有 查看 权限的用户也可以以
.xlsx格式下载电子表格。打印:在已连接的打印机上打印该电子表格的副本。
另存为模板:允许将当前电子表格用作今后电子表格的 模板。
移至回收站:将电子表格移动到文档应用的回收站文件夹
小技巧
回收站文件夹中的项目会在 30 天后被永久删除。
查看版本历史:以只读方式 访问当前电子表格的早期版本,必要时可为版本命名并恢复。
设置:允许您查看和更改当前电子表格的 语言环境。
版本历史¶
Odoo 电子表格会在进行修改时自动保存电子表格的版本,允许具有 编辑 权限的用户浏览和恢复早期版本。
要访问电子表格的版本历史,请在菜单栏中点击 。已保存的版本会显示在电子表格右侧的面板中,同时显示进行更改的用户姓名以及更改的日期和时间。
可以执行以下操作:
点击相应版本,即可以只读格式 查看早期版本。
点击 (垂直省略号),然后点击 恢复此版本,即可 恢复早期版本。
点击 (垂直省略号),然后点击 ,即可 复制早期版本。该版本的副本将作为新的电子表格打开。
创建命名版本:点击相应版本的日期和时间并输入所需的名称。随后该版本的日期和时间将显示在新名称下方。
小技巧
查看电子表格的早期只读版本时,仍可执行以下操作:
在电子表格中搜索:点击 ,或使用快捷键
Ctrl+H。复制单个单元格或选定区域:点击 ,或使用快捷键
Ctrl+C。
区域设置¶
为确保数据对所有用户一致显示,电子表格的区域设置(即语言环境)在电子表格级别进行管理。该语言环境会影响以下设置和格式:
千位分隔符和小数分隔符
日期和时间格式
每周的第一天
默认情况下,新的电子表格继承创建它的用户的区域设置。例如,语言设置为 法语 (BE) / Français (BE) 的用户所创建的任何电子表格都将遵循比利时法语惯例。
具有 编辑 权限的用户可随时查看和更改电子表格的语言环境。要查看电子表格的语言环境,请在菜单栏中点击 。电子表格设置 面板会在电子表格右侧打开。要更改语言环境,请从下拉列表中选择相应的语言环境。
小技巧
当您打开的语言环境与用户配置文件不同的电子表格时,电子表格右上角会出现一个蓝色的 (地球) 图标。将鼠标悬停在该图标上会显示警告消息,指明电子表格的语言环境并高亮显示存在差异的格式。
如果未显示 (地球) 图标,则说明电子表格的语言环境与您的用户配置文件的语言环境相同。
将电子表格转换为仪表板¶
具有相应 访问权限 的用户可以将 Odoo 电子表格转换为仪表板,转换后可通过 Odoo 仪表板 进行访问。操作如下:
在菜单栏中点击 。
输入 仪表板名称。
从下拉列表中选择相应的 仪表板版块;若要创建新的仪表板版块,请输入新版块的名称,然后点击 创建。
如有必要,修改 访问权限组 以确定哪些 用户组 可以访问该仪表板。
点击 创建 。
工作表规格与限制¶
重要
每个工作表的列数和行数都会影响电子表格的性能。不过,主要因素通常是所用公式的性质及其需要扫描的范围。尤其是会造成二次方级运算的公式,即向下复制到许多行的公式各自都要扫描很大的范围,在大型数据集中会严重影响性能。
Odoo 电子表格中的新工作表默认包含 26 列(即 A-Z 列)和 100 行。您可以根据需要添加更多列和行,但请注意以下几点:
列:虽然工作表中可 显示 的列数没有技术限制,但 Odoo 电子表格中的公式仅支持三字母列引用,这意味着引用 AAAA 等列的公式会导致错误。
因此,每个工作表的实际列数上限为 18,278 列(即最多到 ZZZ 列)。
行:工作表可包含的行数没有固定限制。
小技巧
要一次性快速在工作表底部添加最多 10,000 行,请滚动到工作表底部,输入所需行数,然后点击 添加。
单元格及每个单元格的字符数:工作表可包含的单元格数量没有固定限制,单元格内的字符数也没有固定限制。