From 6153e70192037ac5e463e9e47f469577027cf51f Mon Sep 17 00:00:00 2001 From: "Serpent Consulting Services Pvt. Ltd" Date: Fri, 29 Jan 2016 19:40:53 +0530 Subject: [PATCH 01/13] [MIG] Migrated __init__ file --- sale_cancel_reason/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sale_cancel_reason/__init__.py b/sale_cancel_reason/__init__.py index fc574f3cfee..c848f7539b4 100644 --- a/sale_cancel_reason/__init__.py +++ b/sale_cancel_reason/__init__.py @@ -3,6 +3,7 @@ # # Author: Guewen Baconnier # Copyright 2013 Camptocamp SA +# Copyright 2016 Serpent Consulting Services Pvt. Ltd. # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as @@ -20,4 +21,4 @@ # from . import wizard -from . import model +from . import models From 75ea3148d5a737535b01a06e9c50880ee7907cf9 Mon Sep 17 00:00:00 2001 From: "Serpent Consulting Services Pvt. Ltd" Date: Fri, 29 Jan 2016 19:41:54 +0530 Subject: [PATCH 02/13] [MIG] Migrated __openerp__ file --- sale_cancel_reason/__openerp__.py | 40 ++++++++++++++++--------------- 1 file changed, 21 insertions(+), 19 deletions(-) diff --git a/sale_cancel_reason/__openerp__.py b/sale_cancel_reason/__openerp__.py index aac0bbbe86d..c424f43f156 100644 --- a/sale_cancel_reason/__openerp__.py +++ b/sale_cancel_reason/__openerp__.py @@ -3,6 +3,7 @@ # # Author: Guewen Baconnier # Copyright 2013 Camptocamp SA +# Copyright 2016 Serpent Consulting Services Pvt. Ltd. # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as @@ -19,15 +20,17 @@ # # -{'name': 'Sale Cancel Reason', - 'version': '8.0.1.1', - 'author': "Camptocamp,Odoo Community Association (OCA)", - 'category': 'Sale', - 'license': 'AGPL-3', - 'complexity': 'normal', - 'images': [], - 'website': "http://www.camptocamp.com", - 'description': """ +{ + 'name': 'Sale Cancel Reason', + 'version': '9.0.1.0.0', + 'author': 'Camptocamp, Odoo Community Association (OCA),' + ', Serpent Consulting Services Pvt. Ltd.', + 'category': 'Sale', + 'license': 'AGPL-3', + 'complexity': 'normal', + 'images': [], + 'website': "http://www.camptocamp.com", + 'description': """ Sale Cancel Reason ================== @@ -35,16 +38,15 @@ it is chosen from a configured list. """, - 'depends': ['sale', + 'depends': ['sale'], + 'demo': [], + 'data': ['wizard/cancel_reason_view.xml', + 'views/sale_view.xml', + 'security/ir.model.access.csv', + 'data/sale_order_cancel_reason.xml', ], - 'demo': [], - 'data': ['wizard/cancel_reason_view.xml', - 'view/sale_view.xml', - 'security/ir.model.access.csv', - 'data/sale_order_cancel_reason.xml', - ], + 'test': ['test/sale_order_cancel.yml',], + 'installable': True, + 'application': True, 'auto_install': False, - 'test': ['test/sale_order_cancel.yml', - ], - 'installable': False, } From 08a73398a27560b413d24faf8bf225b04b452393 Mon Sep 17 00:00:00 2001 From: "Serpent Consulting Services Pvt. Ltd" Date: Fri, 29 Jan 2016 19:42:31 +0530 Subject: [PATCH 03/13] [MIG] xml converted --- sale_cancel_reason/data/sale_order_cancel_reason.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sale_cancel_reason/data/sale_order_cancel_reason.xml b/sale_cancel_reason/data/sale_order_cancel_reason.xml index d827099e79d..5fb93628c16 100644 --- a/sale_cancel_reason/data/sale_order_cancel_reason.xml +++ b/sale_cancel_reason/data/sale_order_cancel_reason.xml @@ -1,5 +1,5 @@ - + Just for Quotation @@ -11,4 +11,4 @@ Other Service Provider selected - + From 51372824199db837a039cd98f357efb8d68a85bf Mon Sep 17 00:00:00 2001 From: "Serpent Consulting Services Pvt. Ltd" Date: Fri, 29 Jan 2016 19:59:35 +0530 Subject: [PATCH 04/13] [MIG] Module migrated to v9 --- sale_cancel_reason/model/__init__.py | 22 ------- sale_cancel_reason/model/sale.py | 39 ----------- sale_cancel_reason/view/sale_view.xml | 65 ------------------- sale_cancel_reason/wizard/__init__.py | 1 + sale_cancel_reason/wizard/cancel_reason.py | 10 +-- .../wizard/cancel_reason_view.xml | 4 +- 6 files changed, 9 insertions(+), 132 deletions(-) delete mode 100644 sale_cancel_reason/model/__init__.py delete mode 100644 sale_cancel_reason/model/sale.py delete mode 100644 sale_cancel_reason/view/sale_view.xml diff --git a/sale_cancel_reason/model/__init__.py b/sale_cancel_reason/model/__init__.py deleted file mode 100644 index d5d7f376f0f..00000000000 --- a/sale_cancel_reason/model/__init__.py +++ /dev/null @@ -1,22 +0,0 @@ -# -*- coding: utf-8 -*- -# -# -# Author: Guewen Baconnier -# Copyright 2013 Camptocamp SA -# -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU Affero General Public License as -# published by the Free Software Foundation, either version 3 of the -# License, or (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU Affero General Public License for more details. -# -# You should have received a copy of the GNU Affero General Public License -# along with this program. If not, see . -# -# - -from . import sale diff --git a/sale_cancel_reason/model/sale.py b/sale_cancel_reason/model/sale.py deleted file mode 100644 index aca8796b4fa..00000000000 --- a/sale_cancel_reason/model/sale.py +++ /dev/null @@ -1,39 +0,0 @@ -# -*- coding: utf-8 -*- -# -# -# Author: Guewen Baconnier -# Copyright 2013 Camptocamp SA -# -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU Affero General Public License as -# published by the Free Software Foundation, either version 3 of the -# License, or (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU Affero General Public License for more details. -# -# You should have received a copy of the GNU Affero General Public License -# along with this program. If not, see . -# -# - -from openerp import models, fields - - -class SaleOrder(models.Model): - _inherit = 'sale.order' - - cancel_reason_id = fields.Many2one( - 'sale.order.cancel.reason', - string="Reason for cancellation", - readonly=True, - ondelete="restrict") - - -class SaleOrderCancelReason(models.Model): - _name = 'sale.order.cancel.reason' - _description = 'Sale Order Cancel Reason' - - name = fields.Char('Reason', required=True, translate=True) diff --git a/sale_cancel_reason/view/sale_view.xml b/sale_cancel_reason/view/sale_view.xml deleted file mode 100644 index 5b80b8775ce..00000000000 --- a/sale_cancel_reason/view/sale_view.xml +++ /dev/null @@ -1,65 +0,0 @@ - - - - - sale.order.form - sale.order - - - - True - - -