~unifield-team/unifield-wm/us-826

« back to all changes in this revision

Viewing changes to procurement_cycle/procurement.py

[MERGE] Merge UF-1763

Show diffs side-by-side

added added

removed removed

Lines of Context:
423
423
    _constraints = [
424
424
        (_check_uniqueness, 'You cannot have two times the same product on the same order cycle rule', ['product_id'])
425
425
    ]
 
426
 
 
427
    def onchange_uom_qty(self, cr, uid, ids, uom_id, qty):
 
428
        res = {}
 
429
 
 
430
        if qty:
 
431
            res = self.pool.get('product.uom')._change_round_up_qty(cr, uid, uom_id, qty, 'safety_stock', result=res)
 
432
 
 
433
        return res
426
434
    
427
435
    def product_change(self, cr, uid, ids, product_id=False, context=None):
428
436
        '''