add hr_timesheet_sheet_no_review, hr_timesheet_sheet_holidays, hr_timesheet_sheet_delete_cascade
This commit is contained in:
parent
b07082f70d
commit
8b0d0bb6cc
53 changed files with 3953 additions and 0 deletions
|
|
@ -0,0 +1,50 @@
|
|||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<!--
|
||||
Copyright 2026 Criptomart
|
||||
License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
|
||||
-->
|
||||
<odoo>
|
||||
<record id="hr_timesheet_sheet_unfreeze_wizard_form" model="ir.ui.view">
|
||||
<field name="name">hr_timesheet.sheet.unfreeze.wizard.form</field>
|
||||
<field name="model">hr_timesheet.sheet.unfreeze.wizard</field>
|
||||
<field name="arch" type="xml">
|
||||
<form string="Unfreeze Pending Sheets">
|
||||
<field name="summary_html" nolabel="1" readonly="1" />
|
||||
<group attrs="{'invisible': [('sheet_count', '=', 0)]}">
|
||||
<field name="sheet_count" />
|
||||
<field name="timesheet_count" />
|
||||
<field name="timesheet_hours" widget="float_time" />
|
||||
</group>
|
||||
<div
|
||||
class="alert alert-warning"
|
||||
role="alert"
|
||||
attrs="{'invisible': [('sheet_count', '=', 0)]}"
|
||||
>
|
||||
This is a mass operation on historical data and it cannot be
|
||||
undone: the reviewer of every approved sheet is cleared. Make
|
||||
sure you have a recent backup before you continue.
|
||||
</div>
|
||||
<footer>
|
||||
<button
|
||||
name="action_unfreeze"
|
||||
string="Unfreeze"
|
||||
type="object"
|
||||
class="btn-primary"
|
||||
attrs="{'invisible': [('sheet_count', '=', 0)]}"
|
||||
/>
|
||||
<button string="Cancel" class="btn-secondary" special="cancel" />
|
||||
</footer>
|
||||
</form>
|
||||
</field>
|
||||
</record>
|
||||
<record
|
||||
id="action_hr_timesheet_sheet_unfreeze_wizard"
|
||||
model="ir.actions.act_window"
|
||||
>
|
||||
<field name="name">Unfreeze Pending Sheets</field>
|
||||
<field name="res_model">hr_timesheet.sheet.unfreeze.wizard</field>
|
||||
<field name="view_mode">form</field>
|
||||
<field name="view_id" ref="hr_timesheet_sheet_unfreeze_wizard_form" />
|
||||
<field name="target">new</field>
|
||||
</record>
|
||||
</odoo>
|
||||
Loading…
Add table
Add a link
Reference in a new issue