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.
54 lines
2.9 KiB
54 lines
2.9 KiB
<?xml version="1.0" encoding="UTF-8" ?>
|
|
<odoo>
|
|
<!-- Config Settings Inherited form view used to add additional datas in the form-->
|
|
<record id="res_config_settings_view_form" model="ir.ui.view">
|
|
<field name="name">res.config.settings.view.form.inherit.packers.and.movers.management</field>
|
|
<field name="model">res.config.settings</field>
|
|
<field name="priority" eval="15"/>
|
|
<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="Pricing" string="Packers And Movers"
|
|
data-key="packers_and_movers_management">
|
|
<h2>Pricing</h2>
|
|
<div class="row mt16 o_settings_container" id="distance_amount">
|
|
<div class="col-12 col-lg-6 o_setting_box">
|
|
<div class="o_setting_right_pane">
|
|
<label for="distance_amount"/>
|
|
<div class="text-muted">
|
|
Distance amount per 1 kilometer
|
|
</div>
|
|
<field name="distance_amount"/>
|
|
</div>
|
|
</div>
|
|
<div class="col-12 col-lg-6 o_setting_box">
|
|
<div class="o_setting_left_pane">
|
|
<field name="is_extra"/>
|
|
</div>
|
|
<div class="o_setting_right_pane">
|
|
<label for="is_extra"/>
|
|
</div>
|
|
<div class="o_setting_right_pane" attrs="{'invisible':[('is_extra','=',False)]}">
|
|
<label for="extra_amount"/>
|
|
<field name="extra_amount"/>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</xpath>
|
|
</field>
|
|
</record>
|
|
<!-- Action used in the config settings model-->
|
|
<record id="res_config_settings_action" model="ir.actions.act_window">
|
|
<field name="name">Configuration Action</field>
|
|
<field name="res_model">res.config.settings</field>
|
|
<field name="view_mode">form</field>
|
|
<field name="view_id" ref="res_config_settings_view_form"/>
|
|
<field name="target">inline</field>
|
|
<field name="context">{'module' : 'packers_and_movers_management','bin_size': False}</field>
|
|
</record>
|
|
<!-- Menu used in the Truck booking root and the Config Settings-->
|
|
<menuitem id="configuration_menu" name="Configuration" parent="packers_and_movers_management.truck_booking_menu_root"/>
|
|
<menuitem id="res_config_settings_menu_action" name="Settings" parent="packers_and_movers_management.configuration_menu" sequence="0"
|
|
action="res_config_settings_action"/>
|
|
</odoo>
|