← Back to team overview

openerp-community-reviewer team mailing list archive

lp:~acsone-openerp/stock-logistic-warehouse/7.0-port-stock_available_immediately into lp:stock-logistic-warehouse

 

Laurent Mignon (Acsone) has proposed merging lp:~acsone-openerp/stock-logistic-warehouse/7.0-port-stock_available_immediately into lp:stock-logistic-warehouse.

Requested reviews:
  Stock and Logistic Core Editors (stock-logistic-core-editors)

For more details, see:
https://code.launchpad.net/~acsone-openerp/stock-logistic-warehouse/7.0-port-stock_available_immediately/+merge/202857

7.0 compliant
-- 
https://code.launchpad.net/~acsone-openerp/stock-logistic-warehouse/7.0-port-stock_available_immediately/+merge/202857
Your team Stock and Logistic Core Editors is requested to review the proposed merge of lp:~acsone-openerp/stock-logistic-warehouse/7.0-port-stock_available_immediately into lp:stock-logistic-warehouse.
=== modified file 'stock_available_immediately/__openerp__.py'
--- stock_available_immediately/__openerp__.py	2013-02-13 08:46:41 +0000
+++ stock_available_immediately/__openerp__.py	2014-01-23 13:17:23 +0000
@@ -1,5 +1,5 @@
 # -*- coding: utf-8 -*-
-##############################################################################
+#
 #
 #    Author: Guewen Baconnier
 #    Copyright 2010-2012 Camptocamp SA
@@ -18,24 +18,24 @@
 #    You should have received a copy of the GNU Affero General Public License
 #    along with this program.  If not, see <http://www.gnu.org/licenses/>.
 #
-##############################################################################
+#
 
 
 {
-	"name" : "Immediately Usable Stock Quantity",
-	"version" : "1.0",
-	"depends" : ["product", "stock", ],
-	"author" : "Camptocamp",
+    "name": "Immediately Usable Stock Quantity",
+    "version": "1.0",
+    "depends": ["product", "stock", ],
+    "author": "Camptocamp",
     "license": "AGPL-3",
-	"description": """
+    "description": """
 Compute the immediately usable stock.
 Immediately usable is computed : Quantity on Hand - Outgoing Stock.
 """,
-	"website" : "http://tinyerp.com/module_account.html";,
-	"category" : "Generic Modules/Stock",
-	"init_xml" : [],
-	"demo_xml" : [],
-	"update_xml" : ["product_view.xml", ],
-	"active": False,
-	"installable": False
+    "website": "http://tinyerp.com/module_account.html";,
+    "category": "Generic Modules/Stock",
+    "init_xml": [],
+    "demo_xml": [],
+    "update_xml": ["product_view.xml", ],
+    "active": False,
+    "installable": True
 }

=== modified file 'stock_available_immediately/product.py'
--- stock_available_immediately/product.py	2012-03-14 15:36:38 +0000
+++ stock_available_immediately/product.py	2014-01-23 13:17:23 +0000
@@ -21,10 +21,10 @@
 
 import decimal_precision as dp
 
-from osv import fields, osv
-
-
-class ProductImmediatelyUsable(osv.osv):
+from openerp.osv import orm, fields
+
+
+class product_immediately_usable(orm.Model):
     """
     Inherit Product in order to add an "immediately usable quantity"
     stock field
@@ -49,7 +49,7 @@
             field_names.append('qty_available')
             field_names.append('outgoing_qty')
 
-        res = super(ProductImmediatelyUsable, self)._product_available(
+        res = super(product_immediately_usable, self)._product_available(
             cr, uid, ids, field_names, arg, context)
 
         if 'immediately_usable_qty' in field_names:
@@ -141,4 +141,4 @@
                  "Computed as: Quantity On Hand - Outgoing."),
     }
 
-ProductImmediatelyUsable()
+product_immediately_usable()

=== modified file 'stock_available_immediately/product_view.xml'
--- stock_available_immediately/product_view.xml	2012-04-24 08:53:45 +0000
+++ stock_available_immediately/product_view.xml	2014-01-23 13:17:23 +0000
@@ -13,7 +13,7 @@
             <field name="name">product.normal.stock.active.qty.form.inherit</field>
             <field name="model">product.product</field>
             <field name="type">form</field>
-            <field name="inherit_id" ref="stock.view_normal_stock_property_form"/>
+            <field name="inherit_id" ref="stock.view_normal_procurement_locations_form"/>
             <field name="arch" type="xml">
                 <field name="virtual_available" position="after">
                     <newline/>


Follow ups