mirror of
https://github.com/OCA/stock-logistics-warehouse.git
synced 2025-01-21 14:27:28 +02:00
Merge branch 'stock_available_immediately2' of github.com:Therp/stock-logistics-warehouse into stock_available_immediately2
Conflicts: stock_available_immediately/product.py
This commit is contained in:
@@ -20,10 +20,10 @@
|
||||
##############################################################################
|
||||
|
||||
from openerp.addons import decimal_precision as dp
|
||||
|
||||
from openerp.osv import orm, fields
|
||||
|
||||
|
||||
<<<<<<< HEAD:stock_available_immediately/product.py
|
||||
class ProductTemplate(orm.Model):
|
||||
"""
|
||||
Immediately usable quantity is : real stock - outgoing qty
|
||||
@@ -32,10 +32,7 @@ class ProductTemplate(orm.Model):
|
||||
|
||||
def _product_available(self, cr, uid, ids, field_names=None,
|
||||
arg=False, context=None):
|
||||
"""
|
||||
Get super() _product_available and compute immediately_usable_qty
|
||||
"""
|
||||
res = super(ProductTemplate, self)._product_available(
|
||||
res = super(Product, self)._product_available(
|
||||
cr, uid, ids, field_names, arg, context)
|
||||
|
||||
if 'immediately_usable_qty' in field_names:
|
||||
|
||||
Reference in New Issue
Block a user