Skip to content

Commit

Permalink
[16.0] [MIG] project_stage_allow_timesheet
Browse files Browse the repository at this point in the history
  • Loading branch information
rivo2302 committed Jan 24, 2025
1 parent e46c2fc commit a1470c0
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 111 deletions.
1 change: 1 addition & 0 deletions gitoo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
includes:
- hr_timesheet_task_domain
- hr_timesheet_task_stage
- project_task_stage_allow_timesheet

- url: https://github.com/OCA/web
branch: "16.0"
Expand Down
10 changes: 1 addition & 9 deletions project_stage_allow_timesheet/README.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Project Stage Allow Timesheet
=============================

This module adds the notion of time sheet on project stages.
This module adds the notion of timesheet on project stages.
With this implementation, the field allow_timesheets on project is now readonly and it
is driven by the stage the project is in.

Expand All @@ -19,14 +19,6 @@ is driven by the stage the project is in.

.. image:: static/description/project_stage_list.png

Additionally, the module implements two new constraints that avoid to move time sheets in a project that does not
allow time sheets.

*It is now forbidden to move a task with time sheets to a project that does not allow time sheets.*

.. image:: static/description/task_error.png



Contributors
------------
Expand Down
3 changes: 1 addition & 2 deletions project_stage_allow_timesheet/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,9 @@
"website": "https://bit.ly/numigi-com",
"license": "LGPL-3",
"category": "Project",
"depends": ["hr_timesheet"],
"depends": ["hr_timesheet", "project_task_stage_allow_timesheet"],
"data": [
"views/res_config_settings.xml",
"views/project_stage_views.xml",
"views/project_task_type_views.xml",
],
}
35 changes: 5 additions & 30 deletions project_stage_allow_timesheet/i18n/fr.po
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-08-29 19:37+0000\n"
"PO-Revision-Date: 2024-08-29 19:37+0000\n"
"POT-Creation-Date: 2025-01-24 13:13+0000\n"
"PO-Revision-Date: 2025-01-24 13:13+0000\n"
"Last-Translator: \n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
Expand All @@ -20,16 +20,6 @@ msgstr ""
msgid "Allow Timesheet"
msgstr "Autoriser les feuilles de temps"

#. module: project_stage_allow_timesheet
#: model:ir.model.fields,field_description:project_stage_allow_timesheet.field_project_task_type__allow_timesheet
msgid "Allow timesheets"
msgstr "Autoriser les feuilles de temps
#. module: project_stage_allow_timesheet
#: model:ir.model,name:project_stage_allow_timesheet.model_account_analytic_line
msgid "Analytic Line"
msgstr "Ligne analytique"

#. module: project_stage_allow_timesheet
#: model:ir.model.fields,help:project_stage_allow_timesheet.field_project_project__allow_timesheets
msgid "Depends if the project stage allows timesheet."
Expand All @@ -50,27 +40,11 @@ msgstr "Étape du projet"
msgid "Task"
msgstr "Tâche"

#. module: project_stage_allow_timesheet
#: model:ir.model,name:project_stage_allow_timesheet.model_project_task_type
msgid "Task Stage"
msgstr "Étape de tâche"

#. module: project_stage_allow_timesheet
#: model:ir.model.fields,field_description:project_stage_allow_timesheet.field_project_project__allow_timesheets
msgid "Timesheets"
msgstr "Autoriser les feuilles de temps"

#. module: project_stage_allow_timesheet
#. odoo-python
#: code:addons/project_stage_allow_timesheet/models/account_analytic_line.py:0
#, python-format
msgid ""
"You can't link a time sheet line to a task if its project's stage does not "
"allow it. (Task: {}, Project: {}, Project Stage: {})"
msgstr ""
"Vous ne pouvez pas lier une ligne de feuille de temps à une tâche si l'étape du projet ne le permet pas."
"(Tâche : {}, Projet : {}, Étape du projet : {})"

#. module: project_stage_allow_timesheet
#. odoo-python
#: code:addons/project_stage_allow_timesheet/models/project_task.py:0
Expand All @@ -79,5 +53,6 @@ msgid ""
"You cannot move a task linked to a timesheet line in a project if itsstage "
"does not allow it. (Task: {}, Project: {}, Project Stage: {})"
msgstr ""
"Vous ne pouvez pas déplacer une tâche liée à une ligne de feuille de temps dans un projet si son étape ne le permet pas."
"(Tâche : {}, Projet : {}, Étape du projet : {})"
"Vous ne pouvez pas déplacer une tâche liée à une ligne de feuille de temps "
"dans un projet si son étape ne le permet pas.(Tâche : {}, Projet : {}, Étape"
" du projet : {})"
2 changes: 0 additions & 2 deletions project_stage_allow_timesheet/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,3 @@
from . import project
from . import project_stage
from . import project_task
from . import project_task_type
from . import account_analytic_line
37 changes: 0 additions & 37 deletions project_stage_allow_timesheet/models/account_analytic_line.py

This file was deleted.

14 changes: 0 additions & 14 deletions project_stage_allow_timesheet/models/project_task_type.py

This file was deleted.

Binary file not shown.
4 changes: 2 additions & 2 deletions project_stage_allow_timesheet/views/project_stage_views.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<odoo>

<record id="project_stage_allow_timesheet_tree" model="ir.ui.view">
<record id="project_project_stage_view_tree" model="ir.ui.view">
<field name="name">Project stage: allow timesheet</field>
<field name="model">project.project.stage</field>
<field name="inherit_id" ref="project.project_project_stage_view_tree" />
Expand All @@ -13,7 +13,7 @@
</field>
</record>

<record id="project_project_stage_view_tree" model="ir.ui.view">
<record id="project_project_stage_view_form" model="ir.ui.view">
<field name="name">Project stage: allow timesheet</field>
<field name="model">project.project.stage</field>
<field name="inherit_id" ref="project.project_project_stage_view_form" />
Expand Down
15 changes: 0 additions & 15 deletions project_stage_allow_timesheet/views/project_task_type_views.xml

This file was deleted.

0 comments on commit a1470c0

Please sign in to comment.