[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:
ron@tinyerp.com
2010-12-28 10:05:43 +05:30
parent cdb9f92ad3
commit de0cd75954
+1
View File
@@ -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):