credativ team mailing list archive
-
credativ team
-
Mailing list archive
-
Message #01979
[Bug 907540] [NEW] purchase.order - location_id should not be mandatory
Public bug reported:
IMHO
* for stockable (and all other) products the stock destination location should come from product_category and should be stored in purchase order line.
currently any location except views can be selected
IMHO only internal locations should be selectable as destination - at least for stockables, allowing to select other location types bypasses the stock accounting, which should not happen.
I didn't check consumables / services
purchase.py
supplier = address.browse(cr, uid, address_id).partner_id
if supplier:
location_id = supplier.property_stock_customer.id
values.update({'location_id': location_id})
why it takes property_stock_customer ?
see above
the destination should be a company default setting which is overruled by product category settings
Do I miss something?
** Affects: openobject-addons
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of OpenERP
Framework Experts, which is subscribed to OpenERP Addons.
https://bugs.launchpad.net/bugs/907540
Title:
purchase.order - location_id should not be mandatory
Status in OpenERP Addons (modules):
New
Bug description:
IMHO
* for stockable (and all other) products the stock destination location should come from product_category and should be stored in purchase order line.
currently any location except views can be selected
IMHO only internal locations should be selectable as destination - at least for stockables, allowing to select other location types bypasses the stock accounting, which should not happen.
I didn't check consumables / services
purchase.py
supplier = address.browse(cr, uid, address_id).partner_id
if supplier:
location_id = supplier.property_stock_customer.id
values.update({'location_id': location_id})
why it takes property_stock_customer ?
see above
the destination should be a company default setting which is overruled by product category settings
Do I miss something?
To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/907540/+subscriptions
Follow ups
References