flectra/addons/hr_expense/views/res_config_settings_views.xml
2018-01-16 02:34:37 -08:00

72 lines
4.6 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<flectra>
<data>
<record id="res_config_settings_view_form" model="ir.ui.view">
<field name="name">res.config.settings.view.form.inherit.hr.expense</field>
<field name="model">res.config.settings</field>
<field name="priority" eval="85"/>
<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="Expenses" string="Expenses" data-key="hr_expense" groups="hr_expense.group_hr_expense_manager">
<h2>Recording</h2>
<div class="row mt16 o_settings_container">
<div class="col-xs-12 col-md-6 o_setting_box" title="You can setup a generic email alias to create incoming expenses easily. Write an email with the receipt in attachment to create an expense line in one click. If the mail subject contains the product's internal reference between brackets, the product will be set automatically. Type the expense amount in the mail subject to set it on the expense too.">
<div class="o_setting_left_pane">
<field name="use_mailgateway"/>
</div>
<div class="o_setting_right_pane">
<label string="Emails" for="use_mailgateway"/>
<div class="text-muted">
Let your employees record expenses by email
</div>
<div class="content-group" attrs="{'invisible': ['|', ('use_mailgateway', '=', False), ('alias_domain', 'in', ['localhost', '', False])]}">
<div class="mt16">
<label string="Email Alias" class="o_light_label"/>
<field name="expense_alias_prefix" class="oe_inline"/>
<span>@</span>
<field name="alias_domain" class="oe_inline" readonly="1"/>
</div>
</div>
<div class="content-group" attrs="{'invisible': ['|', ('use_mailgateway', '=', False), ('alias_domain', 'not in', ['localhost', '', False])]}">
<div class="mt16">
<button type="action" name="base_setup.action_general_configuration" icon="fa-arrow-right" string="Setup your domain alias" class="btn-link"/>
</div>
</div>
</div>
</div>
</div>
<h2>Billing</h2>
<div class="row mt16 o_settings_container">
<div class="col-xs-12 col-md-6 o_setting_box" title="This installs the Sales Management app.
Expenses can be invoiced to customers from sales orders.">
<div class="o_setting_left_pane">
<field name="module_sale_management"/>
</div>
<div class="o_setting_right_pane">
<label for="module_sale_management"/>
<div class="text-muted">
Sell services and invoice expenses to customer
</div>
</div>
</div>
</div>
</div>
</xpath>
</field>
</record>
<record id="action_hr_expense_configuration" 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' : 'hr_expense'}</field>
</record>
<menuitem id="menu_hr_expense_global_settings" name="Settings"
parent="menu_hr_expense_configuration" sequence="0" action="action_hr_expense_configuration" groups="base.group_system"/>
</data>
</flectra>