~credativ/openobject-addons/c2c-extra

« back to all changes in this revision

Viewing changes to labo_analysis/labo_analysis.py

  • Committer: ksa (Open ERP)
  • Date: 2010-07-06 05:10:58 UTC
  • Revision ID: ksa@tinyerp.co.in-20100706051058-x96e97ij1pvuu9ey
[IMP]:Remove print statement

Show diffs side-by-side

added added

removed removed

Lines of Context:
223
223
#                </tree>'''% type_id
224
224
#
225
225
#        view_mode = 'form,tree'
226
 
#        print "XML3",xml_tree
227
 
#        print "curr",xml_curr
228
 
#        print "xml",xml
229
226
#        mod_obj = pooler.get_pool(cr.dbname).get('ir.model.data')
230
227
#        model_data_id = mod_obj._get_id(cr, uid, 'labo_analysis','menu_progenus')
231
228
#        model = mod_obj.browse(cr, uid, model_data_id)
296
293
#        })
297
294
#
298
295
####end create view
299
 
#        print "vals",vals['code']
300
 
#        print "XMLLL",xml_tree
301
 
#        print "FIN XML"
302
296
#####BEGIN SAMPLES
303
297
#        model_data_id_samples = mod_obj._get_id(cr, uid, 'labo_analysis','menu_progenus_samples')
304
298
#        model_samples = mod_obj.browse(cr, uid, model_data_id_samples)
344
338
#            'domain':str([('sample_id.type_id','=', type_id)]),
345
339
#            'context':{'is_view':vals['code']},
346
340
#        })
347
 
#        print "action_s",action_id_x
348
341
#
349
342
#        self.pool.get('ir.values').create(cr, uid, {
350
343
#            'name': 'Open1 samples',
1120
1113
#    def write(self, cr, uid, ids, vals, context=None, check=True, update_check=True):
1121
1114
#        if not context:
1122
1115
#            context={}
1123
 
#        print vals
1124
1116
#        if 'sample_ids' not in vals:
1125
1117
#            print"::::::::::::"
1126
1118
#            vals.update({'sample_ids':[]})
1163
1155
#        return samp_id
1164
1156
 
1165
1157
    def running_ko_samples(self, cr, uid, *args):
1166
 
        print "DANS RUNNING"
1167
1158
        ref_case = pooler.get_pool(cr.dbname).get('crm.case')
1168
1159
        txt_mail="La date limite des echantillons est echue. Les echantillons concernes sont les suivants:"
1169
1160
        cr.execute("select r.name from labo_sample s, labo_analysis_request r where s.sample_id=r.id and s.date_limit = current_date group by r.name ")
1172
1163
            current_samples=([x[0] for x in cr.fetchall() if x])
1173
1164
 
1174
1165
            section_id=pooler.get_pool(cr.dbname).get('crm.case.section').search(cr, uid,[('code', '=', 'samples'),])
1175
 
            print "CURRENT",current_samples
1176
1166
            if current_samples:
1177
1167
                new_id=ref_case.create(cr,uid,{
1178
1168
                'name': "Samples to review",