-
-
Notifications
You must be signed in to change notification settings - Fork 209
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[10.0] Odoo is pushing product out of stock that are backorder able. #268
Comments
I don't know enough the magento internals so I trust you :) If Magento always computes it then my feeling is that we should never change it, would it work? |
All of this is related to Magento EE 1.14.3.6 (CE 1.9.3.6) I know less about what code exists to set the product back in stock. The only place in code that it happens literally ( So it would appear that my first suggestion should be sufficient. Tell Magento when it is in stock, let Magento decide when it isn't. This change shouldn't cause too many surprises. |
@guewen I'll open up a pull request. Does the above meet your style guidelines? |
@jaredkipe sorry for not answering you before, totally fine with me! :) |
In https://github.com/OCA/connector-magento/blob/10.0/connector_magento/models/product/importer.py
This is dangerous. Magento has its own calculations and configuration for when a product should be in stock or not.
I'd rather this be something like this.
Or...
Or just don't touch 'is_in_stock' at all and let Magento manage it. I'm open to debate for sure.
The text was updated successfully, but these errors were encountered: