Skip to content
Permalink
Browse files

[FIX] l10n_be_hr_payroll_fleet: inherit from direct parent view

This avoids being dependent on the order of records returned by PostgreSQL.

closes #32689

Signed-off-by: Christophe Simonis <chs@odoo.com>
  • Loading branch information...
KangOl committed Apr 15, 2019
1 parent 85f5a98 commit fdd0179f4f7f9687fd3f413ea8680086fdddc987
Showing with 24 additions and 25 deletions.
  1. +24 −25 addons/l10n_be_hr_payroll_fleet/views/res_config_settings_views.xml
@@ -1,28 +1,27 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<data>
<record id="res_config_settings_view_form" model="ir.ui.view">
<field name="name">res.config.settings.view.form.inherit.l10n.be.hr.payroll.fleet</field>
<field name="model">res.config.settings</field>
<field name="priority" eval="90"/>
<field name="inherit_id" ref="base.res_config_settings_view_form"/>
<field name="arch" type="xml">
<xpath expr="//div[@id='fleet']" position="inside">
<div class="row mt16 o_settings_container">
<div class="col-12 col-lg-6 o_setting_box">
<div class="o_setting_left_pane"/>
<div class="o_setting_right_pane">
<span class="o_form_label">New Car Request</span>
<div class="text-muted content-group mt16">
<span>An employee cannot request a new car if there are more than </span>
<field name="max_unused_cars" class="text-center oe_inline" />
<span> existing vehicles availables.</span>
</div>
</div>
</div>
</div>
</xpath>
</field>
</record>
</data>
<data>
<record id="res_config_settings_view_form" model="ir.ui.view">
<field name="name">res.config.settings.view.form.inherit.l10n.be.hr.payroll.fleet</field>
<field name="model">res.config.settings</field>
<field name="inherit_id" ref="fleet.res_config_settings_view_form"/>
<field name="arch" type="xml">
<xpath expr="//div[@id='fleet']" position="inside">
<div class="row mt16 o_settings_container">
<div class="col-12 col-lg-6 o_setting_box">
<div class="o_setting_left_pane"/>
<div class="o_setting_right_pane">
<span class="o_form_label">New Car Request</span>
<div class="text-muted content-group mt16">
<span>An employee cannot request a new car if there are more than </span>
<field name="max_unused_cars" class="text-center oe_inline" />
<span> existing vehicles availables.</span>
</div>
</div>
</div>
</div>
</xpath>
</field>
</record>
</data>
</odoo>

0 comments on commit fdd0179

Please sign in to comment.
You can’t perform that action at this time.