跳转到主要内容

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

项目描述

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项目的组成部分。

欢迎您贡献。了解更多信息,请访问https://odoo-community.org/page/Contribute

项目详情


下载文件

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

源代码分发

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

构建分发

由以下组织支持