Skip to content

Commit

Permalink
[MIG] hr_timesheet_attendance_ux: Migration to 16.0
Browse files Browse the repository at this point in the history
closes #37

Signed-off-by: Augusto Weiss <awe@adhoc.com.ar>
  • Loading branch information
vib-adhoc committed Nov 25, 2022
1 parent cee8cb8 commit a53f6f4
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 24 deletions.
6 changes: 1 addition & 5 deletions hr_timesheet_attendance_ux/README.rst
Expand Up @@ -14,12 +14,8 @@
Attendance Timesheet UX
=======================

#. Add pivot and graph view to timesheets
#. Use timesheet menu as default one on the app (first one)
#. Add fields for total (timesheet, attendance, theorical, etc)
#. Add description and notes
#. Add link from timesheets to timesheet vs attendance analysis
#. My Timesheets/All Timesheets odoo menus are set visible only in developer mode.
#. Timesheets/All Timesheets odoo menu is set visible only in developer mode.

Installation
============
Expand Down
7 changes: 2 additions & 5 deletions hr_timesheet_attendance_ux/__manifest__.py
Expand Up @@ -19,7 +19,7 @@
##############################################################################
{
"name": "Attendance Timesheet UX",
'version': "15.0.1.0.0",
'version': "16.0.1.0.0",
'category': 'Human Resources',
'sequence': 14,
'author': 'ADHOC SA',
Expand All @@ -34,10 +34,7 @@
'views/hr_attendance_views.xml',
'views/hr_timesheet_attendance_report_views.xml',
],
'qweb': [
"static/src/xml/attendance.xml",
],
'installable': False,
'installable': True,
'auto_install': False,
'application': False,
}
10 changes: 0 additions & 10 deletions hr_timesheet_attendance_ux/static/src/xml/attendance.xml

This file was deleted.

6 changes: 3 additions & 3 deletions hr_timesheet_attendance_ux/views/hr_attendance_views.xml
Expand Up @@ -18,21 +18,21 @@
<field name="model">hr.attendance</field>
<field name="inherit_id" ref="hr_attendance.hr_attendance_view_filter"/>
<field name="arch" type="xml">
<filter domain="[('employee_id.user_id.id', '=', uid)]" position="attributes">
<filter domain="[('employee_id.user_id', '=', uid)]" position="attributes">
<attribute name="name">my_attendances</attribute>
</filter>
</field>
</record>

<record id="hr_attendance.hr_attendance_action" model="ir.actions.act_window">
<field name="context">{"search_default_my_attendances": 1, "search_default_today": 1}</field>
<field name="context">{"search_default_my_attendances": 1}</field>
</record>

<record id="hr_attendance_action" model="ir.actions.act_window">
<field name="name">My Attendances</field>
<field name="res_model">hr.attendance</field>
<field name="view_mode">tree,kanban,form</field>
<field name="context">{"search_default_today":1,"search_default_my_attendances": 1}</field>
<field name="context">{"search_default_my_attendances": 1}</field>
<field name="search_view_id" ref="hr_attendance.hr_attendance_view_filter"/>
<field name="view_ids" eval="[(5, 0, 0),
(0, 0, {'view_mode': 'tree', 'view_id': ref('view_attendance_tree')}),
Expand Down
Expand Up @@ -6,7 +6,6 @@
<field name="res_model">hr.timesheet.attendance.report</field>
<field name="view_mode">pivot</field>
<field name="context">{
'search_default_week': True,
'search_default_user_id': uid,
'pivot_column_groupby': [],
'pivot_measures': ['total_attendance', 'total_timesheet', 'total_difference'],
Expand Down

0 comments on commit a53f6f4

Please sign in to comment.