From 5b38254d2517802677ae3d1b83b5e6423fca646f Mon Sep 17 00:00:00 2001
From: "Pedro M. Baeza"
Date: Tue, 20 Aug 2024 21:42:03 +0200
Subject: [PATCH 1/6] [ADD] sale_timesheet_timeline: Dates planning in sales
order lines
This module allows to plan in advance the start/end dates and assignees for the sales
order lines that are services, and they are transferred to the created task (if any)
when confirming the order.
It includes a timeline view for pre-viewing and managing the planning.
TT50569
---
sale_timesheet_timeline/README.rst | 94 ++++
sale_timesheet_timeline/__init__.py | 3 +
sale_timesheet_timeline/__manifest__.py | 15 +
sale_timesheet_timeline/i18n/es.po | 61 +++
.../i18n/sale_timesheet_timeline.pot | 61 +++
sale_timesheet_timeline/models/__init__.py | 3 +
sale_timesheet_timeline/models/sale_order.py | 42 ++
.../readme/CONTRIBUTORS.rst | 3 +
.../readme/DESCRIPTION.rst | 5 +
sale_timesheet_timeline/readme/USAGE.rst | 8 +
.../static/description/index.html | 443 ++++++++++++++++++
sale_timesheet_timeline/tests/__init__.py | 3 +
.../tests/test_sale_timesheet_timeline.py | 50 ++
.../views/sale_order_views.xml | 98 ++++
14 files changed, 889 insertions(+)
create mode 100644 sale_timesheet_timeline/README.rst
create mode 100644 sale_timesheet_timeline/__init__.py
create mode 100644 sale_timesheet_timeline/__manifest__.py
create mode 100644 sale_timesheet_timeline/i18n/es.po
create mode 100644 sale_timesheet_timeline/i18n/sale_timesheet_timeline.pot
create mode 100644 sale_timesheet_timeline/models/__init__.py
create mode 100644 sale_timesheet_timeline/models/sale_order.py
create mode 100644 sale_timesheet_timeline/readme/CONTRIBUTORS.rst
create mode 100644 sale_timesheet_timeline/readme/DESCRIPTION.rst
create mode 100644 sale_timesheet_timeline/readme/USAGE.rst
create mode 100644 sale_timesheet_timeline/static/description/index.html
create mode 100644 sale_timesheet_timeline/tests/__init__.py
create mode 100644 sale_timesheet_timeline/tests/test_sale_timesheet_timeline.py
create mode 100644 sale_timesheet_timeline/views/sale_order_views.xml
diff --git a/sale_timesheet_timeline/README.rst b/sale_timesheet_timeline/README.rst
new file mode 100644
index 0000000000..11a801d0b5
--- /dev/null
+++ b/sale_timesheet_timeline/README.rst
@@ -0,0 +1,94 @@
+===================================
+Dates planning in sales order lines
+===================================
+
+..
+ !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
+ !! This file is generated by oca-gen-addon-readme !!
+ !! changes will be overwritten. !!
+ !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
+ !! source digest: sha256:8e9d8f28eaf13681b5d90efd20e8c336813f849dc5e60543e3cf6e9f83637e3d
+ !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
+
+.. |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/sale_timesheet_timeline
+ :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-sale_timesheet_timeline
+ :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 plan in advance the start/end dates and assignees for the sales
+order lines that are services, and they are transferred to the created task (if any)
+when confirming the order.
+
+It includes a timeline view for pre-viewing and managing the planning.
+
+**Table of contents**
+
+.. contents::
+ :local:
+
+Usage
+=====
+
+#. Go to Sales > Orders > Quotations
+#. Create a new record.
+#. Add a line with a product of type "Service".
+#. A new smart-button "Planning" will appear.
+#. On optional fields, you will find 3 fields for setting manually the planning data:
+ "Task Start", "Task End" and "Task Assignees".
+#. You can also click on the "Planning" button and plan the dates visually in the
+ timeline view.
+
+Bug Tracker
+===========
+
+Bugs are tracked on `GitHub 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 `_.
+
+Do not contact contributors directly about support or help with technical issues.
+
+Credits
+=======
+
+Authors
+~~~~~~~
+
+* Tecnativa
+
+Contributors
+~~~~~~~~~~~~
+
+* `Tecnativa `_:
+
+ * Pedro M. Baeza
+
+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 `_ project on GitHub.
+
+You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
diff --git a/sale_timesheet_timeline/__init__.py b/sale_timesheet_timeline/__init__.py
new file mode 100644
index 0000000000..4b76c7b2d5
--- /dev/null
+++ b/sale_timesheet_timeline/__init__.py
@@ -0,0 +1,3 @@
+# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
+
+from . import models
diff --git a/sale_timesheet_timeline/__manifest__.py b/sale_timesheet_timeline/__manifest__.py
new file mode 100644
index 0000000000..b0a1d98e16
--- /dev/null
+++ b/sale_timesheet_timeline/__manifest__.py
@@ -0,0 +1,15 @@
+# Copyright 2024 Tecnativa - Pedro M. Baeza
+# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
+
+{
+ "name": "Dates planning in sales order lines",
+ "version": "16.0.1.0.0",
+ "category": "Services/Project",
+ "website": "https://github.com/OCA/timesheet",
+ "author": "Tecnativa, Odoo Community Association (OCA)",
+ "license": "AGPL-3",
+ "installable": True,
+ "application": False,
+ "depends": ["sale_timesheet", "project_timeline"],
+ "data": ["views/sale_order_views.xml"],
+}
diff --git a/sale_timesheet_timeline/i18n/es.po b/sale_timesheet_timeline/i18n/es.po
new file mode 100644
index 0000000000..d238dfbcae
--- /dev/null
+++ b/sale_timesheet_timeline/i18n/es.po
@@ -0,0 +1,61 @@
+# Translation of Odoo Server.
+# This file contains the translation of the following modules:
+# * sale_timesheet_timeline
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: Odoo Server 16.0\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2024-08-20 19:48+0000\n"
+"PO-Revision-Date: 2024-08-20 19:48+0000\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: sale_timesheet_timeline
+#: model_terms:ir.ui.view,arch_db:sale_timesheet_timeline.view_order_form
+msgid "Planning"
+msgstr "Planificación"
+
+#. module: sale_timesheet_timeline
+#: model:ir.model.fields,field_description:sale_timesheet_timeline.field_sale_order__any_service_line
+msgid "Any Service Line"
+msgstr "Cualquier línea de servicio"
+
+#. module: sale_timesheet_timeline
+#: model:ir.model,name:sale_timesheet_timeline.model_sale_order
+msgid "Sales Order"
+msgstr "Pedido de venta"
+
+#. module: sale_timesheet_timeline
+#: model:ir.model,name:sale_timesheet_timeline.model_sale_order_line
+msgid "Sales Order Line"
+msgstr "Línea de pedido de venta"
+
+#. module: sale_timesheet_timeline
+#: model:ir.actions.act_window,name:sale_timesheet_timeline.action_sale_order_line_timeline
+msgid "Sales Tasks Planning"
+msgstr "Planificación de tareas de ventas"
+
+#. module: sale_timesheet_timeline
+#: model:ir.model.fields,field_description:sale_timesheet_timeline.field_sale_order_line__task_user_ids
+msgid "Task Assignees"
+msgstr "Asignados a la tarea"
+
+#. module: sale_timesheet_timeline
+#: model:ir.model.fields,field_description:sale_timesheet_timeline.field_sale_order_line__task_date_end
+msgid "Task End"
+msgstr "Fin de tarea"
+
+#. module: sale_timesheet_timeline
+#: model:ir.model.fields,field_description:sale_timesheet_timeline.field_sale_order_line__task_date_start
+msgid "Task Start"
+msgstr "Comienzo de tarea"
+
+#. module: sale_timesheet_timeline
+#: model_terms:ir.ui.view,arch_db:sale_timesheet_timeline.view_sale_order_line_timeline
+msgid "User"
+msgstr "Usuario"
diff --git a/sale_timesheet_timeline/i18n/sale_timesheet_timeline.pot b/sale_timesheet_timeline/i18n/sale_timesheet_timeline.pot
new file mode 100644
index 0000000000..056578782e
--- /dev/null
+++ b/sale_timesheet_timeline/i18n/sale_timesheet_timeline.pot
@@ -0,0 +1,61 @@
+# Translation of Odoo Server.
+# This file contains the translation of the following modules:
+# * sale_timesheet_timeline
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: Odoo Server 16.0\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2024-08-20 19:48+0000\n"
+"PO-Revision-Date: 2024-08-20 19:48+0000\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: sale_timesheet_timeline
+#: model_terms:ir.ui.view,arch_db:sale_timesheet_timeline.view_order_form
+msgid "Planning"
+msgstr ""
+
+#. module: sale_timesheet_timeline
+#: model:ir.model.fields,field_description:sale_timesheet_timeline.field_sale_order__any_service_line
+msgid "Any Service Line"
+msgstr ""
+
+#. module: sale_timesheet_timeline
+#: model:ir.model,name:sale_timesheet_timeline.model_sale_order
+msgid "Sales Order"
+msgstr ""
+
+#. module: sale_timesheet_timeline
+#: model:ir.model,name:sale_timesheet_timeline.model_sale_order_line
+msgid "Sales Order Line"
+msgstr ""
+
+#. module: sale_timesheet_timeline
+#: model:ir.actions.act_window,name:sale_timesheet_timeline.action_sale_order_line_timeline
+msgid "Sales Tasks Planning"
+msgstr ""
+
+#. module: sale_timesheet_timeline
+#: model:ir.model.fields,field_description:sale_timesheet_timeline.field_sale_order_line__task_user_ids
+msgid "Task Assignees"
+msgstr ""
+
+#. module: sale_timesheet_timeline
+#: model:ir.model.fields,field_description:sale_timesheet_timeline.field_sale_order_line__task_date_end
+msgid "Task End"
+msgstr ""
+
+#. module: sale_timesheet_timeline
+#: model:ir.model.fields,field_description:sale_timesheet_timeline.field_sale_order_line__task_date_start
+msgid "Task Start"
+msgstr ""
+
+#. module: sale_timesheet_timeline
+#: model_terms:ir.ui.view,arch_db:sale_timesheet_timeline.view_sale_order_line_timeline
+msgid "User"
+msgstr ""
diff --git a/sale_timesheet_timeline/models/__init__.py b/sale_timesheet_timeline/models/__init__.py
new file mode 100644
index 0000000000..b1ad204bde
--- /dev/null
+++ b/sale_timesheet_timeline/models/__init__.py
@@ -0,0 +1,3 @@
+# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
+
+from . import sale_order
diff --git a/sale_timesheet_timeline/models/sale_order.py b/sale_timesheet_timeline/models/sale_order.py
new file mode 100644
index 0000000000..6958b22f50
--- /dev/null
+++ b/sale_timesheet_timeline/models/sale_order.py
@@ -0,0 +1,42 @@
+# Copyright 2024 Tecnativa - Pedro M. Baeza
+# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
+
+from odoo import Command, fields, models
+
+
+class SaleOrder(models.Model):
+ _inherit = "sale.order"
+
+ any_service_line = fields.Boolean(compute="_compute_any_service_line")
+
+ def _compute_any_service_line(self):
+ for record in self:
+ record.any_service_line = any(
+ [x.product_type == "service" for x in record.order_line]
+ )
+
+
+class SaleOrderLine(models.Model):
+ _inherit = "sale.order.line"
+
+ task_date_start = fields.Datetime("Task Start")
+ task_date_end = fields.Datetime("Task End")
+ task_user_ids = fields.Many2many(
+ comodel_name="res.users",
+ string="Task Assignees",
+ copy=True,
+ context={"active_test": False},
+ domain="[('share', '=', False), ('active', '=', True)]",
+ )
+
+ def _timesheet_create_task_prepare_values(self, project):
+ # Transfer dates and assignees from sales order line
+ res = super()._timesheet_create_task_prepare_values(project)
+ if self.task_date_start:
+ res["planned_date_start"] = self.task_date_start
+ if self.task_date_end:
+ res["planned_date_end"] = self.task_date_end
+ res["date_deadline"] = self.task_date_end
+ if self.task_user_ids:
+ res["user_ids"] = [Command.link(x.id) for x in self.task_user_ids]
+ return res
diff --git a/sale_timesheet_timeline/readme/CONTRIBUTORS.rst b/sale_timesheet_timeline/readme/CONTRIBUTORS.rst
new file mode 100644
index 0000000000..ca5645bacc
--- /dev/null
+++ b/sale_timesheet_timeline/readme/CONTRIBUTORS.rst
@@ -0,0 +1,3 @@
+* `Tecnativa `_:
+
+ * Pedro M. Baeza
diff --git a/sale_timesheet_timeline/readme/DESCRIPTION.rst b/sale_timesheet_timeline/readme/DESCRIPTION.rst
new file mode 100644
index 0000000000..f60f247b74
--- /dev/null
+++ b/sale_timesheet_timeline/readme/DESCRIPTION.rst
@@ -0,0 +1,5 @@
+This module allows to plan in advance the start/end dates and assignees for the sales
+order lines that are services, and they are transferred to the created task (if any)
+when confirming the order.
+
+It includes a timeline view for pre-viewing and managing the planning.
diff --git a/sale_timesheet_timeline/readme/USAGE.rst b/sale_timesheet_timeline/readme/USAGE.rst
new file mode 100644
index 0000000000..a368ad39b5
--- /dev/null
+++ b/sale_timesheet_timeline/readme/USAGE.rst
@@ -0,0 +1,8 @@
+#. Go to Sales > Orders > Quotations
+#. Create a new record.
+#. Add a line with a product of type "Service".
+#. A new smart-button "Planning" will appear.
+#. On optional fields, you will find 3 fields for setting manually the planning data:
+ "Task Start", "Task End" and "Task Assignees".
+#. You can also click on the "Planning" button and plan the dates visually in the
+ timeline view.
diff --git a/sale_timesheet_timeline/static/description/index.html b/sale_timesheet_timeline/static/description/index.html
new file mode 100644
index 0000000000..0c75153071
--- /dev/null
+++ b/sale_timesheet_timeline/static/description/index.html
@@ -0,0 +1,443 @@
+
+
+
+
+
+Dates planning in sales order lines
+
+
+
+
+
Dates planning in sales order lines
+
+
+
+
This module allows to plan in advance the start/end dates and assignees for the sales
+order lines that are services, and they are transferred to the created task (if any)
+when confirming the order.
+
It includes a timeline view for pre-viewing and managing the planning.
Bugs are tracked on GitHub 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.
+
Do not contact contributors directly about support or help with technical issues.
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 project on GitHub.
Bugs are tracked on GitHub 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
@@ -408,15 +416,15 @@
OCA, or the Odoo Community Association, is a nonprofit organization whose
diff --git a/sale_timesheet_timeline/views/sale_portal_templates.xml b/sale_timesheet_timeline/views/sale_portal_templates.xml
new file mode 100644
index 0000000000..d357b76def
--- /dev/null
+++ b/sale_timesheet_timeline/views/sale_portal_templates.xml
@@ -0,0 +1,72 @@
+
+
+
+
+
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
-!! source digest: sha256:8e9d8f28eaf13681b5d90efd20e8c336813f849dc5e60543e3cf6e9f83637e3d
+!! source digest: sha256:8f9fea88f3275fcbe5a535f86aaff7a8ef2f645719f47dd5bbd4c6523269b371
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
This module allows to plan in advance the start/end dates and assignees for the sales
@@ -438,7 +439,9 @@
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.
From 4138f2fe2500ae5da16fd4591ae750f13338b2bd Mon Sep 17 00:00:00 2001
From: mymage
Date: Thu, 10 Oct 2024 19:57:41 +0000
Subject: [PATCH 4/6] Added translation using Weblate (Italian)
---
sale_timesheet_timeline/i18n/it.po | 87 ++++++++++++++++++++++++++++++
1 file changed, 87 insertions(+)
create mode 100644 sale_timesheet_timeline/i18n/it.po
diff --git a/sale_timesheet_timeline/i18n/it.po b/sale_timesheet_timeline/i18n/it.po
new file mode 100644
index 0000000000..4ea2baa81a
--- /dev/null
+++ b/sale_timesheet_timeline/i18n/it.po
@@ -0,0 +1,87 @@
+# Translation of Odoo Server.
+# This file contains the translation of the following modules:
+# * sale_timesheet_timeline
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: Odoo Server 16.0\n"
+"Report-Msgid-Bugs-To: \n"
+"PO-Revision-Date: 2024-10-14 09:06+0000\n"
+"Last-Translator: mymage \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 5.6.2\n"
+
+#. module: sale_timesheet_timeline
+#: model_terms:ir.ui.view,arch_db:sale_timesheet_timeline.view_order_form
+msgid "Planning"
+msgstr "Pianificazione"
+
+#. module: sale_timesheet_timeline
+#: model:ir.model.fields,field_description:sale_timesheet_timeline.field_sale_order__any_service_line
+msgid "Any Service Line"
+msgstr "Ogni riga servizio"
+
+#. module: sale_timesheet_timeline
+#: model_terms:ir.ui.view,arch_db:sale_timesheet_timeline.sale_order_portal_content
+msgid "Assignees"
+msgstr "Assegnatari"
+
+#. module: sale_timesheet_timeline
+#: model_terms:ir.ui.view,arch_db:sale_timesheet_timeline.sale_order_portal_content
+msgid "End"
+msgstr "Fine"
+
+#. module: sale_timesheet_timeline
+#: model_terms:ir.ui.view,arch_db:sale_timesheet_timeline.sale_order_portal_content
+msgid "Planning"
+msgstr "Pianificazione"
+
+#. module: sale_timesheet_timeline
+#: model:ir.model,name:sale_timesheet_timeline.model_sale_order
+msgid "Sales Order"
+msgstr "Ordine di vendita"
+
+#. module: sale_timesheet_timeline
+#: model:ir.model,name:sale_timesheet_timeline.model_sale_order_line
+msgid "Sales Order Line"
+msgstr "Riga ordine di vendita"
+
+#. module: sale_timesheet_timeline
+#: model:ir.actions.act_window,name:sale_timesheet_timeline.action_sale_order_line_timeline
+msgid "Sales Tasks Planning"
+msgstr "Pianificazione attività vendite"
+
+#. module: sale_timesheet_timeline
+#: model_terms:ir.ui.view,arch_db:sale_timesheet_timeline.sale_order_portal_content
+msgid "Start"
+msgstr "Avvio"
+
+#. module: sale_timesheet_timeline
+#: model_terms:ir.ui.view,arch_db:sale_timesheet_timeline.sale_order_portal_content
+msgid "Task"
+msgstr "Attività"
+
+#. module: sale_timesheet_timeline
+#: model:ir.model.fields,field_description:sale_timesheet_timeline.field_sale_order_line__task_user_ids
+msgid "Task Assignees"
+msgstr "Assegnatario attività"
+
+#. module: sale_timesheet_timeline
+#: model:ir.model.fields,field_description:sale_timesheet_timeline.field_sale_order_line__task_date_end
+msgid "Task End"
+msgstr "Fine attività"
+
+#. module: sale_timesheet_timeline
+#: model:ir.model.fields,field_description:sale_timesheet_timeline.field_sale_order_line__task_date_start
+msgid "Task Start"
+msgstr "Inizio attività"
+
+#. module: sale_timesheet_timeline
+#: model_terms:ir.ui.view,arch_db:sale_timesheet_timeline.view_sale_order_line_timeline
+msgid "User"
+msgstr "Utente"
From f7b02fd4d7e206fbffc581614235d17ab546e42d Mon Sep 17 00:00:00 2001
From: Carlos Lopez
Date: Sat, 16 Nov 2024 11:21:08 -0500
Subject: [PATCH 5/6] [IMP] sale_timesheet_timeline: pre-commit stuff
---
sale_timesheet_timeline/README.rst | 44 +++++++++----------
sale_timesheet_timeline/pyproject.toml | 3 ++
.../readme/CONTRIBUTORS.md | 3 ++
.../readme/CONTRIBUTORS.rst | 3 --
.../{DESCRIPTION.rst => DESCRIPTION.md} | 6 +--
.../readme/{ROADMAP.rst => ROADMAP.md} | 0
sale_timesheet_timeline/readme/USAGE.md | 8 ++++
sale_timesheet_timeline/readme/USAGE.rst | 8 ----
.../static/description/index.html | 20 ++++-----
9 files changed, 49 insertions(+), 46 deletions(-)
create mode 100644 sale_timesheet_timeline/pyproject.toml
create mode 100644 sale_timesheet_timeline/readme/CONTRIBUTORS.md
delete mode 100644 sale_timesheet_timeline/readme/CONTRIBUTORS.rst
rename sale_timesheet_timeline/readme/{DESCRIPTION.rst => DESCRIPTION.md} (59%)
rename sale_timesheet_timeline/readme/{ROADMAP.rst => ROADMAP.md} (100%)
create mode 100644 sale_timesheet_timeline/readme/USAGE.md
delete mode 100644 sale_timesheet_timeline/readme/USAGE.rst
diff --git a/sale_timesheet_timeline/README.rst b/sale_timesheet_timeline/README.rst
index 146794cc20..58168d3e9c 100644
--- a/sale_timesheet_timeline/README.rst
+++ b/sale_timesheet_timeline/README.rst
@@ -17,20 +17,20 @@ Dates planning in sales order lines
: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/sale_timesheet_timeline
+ :target: https://github.com/OCA/timesheet/tree/17.0/sale_timesheet_timeline
: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-sale_timesheet_timeline
+ :target: https://translation.odoo-community.org/projects/timesheet-17-0/timesheet-17-0-sale_timesheet_timeline
: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
+ :target: https://runboat.odoo-community.org/builds?repo=OCA/timesheet&target_branch=17.0
:alt: Try me on Runboat
|badge1| |badge2| |badge3| |badge4| |badge5|
-This module allows to plan in advance the start/end dates and assignees for the sales
-order lines that are services, and they are transferred to the created task (if any)
-when confirming the order.
+This module allows to plan in advance the start/end dates and assignees
+for the sales order lines that are services, and they are transferred to
+the created task (if any) when confirming the order.
It includes a timeline view for pre-viewing and managing the planning.
@@ -44,19 +44,19 @@ In addition, this planning is shown in the order portal view.
Usage
=====
-#. Go to Sales > Orders > Quotations
-#. Create a new record.
-#. Add a line with a product of type "Service".
-#. A new smart-button "Planning" will appear.
-#. On optional fields, you will find 3 fields for setting manually the planning data:
- "Task Start", "Task End" and "Task Assignees".
-#. You can also click on the "Planning" button and plan the dates visually in the
- timeline view.
+1. Go to Sales > Orders > Quotations
+2. Create a new record.
+3. Add a line with a product of type "Service".
+4. A new smart-button "Planning" will appear.
+5. On optional fields, you will find 3 fields for setting manually the
+ planning data: "Task Start", "Task End" and "Task Assignees".
+6. You can also click on the "Planning" button and plan the dates
+ visually in the timeline view.
Known issues / Roadmap
======================
-- Timeline visualization in portal.
+- Timeline visualization in portal.
Bug Tracker
===========
@@ -64,7 +64,7 @@ Bug Tracker
Bugs are tracked on `GitHub 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 `_.
+`feedback `_.
Do not contact contributors directly about support or help with technical issues.
@@ -72,19 +72,19 @@ Credits
=======
Authors
-~~~~~~~
+-------
* Tecnativa
Contributors
-~~~~~~~~~~~~
+------------
-* `Tecnativa `_:
+- `Tecnativa `__:
- * Pedro M. Baeza
+ - Pedro M. Baeza
Maintainers
-~~~~~~~~~~~
+-----------
This module is maintained by the OCA.
@@ -96,6 +96,6 @@ 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 `_ project on GitHub.
+This module is part of the `OCA/timesheet `_ project on GitHub.
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
diff --git a/sale_timesheet_timeline/pyproject.toml b/sale_timesheet_timeline/pyproject.toml
new file mode 100644
index 0000000000..4231d0cccb
--- /dev/null
+++ b/sale_timesheet_timeline/pyproject.toml
@@ -0,0 +1,3 @@
+[build-system]
+requires = ["whool"]
+build-backend = "whool.buildapi"
diff --git a/sale_timesheet_timeline/readme/CONTRIBUTORS.md b/sale_timesheet_timeline/readme/CONTRIBUTORS.md
new file mode 100644
index 0000000000..a9bd1355a4
--- /dev/null
+++ b/sale_timesheet_timeline/readme/CONTRIBUTORS.md
@@ -0,0 +1,3 @@
+- [Tecnativa](https://www.tecnativa.com):
+
+ > - Pedro M. Baeza
diff --git a/sale_timesheet_timeline/readme/CONTRIBUTORS.rst b/sale_timesheet_timeline/readme/CONTRIBUTORS.rst
deleted file mode 100644
index ca5645bacc..0000000000
--- a/sale_timesheet_timeline/readme/CONTRIBUTORS.rst
+++ /dev/null
@@ -1,3 +0,0 @@
-* `Tecnativa `_:
-
- * Pedro M. Baeza
diff --git a/sale_timesheet_timeline/readme/DESCRIPTION.rst b/sale_timesheet_timeline/readme/DESCRIPTION.md
similarity index 59%
rename from sale_timesheet_timeline/readme/DESCRIPTION.rst
rename to sale_timesheet_timeline/readme/DESCRIPTION.md
index 7df014b161..7fee0964fe 100644
--- a/sale_timesheet_timeline/readme/DESCRIPTION.rst
+++ b/sale_timesheet_timeline/readme/DESCRIPTION.md
@@ -1,6 +1,6 @@
-This module allows to plan in advance the start/end dates and assignees for the sales
-order lines that are services, and they are transferred to the created task (if any)
-when confirming the order.
+This module allows to plan in advance the start/end dates and assignees
+for the sales order lines that are services, and they are transferred to
+the created task (if any) when confirming the order.
It includes a timeline view for pre-viewing and managing the planning.
diff --git a/sale_timesheet_timeline/readme/ROADMAP.rst b/sale_timesheet_timeline/readme/ROADMAP.md
similarity index 100%
rename from sale_timesheet_timeline/readme/ROADMAP.rst
rename to sale_timesheet_timeline/readme/ROADMAP.md
diff --git a/sale_timesheet_timeline/readme/USAGE.md b/sale_timesheet_timeline/readme/USAGE.md
new file mode 100644
index 0000000000..6136fd1e77
--- /dev/null
+++ b/sale_timesheet_timeline/readme/USAGE.md
@@ -0,0 +1,8 @@
+1. Go to Sales \> Orders \> Quotations
+2. Create a new record.
+3. Add a line with a product of type "Service".
+4. A new smart-button "Planning" will appear.
+5. On optional fields, you will find 3 fields for setting manually the
+ planning data: "Task Start", "Task End" and "Task Assignees".
+6. You can also click on the "Planning" button and plan the dates
+ visually in the timeline view.
diff --git a/sale_timesheet_timeline/readme/USAGE.rst b/sale_timesheet_timeline/readme/USAGE.rst
deleted file mode 100644
index a368ad39b5..0000000000
--- a/sale_timesheet_timeline/readme/USAGE.rst
+++ /dev/null
@@ -1,8 +0,0 @@
-#. Go to Sales > Orders > Quotations
-#. Create a new record.
-#. Add a line with a product of type "Service".
-#. A new smart-button "Planning" will appear.
-#. On optional fields, you will find 3 fields for setting manually the planning data:
- "Task Start", "Task End" and "Task Assignees".
-#. You can also click on the "Planning" button and plan the dates visually in the
- timeline view.
diff --git a/sale_timesheet_timeline/static/description/index.html b/sale_timesheet_timeline/static/description/index.html
index ac26b7e57d..203193a63c 100644
--- a/sale_timesheet_timeline/static/description/index.html
+++ b/sale_timesheet_timeline/static/description/index.html
@@ -369,10 +369,10 @@
This module allows to plan in advance the start/end dates and assignees for the sales
-order lines that are services, and they are transferred to the created task (if any)
-when confirming the order.
+
+
This module allows to plan in advance the start/end dates and assignees
+for the sales order lines that are services, and they are transferred to
+the created task (if any) when confirming the order.
It includes a timeline view for pre-viewing and managing the planning.
In addition, this planning is shown in the order portal view.
Bugs are tracked on GitHub 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.
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 project on GitHub.
+
This module is part of the OCA/timesheet project on GitHub.