From 532b9cb53c427870274a7867634568351fa77edf Mon Sep 17 00:00:00 2001 From: Alexis de Lattre Date: Thu, 10 Apr 2014 12:44:43 +0200 Subject: [PATCH] Remove the module sale_auto_order_policy, which was in fact useless because the feature was native ! --- sale_auto_order_policy/__init__.py | 23 -------------- sale_auto_order_policy/__openerp__.py | 45 --------------------------- sale_auto_order_policy/sale.py | 35 --------------------- 3 files changed, 103 deletions(-) delete mode 100644 sale_auto_order_policy/__init__.py delete mode 100644 sale_auto_order_policy/__openerp__.py delete mode 100644 sale_auto_order_policy/sale.py diff --git a/sale_auto_order_policy/__init__.py b/sale_auto_order_policy/__init__.py deleted file mode 100644 index 165a7d6..0000000 --- a/sale_auto_order_policy/__init__.py +++ /dev/null @@ -1,23 +0,0 @@ -# -*- encoding: utf-8 -*- -############################################################################## -# -# Sale Auto Order Policy module for OpenERP -# Copyright (C) 2013 Akretion (http://www.akretion.com) -# @author Alexis de Lattre -# -# 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_auto_order_policy/__openerp__.py b/sale_auto_order_policy/__openerp__.py deleted file mode 100644 index c0c3c5c..0000000 --- a/sale_auto_order_policy/__openerp__.py +++ /dev/null @@ -1,45 +0,0 @@ -# -*- encoding: utf-8 -*- -############################################################################## -# -# Sale Auto Order Policy module for OpenERP -# Copyright (C) 2013 Akretion (http://www.akretion.com) -# @author Alexis de Lattre -# -# 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 . -# -############################################################################## - - -{ - 'name': 'Sale Auto Order Policy', - 'version': '0.1', - 'category': 'Sales Management', - 'license': 'AGPL-3', - 'summary': "Order Policy = 'On Delivery Order' by default", - 'description': """ -Sale Auto Order Policy -====================== - -With this module, the Order Policy on Quotations is set to 'On Delivery Order' by default. If the Quotation only contains service lines, the Order Policy is switched to 'On Demand' when the Quotation is confirmed (native feature). - -Please contact Alexis de Lattre from Akretion for any help or question about this module. - """, - 'author': 'Akretion', - 'website': 'http://www.akretion.com', - 'depends': ['sale', 'stock'], - 'data': [], - 'images': [], - 'installable': True, - 'active': False, -} diff --git a/sale_auto_order_policy/sale.py b/sale_auto_order_policy/sale.py deleted file mode 100644 index ab52da1..0000000 --- a/sale_auto_order_policy/sale.py +++ /dev/null @@ -1,35 +0,0 @@ -# -*- encoding: utf-8 -*- -############################################################################## -# -# Sale Auto Order Policy module for OpenERP -# Copyright (C) 2013 Akretion (http://www.akretion.com) -# @author Alexis de Lattre -# -# 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.osv import orm - - -class sale_order(orm.Model): - _inherit = 'sale.order' - - _defaults = { - 'order_policy': 'picking', - } - - # The function action_wait in sale_stock/sale_stock.py line 224 - # ensures that the order_policy switches to 'manual' when - # we only have services in the order