From f05b170de9d98fd23199f1dbea8ce3ca3232ce58 Mon Sep 17 00:00:00 2001
From: pilarvargas-tecnativa
Date: Wed, 21 Aug 2024 09:05:21 +0200
Subject: [PATCH] [IMP] sale_timesheet_timeline: Add table to order portal view
TT50569
---
sale_timesheet_timeline/README.rst | 3 +
sale_timesheet_timeline/__manifest__.py | 2 +-
sale_timesheet_timeline/i18n/es.po | 33 ++++++++-
.../i18n/sale_timesheet_timeline.pot | 29 +++++++-
.../readme/DESCRIPTION.rst | 2 +
sale_timesheet_timeline/readme/USAGE.rst | 1 +
.../static/description/index.html | 2 +
.../views/sale_portal_templates.xml | 67 +++++++++++++++++++
8 files changed, 133 insertions(+), 6 deletions(-)
create mode 100644 sale_timesheet_timeline/views/sale_portal_templates.xml
diff --git a/sale_timesheet_timeline/README.rst b/sale_timesheet_timeline/README.rst
index 11a801d0b..ae5663a21 100644
--- a/sale_timesheet_timeline/README.rst
+++ b/sale_timesheet_timeline/README.rst
@@ -34,6 +34,8 @@ when confirming the order.
It includes a timeline view for pre-viewing and managing the planning.
+In addition this planning can be consulted in the order view from the portal.
+
**Table of contents**
.. contents::
@@ -50,6 +52,7 @@ Usage
"Task Start", "Task End" and "Task Assignees".
#. You can also click on the "Planning" button and plan the dates visually in the
timeline view.
+#. Finally, when the order is confirmed, if this planning has been established, it can be viewed from the portal in the planning section.
Bug Tracker
===========
diff --git a/sale_timesheet_timeline/__manifest__.py b/sale_timesheet_timeline/__manifest__.py
index b0a1d98e1..c6ed2da8e 100644
--- a/sale_timesheet_timeline/__manifest__.py
+++ b/sale_timesheet_timeline/__manifest__.py
@@ -11,5 +11,5 @@
"installable": True,
"application": False,
"depends": ["sale_timesheet", "project_timeline"],
- "data": ["views/sale_order_views.xml"],
+ "data": ["views/sale_order_views.xml", "views/sale_portal_templates.xml"],
}
diff --git a/sale_timesheet_timeline/i18n/es.po b/sale_timesheet_timeline/i18n/es.po
index d238dfbca..be65e7c06 100644
--- a/sale_timesheet_timeline/i18n/es.po
+++ b/sale_timesheet_timeline/i18n/es.po
@@ -6,14 +6,16 @@ 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"
+"POT-Creation-Date: 2024-08-21 07:09+0000\n"
+"PO-Revision-Date: 2024-08-21 09:11+0200\n"
"Last-Translator: \n"
"Language-Team: \n"
+"Language: es\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: \n"
+"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: \n"
+"X-Generator: Poedit 3.0.1\n"
#. module: sale_timesheet_timeline
#: model_terms:ir.ui.view,arch_db:sale_timesheet_timeline.view_order_form
@@ -25,6 +27,21 @@ msgstr "Planificación"
msgid "Any Service Line"
msgstr "Cualquier línea de servicio"
+#. module: sale_timesheet_timeline
+#: model_terms:ir.ui.view,arch_db:sale_timesheet_timeline.sale_order_portal_content
+msgid "Assignees"
+msgstr "Asignados"
+
+#. module: sale_timesheet_timeline
+#: model_terms:ir.ui.view,arch_db:sale_timesheet_timeline.sale_order_portal_content
+msgid "End"
+msgstr "Fin"
+
+#. module: sale_timesheet_timeline
+#: model_terms:ir.ui.view,arch_db:sale_timesheet_timeline.sale_order_portal_content
+msgid "Planning"
+msgstr "Planificación"
+
#. module: sale_timesheet_timeline
#: model:ir.model,name:sale_timesheet_timeline.model_sale_order
msgid "Sales Order"
@@ -40,6 +57,16 @@ msgstr "Línea de pedido de venta"
msgid "Sales Tasks Planning"
msgstr "Planificación de tareas de ventas"
+#. module: sale_timesheet_timeline
+#: model_terms:ir.ui.view,arch_db:sale_timesheet_timeline.sale_order_portal_content
+msgid "Start"
+msgstr "Inicio"
+
+#. module: sale_timesheet_timeline
+#: model_terms:ir.ui.view,arch_db:sale_timesheet_timeline.sale_order_portal_content
+msgid "Task"
+msgstr "Tarea"
+
#. module: sale_timesheet_timeline
#: model:ir.model.fields,field_description:sale_timesheet_timeline.field_sale_order_line__task_user_ids
msgid "Task Assignees"
diff --git a/sale_timesheet_timeline/i18n/sale_timesheet_timeline.pot b/sale_timesheet_timeline/i18n/sale_timesheet_timeline.pot
index 056578782..389dc2b8c 100644
--- a/sale_timesheet_timeline/i18n/sale_timesheet_timeline.pot
+++ b/sale_timesheet_timeline/i18n/sale_timesheet_timeline.pot
@@ -6,8 +6,8 @@ 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"
+"POT-Creation-Date: 2024-08-21 07:09+0000\n"
+"PO-Revision-Date: 2024-08-21 07:09+0000\n"
"Last-Translator: \n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
@@ -25,6 +25,21 @@ msgstr ""
msgid "Any Service Line"
msgstr ""
+#. module: sale_timesheet_timeline
+#: model_terms:ir.ui.view,arch_db:sale_timesheet_timeline.sale_order_portal_content
+msgid "Assignees"
+msgstr ""
+
+#. module: sale_timesheet_timeline
+#: model_terms:ir.ui.view,arch_db:sale_timesheet_timeline.sale_order_portal_content
+msgid "End"
+msgstr ""
+
+#. module: sale_timesheet_timeline
+#: model_terms:ir.ui.view,arch_db:sale_timesheet_timeline.sale_order_portal_content
+msgid "Planning"
+msgstr ""
+
#. module: sale_timesheet_timeline
#: model:ir.model,name:sale_timesheet_timeline.model_sale_order
msgid "Sales Order"
@@ -40,6 +55,16 @@ msgstr ""
msgid "Sales Tasks Planning"
msgstr ""
+#. module: sale_timesheet_timeline
+#: model_terms:ir.ui.view,arch_db:sale_timesheet_timeline.sale_order_portal_content
+msgid "Start"
+msgstr ""
+
+#. module: sale_timesheet_timeline
+#: model_terms:ir.ui.view,arch_db:sale_timesheet_timeline.sale_order_portal_content
+msgid "Task"
+msgstr ""
+
#. module: sale_timesheet_timeline
#: model:ir.model.fields,field_description:sale_timesheet_timeline.field_sale_order_line__task_user_ids
msgid "Task Assignees"
diff --git a/sale_timesheet_timeline/readme/DESCRIPTION.rst b/sale_timesheet_timeline/readme/DESCRIPTION.rst
index f60f247b7..ad35c628c 100644
--- a/sale_timesheet_timeline/readme/DESCRIPTION.rst
+++ b/sale_timesheet_timeline/readme/DESCRIPTION.rst
@@ -3,3 +3,5 @@ order lines that are services, and they are transferred to the created task (if
when confirming the order.
It includes a timeline view for pre-viewing and managing the planning.
+
+In addition this planning can be consulted in the order view from the portal.
diff --git a/sale_timesheet_timeline/readme/USAGE.rst b/sale_timesheet_timeline/readme/USAGE.rst
index a368ad39b..c1b1e3576 100644
--- a/sale_timesheet_timeline/readme/USAGE.rst
+++ b/sale_timesheet_timeline/readme/USAGE.rst
@@ -6,3 +6,4 @@
"Task Start", "Task End" and "Task Assignees".
#. You can also click on the "Planning" button and plan the dates visually in the
timeline view.
+#. Finally, when the order is confirmed, if this planning has been established, it can be viewed from the portal in the planning section.
diff --git a/sale_timesheet_timeline/static/description/index.html b/sale_timesheet_timeline/static/description/index.html
index 0c7515307..d286db17e 100644
--- a/sale_timesheet_timeline/static/description/index.html
+++ b/sale_timesheet_timeline/static/description/index.html
@@ -373,6 +373,7 @@ Dates planning in sales order lines
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 can be consulted in the order view from the portal.
Table of contents
@@ -397,6 +398,7 @@
“Task Start”, “Task End” and “Task Assignees”.
- You can also click on the “Planning” button and plan the dates visually in the
timeline view.
+- Finally, when the order is confirmed, if this planning has been established, it can be viewed from the portal in the planning section.
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 000000000..575572309
--- /dev/null
+++ b/sale_timesheet_timeline/views/sale_portal_templates.xml
@@ -0,0 +1,67 @@
+
+
+
+
+
+
Planning
+
+
+
+
+ Start |
+ End |
+ Assignees |
+
+
+
+
+
+
+
+
+
+
+ |
+
+
+
+
+ |
+
+
+
+
+ |
+
+
+
+
+ |
+
+
+
+
+
+
+
+
+