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
103
hr_timesheet_sheet_no_review/views/hr_timesheet_sheet_views.xml
Normal file
103
hr_timesheet_sheet_no_review/views/hr_timesheet_sheet_views.xml
Normal file
|
|
@ -0,0 +1,103 @@
|
|||
<?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_form" model="ir.ui.view">
|
||||
<field name="name">hr_timesheet.sheet.form.no.review</field>
|
||||
<field name="model">hr_timesheet.sheet</field>
|
||||
<field name="inherit_id" ref="hr_timesheet_sheet.hr_timesheet_sheet_form" />
|
||||
<field name="arch" type="xml">
|
||||
<xpath
|
||||
expr="//header/button[@name='action_timesheet_confirm']"
|
||||
position="replace"
|
||||
/>
|
||||
<xpath
|
||||
expr="//header/button[@name='action_timesheet_done']"
|
||||
position="replace"
|
||||
/>
|
||||
<xpath
|
||||
expr="//header/button[@name='action_timesheet_draft']"
|
||||
position="replace"
|
||||
/>
|
||||
<xpath
|
||||
expr="//header/button[@name='action_timesheet_refuse']"
|
||||
position="replace"
|
||||
/>
|
||||
<xpath expr="//header/field[@name='state']" position="attributes">
|
||||
<attribute name="statusbar_visible">draft</attribute>
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
<record id="view_hr_timesheet_sheet_kanban" model="ir.ui.view">
|
||||
<field name="name">hr_timesheet.sheet.kanban.no.review</field>
|
||||
<field name="model">hr_timesheet.sheet</field>
|
||||
<field
|
||||
name="inherit_id"
|
||||
ref="hr_timesheet_sheet.view_hr_timesheet_sheet_kanban"
|
||||
/>
|
||||
<field name="arch" type="xml">
|
||||
<xpath expr="//a[@name='action_timesheet_confirm']" position="replace" />
|
||||
<xpath expr="//a[@name='action_timesheet_done']" position="replace" />
|
||||
<xpath expr="//a[@name='action_timesheet_refuse']" position="replace" />
|
||||
<xpath expr="//a[@name='action_timesheet_draft']" position="replace" />
|
||||
</field>
|
||||
</record>
|
||||
<record id="hr_timesheet_sheet_tree" model="ir.ui.view">
|
||||
<field name="name">hr_timesheet.sheet.tree.no.review</field>
|
||||
<field name="model">hr_timesheet.sheet</field>
|
||||
<field name="inherit_id" ref="hr_timesheet_sheet.hr_timesheet_sheet_tree" />
|
||||
<field name="arch" type="xml">
|
||||
<xpath expr="//tree/field[@name='reviewer_id']" position="replace" />
|
||||
<xpath expr="//tree" position="attributes">
|
||||
<attribute name="decoration-muted" />
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
<record id="view_hr_timesheet_sheet_filter" model="ir.ui.view">
|
||||
<field name="name">hr_timesheet.sheet.filter.no.review</field>
|
||||
<field name="model">hr_timesheet.sheet</field>
|
||||
<field
|
||||
name="inherit_id"
|
||||
ref="hr_timesheet_sheet.view_hr_timesheet_sheet_filter"
|
||||
/>
|
||||
<field name="arch" type="xml">
|
||||
<xpath expr="//search/filter[@name='confirm']" position="replace" />
|
||||
<xpath expr="//search/filter[@name='to_review']" position="replace" />
|
||||
<xpath expr="//search/field[@name='reviewer_id']" position="replace" />
|
||||
<xpath expr="//filter[@name='groupby_reviewer']" position="replace" />
|
||||
</field>
|
||||
</record>
|
||||
<record id="hr_timesheet_line_search" model="ir.ui.view">
|
||||
<field name="name">account.analytic.line.search.no.review</field>
|
||||
<field name="model">account.analytic.line</field>
|
||||
<field name="inherit_id" ref="hr_timesheet_sheet.hr_timesheet_line_search" />
|
||||
<field name="arch" type="xml">
|
||||
<xpath
|
||||
expr="//search/filter[@name='unsubmitted']/following-sibling::separator[1]"
|
||||
position="replace"
|
||||
/>
|
||||
<xpath expr="//search/filter[@name='unsubmitted']" position="replace" />
|
||||
</field>
|
||||
</record>
|
||||
<record id="hr_department_view_kanban" model="ir.ui.view">
|
||||
<field name="name">hr.department.kanban.no.review</field>
|
||||
<field name="model">hr.department</field>
|
||||
<field name="inherit_id" ref="hr_timesheet_sheet.hr_department_view_kanban" />
|
||||
<field name="arch" type="xml">
|
||||
<xpath
|
||||
expr="//field[@name='timesheet_sheet_to_approve_count']"
|
||||
position="replace"
|
||||
/>
|
||||
<xpath
|
||||
expr="//div[starts-with(@t-if, 'record.timesheet_sheet_to_approve_count')]"
|
||||
position="replace"
|
||||
/>
|
||||
<xpath
|
||||
expr="//div[hasclass('o_kanban_manage_reports')]/div[.//t[starts-with(@t-esc, 'record.timesheet_sheet_to_approve')]]"
|
||||
position="replace"
|
||||
/>
|
||||
</field>
|
||||
</record>
|
||||
</odoo>
|
||||
35
hr_timesheet_sheet_no_review/views/menus.xml
Normal file
35
hr_timesheet_sheet_no_review/views/menus.xml
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
<?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.menu_hr_to_review" model="ir.ui.menu">
|
||||
<field name="active" eval="False" />
|
||||
</record>
|
||||
<record
|
||||
id="hr_timesheet_sheet.menu_act_hr_timesheet_sheet_to_review"
|
||||
model="ir.ui.menu"
|
||||
>
|
||||
<field name="active" eval="False" />
|
||||
</record>
|
||||
<record
|
||||
id="hr_timesheet_sheet.menu_act_hr_timesheet_line_to_submit"
|
||||
model="ir.ui.menu"
|
||||
>
|
||||
<field name="active" eval="False" />
|
||||
</record>
|
||||
<record
|
||||
id="hr_timesheet_sheet.menu_act_hr_timesheet_line_to_submit_my"
|
||||
model="ir.ui.menu"
|
||||
>
|
||||
<field name="active" eval="False" />
|
||||
</record>
|
||||
<menuitem
|
||||
id="menu_hr_timesheet_sheet_unfreeze"
|
||||
action="action_hr_timesheet_sheet_unfreeze_wizard"
|
||||
parent="hr_timesheet.menu_hr_time_tracking"
|
||||
groups="hr_timesheet.group_timesheet_manager"
|
||||
sequence="99"
|
||||
/>
|
||||
</odoo>
|
||||
Loading…
Add table
Add a link
Reference in a new issue