← Back to team overview

c2c-oerpscenario team mailing list archive

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

 

Public bug reported:

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}

** Affects: openobject-addons
     Importance: Undecided
         Status: New

-- 
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:
  New

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}





Follow ups

References