From d957c80ef1968fd1b1d5245b8cbb929cd07daf6d Mon Sep 17 00:00:00 2001 From: Marcel Savegnago Date: Tue, 7 Jul 2020 23:05:14 -0300 Subject: [PATCH] [IMP] repair_calendar_view: Add repair duration (like maintenance) --- repair_calendar_view/README.rst | 11 ++--------- repair_calendar_view/models/repair.py | 2 ++ repair_calendar_view/readme/CONTRIBUTORS.rst | 1 + repair_calendar_view/readme/CREDITS.rst | 4 ---- repair_calendar_view/views/mrp_repair_view.xml | 3 ++- 5 files changed, 7 insertions(+), 14 deletions(-) delete mode 100644 repair_calendar_view/readme/CREDITS.rst diff --git a/repair_calendar_view/README.rst b/repair_calendar_view/README.rst index 1a1abe4a9..a8920d15f 100644 --- a/repair_calendar_view/README.rst +++ b/repair_calendar_view/README.rst @@ -23,7 +23,7 @@ Repair Calendar View :target: https://runbot.odoo-community.org/runbot/129/12.0 :alt: Try me on Runbot -|badge1| |badge2| |badge3| |badge4| |badge5| +|badge1| |badge2| |badge3| |badge4| |badge5| This Module adds a calendar view for the repair orders @@ -58,14 +58,7 @@ Contributors * Alex Comba * Carlos Jimeno * María Asunción Daza - -Other credits -~~~~~~~~~~~~~ - -Images ------- - -* Odoo Community Association: `Icon `_. +* Marcel Savegnago Maintainers ~~~~~~~~~~~ diff --git a/repair_calendar_view/models/repair.py b/repair_calendar_view/models/repair.py index 39f29126e..e0382e714 100644 --- a/repair_calendar_view/models/repair.py +++ b/repair_calendar_view/models/repair.py @@ -14,3 +14,5 @@ class RepairOrder(models.Model): copy=False, help="Date of the repair, this field " "and user_id defines the calendar") + duration = fields.Float('Repair Duration', + help="Duration in hours and minutes.") diff --git a/repair_calendar_view/readme/CONTRIBUTORS.rst b/repair_calendar_view/readme/CONTRIBUTORS.rst index 3d1e18274..3e204ec79 100644 --- a/repair_calendar_view/readme/CONTRIBUTORS.rst +++ b/repair_calendar_view/readme/CONTRIBUTORS.rst @@ -3,3 +3,4 @@ * Alex Comba * Carlos Jimeno * María Asunción Daza +* Marcel Savegnago diff --git a/repair_calendar_view/readme/CREDITS.rst b/repair_calendar_view/readme/CREDITS.rst deleted file mode 100644 index 9baa7efb9..000000000 --- a/repair_calendar_view/readme/CREDITS.rst +++ /dev/null @@ -1,4 +0,0 @@ -Images ------- - -* Odoo Community Association: `Icon `_. diff --git a/repair_calendar_view/views/mrp_repair_view.xml b/repair_calendar_view/views/mrp_repair_view.xml index e229116c1..1f253c68e 100644 --- a/repair_calendar_view/views/mrp_repair_view.xml +++ b/repair_calendar_view/views/mrp_repair_view.xml @@ -7,6 +7,7 @@ + @@ -18,7 +19,7 @@ Repair Orders Calendar repair.order - +