Product stock management is not set until first stock entry
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Magento OpenERP Connector |
Incomplete
|
Medium
|
Unassigned |
Bug Description
Hi,
In the product form into the Magento Shop, in the "inventory" section, we have a "Manage Stock" value. This value is set by default to "No" when exporting product.
It will be set to Yes with right stock quantity when we'll sync the product stock level with the website. The thing is, we must first make an stock entry for that.
This is problematic when you create new product. You must make an stock entry in openerp, sync the stock level, make an outgoing stock move (to cancel the first one) and re-sync the stock level in order to have your product set to "Manage stock = Yes".
I would suggest to set this by default to true when a product is of type "stockable" in OpenERP. So when I create a product into OpenERP and it is stockable product, then the "manage stock" is set to True, otherwise, let it as "false".
I think we should may be map the magento field called "use_config_
Regards,
Joël
Changed in magentoerpconnect: | |
importance: | Undecided → Medium |
Tips:
# Add the products that have no stock.move and type <> 'service' to initiate the
cr.execute( "SELECT magento_sku From product_product WHERE \
product_ product. magento_ sku is not null AND\
product_ product. type <> 'service' AND\
product_ product. id not in (SELECT distinct( stock_move. product_ id) FROM stock_move);")
# "manage stock" = True in Magento. That allow to not wait the first stock.move before showing it
# in the website
#
# Look for product with no move
Add this into the export_inventory of sale.shop...
My2Cents