← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 692123] Re: Check Product Qty Available on Sale Order Line BUG

 

Hello,

Our R&D Teams are focused on the latest OpenERP version, and this issue does not affect it.
It can always be reopened later when we consider new features for future roadmaps.
You can post blueprint for this issue.

Thanks for understanding.

** Changed in: openobject-addons
   Importance: Undecided => Wishlist

** Changed in: openobject-addons
       Status: New => Won't Fix

-- 
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/692123

Title:
  Check Product Qty Available on Sale Order Line BUG

Status in OpenObject Addons Modules:
  Won't Fix

Bug description:
  I want to check my available product quantity from only my shop. But now OpenERP check from all available shops.

Is this a BUG?

i think it must be set shop_id in context param.
addons/sale/sale.py line 985 : product_id_change :

996      context = {'lang': lang, 'partner_id': partner_id}

1006    product_obj = product_obj.browse(cr, uid, product, context=context)

1087    if (product_obj.type=='product') and (product_obj.virtual_available * uom2.factor < qty * product_obj.uom_id.factor) \

(virtual_available value must be computed from only my shop or related warehouse)

My Suggest :
987     (method must getting shop param) ... flag=False, shop=False):
996     context = {'lang': lang, 'partner_Id': partner_id,'shop':shop}





References