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

« back to all changes in this revision

Viewing changes to procurement_cycle/procurement.py

  • Committer: Quentin THEURET
  • Date: 2014-03-05 16:51:14 UTC
  • mto: (2004.1.33 unifield-wm)
  • mto: This revision was merged to the branch mainline in revision 2016.
  • Revision ID: qt@tempo-consulting.fr-20140305165114-m3n5p978sisi4n3f
REF-27 [FIX] Fix import of tools.translate

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