Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
  • jenck/service
1 result
Show changes
Commits on Source (2)
......@@ -38,6 +38,22 @@ class stock_location(osv.osv):
'warehouse_id': fields.many2one('stock.warehouse', 'Warehouse')
}
def _product_reserve(self, cr, uid, ids, product_id, product_qty,
context=None, lock=False):
location_id = ids and ids[0] or False
loc_warehouse = self.browse(cr, uid, location_id).warehouse_id
# We extract every location with the same warehouse as the move location
if loc_warehouse:
warehouse_locations_ids = self.search(
cr, uid, [('warehouse_id', '=', loc_warehouse.id)]
)
ids = warehouse_locations_ids or ids
return super(stock_location, self)._product_reserve(
cr, uid, ids, product_id,
product_qty, context=None, lock=False
)
class split_in_production_lot(osv.osv_memory):
_name = "stock.move.split"
......