base_sale_multichannels inventory export can omit some inventory updates

Bug #718961 reported by Eric Mc Sween
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Fix Released
Undecided
Unassigned

Bug Description

I'm using base_sale_multichannels in the context of the Magento/OpenERP connector.

When exporting stock inventories, base_sale_multichannels considers only products that were affected by a stock movement since the last export. To this end, it looks at the stock movement date.

If, for example, an inventory is made and given a creation date that falls before the last export, the products affected in the inventory will not be considered for export and the inventory levels for these products will stay outdated in the external system.

Instead of using the "date" field of "stock_move" records, base_sale_multichannels should use the "write_date" field, which contains the date when the stock movement was recorded in the database. This would ensure that every change in inventory levels is exported to the external systems.

Related branches

Revision history for this message
Eric Mc Sween (eric-mcsween) wrote :

Patch added.

Revision history for this message
Raphaël Valyi - http://www.akretion.com (rvalyi) wrote :

Eric, I believe you are right, I fixed it by applying your patch in commit http://bazaar.launchpad.net/~openerp-commiter/openobject-addons/extra-6.0/revision/5208

Thank you very much for this contribution!

Changed in openobject-addons:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.