Skip to content

Commit

Permalink
[IMP] crm_timesheet: ❤️ 4 UX
Browse files Browse the repository at this point in the history
Following the changes from OCA/project#586, here I implement the same UX when using it with CRM leads.
  • Loading branch information
yajo authored and fshah-initos committed Mar 31, 2021
1 parent 2e98c0e commit b4419f6
Show file tree
Hide file tree
Showing 17 changed files with 607 additions and 20 deletions.
1 change: 1 addition & 0 deletions crm_timesheet/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ Contributors
* Javier Iniesta
* David Vidal
* Vicent Cubells
* Jairo Llopis

Maintainers
~~~~~~~~~~~
Expand Down
1 change: 1 addition & 0 deletions crm_timesheet/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
from . import models
from . import wizards
4 changes: 2 additions & 2 deletions crm_timesheet/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
{
'name': "CRM Timesheet",
'category': 'Customer Relationship Management',
'version': '12.0.1.0.0',
'version': '12.0.2.0.0',
'depends': [
'crm',
'hr_timesheet'
'project_timesheet_time_control'
],
'data': [
'views/crm_lead_view.xml',
Expand Down
48 changes: 48 additions & 0 deletions crm_timesheet/i18n/crm_timesheet.pot
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,20 @@ msgstr ""
msgid "Analytic Line"
msgstr ""

#. module: crm_timesheet
#: model:ir.model,name:crm_timesheet.model_hr_timesheet_switch
msgid "Helper to quickly switch between timesheet lines"
msgstr ""

#. module: crm_timesheet
#: model:ir.model.fields,help:crm_timesheet.field_crm_lead__show_time_control
msgid "Indicate which time control button to show, if any."
msgstr ""

#. module: crm_timesheet
#: model:ir.model,name:crm_timesheet.model_crm_lead
#: model:ir.model.fields,field_description:crm_timesheet.field_account_analytic_line__lead_id
#: model:ir.model.fields,field_description:crm_timesheet.field_hr_timesheet_switch__lead_id
msgid "Lead/Opportunity"
msgstr ""

Expand All @@ -29,6 +40,43 @@ msgstr ""
msgid "Project"
msgstr ""

#. module: crm_timesheet
#: model:ir.model.fields,field_description:crm_timesheet.field_crm_lead__show_time_control
msgid "Show Time Control"
msgstr ""

#. module: crm_timesheet
#: selection:crm.lead,show_time_control:0
msgid "Start"
msgstr ""

#. module: crm_timesheet
#: code:addons/crm_timesheet/models/crm_lead.py:58
#: model_terms:ir.ui.view,arch_db:crm_timesheet.crm_case_form_view_leads
#: model_terms:ir.ui.view,arch_db:crm_timesheet.crm_case_form_view_oppor
#: model_terms:ir.ui.view,arch_db:crm_timesheet.crm_case_kanban_view_leads
#: model_terms:ir.ui.view,arch_db:crm_timesheet.crm_case_tree_view_leads
#: model_terms:ir.ui.view,arch_db:crm_timesheet.crm_case_tree_view_oppor
#: model_terms:ir.ui.view,arch_db:crm_timesheet.view_crm_lead_kanban
#, python-format
msgid "Start work"
msgstr ""

#. module: crm_timesheet
#: selection:crm.lead,show_time_control:0
msgid "Stop"
msgstr ""

#. module: crm_timesheet
#: model_terms:ir.ui.view,arch_db:crm_timesheet.crm_case_form_view_leads
#: model_terms:ir.ui.view,arch_db:crm_timesheet.crm_case_form_view_oppor
#: model_terms:ir.ui.view,arch_db:crm_timesheet.crm_case_kanban_view_leads
#: model_terms:ir.ui.view,arch_db:crm_timesheet.crm_case_tree_view_leads
#: model_terms:ir.ui.view,arch_db:crm_timesheet.crm_case_tree_view_oppor
#: model_terms:ir.ui.view,arch_db:crm_timesheet.view_crm_lead_kanban
msgid "Stop work"
msgstr ""

#. module: crm_timesheet
#: model:ir.model.fields,field_description:crm_timesheet.field_crm_lead__timesheet_ids
#: model_terms:ir.ui.view,arch_db:crm_timesheet.crm_case_form_view_leads
Expand Down
48 changes: 48 additions & 0 deletions crm_timesheet/i18n/cs_CZ.po
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,20 @@ msgstr ""
msgid "Analytic Line"
msgstr "Analytická linka"

#. module: crm_timesheet
#: model:ir.model,name:crm_timesheet.model_hr_timesheet_switch
msgid "Helper to quickly switch between timesheet lines"
msgstr ""

#. module: crm_timesheet
#: model:ir.model.fields,help:crm_timesheet.field_crm_lead__show_time_control
msgid "Indicate which time control button to show, if any."
msgstr ""

#. module: crm_timesheet
#: model:ir.model,name:crm_timesheet.model_crm_lead
#: model:ir.model.fields,field_description:crm_timesheet.field_account_analytic_line__lead_id
#: model:ir.model.fields,field_description:crm_timesheet.field_hr_timesheet_switch__lead_id
msgid "Lead/Opportunity"
msgstr "Vedoucí/příležitost"

Expand All @@ -35,6 +46,43 @@ msgstr "Vedoucí/příležitost"
msgid "Project"
msgstr "Projekt"

#. module: crm_timesheet
#: model:ir.model.fields,field_description:crm_timesheet.field_crm_lead__show_time_control
msgid "Show Time Control"
msgstr ""

#. module: crm_timesheet
#: selection:crm.lead,show_time_control:0
msgid "Start"
msgstr ""

#. module: crm_timesheet
#: code:addons/crm_timesheet/models/crm_lead.py:58
#: model_terms:ir.ui.view,arch_db:crm_timesheet.crm_case_form_view_leads
#: model_terms:ir.ui.view,arch_db:crm_timesheet.crm_case_form_view_oppor
#: model_terms:ir.ui.view,arch_db:crm_timesheet.crm_case_kanban_view_leads
#: model_terms:ir.ui.view,arch_db:crm_timesheet.crm_case_tree_view_leads
#: model_terms:ir.ui.view,arch_db:crm_timesheet.crm_case_tree_view_oppor
#: model_terms:ir.ui.view,arch_db:crm_timesheet.view_crm_lead_kanban
#, python-format
msgid "Start work"
msgstr ""

#. module: crm_timesheet
#: selection:crm.lead,show_time_control:0
msgid "Stop"
msgstr ""

#. module: crm_timesheet
#: model_terms:ir.ui.view,arch_db:crm_timesheet.crm_case_form_view_leads
#: model_terms:ir.ui.view,arch_db:crm_timesheet.crm_case_form_view_oppor
#: model_terms:ir.ui.view,arch_db:crm_timesheet.crm_case_kanban_view_leads
#: model_terms:ir.ui.view,arch_db:crm_timesheet.crm_case_tree_view_leads
#: model_terms:ir.ui.view,arch_db:crm_timesheet.crm_case_tree_view_oppor
#: model_terms:ir.ui.view,arch_db:crm_timesheet.view_crm_lead_kanban
msgid "Stop work"
msgstr ""

#. module: crm_timesheet
#: model:ir.model.fields,field_description:crm_timesheet.field_crm_lead__timesheet_ids
#: model_terms:ir.ui.view,arch_db:crm_timesheet.crm_case_form_view_leads
Expand Down
50 changes: 49 additions & 1 deletion crm_timesheet/i18n/de.po
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * crm_timesheet
# * crm_timesheet
#
msgid ""
msgstr ""
Expand All @@ -21,9 +21,20 @@ msgstr ""
msgid "Analytic Line"
msgstr "Kostenstellenbuchung"

#. module: crm_timesheet
#: model:ir.model,name:crm_timesheet.model_hr_timesheet_switch
msgid "Helper to quickly switch between timesheet lines"
msgstr ""

#. module: crm_timesheet
#: model:ir.model.fields,help:crm_timesheet.field_crm_lead__show_time_control
msgid "Indicate which time control button to show, if any."
msgstr ""

#. module: crm_timesheet
#: model:ir.model,name:crm_timesheet.model_crm_lead
#: model:ir.model.fields,field_description:crm_timesheet.field_account_analytic_line__lead_id
#: model:ir.model.fields,field_description:crm_timesheet.field_hr_timesheet_switch__lead_id
msgid "Lead/Opportunity"
msgstr "Interessent / Chance"

Expand All @@ -32,6 +43,43 @@ msgstr "Interessent / Chance"
msgid "Project"
msgstr "Projekt"

#. module: crm_timesheet
#: model:ir.model.fields,field_description:crm_timesheet.field_crm_lead__show_time_control
msgid "Show Time Control"
msgstr ""

#. module: crm_timesheet
#: selection:crm.lead,show_time_control:0
msgid "Start"
msgstr ""

#. module: crm_timesheet
#: code:addons/crm_timesheet/models/crm_lead.py:58
#: model_terms:ir.ui.view,arch_db:crm_timesheet.crm_case_form_view_leads
#: model_terms:ir.ui.view,arch_db:crm_timesheet.crm_case_form_view_oppor
#: model_terms:ir.ui.view,arch_db:crm_timesheet.crm_case_kanban_view_leads
#: model_terms:ir.ui.view,arch_db:crm_timesheet.crm_case_tree_view_leads
#: model_terms:ir.ui.view,arch_db:crm_timesheet.crm_case_tree_view_oppor
#: model_terms:ir.ui.view,arch_db:crm_timesheet.view_crm_lead_kanban
#, python-format
msgid "Start work"
msgstr ""

#. module: crm_timesheet
#: selection:crm.lead,show_time_control:0
msgid "Stop"
msgstr ""

#. module: crm_timesheet
#: model_terms:ir.ui.view,arch_db:crm_timesheet.crm_case_form_view_leads
#: model_terms:ir.ui.view,arch_db:crm_timesheet.crm_case_form_view_oppor
#: model_terms:ir.ui.view,arch_db:crm_timesheet.crm_case_kanban_view_leads
#: model_terms:ir.ui.view,arch_db:crm_timesheet.crm_case_tree_view_leads
#: model_terms:ir.ui.view,arch_db:crm_timesheet.crm_case_tree_view_oppor
#: model_terms:ir.ui.view,arch_db:crm_timesheet.view_crm_lead_kanban
msgid "Stop work"
msgstr ""

#. module: crm_timesheet
#: model:ir.model.fields,field_description:crm_timesheet.field_crm_lead__timesheet_ids
#: model_terms:ir.ui.view,arch_db:crm_timesheet.crm_case_form_view_leads
Expand Down
48 changes: 48 additions & 0 deletions crm_timesheet/i18n/es.po
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,20 @@ msgstr ""
msgid "Analytic Line"
msgstr "Línea analítica"

#. module: crm_timesheet
#: model:ir.model,name:crm_timesheet.model_hr_timesheet_switch
msgid "Helper to quickly switch between timesheet lines"
msgstr ""

#. module: crm_timesheet
#: model:ir.model.fields,help:crm_timesheet.field_crm_lead__show_time_control
msgid "Indicate which time control button to show, if any."
msgstr ""

#. module: crm_timesheet
#: model:ir.model,name:crm_timesheet.model_crm_lead
#: model:ir.model.fields,field_description:crm_timesheet.field_account_analytic_line__lead_id
#: model:ir.model.fields,field_description:crm_timesheet.field_hr_timesheet_switch__lead_id
msgid "Lead/Opportunity"
msgstr "Iniciativa/Oportunidad"

Expand All @@ -35,6 +46,43 @@ msgstr "Iniciativa/Oportunidad"
msgid "Project"
msgstr "Proyecto"

#. module: crm_timesheet
#: model:ir.model.fields,field_description:crm_timesheet.field_crm_lead__show_time_control
msgid "Show Time Control"
msgstr ""

#. module: crm_timesheet
#: selection:crm.lead,show_time_control:0
msgid "Start"
msgstr ""

#. module: crm_timesheet
#: code:addons/crm_timesheet/models/crm_lead.py:58
#: model_terms:ir.ui.view,arch_db:crm_timesheet.crm_case_form_view_leads
#: model_terms:ir.ui.view,arch_db:crm_timesheet.crm_case_form_view_oppor
#: model_terms:ir.ui.view,arch_db:crm_timesheet.crm_case_kanban_view_leads
#: model_terms:ir.ui.view,arch_db:crm_timesheet.crm_case_tree_view_leads
#: model_terms:ir.ui.view,arch_db:crm_timesheet.crm_case_tree_view_oppor
#: model_terms:ir.ui.view,arch_db:crm_timesheet.view_crm_lead_kanban
#, python-format
msgid "Start work"
msgstr ""

#. module: crm_timesheet
#: selection:crm.lead,show_time_control:0
msgid "Stop"
msgstr ""

#. module: crm_timesheet
#: model_terms:ir.ui.view,arch_db:crm_timesheet.crm_case_form_view_leads
#: model_terms:ir.ui.view,arch_db:crm_timesheet.crm_case_form_view_oppor
#: model_terms:ir.ui.view,arch_db:crm_timesheet.crm_case_kanban_view_leads
#: model_terms:ir.ui.view,arch_db:crm_timesheet.crm_case_tree_view_leads
#: model_terms:ir.ui.view,arch_db:crm_timesheet.crm_case_tree_view_oppor
#: model_terms:ir.ui.view,arch_db:crm_timesheet.view_crm_lead_kanban
msgid "Stop work"
msgstr ""

#. module: crm_timesheet
#: model:ir.model.fields,field_description:crm_timesheet.field_crm_lead__timesheet_ids
#: model_terms:ir.ui.view,arch_db:crm_timesheet.crm_case_form_view_leads
Expand Down
48 changes: 48 additions & 0 deletions crm_timesheet/i18n/fr.po
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,20 @@ msgstr ""
msgid "Analytic Line"
msgstr "Ligne analytique"

#. module: crm_timesheet
#: model:ir.model,name:crm_timesheet.model_hr_timesheet_switch
msgid "Helper to quickly switch between timesheet lines"
msgstr ""

#. module: crm_timesheet
#: model:ir.model.fields,help:crm_timesheet.field_crm_lead__show_time_control
msgid "Indicate which time control button to show, if any."
msgstr ""

#. module: crm_timesheet
#: model:ir.model,name:crm_timesheet.model_crm_lead
#: model:ir.model.fields,field_description:crm_timesheet.field_account_analytic_line__lead_id
#: model:ir.model.fields,field_description:crm_timesheet.field_hr_timesheet_switch__lead_id
msgid "Lead/Opportunity"
msgstr "Piste/Opportunité"

Expand All @@ -34,6 +45,43 @@ msgstr "Piste/Opportunité"
msgid "Project"
msgstr ""

#. module: crm_timesheet
#: model:ir.model.fields,field_description:crm_timesheet.field_crm_lead__show_time_control
msgid "Show Time Control"
msgstr ""

#. module: crm_timesheet
#: selection:crm.lead,show_time_control:0
msgid "Start"
msgstr ""

#. module: crm_timesheet
#: code:addons/crm_timesheet/models/crm_lead.py:58
#: model_terms:ir.ui.view,arch_db:crm_timesheet.crm_case_form_view_leads
#: model_terms:ir.ui.view,arch_db:crm_timesheet.crm_case_form_view_oppor
#: model_terms:ir.ui.view,arch_db:crm_timesheet.crm_case_kanban_view_leads
#: model_terms:ir.ui.view,arch_db:crm_timesheet.crm_case_tree_view_leads
#: model_terms:ir.ui.view,arch_db:crm_timesheet.crm_case_tree_view_oppor
#: model_terms:ir.ui.view,arch_db:crm_timesheet.view_crm_lead_kanban
#, python-format
msgid "Start work"
msgstr ""

#. module: crm_timesheet
#: selection:crm.lead,show_time_control:0
msgid "Stop"
msgstr ""

#. module: crm_timesheet
#: model_terms:ir.ui.view,arch_db:crm_timesheet.crm_case_form_view_leads
#: model_terms:ir.ui.view,arch_db:crm_timesheet.crm_case_form_view_oppor
#: model_terms:ir.ui.view,arch_db:crm_timesheet.crm_case_kanban_view_leads
#: model_terms:ir.ui.view,arch_db:crm_timesheet.crm_case_tree_view_leads
#: model_terms:ir.ui.view,arch_db:crm_timesheet.crm_case_tree_view_oppor
#: model_terms:ir.ui.view,arch_db:crm_timesheet.view_crm_lead_kanban
msgid "Stop work"
msgstr ""

#. module: crm_timesheet
#: model:ir.model.fields,field_description:crm_timesheet.field_crm_lead__timesheet_ids
#: model_terms:ir.ui.view,arch_db:crm_timesheet.crm_case_form_view_leads
Expand Down
Loading

0 comments on commit b4419f6

Please sign in to comment.