diff options
| author | Simon Lejeune <sle@openerp.com> | 2018-05-02 20:36:22 +0200 |
|---|---|---|
| committer | len-odoo <35492570+len-odoo@users.noreply.github.com> | 2018-05-03 14:03:42 +0200 |
| commit | cce6030c0da77a5739af01d57cd53822fc3ab394 (patch) | |
| tree | a8991ab6e1f057c904430b082442c66afb21ecde /addons/mail/static/src/xml/thread.xml | |
| parent | 8e73023f689d76dc6d545e617ab1c7ce18334068 (diff) | |
[FIX] stock: symmetric reserve and unreserve
When an internal locations has its `scrapped` field set to True,
reserving will increment the quant's `reserved_quantity` while
unreserving will bypass the reservation mechanism (as in a supplier
location). This leads to a desynchronisation between the
partially_available/available move lines and the quant's
`reserved_quantity`, leading later on to "cannot unreserve more than
available" errors.
To prevent this kind of issues, there's a `should_bypass_reservation`
method set on the location that we *should* use everywhere, it was
implemented by [0]. Sadly, this line was not adapted since its
implementaton in [1].
Co-authored by len-odoo <len@odoo.com>
opw 1837900
[0] e1cea2640fc064a56b0dba4f79e6b8a91a48b4fc
[1] 0469d2e7126c46e019ed5f4233ef7b20d3499a0e
Diffstat (limited to 'addons/mail/static/src/xml/thread.xml')
0 files changed, 0 insertions, 0 deletions
