[FIX]mrp-Constraint needed for orderpoints(minimum stock rule)
lp bug: https://launchpad.net/bugs/634856 fixed bzr revid: ron@tinyerp.com-20101228043543-8ssfit6l3rpfbsuu
This commit is contained in:
@@ -529,6 +529,7 @@ class stock_warehouse_orderpoint(osv.osv):
|
||||
}
|
||||
_sql_constraints = [
|
||||
('qty_multiple_check', 'CHECK( qty_multiple > 0 )', 'Qty Multiple must be greater than zero.'),
|
||||
('product_location_uniq', 'unique(product_id, location_id)', 'Only one order point per location is allowed!'),
|
||||
]
|
||||
|
||||
def onchange_warehouse_id(self, cr, uid, ids, warehouse_id, context=None):
|
||||
|
||||
Reference in New Issue
Block a user