Initial commit: OCA Mrp packages (117 packages)

This commit is contained in:
Ernad Husremovic 2025-08-29 15:43:05 +02:00
commit 277e84fd7a
4403 changed files with 395154 additions and 0 deletions

View file

@ -0,0 +1,47 @@
# CRM Timesheet
Odoo addon: crm_timesheet
## Installation
```bash
pip install odoo-bringout-oca-timesheet-crm_timesheet
```
## Dependencies
This addon depends on:
- crm
- project_timesheet_time_control
## Manifest Information
- **Name**: CRM Timesheet
- **Version**: 16.0.1.1.0
- **Category**: Customer Relationship Management
- **License**: AGPL-3
- **Installable**: True
## Source
Based on [OCA/timesheet](https://github.com/OCA/timesheet) branch 16.0, addon `crm_timesheet`.
## License
This package maintains the original AGPL-3 license from the upstream Odoo project.
## Documentation
- Overview: doc/OVERVIEW.md
- Architecture: doc/ARCHITECTURE.md
- Models: doc/MODELS.md
- Controllers: doc/CONTROLLERS.md
- Wizards: doc/WIZARDS.md
- Reports: doc/REPORTS.md
- Security: doc/SECURITY.md
- Install: doc/INSTALL.md
- Usage: doc/USAGE.md
- Configuration: doc/CONFIGURATION.md
- Dependencies: doc/DEPENDENCIES.md
- Troubleshooting: doc/TROUBLESHOOTING.md
- FAQ: doc/FAQ.md

View file

@ -0,0 +1,100 @@
=============
CRM Timesheet
=============
..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:f03e4e5c08c95a4b18aee21412d4bd6ad3701f79d069f8928232ab0eb470c6d1
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
:target: https://odoo-community.org/page/development-status
:alt: Beta
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Ftimesheet-lightgray.png?logo=github
:target: https://github.com/OCA/timesheet/tree/16.0/crm_timesheet
:alt: OCA/timesheet
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/timesheet-16-0/timesheet-16-0-crm_timesheet
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
:target: https://runboat.odoo-community.org/builds?repo=OCA/timesheet&target_branch=16.0
:alt: Try me on Runboat
|badge1| |badge2| |badge3| |badge4| |badge5|
This module allows to generate timesheets from leads/opportunities.
**Table of contents**
.. contents::
:local:
Usage
=====
* In pipeline/lead forms you have Timesheet tab.
Known issues / Roadmap
======================
* Window actions `crm.crm_lead_all_leads` and
`crm.crm_lead_opportunities_tree_view` contexts are overwritten for
hiding the lead field in timesheet embedded view. As this is not
accumulative, this change might be lost by other module overwritting the
same action, or this masks another module overwritting.
Bug Tracker
===========
Bugs are tracked on `GitHub Issues <https://github.com/OCA/timesheet/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us to smash it by providing a detailed and welcomed
`feedback <https://github.com/OCA/timesheet/issues/new?body=module:%20crm_timesheet%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
Do not contact contributors directly about support or help with technical issues.
Credits
=======
Authors
~~~~~~~
* Tecnativa
Contributors
~~~~~~~~~~~~
* `Tecnativa <https://www.tecnativa.com>`_
* Antonio Espinosa
* Rafael Blasco
* Javier Iniesta
* David Vidal
* Vicent Cubells
* Jairo Llopis
* Carolina Fernandez
* Foram Shah <foram.shah@initos.com>
Maintainers
~~~~~~~~~~~
This module is maintained by the OCA.
.. image:: https://odoo-community.org/logo.png
:alt: Odoo Community Association
:target: https://odoo-community.org
OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.
This module is part of the `OCA/timesheet <https://github.com/OCA/timesheet/tree/16.0/crm_timesheet>`_ project on GitHub.
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

View file

@ -0,0 +1,2 @@
from . import models
from . import wizards

View file

@ -0,0 +1,23 @@
# Copyright 2015 Antiun - Antonio Espinosa
# Copyright 2015 Antiun - Javier Iniesta
# Copyright 2017 Tecnativa - David Vidal
# Copyright 2019 Tecnativa - Jairo Llopis
# Copyright 2020 Tecnativa - Pedro M. Baeza
# Copyright 2023 Tecnativa - Carolina Fernandez
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
{
"name": "CRM Timesheet",
"category": "Customer Relationship Management",
"version": "16.0.1.1.0",
"depends": ["crm", "project_timesheet_time_control"],
"data": [
"security/ir.model.access.csv",
"views/crm_lead_view.xml",
"views/hr_timesheet_view.xml",
],
"author": "Tecnativa, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/timesheet",
"license": "AGPL-3",
"installable": True,
}

View file

@ -0,0 +1,81 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * crm_timesheet
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \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: crm_timesheet
#: model_terms:ir.ui.view,arch_db:crm_timesheet.crm_case_kanban_view_leads
#: model_terms:ir.ui.view,arch_db:crm_timesheet.view_crm_lead_kanban
msgid "<i class=\"fa fa-lg fa-play-circle\" title=\"Start\"/>"
msgstr "<i class=\"fa fa-lg fa-play-circle\" title=\"Pokreni\"/>"
#. module: crm_timesheet
#: model_terms:ir.ui.view,arch_db:crm_timesheet.crm_case_kanban_view_leads
#: model_terms:ir.ui.view,arch_db:crm_timesheet.view_crm_lead_kanban
msgid "<i class=\"fa fa-lg fa-stop-circle\" title=\"Stop\"/>"
msgstr "<i class=\"fa fa-lg fa-stop-circle\" title=\"Zaustavi\"/>"
#. module: crm_timesheet
#: model:ir.model,name:crm_timesheet.model_account_analytic_line
msgid "Analytic Line"
msgstr "Analitička stavka"
#. module: crm_timesheet
#: model:ir.model,name:crm_timesheet.model_hr_timesheet_switch
msgid "Helper to quickly switch between timesheet lines"
msgstr "Pomoć za vrže prebacivanje između linija"
#. 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 "Kontoliraj koji gumb će se prikazati."
#. 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
msgid "Lead/Opportunity"
msgstr "Potencijal/Prilika"
#. module: crm_timesheet
#: model:ir.model.fields,field_description:crm_timesheet.field_crm_lead__project_id
msgid "Project"
msgstr "Projekat"
#. module: crm_timesheet
#: model:ir.model.fields,field_description:crm_timesheet.field_crm_lead__show_time_control
msgid "Show Time Control"
msgstr "Prikaži kontrole vremena"
#. module: crm_timesheet
#: 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.crm_lead_view_form
#: model_terms:ir.ui.view,arch_db:crm_timesheet.view_crm_lead_kanban
msgid "Start work"
msgstr "Pokreni rad"
#. module: crm_timesheet
#: 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.crm_lead_view_form
#: model_terms:ir.ui.view,arch_db:crm_timesheet.view_crm_lead_kanban
msgid "Stop work"
msgstr "Zaustavi rad"
#. 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_lead_view_form
msgid "Timesheet"
msgstr "Šihtarica"

View file

@ -0,0 +1,84 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * crm_timesheet
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2025-02-11 08:06+0000\n"
"Last-Translator: QuiJoQuim <quim.rebull@gmail.com>\n"
"Language-Team: none\n"
"Language: ca\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Generator: Weblate 5.6.2\n"
#. module: crm_timesheet
#: model_terms:ir.ui.view,arch_db:crm_timesheet.crm_case_kanban_view_leads
#: model_terms:ir.ui.view,arch_db:crm_timesheet.view_crm_lead_kanban
msgid "<i class=\"fa fa-lg fa-play-circle\" title=\"Start\"/>"
msgstr "<i class=\"fa fa-lg fa-play-circle\" title=\"Inici\"/>"
#. module: crm_timesheet
#: model_terms:ir.ui.view,arch_db:crm_timesheet.crm_case_kanban_view_leads
#: model_terms:ir.ui.view,arch_db:crm_timesheet.view_crm_lead_kanban
msgid "<i class=\"fa fa-lg fa-stop-circle\" title=\"Stop\"/>"
msgstr "<i class=\"fa fa-lg fa-stop-circle\" title=\"Atura\"/>"
#. module: crm_timesheet
#: model:ir.model,name:crm_timesheet.model_account_analytic_line
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
msgid "Lead/Opportunity"
msgstr ""
#. module: crm_timesheet
#: model:ir.model.fields,field_description:crm_timesheet.field_crm_lead__project_id
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
#: 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.crm_lead_view_form
#: model_terms:ir.ui.view,arch_db:crm_timesheet.view_crm_lead_kanban
msgid "Start work"
msgstr "Iniciar tasca"
#. module: crm_timesheet
#: 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.crm_lead_view_form
#: model_terms:ir.ui.view,arch_db:crm_timesheet.view_crm_lead_kanban
msgid "Stop work"
msgstr "Aturar tasca"
#. 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_lead_view_form
msgid "Timesheet"
msgstr ""

View file

@ -0,0 +1,81 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * crm_timesheet
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \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: crm_timesheet
#: model_terms:ir.ui.view,arch_db:crm_timesheet.crm_case_kanban_view_leads
#: model_terms:ir.ui.view,arch_db:crm_timesheet.view_crm_lead_kanban
msgid "<i class=\"fa fa-lg fa-play-circle\" title=\"Start\"/>"
msgstr ""
#. module: crm_timesheet
#: model_terms:ir.ui.view,arch_db:crm_timesheet.crm_case_kanban_view_leads
#: model_terms:ir.ui.view,arch_db:crm_timesheet.view_crm_lead_kanban
msgid "<i class=\"fa fa-lg fa-stop-circle\" title=\"Stop\"/>"
msgstr ""
#. module: crm_timesheet
#: model:ir.model,name:crm_timesheet.model_account_analytic_line
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
msgid "Lead/Opportunity"
msgstr ""
#. module: crm_timesheet
#: model:ir.model.fields,field_description:crm_timesheet.field_crm_lead__project_id
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
#: 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.crm_lead_view_form
#: model_terms:ir.ui.view,arch_db:crm_timesheet.view_crm_lead_kanban
msgid "Start work"
msgstr ""
#. module: crm_timesheet
#: 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.crm_lead_view_form
#: 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_lead_view_form
msgid "Timesheet"
msgstr ""

View file

@ -0,0 +1,87 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * crm_timesheet
#
# Translators:
# Lukáš Spurný <lukasspurny8@gmail.com>, 2018
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-02-23 01:55+0000\n"
"PO-Revision-Date: 2018-02-23 01:55+0000\n"
"Last-Translator: Lukáš Spurný <lukasspurny8@gmail.com>, 2018\n"
"Language-Team: Czech (Czech Republic) (https://www.transifex.com/oca/"
"teams/23907/cs_CZ/)\n"
"Language: cs_CZ\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;\n"
#. module: crm_timesheet
#: model_terms:ir.ui.view,arch_db:crm_timesheet.crm_case_kanban_view_leads
#: model_terms:ir.ui.view,arch_db:crm_timesheet.view_crm_lead_kanban
msgid "<i class=\"fa fa-lg fa-play-circle\" title=\"Start\"/>"
msgstr ""
#. module: crm_timesheet
#: model_terms:ir.ui.view,arch_db:crm_timesheet.crm_case_kanban_view_leads
#: model_terms:ir.ui.view,arch_db:crm_timesheet.view_crm_lead_kanban
msgid "<i class=\"fa fa-lg fa-stop-circle\" title=\"Stop\"/>"
msgstr ""
#. module: crm_timesheet
#: model:ir.model,name:crm_timesheet.model_account_analytic_line
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
msgid "Lead/Opportunity"
msgstr "Vedoucí/příležitost"
#. module: crm_timesheet
#: model:ir.model.fields,field_description:crm_timesheet.field_crm_lead__project_id
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
#: 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.crm_lead_view_form
#: model_terms:ir.ui.view,arch_db:crm_timesheet.view_crm_lead_kanban
msgid "Start work"
msgstr ""
#. module: crm_timesheet
#: 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.crm_lead_view_form
#: 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_lead_view_form
msgid "Timesheet"
msgstr "Rozvrh hodin"

View file

@ -0,0 +1,84 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * crm_timesheet
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 12.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2019-07-11 12:43+0000\n"
"Last-Translator: Maria Sparenberg <maria.sparenberg@gmx.net>\n"
"Language-Team: none\n"
"Language: de\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Generator: Weblate 3.7.1\n"
#. module: crm_timesheet
#: model_terms:ir.ui.view,arch_db:crm_timesheet.crm_case_kanban_view_leads
#: model_terms:ir.ui.view,arch_db:crm_timesheet.view_crm_lead_kanban
msgid "<i class=\"fa fa-lg fa-play-circle\" title=\"Start\"/>"
msgstr ""
#. module: crm_timesheet
#: model_terms:ir.ui.view,arch_db:crm_timesheet.crm_case_kanban_view_leads
#: model_terms:ir.ui.view,arch_db:crm_timesheet.view_crm_lead_kanban
msgid "<i class=\"fa fa-lg fa-stop-circle\" title=\"Stop\"/>"
msgstr ""
#. module: crm_timesheet
#: model:ir.model,name:crm_timesheet.model_account_analytic_line
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
msgid "Lead/Opportunity"
msgstr "Interessent / Chance"
#. module: crm_timesheet
#: model:ir.model.fields,field_description:crm_timesheet.field_crm_lead__project_id
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
#: 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.crm_lead_view_form
#: model_terms:ir.ui.view,arch_db:crm_timesheet.view_crm_lead_kanban
msgid "Start work"
msgstr ""
#. module: crm_timesheet
#: 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.crm_lead_view_form
#: 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_lead_view_form
msgid "Timesheet"
msgstr "Zeiterfassung"

View file

@ -0,0 +1,88 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * crm_timesheet
#
# Translators:
# OCA Transbot <transbot@odoo-community.org>, 2018
# enjolras <yo@miguelrevilla.com>, 2018
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-03-03 05:20+0000\n"
"PO-Revision-Date: 2023-10-15 20:38+0000\n"
"Last-Translator: Ivorra78 <informatica@totmaterial.es>\n"
"Language-Team: Spanish (https://www.transifex.com/oca/teams/23907/es/)\n"
"Language: es\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Generator: Weblate 4.17\n"
#. module: crm_timesheet
#: model_terms:ir.ui.view,arch_db:crm_timesheet.crm_case_kanban_view_leads
#: model_terms:ir.ui.view,arch_db:crm_timesheet.view_crm_lead_kanban
msgid "<i class=\"fa fa-lg fa-play-circle\" title=\"Start\"/>"
msgstr "<i class=\"fa fa-lg fa-play-circle\" title=\"Start\"/>"
#. module: crm_timesheet
#: model_terms:ir.ui.view,arch_db:crm_timesheet.crm_case_kanban_view_leads
#: model_terms:ir.ui.view,arch_db:crm_timesheet.view_crm_lead_kanban
msgid "<i class=\"fa fa-lg fa-stop-circle\" title=\"Stop\"/>"
msgstr "<i class=\"fa fa-lg fa-stop-circle\" title=\"Stop\"/>"
#. module: crm_timesheet
#: model:ir.model,name:crm_timesheet.model_account_analytic_line
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 "Asistente para cambiar entre lineas de partes de horas"
#. 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 "Indicar qué botón de control horario mostrar, si lo hay."
#. 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
msgid "Lead/Opportunity"
msgstr "Iniciativa/Oportunidad"
#. module: crm_timesheet
#: model:ir.model.fields,field_description:crm_timesheet.field_crm_lead__project_id
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 "Mostrar Control de Tiempo"
#. module: crm_timesheet
#: 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.crm_lead_view_form
#: model_terms:ir.ui.view,arch_db:crm_timesheet.view_crm_lead_kanban
msgid "Start work"
msgstr "Iniciar tarea"
#. module: crm_timesheet
#: 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.crm_lead_view_form
#: model_terms:ir.ui.view,arch_db:crm_timesheet.view_crm_lead_kanban
msgid "Stop work"
msgstr "Detener tarea"
#. 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_lead_view_form
msgid "Timesheet"
msgstr "Parte de horas"

View file

@ -0,0 +1,86 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * crm_timesheet
#
# Translators:
# Quentin THEURET <odoo@kerpeo.com>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-08-18 00:44+0000\n"
"PO-Revision-Date: 2017-08-18 00:44+0000\n"
"Last-Translator: Quentin THEURET <odoo@kerpeo.com>, 2017\n"
"Language-Team: French (https://www.transifex.com/oca/teams/23907/fr/)\n"
"Language: fr\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
#. module: crm_timesheet
#: model_terms:ir.ui.view,arch_db:crm_timesheet.crm_case_kanban_view_leads
#: model_terms:ir.ui.view,arch_db:crm_timesheet.view_crm_lead_kanban
msgid "<i class=\"fa fa-lg fa-play-circle\" title=\"Start\"/>"
msgstr ""
#. module: crm_timesheet
#: model_terms:ir.ui.view,arch_db:crm_timesheet.crm_case_kanban_view_leads
#: model_terms:ir.ui.view,arch_db:crm_timesheet.view_crm_lead_kanban
msgid "<i class=\"fa fa-lg fa-stop-circle\" title=\"Stop\"/>"
msgstr ""
#. module: crm_timesheet
#: model:ir.model,name:crm_timesheet.model_account_analytic_line
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
msgid "Lead/Opportunity"
msgstr "Piste/Opportunité"
#. module: crm_timesheet
#: model:ir.model.fields,field_description:crm_timesheet.field_crm_lead__project_id
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
#: 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.crm_lead_view_form
#: model_terms:ir.ui.view,arch_db:crm_timesheet.view_crm_lead_kanban
msgid "Start work"
msgstr ""
#. module: crm_timesheet
#: 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.crm_lead_view_form
#: 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_lead_view_form
msgid "Timesheet"
msgstr "Feuille de temps"

View file

@ -0,0 +1,87 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * crm_timesheet
#
# Translators:
# Marco Calcagni <mcalcagni@dinamicheaziendali.it>, 2018
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-03-31 04:45+0000\n"
"PO-Revision-Date: 2023-10-13 16:38+0000\n"
"Last-Translator: mymage <stefano.consolaro@mymage.it>\n"
"Language-Team: Italian (https://www.transifex.com/oca/teams/23907/it/)\n"
"Language: it\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Generator: Weblate 4.17\n"
#. module: crm_timesheet
#: model_terms:ir.ui.view,arch_db:crm_timesheet.crm_case_kanban_view_leads
#: model_terms:ir.ui.view,arch_db:crm_timesheet.view_crm_lead_kanban
msgid "<i class=\"fa fa-lg fa-play-circle\" title=\"Start\"/>"
msgstr "<i class=\"fa fa-lg fa-play-circle\" title=\"Avvia\"/>"
#. module: crm_timesheet
#: model_terms:ir.ui.view,arch_db:crm_timesheet.crm_case_kanban_view_leads
#: model_terms:ir.ui.view,arch_db:crm_timesheet.view_crm_lead_kanban
msgid "<i class=\"fa fa-lg fa-stop-circle\" title=\"Stop\"/>"
msgstr "<i class=\"fa fa-lg fa-stop-circle\" title=\"Ferma\"/>"
#. module: crm_timesheet
#: model:ir.model,name:crm_timesheet.model_account_analytic_line
msgid "Analytic Line"
msgstr "Riga analitica"
#. module: crm_timesheet
#: model:ir.model,name:crm_timesheet.model_hr_timesheet_switch
msgid "Helper to quickly switch between timesheet lines"
msgstr "Assistente per spostarsi velocemente tra righe del foglio ore"
#. 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 "Indica se e quale pulsante di controllo tempo visualizzare."
#. 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
msgid "Lead/Opportunity"
msgstr "Contatto/Opportunità"
#. module: crm_timesheet
#: model:ir.model.fields,field_description:crm_timesheet.field_crm_lead__project_id
msgid "Project"
msgstr "Progetto"
#. module: crm_timesheet
#: model:ir.model.fields,field_description:crm_timesheet.field_crm_lead__show_time_control
msgid "Show Time Control"
msgstr "Visualizza controllo orario"
#. module: crm_timesheet
#: 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.crm_lead_view_form
#: model_terms:ir.ui.view,arch_db:crm_timesheet.view_crm_lead_kanban
msgid "Start work"
msgstr "Avvia lavoro"
#. module: crm_timesheet
#: 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.crm_lead_view_form
#: model_terms:ir.ui.view,arch_db:crm_timesheet.view_crm_lead_kanban
msgid "Stop work"
msgstr "Termine lavoro"
#. 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_lead_view_form
msgid "Timesheet"
msgstr "Foglio ore"

View file

@ -0,0 +1,84 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * crm_timesheet
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 13.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2020-12-13 03:55+0000\n"
"Last-Translator: Bosd <c5e2fd43-d292-4c90-9d1f-74ff3436329a@anonaddy.me>\n"
"Language-Team: none\n"
"Language: nl\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Generator: Weblate 3.10\n"
#. module: crm_timesheet
#: model_terms:ir.ui.view,arch_db:crm_timesheet.crm_case_kanban_view_leads
#: model_terms:ir.ui.view,arch_db:crm_timesheet.view_crm_lead_kanban
msgid "<i class=\"fa fa-lg fa-play-circle\" title=\"Start\"/>"
msgstr ""
#. module: crm_timesheet
#: model_terms:ir.ui.view,arch_db:crm_timesheet.crm_case_kanban_view_leads
#: model_terms:ir.ui.view,arch_db:crm_timesheet.view_crm_lead_kanban
msgid "<i class=\"fa fa-lg fa-stop-circle\" title=\"Stop\"/>"
msgstr ""
#. module: crm_timesheet
#: model:ir.model,name:crm_timesheet.model_account_analytic_line
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
msgid "Lead/Opportunity"
msgstr ""
#. module: crm_timesheet
#: model:ir.model.fields,field_description:crm_timesheet.field_crm_lead__project_id
msgid "Project"
msgstr "Project"
#. 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
#: 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.crm_lead_view_form
#: model_terms:ir.ui.view,arch_db:crm_timesheet.view_crm_lead_kanban
msgid "Start work"
msgstr "Start Tijd"
#. module: crm_timesheet
#: 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.crm_lead_view_form
#: model_terms:ir.ui.view,arch_db:crm_timesheet.view_crm_lead_kanban
msgid "Stop work"
msgstr "Eindtijd"
#. 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_lead_view_form
msgid "Timesheet"
msgstr "Tijdlijst"

View file

@ -0,0 +1,84 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * crm_timesheet
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 12.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2020-05-26 00:19+0000\n"
"Last-Translator: Pedro Castro Silva <pedrocs@exo.pt>\n"
"Language-Team: none\n"
"Language: pt\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=n > 1;\n"
"X-Generator: Weblate 3.10\n"
#. module: crm_timesheet
#: model_terms:ir.ui.view,arch_db:crm_timesheet.crm_case_kanban_view_leads
#: model_terms:ir.ui.view,arch_db:crm_timesheet.view_crm_lead_kanban
msgid "<i class=\"fa fa-lg fa-play-circle\" title=\"Start\"/>"
msgstr ""
#. module: crm_timesheet
#: model_terms:ir.ui.view,arch_db:crm_timesheet.crm_case_kanban_view_leads
#: model_terms:ir.ui.view,arch_db:crm_timesheet.view_crm_lead_kanban
msgid "<i class=\"fa fa-lg fa-stop-circle\" title=\"Stop\"/>"
msgstr ""
#. module: crm_timesheet
#: model:ir.model,name:crm_timesheet.model_account_analytic_line
msgid "Analytic Line"
msgstr "Linha Analítica"
#. module: crm_timesheet
#: model:ir.model,name:crm_timesheet.model_hr_timesheet_switch
msgid "Helper to quickly switch between timesheet lines"
msgstr "Ajudante para alternar rapidamente entre linhas de folhas de horas"
#. 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
msgid "Lead/Opportunity"
msgstr "Lead/Oportunidade"
#. module: crm_timesheet
#: model:ir.model.fields,field_description:crm_timesheet.field_crm_lead__project_id
msgid "Project"
msgstr "Projeto"
#. 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
#: 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.crm_lead_view_form
#: model_terms:ir.ui.view,arch_db:crm_timesheet.view_crm_lead_kanban
msgid "Start work"
msgstr "Iniciar Trabalho"
#. module: crm_timesheet
#: 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.crm_lead_view_form
#: model_terms:ir.ui.view,arch_db:crm_timesheet.view_crm_lead_kanban
msgid "Stop work"
msgstr "Parar Trabalho"
#. 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_lead_view_form
msgid "Timesheet"
msgstr "Registo de horas"

View file

@ -0,0 +1,85 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * crm_timesheet
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 12.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2023-10-27 21:55+0000\n"
"Last-Translator: Adriano Prado <adrianojprado@gmail.com>\n"
"Language-Team: none\n"
"Language: pt_BR\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=n > 1;\n"
"X-Generator: Weblate 4.17\n"
#. module: crm_timesheet
#: model_terms:ir.ui.view,arch_db:crm_timesheet.crm_case_kanban_view_leads
#: model_terms:ir.ui.view,arch_db:crm_timesheet.view_crm_lead_kanban
msgid "<i class=\"fa fa-lg fa-play-circle\" title=\"Start\"/>"
msgstr "<i class=\"fa fa-lg fa-play-circle\" title=\"Iniciar\"/>"
#. module: crm_timesheet
#: model_terms:ir.ui.view,arch_db:crm_timesheet.crm_case_kanban_view_leads
#: model_terms:ir.ui.view,arch_db:crm_timesheet.view_crm_lead_kanban
msgid "<i class=\"fa fa-lg fa-stop-circle\" title=\"Stop\"/>"
msgstr "<i class=\"fa fa-lg fa-stop-circle\" title=\"Parar\"/>"
#. module: crm_timesheet
#: model:ir.model,name:crm_timesheet.model_account_analytic_line
msgid "Analytic Line"
msgstr "Linha Analítica"
#. module: crm_timesheet
#: model:ir.model,name:crm_timesheet.model_hr_timesheet_switch
msgid "Helper to quickly switch between timesheet lines"
msgstr ""
"Auxiliar para alternar rapidamente entre linhas de apontamentos de horas"
#. 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 "Indique qual botão de controle de tempo mostrar, se houver."
#. 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
msgid "Lead/Opportunity"
msgstr "Oportunidade"
#. module: crm_timesheet
#: model:ir.model.fields,field_description:crm_timesheet.field_crm_lead__project_id
msgid "Project"
msgstr "Projeto"
#. module: crm_timesheet
#: model:ir.model.fields,field_description:crm_timesheet.field_crm_lead__show_time_control
msgid "Show Time Control"
msgstr "Mostrar Controle de tempo"
#. module: crm_timesheet
#: 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.crm_lead_view_form
#: model_terms:ir.ui.view,arch_db:crm_timesheet.view_crm_lead_kanban
msgid "Start work"
msgstr "Iniciar Trabalho"
#. module: crm_timesheet
#: 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.crm_lead_view_form
#: model_terms:ir.ui.view,arch_db:crm_timesheet.view_crm_lead_kanban
msgid "Stop work"
msgstr "Parar Trabalho"
#. 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_lead_view_form
msgid "Timesheet"
msgstr "Apontamento de Hora"

View file

@ -0,0 +1,2 @@
from . import crm_lead
from . import account_analytic_line

View file

@ -0,0 +1,20 @@
# Copyright 2015 Antonio Espinosa <antonio.espinosa@tecnativa.com>
# Copyright 2015 Javier Iniesta <javieria@antiun.com>
# Copyright 2017 David Vidal <david.vidal@tecnativa.com>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from odoo import api, fields, models
class AccountAnalyticLine(models.Model):
_inherit = "account.analytic.line"
lead_id = fields.Many2one(
comodel_name="crm.lead",
string="Lead/Opportunity",
)
@api.onchange("lead_id")
def _onchange_lead_id(self):
if self.lead_id.project_id:
self.project_id = self.lead_id.project_id.id

View file

@ -0,0 +1,31 @@
# Copyright 2015 Antonio Espinosa <antonio.espinosa@tecnativa.com>
# Copyright 2015 Javier Iniesta <javieria@antiun.com>
# Copyright 2017 David Vidal <david.vidal@tecnativa.com>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from odoo import api, fields, models
class CrmLead(models.Model):
_name = "crm.lead"
_inherit = ["crm.lead", "hr.timesheet.time_control.mixin"]
project_id = fields.Many2one(comodel_name="project.project", string="Project")
timesheet_ids = fields.One2many(
comodel_name="account.analytic.line",
inverse_name="lead_id",
string="Timesheet",
)
@api.model
def _relation_with_timesheet_line(self):
return "lead_id"
@api.depends("timesheet_ids.employee_id", "timesheet_ids.unit_amount")
def _compute_show_time_control(self):
return super()._compute_show_time_control()
def button_start_work(self):
result = super().button_start_work()
result["context"].update({"default_project_id": self.project_id.id})
return result

View file

@ -0,0 +1,11 @@
* `Tecnativa <https://www.tecnativa.com>`_
* Antonio Espinosa
* Rafael Blasco
* Javier Iniesta
* David Vidal
* Vicent Cubells
* Jairo Llopis
* Carolina Fernandez
* Foram Shah <foram.shah@initos.com>

View file

@ -0,0 +1 @@
This module allows to generate timesheets from leads/opportunities.

View file

@ -0,0 +1,5 @@
* Window actions `crm.crm_lead_all_leads` and
`crm.crm_lead_opportunities_tree_view` contexts are overwritten for
hiding the lead field in timesheet embedded view. As this is not
accumulative, this change might be lost by other module overwritting the
same action, or this masks another module overwritting.

View file

@ -0,0 +1 @@
* In pipeline/lead forms you have Timesheet tab.

View file

@ -0,0 +1,2 @@
id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
access_hr_timesheet_switch,access_hr_timesheet_switch,model_hr_timesheet_switch,hr_timesheet.group_hr_timesheet_user,1,1,1,1
1 id name model_id:id group_id:id perm_read perm_write perm_create perm_unlink
2 access_hr_timesheet_switch access_hr_timesheet_switch model_hr_timesheet_switch hr_timesheet.group_hr_timesheet_user 1 1 1 1

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.2 KiB

View file

@ -0,0 +1,448 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="generator" content="Docutils: https://docutils.sourceforge.io/" />
<title>CRM Timesheet</title>
<style type="text/css">
/*
:Author: David Goodger (goodger@python.org)
:Id: $Id: html4css1.css 8954 2022-01-20 10:10:25Z milde $
:Copyright: This stylesheet has been placed in the public domain.
Default cascading style sheet for the HTML output of Docutils.
See https://docutils.sourceforge.io/docs/howto/html-stylesheets.html for how to
customize this style sheet.
*/
/* used to remove borders from tables and images */
.borderless, table.borderless td, table.borderless th {
border: 0 }
table.borderless td, table.borderless th {
/* Override padding for "table.docutils td" with "! important".
The right padding separates the table cells. */
padding: 0 0.5em 0 0 ! important }
.first {
/* Override more specific margin styles with "! important". */
margin-top: 0 ! important }
.last, .with-subtitle {
margin-bottom: 0 ! important }
.hidden {
display: none }
.subscript {
vertical-align: sub;
font-size: smaller }
.superscript {
vertical-align: super;
font-size: smaller }
a.toc-backref {
text-decoration: none ;
color: black }
blockquote.epigraph {
margin: 2em 5em ; }
dl.docutils dd {
margin-bottom: 0.5em }
object[type="image/svg+xml"], object[type="application/x-shockwave-flash"] {
overflow: hidden;
}
/* Uncomment (and remove this text!) to get bold-faced definition list terms
dl.docutils dt {
font-weight: bold }
*/
div.abstract {
margin: 2em 5em }
div.abstract p.topic-title {
font-weight: bold ;
text-align: center }
div.admonition, div.attention, div.caution, div.danger, div.error,
div.hint, div.important, div.note, div.tip, div.warning {
margin: 2em ;
border: medium outset ;
padding: 1em }
div.admonition p.admonition-title, div.hint p.admonition-title,
div.important p.admonition-title, div.note p.admonition-title,
div.tip p.admonition-title {
font-weight: bold ;
font-family: sans-serif }
div.attention p.admonition-title, div.caution p.admonition-title,
div.danger p.admonition-title, div.error p.admonition-title,
div.warning p.admonition-title, .code .error {
color: red ;
font-weight: bold ;
font-family: sans-serif }
/* Uncomment (and remove this text!) to get reduced vertical space in
compound paragraphs.
div.compound .compound-first, div.compound .compound-middle {
margin-bottom: 0.5em }
div.compound .compound-last, div.compound .compound-middle {
margin-top: 0.5em }
*/
div.dedication {
margin: 2em 5em ;
text-align: center ;
font-style: italic }
div.dedication p.topic-title {
font-weight: bold ;
font-style: normal }
div.figure {
margin-left: 2em ;
margin-right: 2em }
div.footer, div.header {
clear: both;
font-size: smaller }
div.line-block {
display: block ;
margin-top: 1em ;
margin-bottom: 1em }
div.line-block div.line-block {
margin-top: 0 ;
margin-bottom: 0 ;
margin-left: 1.5em }
div.sidebar {
margin: 0 0 0.5em 1em ;
border: medium outset ;
padding: 1em ;
background-color: #ffffee ;
width: 40% ;
float: right ;
clear: right }
div.sidebar p.rubric {
font-family: sans-serif ;
font-size: medium }
div.system-messages {
margin: 5em }
div.system-messages h1 {
color: red }
div.system-message {
border: medium outset ;
padding: 1em }
div.system-message p.system-message-title {
color: red ;
font-weight: bold }
div.topic {
margin: 2em }
h1.section-subtitle, h2.section-subtitle, h3.section-subtitle,
h4.section-subtitle, h5.section-subtitle, h6.section-subtitle {
margin-top: 0.4em }
h1.title {
text-align: center }
h2.subtitle {
text-align: center }
hr.docutils {
width: 75% }
img.align-left, .figure.align-left, object.align-left, table.align-left {
clear: left ;
float: left ;
margin-right: 1em }
img.align-right, .figure.align-right, object.align-right, table.align-right {
clear: right ;
float: right ;
margin-left: 1em }
img.align-center, .figure.align-center, object.align-center {
display: block;
margin-left: auto;
margin-right: auto;
}
table.align-center {
margin-left: auto;
margin-right: auto;
}
.align-left {
text-align: left }
.align-center {
clear: both ;
text-align: center }
.align-right {
text-align: right }
/* reset inner alignment in figures */
div.align-right {
text-align: inherit }
/* div.align-center * { */
/* text-align: left } */
.align-top {
vertical-align: top }
.align-middle {
vertical-align: middle }
.align-bottom {
vertical-align: bottom }
ol.simple, ul.simple {
margin-bottom: 1em }
ol.arabic {
list-style: decimal }
ol.loweralpha {
list-style: lower-alpha }
ol.upperalpha {
list-style: upper-alpha }
ol.lowerroman {
list-style: lower-roman }
ol.upperroman {
list-style: upper-roman }
p.attribution {
text-align: right ;
margin-left: 50% }
p.caption {
font-style: italic }
p.credits {
font-style: italic ;
font-size: smaller }
p.label {
white-space: nowrap }
p.rubric {
font-weight: bold ;
font-size: larger ;
color: maroon ;
text-align: center }
p.sidebar-title {
font-family: sans-serif ;
font-weight: bold ;
font-size: larger }
p.sidebar-subtitle {
font-family: sans-serif ;
font-weight: bold }
p.topic-title {
font-weight: bold }
pre.address {
margin-bottom: 0 ;
margin-top: 0 ;
font: inherit }
pre.literal-block, pre.doctest-block, pre.math, pre.code {
margin-left: 2em ;
margin-right: 2em }
pre.code .ln { color: grey; } /* line numbers */
pre.code, code { background-color: #eeeeee }
pre.code .comment, code .comment { color: #5C6576 }
pre.code .keyword, code .keyword { color: #3B0D06; font-weight: bold }
pre.code .literal.string, code .literal.string { color: #0C5404 }
pre.code .name.builtin, code .name.builtin { color: #352B84 }
pre.code .deleted, code .deleted { background-color: #DEB0A1}
pre.code .inserted, code .inserted { background-color: #A3D289}
span.classifier {
font-family: sans-serif ;
font-style: oblique }
span.classifier-delimiter {
font-family: sans-serif ;
font-weight: bold }
span.interpreted {
font-family: sans-serif }
span.option {
white-space: nowrap }
span.pre {
white-space: pre }
span.problematic {
color: red }
span.section-subtitle {
/* font-size relative to parent (h1..h6 element) */
font-size: 80% }
table.citation {
border-left: solid 1px gray;
margin-left: 1px }
table.docinfo {
margin: 2em 4em }
table.docutils {
margin-top: 0.5em ;
margin-bottom: 0.5em }
table.footnote {
border-left: solid 1px black;
margin-left: 1px }
table.docutils td, table.docutils th,
table.docinfo td, table.docinfo th {
padding-left: 0.5em ;
padding-right: 0.5em ;
vertical-align: top }
table.docutils th.field-name, table.docinfo th.docinfo-name {
font-weight: bold ;
text-align: left ;
white-space: nowrap ;
padding-left: 0 }
/* "booktabs" style (no vertical lines) */
table.docutils.booktabs {
border: 0px;
border-top: 2px solid;
border-bottom: 2px solid;
border-collapse: collapse;
}
table.docutils.booktabs * {
border: 0px;
}
table.docutils.booktabs th {
border-bottom: thin solid;
text-align: left;
}
h1 tt.docutils, h2 tt.docutils, h3 tt.docutils,
h4 tt.docutils, h5 tt.docutils, h6 tt.docutils {
font-size: 100% }
ul.auto-toc {
list-style-type: none }
</style>
</head>
<body>
<div class="document" id="crm-timesheet">
<h1 class="title">CRM Timesheet</h1>
<!-- !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:f03e4e5c08c95a4b18aee21412d4bd6ad3701f79d069f8928232ab0eb470c6d1
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/timesheet/tree/16.0/crm_timesheet"><img alt="OCA/timesheet" src="https://img.shields.io/badge/github-OCA%2Ftimesheet-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/timesheet-16-0/timesheet-16-0-crm_timesheet"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/timesheet&amp;target_branch=16.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
<p>This module allows to generate timesheets from leads/opportunities.</p>
<p><strong>Table of contents</strong></p>
<div class="contents local topic" id="contents">
<ul class="simple">
<li><a class="reference internal" href="#usage" id="toc-entry-1">Usage</a></li>
<li><a class="reference internal" href="#known-issues-roadmap" id="toc-entry-2">Known issues / Roadmap</a></li>
<li><a class="reference internal" href="#bug-tracker" id="toc-entry-3">Bug Tracker</a></li>
<li><a class="reference internal" href="#credits" id="toc-entry-4">Credits</a><ul>
<li><a class="reference internal" href="#authors" id="toc-entry-5">Authors</a></li>
<li><a class="reference internal" href="#contributors" id="toc-entry-6">Contributors</a></li>
<li><a class="reference internal" href="#maintainers" id="toc-entry-7">Maintainers</a></li>
</ul>
</li>
</ul>
</div>
<div class="section" id="usage">
<h1><a class="toc-backref" href="#toc-entry-1">Usage</a></h1>
<ul class="simple">
<li>In pipeline/lead forms you have Timesheet tab.</li>
</ul>
</div>
<div class="section" id="known-issues-roadmap">
<h1><a class="toc-backref" href="#toc-entry-2">Known issues / Roadmap</a></h1>
<ul class="simple">
<li>Window actions <cite>crm.crm_lead_all_leads</cite> and
<cite>crm.crm_lead_opportunities_tree_view</cite> contexts are overwritten for
hiding the lead field in timesheet embedded view. As this is not
accumulative, this change might be lost by other module overwritting the
same action, or this masks another module overwritting.</li>
</ul>
</div>
<div class="section" id="bug-tracker">
<h1><a class="toc-backref" href="#toc-entry-3">Bug Tracker</a></h1>
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/timesheet/issues">GitHub Issues</a>.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us to smash it by providing a detailed and welcomed
<a class="reference external" href="https://github.com/OCA/timesheet/issues/new?body=module:%20crm_timesheet%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
<p>Do not contact contributors directly about support or help with technical issues.</p>
</div>
<div class="section" id="credits">
<h1><a class="toc-backref" href="#toc-entry-4">Credits</a></h1>
<div class="section" id="authors">
<h2><a class="toc-backref" href="#toc-entry-5">Authors</a></h2>
<ul class="simple">
<li>Tecnativa</li>
</ul>
</div>
<div class="section" id="contributors">
<h2><a class="toc-backref" href="#toc-entry-6">Contributors</a></h2>
<ul class="simple">
<li><a class="reference external" href="https://www.tecnativa.com">Tecnativa</a><ul>
<li>Antonio Espinosa</li>
<li>Rafael Blasco</li>
<li>Javier Iniesta</li>
<li>David Vidal</li>
<li>Vicent Cubells</li>
<li>Jairo Llopis</li>
<li>Carolina Fernandez</li>
</ul>
</li>
<li>Foram Shah &lt;<a class="reference external" href="mailto:foram.shah&#64;initos.com">foram.shah&#64;initos.com</a>&gt;</li>
</ul>
</div>
<div class="section" id="maintainers">
<h2><a class="toc-backref" href="#toc-entry-7">Maintainers</a></h2>
<p>This module is maintained by the OCA.</p>
<a class="reference external image-reference" href="https://odoo-community.org"><img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" /></a>
<p>OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.</p>
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/timesheet/tree/16.0/crm_timesheet">OCA/timesheet</a> project on GitHub.</p>
<p>You are welcome to contribute. To learn how please visit <a class="reference external" href="https://odoo-community.org/page/Contribute">https://odoo-community.org/page/Contribute</a>.</p>
</div>
</div>
</div>
</body>
</html>

View file

@ -0,0 +1,3 @@
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from . import test_account_analytic_line

View file

@ -0,0 +1,81 @@
# Copyright 2017 Jairo Llopis <jairo.llopis@tecnativa.com>
# Copyright 2023 Tecnativa - Carolina Fernandez
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo.tests.common import TransactionCase
class AccountAnalyticLineCase(TransactionCase):
@classmethod
def setUpClass(cls):
super().setUpClass()
admin = cls.env.ref("base.user_admin")
# Stop any timer running
cls.env["account.analytic.line"].search(
[
("date_time", "!=", False),
("user_id", "=", admin.id),
("project_id.allow_timesheets", "=", True),
("unit_amount", "=", 0),
]
).button_end_work()
admin.groups_id |= (
cls.env.ref("hr_timesheet.group_hr_timesheet_user")
| cls.env.ref("sales_team.group_sale_salesman")
| cls.env.ref("project.group_project_manager")
)
env = cls.env(user=admin)
Account = env["account.analytic.account"]
Project = env["project.project"]
cls.analytic_plan = cls.env["account.analytic.plan"].create({"name": "Default"})
cls.account1 = Account.create(
{"name": "Test Account 1", "plan_id": cls.analytic_plan.id}
)
cls.project1 = Project.create(
{
"name": "Test Project 1",
"analytic_account_id": cls.account1.id,
}
)
cls.lead = env["crm.lead"].create(
{
"name": "Test lead",
"project_id": cls.project1.id,
}
)
def setUp(self):
super().setUp()
self.uid = self.ref("base.user_admin")
def _create_wizard(self, action, active_record):
"""Create a new hr.timesheet.switch wizard in the specified context.
:param dict action: Action definition that creates the wizard.
:param active_record: Record being browsed when creating the wizard.
"""
self.assertEqual(action["res_model"], "hr.timesheet.switch")
self.assertEqual(action["target"], "new")
self.assertEqual(action["type"], "ir.actions.act_window")
self.assertEqual(action["view_mode"], "form")
self.assertEqual(action["view_type"], "form")
return (
active_record.env[action["res_model"]]
.with_context(
active_id=active_record.id,
active_ids=active_record.ids,
active_model=active_record._name,
**action.get("context", {}),
)
.create({})
)
def test_onchange_lead(self):
"""Changing the lead changes the associated project."""
line = self.env["account.analytic.line"].new(
{
"lead_id": self.lead.id,
}
)
line._onchange_lead_id()
self.assertEqual(line.project_id, self.project1)

View file

@ -0,0 +1,169 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<!-- Both -->
<record id="crm_lead_view_form" model="ir.ui.view">
<field name="name">CRM - Leads with timesheets</field>
<field name="model">crm.lead</field>
<field name="inherit_id" ref="crm.crm_lead_view_form" />
<field name="arch" type="xml">
<!-- Main task form action buttons -->
<div name="button_box" position="inside">
<field name="show_time_control" invisible="1" />
<button
name="button_start_work"
string="Start work"
type="object"
icon="fa-play-circle text-success"
attrs="{'invisible': [('show_time_control', '!=', 'start')]}"
class="oe_stat_button"
groups="hr_timesheet.group_hr_timesheet_user"
/>
<button
name="button_end_work"
string="Stop work"
type="object"
icon="fa-stop-circle text-warning"
attrs="{'invisible': [('show_time_control', '!=', 'stop')]}"
class="oe_stat_button"
groups="hr_timesheet.group_hr_timesheet_user"
/>
</div>
<!-- New fields -->
<field name="user_id" position="after">
<field name="project_id" invisible="1" />
<field
name="project_id"
groups="hr_timesheet.group_hr_timesheet_user"
/>
</field>
<page name="extra" position="after">
<page string="Timesheet" groups="hr_timesheet.group_hr_timesheet_user">
<field name="timesheet_ids" invisible="1" />
<field
name="timesheet_ids"
groups="hr_timesheet.group_hr_timesheet_user"
context="{'default_project_id': project_id, 'default_user_id': uid, 'tree_view_ref': 'hr_timesheet.timesheet_view_tree_user', 'form_view_ref': 'hr_timesheet.hr_timesheet_line_form'}"
/>
</page>
</page>
</field>
</record>
<!-- Leads -->
<record id="view_crm_lead_kanban" model="ir.ui.view">
<field name="name">Add timesheet time controls to lead kanban</field>
<field name="model">crm.lead</field>
<field name="inherit_id" ref="crm.view_crm_lead_kanban" />
<field name="arch" type="xml">
<xpath expr="//div[hasclass('oe_kanban_bottom_left')]" position="inside">
<field name="show_time_control" invisible="1" />
<a
name="button_start_work"
attrs="{'invisible': [('show_time_control', '!=', 'start')]}"
class="o_kanban_inline_block text-success"
string="Start work"
tabindex="-1"
type="object"
groups="hr_timesheet.group_hr_timesheet_user"
><i class="fa fa-lg fa-play-circle" title="Start" /></a>
<a
name="button_end_work"
attrs="{'invisible': [('show_time_control', '!=', 'stop')]}"
class="o_kanban_inline_block text-warning"
string="Stop work"
tabindex="-1"
type="object"
groups="hr_timesheet.group_hr_timesheet_user"
><i class="fa fa-lg fa-stop-circle" title="Stop" /></a>
</xpath>
</field>
</record>
<record id="crm_case_tree_view_leads" model="ir.ui.view">
<field name="name">Add timesheet time controls to lead tree</field>
<field name="model">crm.lead</field>
<field name="inherit_id" ref="crm.crm_case_tree_view_leads" />
<field name="arch" type="xml">
<tree position="inside">
<field name="show_time_control" invisible="1" />
<button
name="button_start_work"
string="Start work"
tabindex="-1"
type="object"
icon="fa-play-circle text-success"
attrs="{'invisible': [('show_time_control', '!=', 'start')]}"
class="oe_stat_button"
groups="hr_timesheet.group_hr_timesheet_user"
/>
<button
name="button_end_work"
string="Stop work"
tabindex="-1"
type="object"
icon="fa-stop-circle text-warning"
attrs="{'invisible': [('show_time_control', '!=', 'stop')]}"
class="oe_stat_button"
groups="hr_timesheet.group_hr_timesheet_user"
/>
</tree>
</field>
</record>
<!-- Opportunities -->
<record id="crm_case_kanban_view_leads" model="ir.ui.view">
<field name="name">Add timesheet time controls to opportunity kanban</field>
<field name="model">crm.lead</field>
<field name="inherit_id" ref="crm.crm_case_kanban_view_leads" />
<field name="arch" type="xml">
<xpath expr="//div[hasclass('oe_kanban_bottom_left')]" position="inside">
<field name="show_time_control" invisible="1" />
<a
name="button_start_work"
attrs="{'invisible': [('show_time_control', '!=', 'start')]}"
class="o_kanban_inline_block text-success"
string="Start work"
tabindex="-1"
type="object"
groups="hr_timesheet.group_hr_timesheet_user"
><i class="fa fa-lg fa-play-circle" title="Start" /></a>
<a
name="button_end_work"
attrs="{'invisible': [('show_time_control', '!=', 'stop')]}"
class="o_kanban_inline_block text-warning"
string="Stop work"
tabindex="-1"
type="object"
groups="hr_timesheet.group_hr_timesheet_user"
><i class="fa fa-lg fa-stop-circle" title="Stop" /></a>
</xpath>
</field>
</record>
<record id="crm_case_tree_view_oppor" model="ir.ui.view">
<field name="name">Add timesheet time controls to opportunity tree</field>
<field name="model">crm.lead</field>
<field name="inherit_id" ref="crm.crm_case_tree_view_oppor" />
<field name="arch" type="xml">
<tree position="inside">
<field name="show_time_control" invisible="1" />
<button
name="button_start_work"
string="Start work"
tabindex="-1"
type="object"
icon="fa-play-circle text-success"
attrs="{'invisible': [('show_time_control', '!=', 'start')]}"
class="oe_stat_button"
groups="hr_timesheet.group_hr_timesheet_user"
/>
<button
name="button_end_work"
string="Stop work"
tabindex="-1"
type="object"
icon="fa-stop-circle text-warning"
attrs="{'invisible': [('show_time_control', '!=', 'stop')]}"
class="oe_stat_button"
groups="hr_timesheet.group_hr_timesheet_user"
/>
</tree>
</field>
</record>
</odoo>

View file

@ -0,0 +1,30 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<record id="hr_timesheet_line_tree" model="ir.ui.view">
<field name="name">Timesheet with lead/opportunity</field>
<field name="model">account.analytic.line</field>
<field name="inherit_id" ref="hr_timesheet.hr_timesheet_line_tree" />
<field name="arch" type="xml">
<field name="task_id" position="after">
<field name="lead_id" invisible="1" />
<field
name="lead_id"
invisible="context.get('base_model_name') == 'crm.lead'"
groups="sales_team.group_sale_salesman"
optional="show"
/>
</field>
</field>
</record>
<record id="hr_timesheet_line_form" model="ir.ui.view">
<field name="name">Lead/opportunity in timesheet line form</field>
<field name="model">account.analytic.line</field>
<field name="inherit_id" ref="hr_timesheet.hr_timesheet_line_form" />
<field name="arch" type="xml">
<field name="task_id" position="after">
<field name="lead_id" invisible="1" />
<field name="lead_id" groups="sales_team.group_sale_salesman" />
</field>
</field>
</record>
</odoo>

View file

@ -0,0 +1 @@
from . import hr_timesheet_switch

View file

@ -0,0 +1,23 @@
# Copyright 2019 Tecnativa - Jairo Llopis
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from odoo import api, models
class HrTimesheetSwitch(models.TransientModel):
_inherit = "hr.timesheet.switch"
@api.model
def _closest_suggestion(self):
"""Allow searching best suggestion by lead."""
context = self.env.context
if context.get("active_model") == "crm.lead":
return self.env["account.analytic.line"].search(
[
("employee_id", "in", self.env.user.employee_ids.ids),
("lead_id", "=", context.get("active_id", 0)),
],
order="date_time DESC",
limit=1,
)
return super()._closest_suggestion()

View file

@ -0,0 +1,32 @@
# Architecture
```mermaid
flowchart TD
U[Users] -->|HTTP| V[Views and QWeb Templates]
V --> C[Controllers]
V --> W[Wizards Transient Models]
C --> M[Models and ORM]
W --> M
M --> R[Reports]
DX[Data XML] --> M
S[Security ACLs and Groups] -. enforces .-> M
subgraph Crm_timesheet Module - crm_timesheet
direction LR
M:::layer
W:::layer
C:::layer
V:::layer
R:::layer
S:::layer
DX:::layer
end
classDef layer fill:#eef8ff,stroke:#6ea8fe,stroke-width:1px
```
Notes
- Views include tree/form/kanban templates and report templates.
- Controllers provide website/portal routes when present.
- Wizards are UI flows implemented with `models.TransientModel`.
- Data XML loads data/demo records; Security defines groups and access.

View file

@ -0,0 +1,3 @@
# Configuration
Refer to Odoo settings for crm_timesheet. Configure related models, access rights, and options as needed.

View file

@ -0,0 +1,3 @@
# Controllers
This module does not define custom HTTP controllers.

View file

@ -0,0 +1,6 @@
# Dependencies
This addon depends on:
- [crm](../../odoo-bringout-oca-ocb-crm)
- [project_timesheet_time_control](../../odoo-bringout-oca-project-project_timesheet_time_control)

View file

@ -0,0 +1,4 @@
# FAQ
- Q: Which Odoo version? A: 16.0 (OCA/OCB packaged).
- Q: How to enable? A: Start server with --addon crm_timesheet or install in UI.

View file

@ -0,0 +1,7 @@
# Install
```bash
pip install odoo-bringout-oca-timesheet-crm_timesheet"
# or
uv pip install odoo-bringout-oca-timesheet-crm_timesheet"
```

View file

@ -0,0 +1,13 @@
# Models
Detected core models and extensions in crm_timesheet.
```mermaid
classDiagram
class crm_lead
class account_analytic_line
```
Notes
- Classes show model technical names; fields omitted for brevity.
- Items listed under _inherit are extensions of existing models.

View file

@ -0,0 +1,6 @@
# Overview
Packaged Odoo addon: crm_timesheet. Provides features documented in upstream Odoo 16 under this addon.
- Source: OCA/OCB 16.0, addon crm_timesheet
- License: LGPL-3

View file

@ -0,0 +1,3 @@
# Reports
This module does not define custom reports.

View file

@ -0,0 +1,34 @@
# Security
Access control and security definitions in crm_timesheet.
## Access Control Lists (ACLs)
Model access permissions defined in:
- **[ir.model.access.csv](../crm_timesheet/security/ir.model.access.csv)**
- 1 model access rules
## Record Rules
Row-level security rules defined in:
```mermaid
graph TB
subgraph "Security Layers"
A[Users] --> B[Groups]
B --> C[Access Control Lists]
C --> D[Models]
B --> E[Record Rules]
E --> F[Individual Records]
end
```
Security files overview:
- **[ir.model.access.csv](../crm_timesheet/security/ir.model.access.csv)**
- Model access permissions (CRUD rights)
Notes
- Access Control Lists define which groups can access which models
- Record Rules provide row-level security (filter records by user/group)
- Security groups organize users and define permission sets
- All security is enforced at the ORM level by Odoo

View file

@ -0,0 +1,5 @@
# Troubleshooting
- Ensure Python and Odoo environment matches repo guidance.
- Check database connectivity and logs if startup fails.
- Validate that dependent addons listed in DEPENDENCIES.md are installed.

View file

@ -0,0 +1,7 @@
# Usage
Start Odoo including this addon (from repo root):
```bash
python3 scripts/nix_odoo_web_server.py --db-name mydb --addon crm_timesheet
```

View file

@ -0,0 +1,3 @@
# Wizards
This module does not include UI wizards.

View file

@ -0,0 +1,43 @@
[project]
name = "odoo-bringout-oca-timesheet-crm_timesheet"
version = "16.0.0"
description = "CRM Timesheet - Odoo addon"
authors = [
{ name = "Ernad Husremovic", email = "hernad@bring.out.ba" }
]
dependencies = [
"odoo-bringout-oca-ocb-crm>=16.0.0",
"odoo-bringout-oca-timesheet-project_timesheet_time_control>=16.0.0",
"requests>=2.25.1"
]
readme = "README.md"
requires-python = ">= 3.11"
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Office/Business",
]
[project.urls]
homepage = "https://github.com/bringout/0"
repository = "https://github.com/bringout/0"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.metadata]
allow-direct-references = true
[tool.hatch.build.targets.wheel]
packages = ["crm_timesheet"]
[tool.rye]
managed = true
dev-dependencies = [
"pytest>=8.4.1",
]