Purpose is to limit the uninstallation of modules without being clearly notified of it. In project ticking timesheet may have a great impact depending on modules already installed: sale_timesheet, timesheet_grid, ... We therefore decided to remove those options from settings to prevent users from uninstalling it. This commit is related to task ID 1841221.
83 lines
4.9 KiB
XML
83 lines
4.9 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
<record id="res_config_settings_view_form" model="ir.ui.view">
|
|
<field name="name">res.config.settings.view.form.inherit.project</field>
|
|
<field name="model">res.config.settings</field>
|
|
<field name="priority" eval="50"/>
|
|
<field name="inherit_id" ref="base.res_config_settings_view_form" />
|
|
<field name="arch" type="xml">
|
|
<xpath expr="//div[hasclass('settings')]" position="inside">
|
|
<div class="app_settings_block" data-string="Project" string="Project" data-key="project" groups="project.group_project_manager">
|
|
<h2>Tasks Management</h2>
|
|
<div class="row mt16 o_settings_container">
|
|
<div id="use_collaborative_pad" class="col-xs-12 col-md-6 o_setting_box" title="Lets the company customize which Pad installation should be used to link to new pads (for example: http://etherpad.com/).">
|
|
<div class="o_setting_left_pane">
|
|
<field name="module_pad"/>
|
|
</div>
|
|
<div class="o_setting_right_pane" name="pad_project_right_pane">
|
|
<label for="module_pad"/>
|
|
<div class="text-muted">
|
|
Use collaborative rich text pads on tasks
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="col-xs-12 col-md-6 o_setting_box">
|
|
<div class="o_setting_left_pane">
|
|
<field name="group_subtask_project"/>
|
|
</div>
|
|
<div class="o_setting_right_pane">
|
|
<label for="group_subtask_project"/>
|
|
<div class="text-muted">
|
|
Split your tasks to organize your work into sub-milestones
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="col-xs-12 col-md-6 o_setting_box">
|
|
<div class="o_setting_left_pane">
|
|
<field name="group_project_rating"/>
|
|
</div>
|
|
<div class="o_setting_right_pane">
|
|
<label for="group_project_rating"/>
|
|
<div class="text-muted">
|
|
Track customer satisfaction on tasks
|
|
</div>
|
|
<div class="content-group" attrs="{'invisible': [('group_project_rating', '=', False)]}">
|
|
<div class="mt16">
|
|
<button name="%(project.open_task_type_form)d" icon="fa-arrow-right" type="action" string="Set Email Template to Stages" class="btn-link"/>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<h2>Time Management</h2>
|
|
<div class="row mt16 o_settings_container">
|
|
<div class="col-xs-12 col-md-6 o_setting_box" name="project_time_management">
|
|
<div class="o_setting_left_pane">
|
|
<field name="module_project_forecast" widget="upgrade_boolean"/>
|
|
</div>
|
|
<div class="o_setting_right_pane">
|
|
<label for="module_project_forecast"/>
|
|
<div class="text-muted" name="project_forecast_msg">
|
|
Schedule your teams across projects and estimate deadlines more accurately.
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</xpath>
|
|
</field>
|
|
</record>
|
|
|
|
<record id="project_config_settings_action" model="ir.actions.act_window">
|
|
<field name="name">Settings</field>
|
|
<field name="type">ir.actions.act_window</field>
|
|
<field name="res_model">res.config.settings</field>
|
|
<field name="view_mode">form</field>
|
|
<field name="target">inline</field>
|
|
<field name="context">{'module' : 'project'}</field>
|
|
</record>
|
|
|
|
<menuitem id="project_config_settings_menu_action" name="Settings" parent="menu_project_config"
|
|
sequence="0" action="project_config_settings_action" groups="base.group_system"/>
|
|
</odoo>
|