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

« back to all changes in this revision

Viewing changes to procurement_auto/wizard/schedulers_all.py

  • Committer: Olivier DOSSMANN
  • Date: 2013-05-31 14:22:09 UTC
  • mto: This revision was merged to the branch mainline in revision 1687.
  • Revision ID: od@tempo-consulting.fr-20130531142209-sbcwvzuema11guzz
UF-1991 [FIX] Problem with wizard on "msg" field. Change it to "name".

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
 
22
22
import threading
23
23
 
24
 
from osv import osv, fields
 
24
from osv import osv
25
25
 
26
26
class procurement_compute_all(osv.osv_memory):
27
27
    _name = 'procurement.supply.compute.all'
42
42
        @param context: A standard dictionary
43
43
        """
44
44
        proc_obj = self.pool.get('procurement.order')
45
 
        for proc in self.browse(cr, uid, ids, context=context):
46
 
            proc_obj.run_automatic_supply(cr, uid, use_new_cursor=cr.dbname, context=context)
 
45
        proc_obj.run_automatic_supply(cr, uid, use_new_cursor=cr.dbname, context=context)
47
46
        return {}
48
47
 
49
48
    def procure_calculation(self, cr, uid, ids, context=None):