[ADD]hr_timesheet_sheet_usability #8
55
hr_timesheet_sheet_usability/README.rst
Normal file
55
hr_timesheet_sheet_usability/README.rst
Normal file
@@ -0,0 +1,55 @@
|
||||
============================
|
||||
hr_timesheet_sheet_usability
|
||||
============================
|
||||
|
||||
Summary
|
||||
=======
|
||||
|
||||
Various changes to improve the usability of hr_timesheet_sheet application
|
||||
|
||||
Description
|
||||
===========
|
||||
|
||||
This module changes :
|
||||
- menu, menu order, menu access right
|
||||
- french translation
|
||||
of hr_timesheet_sheet module
|
||||
|
||||
Installation
|
||||
============
|
||||
|
||||
Use Odoo normal module installation procedure to install
|
||||
``hr_timesheet_sheet_usability``.
|
||||
|
||||
Known issues / Roadmap
|
||||
======================
|
||||
|
||||
None yet.
|
||||
|
||||
Bug Tracker
|
||||
===========
|
||||
|
||||
Bugs are tracked on `our issues website <https://github.com/elabore-coop/allow_negative_leave_and_allocation/issues>`_. In case of
|
||||
trouble, please check there if your issue has already been
|
||||
reported. If you spotted it first, help us smashing it by providing a
|
||||
detailed and welcomed feedback.
|
||||
|
||||
Credits
|
||||
=======
|
||||
|
||||
Contributors
|
||||
------------
|
||||
|
||||
* `Elabore <mailto:contact@elabore.coop>`
|
||||
|
||||
Funders
|
||||
-------
|
||||
|
||||
The development of this module has been financially supported by:
|
||||
* Elabore (https://elabore.coop)
|
||||
|
||||
|
||||
Maintainer
|
||||
----------
|
||||
|
||||
This module is maintained by Elabore.
|
0
hr_timesheet_sheet_usability/__init__.py
Executable file
0
hr_timesheet_sheet_usability/__init__.py
Executable file
19
hr_timesheet_sheet_usability/__manifest__.py
Executable file
19
hr_timesheet_sheet_usability/__manifest__.py
Executable file
@@ -0,0 +1,19 @@
|
||||
{
|
||||
"name": "hr_timesheet_sheet_usability",
|
||||
"version": "16.0.1.0.0",
|
||||
"description": "Various changes to improve the usability of hr_timesheet_sheet application",
|
||||
"summary": "",
|
||||
"author": "Elabore",
|
||||
"website": "https://github.com/Alusage/odoo-hr-addons",
|
||||
"license": "LGPL-3",
|
||||
"category": "Human Resources",
|
||||
"depends": [
|
||||
"base","hr_timesheet","hr_timesheet_sheet",
|
||||
],
|
||||
"data": [
|
||||
"views/hr_timesheet_sheet_menu.xml",
|
||||
"views/account_analytic_line_views.xml",
|
||||
],
|
||||
"installable": True,
|
||||
"application": False,
|
||||
}
|
80
hr_timesheet_sheet_usability/i18n/fr.po
Normal file
80
hr_timesheet_sheet_usability/i18n/fr.po
Normal file
@@ -0,0 +1,80 @@
|
||||
# Translation of Odoo Server.
|
||||
# This file contains the translation of the following modules:
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Odoo Server 16.0\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2025-06-19 09:03+0000\n"
|
||||
"PO-Revision-Date: 2025-06-19 09:03+0000\n"
|
||||
"Last-Translator: \n"
|
||||
"Language-Team: \n"
|
||||
"Language: fr\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: \n"
|
||||
"Plural-Forms: \n"
|
||||
|
||||
#. module: hr_timesheet
|
||||
#: model:ir.actions.act_window,name:hr_timesheet.timesheet_action_all
|
||||
#: model:ir.ui.menu,name:hr_timesheet.timesheet_menu_activity_all
|
||||
msgid "All Timesheets"
|
||||
msgstr "Tous les temps"
|
||||
|
||||
#. module: hr_timesheet
|
||||
#: model:ir.actions.act_window,name:hr_timesheet.act_hr_timesheet_line
|
||||
#: model:ir.ui.menu,name:hr_timesheet.timesheet_menu_activity_mine
|
||||
#: model:ir.ui.menu,name:hr_timesheet.timesheet_menu_activity_user
|
||||
#: model_terms:ir.ui.view,arch_db:hr_timesheet.hr_timesheet_line_search
|
||||
#: model_terms:ir.ui.view,arch_db:hr_timesheet.hr_timesheet_report_search
|
||||
msgid "My Timesheets"
|
||||
msgstr "Mes temps"
|
||||
|
||||
#. module: hr_timesheet
|
||||
#. odoo-python
|
||||
#: code:addons/hr_timesheet/models/hr_timesheet.py:0
|
||||
#: code:addons/hr_timesheet/models/project.py:0
|
||||
#: model:ir.actions.act_window,name:hr_timesheet.act_hr_timesheet_line_by_project
|
||||
#: model:ir.actions.act_window,name:hr_timesheet.timesheet_action_from_employee
|
||||
#: model:ir.actions.report,name:hr_timesheet.timesheet_report
|
||||
#: model:ir.actions.report,name:hr_timesheet.timesheet_report_project
|
||||
#: model:ir.actions.report,name:hr_timesheet.timesheet_report_task
|
||||
#: model:ir.actions.report,name:hr_timesheet.timesheet_report_task_timesheets
|
||||
#: model:ir.model.fields,field_description:hr_timesheet.field_project_project__allow_timesheets
|
||||
#: model:ir.model.fields,field_description:hr_timesheet.field_project_task__timesheet_ids
|
||||
#: model:ir.ui.menu,name:hr_timesheet.menu_hr_time_tracking
|
||||
#: model:ir.ui.menu,name:hr_timesheet.menu_timesheets_reports_timesheet
|
||||
#: model:ir.ui.menu,name:hr_timesheet.timesheet_menu_root
|
||||
#: model_terms:ir.ui.view,arch_db:hr_timesheet.hr_department_view_kanban
|
||||
#: model_terms:ir.ui.view,arch_db:hr_timesheet.portal_layout
|
||||
#: model_terms:ir.ui.view,arch_db:hr_timesheet.portal_my_home_timesheet
|
||||
#: model_terms:ir.ui.view,arch_db:hr_timesheet.portal_my_task
|
||||
#: model_terms:ir.ui.view,arch_db:hr_timesheet.portal_my_timesheets
|
||||
#: model_terms:ir.ui.view,arch_db:hr_timesheet.project_invoice_form
|
||||
#: model_terms:ir.ui.view,arch_db:hr_timesheet.project_project_view_form_simplified_inherit_timesheet
|
||||
#: model_terms:ir.ui.view,arch_db:hr_timesheet.project_sharing_inherit_project_task_view_form
|
||||
#: model_terms:ir.ui.view,arch_db:hr_timesheet.report_timesheet
|
||||
#: model_terms:ir.ui.view,arch_db:hr_timesheet.report_timesheet_task
|
||||
#: model_terms:ir.ui.view,arch_db:hr_timesheet.res_config_settings_view_form
|
||||
#: model_terms:ir.ui.view,arch_db:hr_timesheet.timesheet_project_task_page
|
||||
#: model_terms:ir.ui.view,arch_db:hr_timesheet.timesheets_analysis_report_graph_employee
|
||||
#: model_terms:ir.ui.view,arch_db:hr_timesheet.timesheets_analysis_report_graph_project
|
||||
#: model_terms:ir.ui.view,arch_db:hr_timesheet.timesheets_analysis_report_graph_task
|
||||
#: model_terms:ir.ui.view,arch_db:hr_timesheet.view_hr_timesheet_line_graph
|
||||
#: model_terms:ir.ui.view,arch_db:hr_timesheet.view_hr_timesheet_line_pivot
|
||||
#: model_terms:ir.ui.view,arch_db:hr_timesheet.view_project_kanban_inherited
|
||||
#: model_terms:ir.ui.view,arch_db:hr_timesheet.view_task_form2_inherited
|
||||
#, python-format
|
||||
msgid "Timesheets"
|
||||
msgstr "Temps"
|
||||
|
||||
#. module: hr_timesheet_sheet
|
||||
#: model:ir.actions.act_window,name:hr_timesheet_sheet.act_hr_timesheet_sheet_all_timesheets
|
||||
#: model:ir.ui.menu,name:hr_timesheet_sheet.menu_act_hr_timesheet_sheet_all_timesheets
|
||||
msgid "All Timesheet Sheets"
|
||||
msgstr "Toutes les feuilles de temps"
|
||||
|
||||
#. module: hr_timesheet_sheet
|
||||
#: model:ir.ui.menu,name:hr_timesheet_sheet.menu_hr_my_timesheets
|
||||
msgid "My Timesheets"
|
||||
msgstr "Feuilles de temps"
|
@@ -0,0 +1,26 @@
|
||||
# Translation of Odoo Server.
|
||||
# This file contains the translation of the following modules:
|
||||
# * hr_timesheet_sheet_usability
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Odoo Server 16.0\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2025-09-15 08:39+0000\n"
|
||||
"PO-Revision-Date: 2025-09-15 08:39+0000\n"
|
||||
"Last-Translator: \n"
|
||||
"Language-Team: \n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: \n"
|
||||
"Plural-Forms: \n"
|
||||
|
||||
#. module: hr_timesheet_sheet_usability
|
||||
#: model_terms:ir.ui.view,arch_db:hr_timesheet_sheet_usability.view_hr_timesheet_sheet_group_by_inherit
|
||||
msgid "Date de départ"
|
||||
msgstr ""
|
||||
|
||||
#. module: hr_timesheet_sheet_usability
|
||||
#: model_terms:ir.ui.view,arch_db:hr_timesheet_sheet_usability.view_hr_timesheet_sheet_group_by_inherit
|
||||
msgid "Timesheet by Date"
|
||||
msgstr ""
|
@@ -0,0 +1,11 @@
|
||||
<odoo>
|
||||
<!-- Hide menu "Timesheets to Submit" -->
|
||||
<record id="hr_timesheet_sheet.menu_act_hr_timesheet_line_to_submit" model="ir.ui.menu">
|
||||
<field name="active">False</field>
|
||||
</record>
|
||||
|
||||
<!-- Hide menu "My Timesheets to Submit" -->
|
||||
<record id="hr_timesheet_sheet.menu_act_hr_timesheet_line_to_submit_my" model="ir.ui.menu">
|
||||
<field name="active">False</field>
|
||||
</record>
|
||||
</odoo>
|
@@ -0,0 +1,47 @@
|
||||
<?xml version="1.0"?>
|
||||
<odoo>
|
||||
<!-- add date group by date in timesheet sheet view -->
|
||||
<record id="view_hr_timesheet_sheet_group_by_inherit" model="ir.ui.view">
|
||||
<field name="name">hr_timesheet.sheet.filter</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">
|
||||
<group position="inside">
|
||||
<filter string="Date de départ" name="groupby_date" domain="[]" context="{'group_by': 'date_start'}" help="Timesheet by Date"/>
|
||||
</group>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<!-- Make menu "My Timesheets to Submit" visible only for managers -->
|
||||
<menuitem
|
||||
id="hr_timesheet_sheet.menu_hr_to_review"
|
||||
groups="hr_timesheet.group_timesheet_manager"
|
||||
name="To Review"
|
||||
parent="hr_timesheet.timesheet_menu_root"
|
||||
sequence="7"
|
||||
/>
|
||||
<menuitem
|
||||
id="hr_timesheet_sheet.menu_act_hr_timesheet_sheet_to_review"
|
||||
groups="hr_timesheet.group_timesheet_manager"
|
||||
action="hr_timesheet_sheet.act_hr_timesheet_sheet_to_review"
|
||||
parent="hr_timesheet_sheet.menu_hr_to_review"
|
||||
sequence="11"
|
||||
/>
|
||||
|
||||
<!-- Move All timesheets menu under Timesheet menu -->
|
||||
<menuitem
|
||||
id="hr_timesheet_sheet.menu_act_hr_timesheet_sheet_all_timesheets"
|
||||
parent="hr_timesheet_sheet.menu_hr_my_timesheets"
|
||||
/>
|
||||
|
||||
<!-- Cancel timesheet line menus move and restore their original placement from hr_timesheet module -->
|
||||
<record model="ir.ui.menu" id="hr_timesheet.timesheet_menu_activity_mine">
|
||||
<field name="parent_id" ref="hr_timesheet.menu_hr_time_tracking" />
|
||||
</record>
|
||||
<record model="ir.ui.menu" id="hr_timesheet.timesheet_menu_activity_user">
|
||||
<field name="parent_id" ref="hr_timesheet.timesheet_menu_root" />
|
||||
</record>
|
||||
</odoo>
|
Reference in New Issue
Block a user