Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
118 changes: 118 additions & 0 deletions hr_timesheet_name_customer/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,118 @@
.. image:: https://odoo-community.org/readme-banner-image
:target: https://odoo-community.org/get-involved?utm_source=readme
:alt: Odoo Community Association

==============================
Timesheet Description Customer
==============================

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:ddb3b4ce95637877dc62ac4a21cfef0021f6ad8da4aaf6d34f3a9b26ad050b46
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |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/license-LGPL--3-blue.png
:target: http://www.gnu.org/licenses/lgpl-3.0-standalone.html
:alt: License: LGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Ftimesheet-lightgray.png?logo=github
:target: https://github.com/OCA/timesheet/tree/19.0/hr_timesheet_name_customer
:alt: OCA/timesheet
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/timesheet-19-0/timesheet-19-0-hr_timesheet_name_customer
: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=19.0
:alt: Try me on Runboat

|badge1| |badge2| |badge3| |badge4| |badge5|

This module adds additional field "Description Customer" which is used
for customer timesheet reports. It also shows the "Description Customer"
instead of the "Description" field in the customer portal. By default
this field will be populated from the "Description" field of the
timesheet.

New report "Timesheet Customer" is added to print timesheets with
"Customer Description" instead of the "Description" field.

**Table of contents**

.. contents::
:local:

Use Cases / Context
===================

Sometimes you might need to add different description for customer
timesheets while keeping the original description for internal use. Eg
your team records timesheets in English but your customer prefers to see
timesheets in French.

Configuration
=============

No configuration is required.

Usage
=====

New field "Description Customer" is added to the timesheet list and form
views. This field is visible only for "Timesheets/Administrator" group.
If this field is not set, the "Description" field value will be
automatically copied to it.

To print report with "Description Customer" instead of "Description"
field:

1. Select timesheets you want to print
2. Click "Print / Timesheets Customer"

Changelog
=========

16.0.1.0.0 (2023-02-26)
-----------------------

- [ADD] Initial release for Odoo 16.
(`#568 <https://github.com/OCA/timesheet/pull/568>`__)

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:%20hr_timesheet_name_customer%0Aversion:%2019.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
-------

* Cetmix

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/19.0/hr_timesheet_name_customer>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
1 change: 1 addition & 0 deletions hr_timesheet_name_customer/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
17 changes: 17 additions & 0 deletions hr_timesheet_name_customer/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"name": "Timesheet Description Customer",
"summary": "Add 'Description Customer' field for timesheets",
"version": "19.0.1.0.0",
"category": "Timesheet",
"website": "https://github.com/OCA/timesheet",
"author": "Odoo Community Association (OCA), Cetmix",
"license": "LGPL-3",
"application": False,
"installable": True,
"depends": ["hr_timesheet"],
"data": [
"views/hr_timesheet_name_customer_views.xml",
"report/name_customer_template.xml",
"views/project_portal_templates.xml",
],
}
52 changes: 52 additions & 0 deletions hr_timesheet_name_customer/i18n/es.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * hr_timesheet_name_customer
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2023-09-03 05:14+0000\n"
"Last-Translator: Ivorra78 <informatica@totmaterial.es>\n"
"Language-Team: none\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: hr_timesheet_name_customer
#: model_terms:ir.ui.view,arch_db:hr_timesheet_name_customer.name_customer_table
msgid "<span>Description</span>"
msgstr "<span>Descripción</span>"

#. module: hr_timesheet_name_customer
#: model:ir.model,name:hr_timesheet_name_customer.model_account_analytic_line
msgid "Analytic Line"
msgstr "Línea Analítica"

#. module: hr_timesheet_name_customer
#: model:ir.model.fields,field_description:hr_timesheet_name_customer.field_account_analytic_line__name_customer
msgid "Customer Description"
msgstr "Descripción del Cliente"

#. module: hr_timesheet_name_customer
#: model_terms:ir.ui.view,arch_db:hr_timesheet_name_customer.report_timesheet_custom
msgid "Project"
msgstr "Proyecto"

#. module: hr_timesheet_name_customer
#: model:ir.actions.report,name:hr_timesheet_name_customer.timesheet_report_name_custom
msgid "Timesheet Customer"
msgstr "Hoja de horas del cliente"

#. module: hr_timesheet_name_customer
#: model_terms:ir.ui.view,arch_db:hr_timesheet_name_customer.report_timesheet_custom
msgid "Timesheets"
msgstr "Hojas de Tiempo"

#. module: hr_timesheet_name_customer
#: model_terms:ir.ui.view,arch_db:hr_timesheet_name_customer.report_timesheet_custom
msgid "for the"
msgstr "para la/el"
52 changes: 52 additions & 0 deletions hr_timesheet_name_customer/i18n/fr.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * hr_timesheet_name_customer
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2023-11-06 13:36+0000\n"
"Last-Translator: Rémi <remi@le-filament.com>\n"
"Language-Team: none\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"
"X-Generator: Weblate 4.17\n"

#. module: hr_timesheet_name_customer
#: model_terms:ir.ui.view,arch_db:hr_timesheet_name_customer.name_customer_table
msgid "<span>Description</span>"
msgstr "<span>Description</span>"

#. module: hr_timesheet_name_customer
#: model:ir.model,name:hr_timesheet_name_customer.model_account_analytic_line
msgid "Analytic Line"
msgstr "Ligne Analytique"

#. module: hr_timesheet_name_customer
#: model:ir.model.fields,field_description:hr_timesheet_name_customer.field_account_analytic_line__name_customer
msgid "Customer Description"
msgstr "Description Client"

#. module: hr_timesheet_name_customer
#: model_terms:ir.ui.view,arch_db:hr_timesheet_name_customer.report_timesheet_custom
msgid "Project"
msgstr "Projet"

#. module: hr_timesheet_name_customer
#: model:ir.actions.report,name:hr_timesheet_name_customer.timesheet_report_name_custom
msgid "Timesheet Customer"
msgstr "Feuille de temps client"

#. module: hr_timesheet_name_customer
#: model_terms:ir.ui.view,arch_db:hr_timesheet_name_customer.report_timesheet_custom
msgid "Timesheets"
msgstr "Feuilles de temps"

#. module: hr_timesheet_name_customer
#: model_terms:ir.ui.view,arch_db:hr_timesheet_name_customer.report_timesheet_custom
msgid "for the"
msgstr "pour le"
44 changes: 44 additions & 0 deletions hr_timesheet_name_customer/i18n/hr_timesheet_name_customer.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * hr_timesheet_name_customer
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 18.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: hr_timesheet_name_customer
#: model:ir.model,name:hr_timesheet_name_customer.model_account_analytic_line
msgid "Analytic Line"
msgstr ""

#. module: hr_timesheet_name_customer
#: model:ir.model.fields,field_description:hr_timesheet_name_customer.field_account_analytic_line__name_customer
msgid "Customer Description"
msgstr ""

#. module: hr_timesheet_name_customer
#: model_terms:ir.ui.view,arch_db:hr_timesheet_name_customer.report_timesheet_custom
msgid "Project"
msgstr ""

#. module: hr_timesheet_name_customer
#: model:ir.actions.report,name:hr_timesheet_name_customer.timesheet_report_name_custom
msgid "Timesheet Customer"
msgstr ""

#. module: hr_timesheet_name_customer
#: model_terms:ir.ui.view,arch_db:hr_timesheet_name_customer.report_timesheet_custom
msgid "Timesheets"
msgstr ""

#. module: hr_timesheet_name_customer
#: model_terms:ir.ui.view,arch_db:hr_timesheet_name_customer.report_timesheet_custom
msgid "for the"
msgstr ""
52 changes: 52 additions & 0 deletions hr_timesheet_name_customer/i18n/it.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * hr_timesheet_name_customer
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2024-03-14 15:37+0000\n"
"Last-Translator: mymage <stefano.consolaro@mymage.it>\n"
"Language-Team: none\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: hr_timesheet_name_customer
#: model_terms:ir.ui.view,arch_db:hr_timesheet_name_customer.name_customer_table
msgid "<span>Description</span>"
msgstr "<span>Descrizione</span>"

#. module: hr_timesheet_name_customer
#: model:ir.model,name:hr_timesheet_name_customer.model_account_analytic_line
msgid "Analytic Line"
msgstr "Riga analitica"

#. module: hr_timesheet_name_customer
#: model:ir.model.fields,field_description:hr_timesheet_name_customer.field_account_analytic_line__name_customer
msgid "Customer Description"
msgstr "Descrizione cliente"

#. module: hr_timesheet_name_customer
#: model_terms:ir.ui.view,arch_db:hr_timesheet_name_customer.report_timesheet_custom
msgid "Project"
msgstr "Progetto"

#. module: hr_timesheet_name_customer
#: model:ir.actions.report,name:hr_timesheet_name_customer.timesheet_report_name_custom
msgid "Timesheet Customer"
msgstr "Foglio ore cliente"

#. module: hr_timesheet_name_customer
#: model_terms:ir.ui.view,arch_db:hr_timesheet_name_customer.report_timesheet_custom
msgid "Timesheets"
msgstr "Fogli ore"

#. module: hr_timesheet_name_customer
#: model_terms:ir.ui.view,arch_db:hr_timesheet_name_customer.report_timesheet_custom
msgid "for the"
msgstr "per il"
52 changes: 52 additions & 0 deletions hr_timesheet_name_customer/i18n/pt_BR.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * hr_timesheet_name_customer
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2023-10-27 21:25+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: hr_timesheet_name_customer
#: model_terms:ir.ui.view,arch_db:hr_timesheet_name_customer.name_customer_table
msgid "<span>Description</span>"
msgstr "<span>Descrição</span>"

#. module: hr_timesheet_name_customer
#: model:ir.model,name:hr_timesheet_name_customer.model_account_analytic_line
msgid "Analytic Line"
msgstr "Linha Analítica"

#. module: hr_timesheet_name_customer
#: model:ir.model.fields,field_description:hr_timesheet_name_customer.field_account_analytic_line__name_customer
msgid "Customer Description"
msgstr "Descrição Cliente"

#. module: hr_timesheet_name_customer
#: model_terms:ir.ui.view,arch_db:hr_timesheet_name_customer.report_timesheet_custom
msgid "Project"
msgstr "Projeto"

#. module: hr_timesheet_name_customer
#: model:ir.actions.report,name:hr_timesheet_name_customer.timesheet_report_name_custom
msgid "Timesheet Customer"
msgstr "Apontamentos de Horas do Cliente"

#. module: hr_timesheet_name_customer
#: model_terms:ir.ui.view,arch_db:hr_timesheet_name_customer.report_timesheet_custom
msgid "Timesheets"
msgstr "Apontamentos de horas"

#. module: hr_timesheet_name_customer
#: model_terms:ir.ui.view,arch_db:hr_timesheet_name_customer.report_timesheet_custom
msgid "for the"
msgstr "para o"
1 change: 1 addition & 0 deletions hr_timesheet_name_customer/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import hr_timesheet_name_customer
Loading
Loading