Community: Inventory and MRP mailing list archives

disallow negative stock

- 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 :

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