Community: Inventory and MRP mailing list archives

expert-inventory@mail.odoo.com

disallow negative stock

by
alexis
- 07/24/2015 07:03:33
Dear community friends,

By default, Odoo accepts negative stock for stockable products (and not 
only consumable) ; some companies like this feature... but other 
companies hate it !
So I wanted to develop a module "stock_disallow_negative" that will 
block negative stock levels on stockable products in odoo v8 ; here is 
my pull request on community branch : 
https://github.com/OCA/stock-logistics-workflow/pull/137

The implementation I made is extremely simple : it adds a constraint on 
the "qty" field of the Quant to raise an error it qty