Skip to content
Permalink
Browse files

[FIX] hr: add activity filter

Like other models with a chatter (sales, stock, ...) it is possible to
schedule activities on employees. Scheduling an activity add the
activity to the activity menu (top-right *clock* button) where activities
are classified as *late*, *today* or *future* and grouped by
application. Clicking any of the three class on an employee activity
shows all activities regardless of their class.

opw-1957013

closes #32657

Signed-off-by: Nans Lefebvre (len) <len@odoo.com>
  • Loading branch information...
Julien00859 committed Apr 12, 2019
1 parent 58c6455 commit 917213963fb4ed12e379332f5e9f19b23dc2745a
Showing with 24 additions and 2 deletions.
  1. +17 −2 addons/hr/i18n/hr.pot
  2. +7 −0 addons/hr/views/hr_views.xml
@@ -6,8 +6,8 @@ msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 12.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2019-03-29 10:09+0000\n"
"PO-Revision-Date: 2019-03-29 10:09+0000\n"
"POT-Creation-Date: 2019-04-12 12:19+0000\n"
"PO-Revision-Date: 2019-04-12 12:19+0000\n"
"Last-Translator: <>\n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
@@ -607,6 +607,11 @@ msgstr ""
msgid "Followers only"
msgstr ""

#. module: hr
#: model_terms:ir.ui.view,arch_db:hr.view_employee_filter
msgid "Future Activities"
msgstr ""

#. module: hr
#: model:ir.model.fields,field_description:hr.field_hr_employee__gender
msgid "Gender"
@@ -856,6 +861,11 @@ msgstr ""
msgid "Last Updated on"
msgstr ""

#. module: hr
#: model_terms:ir.ui.view,arch_db:hr.view_employee_filter
msgid "Late Activities"
msgstr ""

#. module: hr
#: model_terms:hr.job,website_description:hr.job_marketing
msgid "Launch new marketing campaigns and offers"
@@ -1454,6 +1464,11 @@ msgstr ""
msgid "Today"
msgstr ""

#. module: hr
#: model_terms:ir.ui.view,arch_db:hr.view_employee_filter
msgid "Today Activities"
msgstr ""

#. module: hr
#: model:ir.model.fields,field_description:hr.field_hr_job__expected_employees
msgid "Total Forecasted Employees"
@@ -183,6 +183,13 @@
<filter string="Archived" name="inactive" domain="[('active','=',False)]"/>
<separator/>
<filter string="Unread Messages" name="message_needaction" domain="[('message_needaction', '=', True)]"/>
<separator/>
<filter string="Late Activities" name="activities_overdue"
domain="[('activity_ids.date_deadline', '&lt;', context_today().strftime('%Y-%m-%d'))]"/>
<filter string="Today Activities" name="activities_today"
domain="[('activity_ids.date_deadline', '=', context_today().strftime('%Y-%m-%d'))]"/>
<filter string="Future Activities" name="activities_upcoming_all"
domain="[('activity_ids.date_deadline', '&gt;', context_today().strftime('%Y-%m-%d'))]"/>
<group expand="0" string="Group By">
<filter name="group_manager" string="Manager" domain="[]" context="{'group_by':'parent_id'}"/>
<filter name="group_coach" string="Coach" domain="[]" context="{'group_by':'coach_id'}"/>

0 comments on commit 9172139

Please sign in to comment.
You can’t perform that action at this time.