[FIX] stock_account: accept negative quantities on standard price
authorMartin Trigaux <mat@openerp.com>
Thu, 18 Sep 2014 09:57:36 +0000 (11:57 +0200)
committerMartin Trigaux <mat@openerp.com>
Thu, 18 Sep 2014 09:57:48 +0000 (11:57 +0200)
commitf22f98cf9ece98cd88c6e7d01707754516119991
treeec3a8f26487e4d9513f54ac5c93a42d7cc924162
parent93845d683c0420118c162eb855abb690150b692d
[FIX] stock_account: accept negative quantities on standard price

The qty_available available of a product can be negative (e.g. using the force availibility button on delivery order) and the generated account.move.line should be adapted (otherwise getting negative values in debit/credit entries).
Fixes #2475
addons/stock_account/product.py