From c1e61f49290354f89bfc545fb237253be94673a6 Mon Sep 17 00:00:00 2001 From: Jared Kipe Date: Tue, 1 May 2018 09:54:22 -0700 Subject: [PATCH 1/7] Initial commit `maintenance_purchase_detail` for 11.0 --- maintenance_purchase_detail/README.rst | 26 +++++++++++++++++++ maintenance_purchase_detail/__init__.py | 1 + maintenance_purchase_detail/__manifest__.py | 22 ++++++++++++++++ .../models/__init__.py | 1 + .../models/maintenance.py | 13 ++++++++++ .../views/maintenance_views.xml | 20 ++++++++++++++ 6 files changed, 83 insertions(+) create mode 100644 maintenance_purchase_detail/README.rst create mode 100644 maintenance_purchase_detail/__init__.py create mode 100644 maintenance_purchase_detail/__manifest__.py create mode 100644 maintenance_purchase_detail/models/__init__.py create mode 100644 maintenance_purchase_detail/models/maintenance.py create mode 100644 maintenance_purchase_detail/views/maintenance_views.xml diff --git a/maintenance_purchase_detail/README.rst b/maintenance_purchase_detail/README.rst new file mode 100644 index 00000000..0e081b44 --- /dev/null +++ b/maintenance_purchase_detail/README.rst @@ -0,0 +1,26 @@ +*********************************** +Hibou - Maintenance Purchase Detail +*********************************** + +Record purchase date and details on Equipments. + +For more information and add-ons, visit `Hibou.io `_. + +============= +Main Features +============= + +Adds the following fields to Maintenance Equipment: + +* Purchase Date +* Purchase Condition (dropdown) +* Purchase Note + +Additionally, adds a smart button to archive Equipments. + +======= +License +======= + +Please see `LICENSE `_. +Copyright Hibou Corp. 2018 \ No newline at end of file diff --git a/maintenance_purchase_detail/__init__.py b/maintenance_purchase_detail/__init__.py new file mode 100644 index 00000000..0650744f --- /dev/null +++ b/maintenance_purchase_detail/__init__.py @@ -0,0 +1 @@ +from . import models diff --git a/maintenance_purchase_detail/__manifest__.py b/maintenance_purchase_detail/__manifest__.py new file mode 100644 index 00000000..e688ea32 --- /dev/null +++ b/maintenance_purchase_detail/__manifest__.py @@ -0,0 +1,22 @@ +{ + 'name': 'Equipment Purchase Detail', + 'version': '11.0.1.0.0', + 'author': 'Hibou Corp. ', + 'category': 'Human Resources', + 'summary': 'Record purchase date and details on Equipments.', + 'description': """ +Equipment Purchase Detail +========================= + +Adds fields for purchase date, and condition on the Equipment form. +""", + 'website': 'https://hibou.io/', + 'depends': [ + 'maintenance', + ], + 'data': [ + 'views/maintenance_views.xml', + ], + 'installable': True, + 'auto_install': False, +} diff --git a/maintenance_purchase_detail/models/__init__.py b/maintenance_purchase_detail/models/__init__.py new file mode 100644 index 00000000..12bf298f --- /dev/null +++ b/maintenance_purchase_detail/models/__init__.py @@ -0,0 +1 @@ +from . import maintenance diff --git a/maintenance_purchase_detail/models/maintenance.py b/maintenance_purchase_detail/models/maintenance.py new file mode 100644 index 00000000..cdf73d09 --- /dev/null +++ b/maintenance_purchase_detail/models/maintenance.py @@ -0,0 +1,13 @@ +from odoo import api, fields, models + + +class MaintenanceEquipment(models.Model): + _inherit = 'maintenance.equipment' + + purchase_date = fields.Date(string='Purchase Date') + purchase_condition = fields.Selection([ + ('new', 'New'), + ('used', 'Used'), + ('other', 'Other'), + ], string='Purchase Condition') + purchase_note = fields.Text(string='Purchase Note') diff --git a/maintenance_purchase_detail/views/maintenance_views.xml b/maintenance_purchase_detail/views/maintenance_views.xml new file mode 100644 index 00000000..5a2a9777 --- /dev/null +++ b/maintenance_purchase_detail/views/maintenance_views.xml @@ -0,0 +1,20 @@ + + + + equipment.form.inherited + maintenance.equipment + + + + + + + + + + + + + \ No newline at end of file From 3d9939a6fc6042e885d799c1b0321ba9febc6791 Mon Sep 17 00:00:00 2001 From: Bhoomi Date: Fri, 13 Sep 2019 12:41:33 -0400 Subject: [PATCH 2/7] MIG `maintenance_purchase_detail` For Odoo 12.0 --- maintenance_purchase_detail/__manifest__.py | 2 +- maintenance_purchase_detail/views/maintenance_views.xml | 7 +------ 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/maintenance_purchase_detail/__manifest__.py b/maintenance_purchase_detail/__manifest__.py index e688ea32..79508ba7 100644 --- a/maintenance_purchase_detail/__manifest__.py +++ b/maintenance_purchase_detail/__manifest__.py @@ -1,6 +1,6 @@ { 'name': 'Equipment Purchase Detail', - 'version': '11.0.1.0.0', + 'version': '12.0.1.0.0', 'author': 'Hibou Corp. ', 'category': 'Human Resources', 'summary': 'Record purchase date and details on Equipments.', diff --git a/maintenance_purchase_detail/views/maintenance_views.xml b/maintenance_purchase_detail/views/maintenance_views.xml index 5a2a9777..3a1bab21 100644 --- a/maintenance_purchase_detail/views/maintenance_views.xml +++ b/maintenance_purchase_detail/views/maintenance_views.xml @@ -5,12 +5,7 @@ maintenance.equipment - - - - + From 36ee94f1ef9491837f24fee1cdc2729118ddd199 Mon Sep 17 00:00:00 2001 From: Bhoomi Date: Fri, 13 Sep 2019 17:27:36 -0400 Subject: [PATCH 3/7] MIG `maintenance_purchase_detail` For Odoo 13.0 --- maintenance_purchase_detail/__manifest__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/maintenance_purchase_detail/__manifest__.py b/maintenance_purchase_detail/__manifest__.py index 79508ba7..5d6bce51 100644 --- a/maintenance_purchase_detail/__manifest__.py +++ b/maintenance_purchase_detail/__manifest__.py @@ -1,6 +1,6 @@ { 'name': 'Equipment Purchase Detail', - 'version': '12.0.1.0.0', + 'version': '13.0.1.0.0', 'author': 'Hibou Corp. ', 'category': 'Human Resources', 'summary': 'Record purchase date and details on Equipments.', From 59b330eb3917c77de423fb8b5e6940586dbe4f5c Mon Sep 17 00:00:00 2001 From: Leo Pinedo Date: Tue, 25 Oct 2022 22:22:04 +0000 Subject: [PATCH 4/7] [MIG] maintenance_purchase_detail: to 16 --- maintenance_purchase_detail/__manifest__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/maintenance_purchase_detail/__manifest__.py b/maintenance_purchase_detail/__manifest__.py index 5d6bce51..162ca152 100644 --- a/maintenance_purchase_detail/__manifest__.py +++ b/maintenance_purchase_detail/__manifest__.py @@ -1,6 +1,6 @@ { 'name': 'Equipment Purchase Detail', - 'version': '13.0.1.0.0', + 'version': '16.0.1.0.0', 'author': 'Hibou Corp. ', 'category': 'Human Resources', 'summary': 'Record purchase date and details on Equipments.', From 0e25c066a4cad89c953e148d3c7d39b268ccbd9a Mon Sep 17 00:00:00 2001 From: Juan Pablo Ticse Date: Tue, 31 Oct 2023 22:51:26 +0000 Subject: [PATCH 5/7] [MIG] maitenance_purchase_detail: Module migration --- maintenance_purchase_detail/__manifest__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/maintenance_purchase_detail/__manifest__.py b/maintenance_purchase_detail/__manifest__.py index 162ca152..77a1adde 100644 --- a/maintenance_purchase_detail/__manifest__.py +++ b/maintenance_purchase_detail/__manifest__.py @@ -1,6 +1,6 @@ { 'name': 'Equipment Purchase Detail', - 'version': '16.0.1.0.0', + 'version': '17.0.1.0.0', 'author': 'Hibou Corp. ', 'category': 'Human Resources', 'summary': 'Record purchase date and details on Equipments.', From 4ea56700ea3666d10ab8ae373e46e7b0a42ff0e6 Mon Sep 17 00:00:00 2001 From: Cedric Collins Date: Thu, 16 Nov 2023 00:10:14 +0000 Subject: [PATCH 6/7] Update README.rst --- maintenance_purchase_detail/README.rst | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/maintenance_purchase_detail/README.rst b/maintenance_purchase_detail/README.rst index 0e081b44..94856069 100644 --- a/maintenance_purchase_detail/README.rst +++ b/maintenance_purchase_detail/README.rst @@ -16,11 +16,9 @@ Adds the following fields to Maintenance Equipment: * Purchase Condition (dropdown) * Purchase Note -Additionally, adds a smart button to archive Equipments. - ======= License ======= Please see `LICENSE `_. -Copyright Hibou Corp. 2018 \ No newline at end of file +Copyright Hibou Corp. 2018 From f196066c91e58928cfcdc6a2cf4b7de210c7215b Mon Sep 17 00:00:00 2001 From: Mayank Patel Date: Thu, 24 Oct 2024 12:54:25 +0000 Subject: [PATCH 7/7] [MIG] maintenance_purchase_detail: Migrated to 18.0 H14631 --- maintenance_purchase_detail/__manifest__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/maintenance_purchase_detail/__manifest__.py b/maintenance_purchase_detail/__manifest__.py index 77a1adde..20d331fe 100644 --- a/maintenance_purchase_detail/__manifest__.py +++ b/maintenance_purchase_detail/__manifest__.py @@ -1,6 +1,6 @@ { 'name': 'Equipment Purchase Detail', - 'version': '17.0.1.0.0', + 'version': '18.0.1.0.0', 'author': 'Hibou Corp. ', 'category': 'Human Resources', 'summary': 'Record purchase date and details on Equipments.',