From d6dee6f90dfe0403da5c59bc0685c7324dd11d3e Mon Sep 17 00:00:00 2001 From: gfcapalbo Date: Thu, 2 Jul 2015 18:29:56 +0200 Subject: [PATCH] [DEL] removed references to product.py, not needed anymore, the quant calculations done in product template are fine. --- stock_available_immediately/__init__.py | 2 -- stock_available_immediately/product.py | 33 ------------------------- 2 files changed, 35 deletions(-) delete mode 100644 stock_available_immediately/product.py diff --git a/stock_available_immediately/__init__.py b/stock_available_immediately/__init__.py index 46f811108c70..867607b7d81c 100755 --- a/stock_available_immediately/__init__.py +++ b/stock_available_immediately/__init__.py @@ -17,5 +17,3 @@ # along with this program. If not, see . # ############################################################################## - -from . import product diff --git a/stock_available_immediately/product.py b/stock_available_immediately/product.py deleted file mode 100644 index 491e44d1d19b..000000000000 --- a/stock_available_immediately/product.py +++ /dev/null @@ -1,33 +0,0 @@ -# -*- coding: utf-8 -*- -############################################################################## -# -# Copyright 2010-2012 Camptocamp SA -# Copyright (C) 2011 Akretion Sébastien BEAU -# -# 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 - - -class Product(models.Model): - """Subtract incoming qty from immediately_usable_qty""" - _inherit = 'product.product' - - def _immediately_usable_qty(self): - """Ignore the incoming goods in the quantity available to promise""" - super(Product, self)._immediately_usable_qty() - for product in self: - product.immediately_usable_qty -= product.incoming_qty