You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

62 lines
3.4 KiB

<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<!-- Inherits res.config.settings form view to add configuration to set colors that should be applied for notes -->
<record id="res_config_settings_view_form" model="ir.ui.view">
<field name="name">res.config.settings.view.form.inherit.magic.note</field>
<field name="model">res.config.settings</field>
<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="Notes" string="Notes" data-key="note">
<h2>Color Configuration</h2>
<div class="row mt16 o_settings_container">
<div class="col-12 col-lg-6 o_setting_box" id="down_payments">
<div class="o_setting_left_pane"/>
<div class="o_setting_right_pane">
<span class="o_form_label">Default Color</span>
<div class="text-muted">Default color of note</div>
<div class="text-muted">
<field name="note_color_default" class="text-center oe_inline"/>
</div>
</div>
</div>
<div class="col-12 col-lg-6 o_setting_box" id="down_payments">
<div class="o_setting_left_pane"/>
<div class="o_setting_right_pane">
<span class="o_form_label">After Deadline</span>
<div class="text-muted">Color of note after deadline.</div>
<div class="text-muted">
<field name="after_deadline" class="text-center oe_inline"/>
</div>
</div>
</div>
<div class="col-12 col-lg-6 o_setting_box" id="down_payments">
<div class="o_setting_left_pane"/>
<div class="o_setting_right_pane">
<span class="o_form_label">If Not Inside The Interval</span>
<div class="text-muted">
Color of note if the deadline is not inside the interval.
</div>
<div class="text-muted">
<field name="not_in_interval" class="text-center oe_inline"/>
</div>
</div>
</div>
</div>
</div>
</xpath>
</field>
</record>
<!-- Window action for res.config.settings for this module -->
<record id="action_magic_note_general_config" 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' : 'note'}</field>
</record>
<!-- Menu for the settings -->
<menuitem id="magic_note_settings" name="Settings" parent="note.menu_note_configuration"
action="action_magic_note_general_config" sequence="0"/>
</odoo>