mirror of
https://gitlab.com/hibou-io/hibou-odoo/suite.git
synced 2025-01-20 12:37:31 +02:00
[MIG] l10n_us_hr_payroll_401k: for Odoo Enterprise 14.0
Additionally, added search view to assist in configuring and added it to the config section in `hr_payroll_hibou`.
This commit is contained in:
@@ -8,6 +8,7 @@ class ResConfigSettings(models.TransientModel):
|
||||
|
||||
# TODO We need MORE here...
|
||||
module_l10n_us_hr_payroll = fields.Boolean(string='USA Payroll')
|
||||
module_l10n_us_hr_payroll_401k = fields.Boolean(string='USA Payroll 401k')
|
||||
|
||||
payslip_sum_type = fields.Selection([
|
||||
('date_from', 'Date From'),
|
||||
|
||||
@@ -24,6 +24,23 @@
|
||||
<field name="payslip_sum_type"/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-lg-6 col-12 o_setting_box">
|
||||
<div class="o_setting_left_pane">
|
||||
<field name="module_l10n_us_hr_payroll_401k"/>
|
||||
</div>
|
||||
<div class="o_setting_right_pane">
|
||||
<label for="module_l10n_us_hr_payroll_401k" string="USA Payroll 401k"/>
|
||||
<div class="text-muted">
|
||||
Provide retirement plans with optional company matching.
|
||||
</div>
|
||||
<div class="mt8" id="l10n_us_hr_payroll_401k_match">
|
||||
<button name="%(hr_payroll.hr_rule_parameter_action)d" icon="fa-arrow-right" type="action"
|
||||
string="Configure Matching & Limits" class="btn-link"
|
||||
context="{'search_default_us_payroll_401k': True}"
|
||||
attrs="{'invisible': [('module_l10n_us_hr_payroll_401k', '=', False)]}"/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</xpath>
|
||||
</field>
|
||||
|
||||
Reference in New Issue
Block a user