跳转到主要内容

为维护应用程序提供通用设置

项目描述

Beta License: AGPL-3 OCA/maintenance Translate me on Weblate Try me on Runboat

本模块为维护配置提供空的通用设置部分。

这是一个技术模块,它不提供任何新功能。扩展此模块以添加与维护应用程序相关的通用设置。

在扩展通用设置视图时,以下是代码的示例

<record id="res_config_settings_view_form" model="ir.ui.view">
    <field name="model">res.config.settings</field>
    <field name="inherit_id" ref="base_maintenance_config.res_config_settings_view_form"/>
    <field name="arch" type="xml">
        <xpath expr="//div[@id='configure_maintenance']" position="after">
            <div class="col-xs-12 col-md-6 o_setting_box">
                <div class="o_setting_right_pane">
                    <label for="new_field_name"/>
                    <span class="fa fa-lg fa-building-o" title="Values set here are company-specific." groups="base.group_multi_company"/>
                    <div class="row">
                        <div class="text-muted col-md-8">
                            Set some configuration data for this field ...
                        </div>
                    </div>
                    <div class="content-group">
                        <div class="mt16">
                            <field name="new_field_name" class="o_light_label"/>
                        </div>
                    </div>
                </div>
            </div>
        </xpath>
    </field>
</record>

目录

配置

要允许用户访问维护配置的通用设置部分,您应将该用户分配到“设备管理员”组。

为此,您需要

  1. 转到“设置”->“用户和公司”->“组”。

  2. 打开“维护/设备管理员”组表单。

  3. 在“用户”选项卡中添加您想要授予权限的用户。

用法

要使用此模块,您需要

  1. 转到 维护 > 配置 > 通用设置

错误跟踪器

错误在 GitHub问题 上跟踪。如果在那里遇到问题,请检查您的问题是否已被报告。如果是您首先发现的,请通过提供详细且受欢迎的 反馈 来帮助我们解决问题。

请不要直接联系贡献者以获取支持或帮助解决技术问题。

致谢

作者

  • Onestein

贡献者

维护者

本模块由OCA维护。

Odoo Community Association

OCA,即Odoo社区协会,是一个非营利组织,其使命是支持Odoo特性的协作开发并推广其广泛应用。

本模块是GitHub上OCA/maintenance项目的一部分,项目链接为OCA/maintenance

欢迎您贡献。要了解如何贡献,请访问https://odoo-community.org/page/Contribute

项目详情


下载文件

下载适用于您平台的文件。如果您不确定选择哪个,请了解有关安装包的更多信息。

源代码分发

此版本没有可用的源代码分发文件。请参阅生成分发存档的教程。

构建分发

支持