mirror of
https://gitlab.com/hibou-io/hibou-odoo/suite.git
synced 2025-01-20 12:37:31 +02:00
Abstract fixes and behaviors.
- Adds configurable option for Payslip rule calculation sum date field.
- Fixes inconsistency between .sum_category('CODE') and .categories['CODE']
- Adds semi-monthly Semi-monthly schedule_pay
All features are tested and the tests themselves should serve as test harnesses for other 'payroll' modules.
33 lines
1.8 KiB
XML
33 lines
1.8 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
|
|
<record id="res_config_settings_view_form_hibou" model="ir.ui.view">
|
|
<field name="name">res.config.settings.view.form.inherit.hr.payroll.hibou</field>
|
|
<field name="model">res.config.settings</field>
|
|
<field name="priority" eval="50"/>
|
|
<field name="inherit_id" ref="hr_payroll.res_config_settings_view_form"/>
|
|
<field name="arch" type="xml">
|
|
<xpath expr="//div[@data-key='hr_payroll']" position="inside">
|
|
<field name="module_l10n_us_hr_payroll" invisible="1"/>
|
|
<!-- TODO payment, attendance, timesheet, ovetrtime... -->
|
|
<h2>Hibou Payroll</h2>
|
|
<div class="row mt16 o_settings_container" id="hr_payroll_hibou">
|
|
<div class="col-lg-6 col-12 o_setting_box">
|
|
<div class="o_setting_left_pane"/>
|
|
<div class="o_setting_right_pane">
|
|
<label for="payslip_sum_type" string="Payslip Sum Behavior"/>
|
|
<div class="text-muted">
|
|
Customize the behavior of what payslips are eligible when summing over date ranges in rules.
|
|
Generally, "Date To" or "Accounting Date" would be preferred in the United States and anywhere
|
|
else where the ending date on the payslip is used to calculate wage bases.
|
|
</div>
|
|
<field name="payslip_sum_type"/>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</xpath>
|
|
</field>
|
|
</record>
|
|
|
|
</odoo>
|