bugged
stringlengths
4
228k
fixed
stringlengths
0
96.3M
__index_level_0__
int64
0
481k
def change_servertype(self, cr, uid, ids, server): if server == 'gmail': return {'value':{'server':'smtp.gmail.com', 'port':'25', 'ssl':True, 'auth':True}} elif server== 'yahoo': return {'value':{'server':'smtp.mail.yahoo.co.in', 'ssl':False, 'port':'587', 'auth':True}} else: return {'value':{'server':'localhost', 'por...
def change_servertype(self, cr, uid, ids, server): if server == 'gmail': return {'value':{'server':'smtp.gmail.com', 'port':'25', 'ssl':True, 'auth':True}} elif server== 'yahoo': return {'value':{'server':'smtp.mail.yahoo.co.in', 'ssl':False, 'port':'587', 'auth':True}} else: return {'value':{'server':'localhost', 'por...
466,900
def gen_private_key(self, cr, uid, ids): new_key = [] for i in time.strftime('%Y-%m-%d %H:%M:%S'): ky = i if ky in (' ', '-', ':'): keys = random.random() key = str(keys).split('.')[1] ky = key
def gen_private_key(self, cr, uid, ids): new_key = [] for i in time.strftime('%Y-%m-%d %H:%M:%S'): ky = i if ky in (' ', '-', ':'): keys = random.random() key = str(keys).split('.')[1] ky = key
466,901
def _set_error(self, cr, uid, server_id, context={}): server_obj = self.browse(cr, uid, server_id) if not server_obj.active: return 'not_active' if server_obj.pstate == 'stop' : return 'server_stop' if server_obj.state != 'confirm': return 'server_not_confirm' return True
def _set_error(self, cr, uid, server_id, context={}): server_obj = self.browse(cr, uid, server_id) if not server_obj.active: return 'not_active' if server_obj.pstate == 'stop' : return 'server_stop' if server_obj.state != 'confirm': return 'server_not_confirm' return True
466,902
def test_verify_email(self, cr, uid, ids, toemail, test=False, code=False): serverid = ids[0] self.open_connection(cr, uid, ids, serverid) key = False if test and self.server[serverid]['state'] == 'confirm': body = self.server[serverid]['test_email'] or '' else: body = self.server[serverid]['verify_email'] or '' #ign...
def test_verify_email(self, cr, uid, ids, toemail, test=False, code=False): serverid = ids[0] self.open_connection(cr, uid, ids, serverid) key = False if test and self.server[serverid]['state'] == 'confirm': body = self.server[serverid]['test_email'] or '' else: body = self.server[serverid]['verify_email'] or '' #ign...
466,903
def test_verify_email(self, cr, uid, ids, toemail, test=False, code=False): serverid = ids[0] self.open_connection(cr, uid, ids, serverid) key = False if test and self.server[serverid]['state'] == 'confirm': body = self.server[serverid]['test_email'] or '' else: body = self.server[serverid]['verify_email'] or '' #ign...
def test_verify_email(self, cr, uid, ids, toemail, test=False, code=False): serverid = ids[0] self.open_connection(cr, uid, ids, serverid) key = False if test and self.server[serverid]['state'] == 'confirm': body = self.server[serverid]['test_email'] or '' else: body = self.server[serverid]['verify_email'] or '' #ign...
466,904
def test_verify_email(self, cr, uid, ids, toemail, test=False, code=False): serverid = ids[0] self.open_connection(cr, uid, ids, serverid) key = False if test and self.server[serverid]['state'] == 'confirm': body = self.server[serverid]['test_email'] or '' else: body = self.server[serverid]['verify_email'] or '' #ign...
def test_verify_email(self, cr, uid, ids, toemail, test=False, code=False): serverid = ids[0] self.open_connection(cr, uid, ids, serverid) key = False if test and self.server[serverid]['state'] == 'confirm': body = self.server[serverid]['test_email'] or '' else: body = self.server[serverid]['verify_email'] or '' #ign...
466,905
def test_verify_email(self, cr, uid, ids, toemail, test=False, code=False): serverid = ids[0] self.open_connection(cr, uid, ids, serverid) key = False if test and self.server[serverid]['state'] == 'confirm': body = self.server[serverid]['test_email'] or '' else: body = self.server[serverid]['verify_email'] or '' #ign...
def test_verify_email(self, cr, uid, ids, toemail, test=False, code=False): serverid = ids[0] self.open_connection(cr, uid, ids, serverid) key = False if test and self.server[serverid]['state'] == 'confirm': body = self.server[serverid]['test_email'] or '' else: body = self.server[serverid]['verify_email'] or '' #ign...
466,906
def test_verify_email(self, cr, uid, ids, toemail, test=False, code=False): serverid = ids[0] self.open_connection(cr, uid, ids, serverid) key = False if test and self.server[serverid]['state'] == 'confirm': body = self.server[serverid]['test_email'] or '' else: body = self.server[serverid]['verify_email'] or '' #ign...
def test_verify_email(self, cr, uid, ids, toemail, test=False, code=False): serverid = ids[0] self.open_connection(cr, uid, ids, serverid) key = False if test and self.server[serverid]['state'] == 'confirm': body = self.server[serverid]['test_email'] or '' else: body = self.server[serverid]['verify_email'] or '' #ign...
466,907
def test_verify_email(self, cr, uid, ids, toemail, test=False, code=False): serverid = ids[0] self.open_connection(cr, uid, ids, serverid) key = False if test and self.server[serverid]['state'] == 'confirm': body = self.server[serverid]['test_email'] or '' else: body = self.server[serverid]['verify_email'] or '' #ign...
def test_verify_email(self, cr, uid, ids, toemail, test=False, code=False): serverid = ids[0] self.open_connection(cr, uid, ids, serverid) key = False if test and self.server[serverid]['state'] == 'confirm': body = self.server[serverid]['test_email'] or '' else: body = self.server[serverid]['verify_email'] or '' #ign...
466,908
def test_verify_email(self, cr, uid, ids, toemail, test=False, code=False): serverid = ids[0] self.open_connection(cr, uid, ids, serverid) key = False if test and self.server[serverid]['state'] == 'confirm': body = self.server[serverid]['test_email'] or '' else: body = self.server[serverid]['verify_email'] or '' #ign...
def test_verify_email(self, cr, uid, ids, toemail, test=False, code=False): serverid = ids[0] self.open_connection(cr, uid, ids, serverid) key = False if test and self.server[serverid]['state'] == 'confirm': body = self.server[serverid]['test_email'] or '' else: body = self.server[serverid]['verify_email'] or '' #ign...
466,909
def test_verify_email(self, cr, uid, ids, toemail, test=False, code=False): serverid = ids[0] self.open_connection(cr, uid, ids, serverid) key = False if test and self.server[serverid]['state'] == 'confirm': body = self.server[serverid]['test_email'] or '' else: body = self.server[serverid]['verify_email'] or '' #ign...
def test_verify_email(self, cr, uid, ids, toemail, test=False, code=False): serverid = ids[0] self.open_connection(cr, uid, ids, serverid) key = False if test and self.server[serverid]['state'] == 'confirm': body = self.server[serverid]['test_email'] or '' else: body = self.server[serverid]['verify_email'] or '' #ign...
466,910
def test_verify_email(self, cr, uid, ids, toemail, test=False, code=False): serverid = ids[0] self.open_connection(cr, uid, ids, serverid) key = False if test and self.server[serverid]['state'] == 'confirm': body = self.server[serverid]['test_email'] or '' else: body = self.server[serverid]['verify_email'] or '' #ign...
def test_verify_email(self, cr, uid, ids, toemail, test=False, code=False): serverid = ids[0] self.open_connection(cr, uid, ids, serverid) key = False if test and self.server[serverid]['state'] == 'confirm': body = self.server[serverid]['test_email'] or '' else: body = self.server[serverid]['verify_email'] or '' #ign...
466,911
def test_verify_email(self, cr, uid, ids, toemail, test=False, code=False): serverid = ids[0] self.open_connection(cr, uid, ids, serverid) key = False if test and self.server[serverid]['state'] == 'confirm': body = self.server[serverid]['test_email'] or '' else: body = self.server[serverid]['verify_email'] or '' #ign...
def test_verify_email(self, cr, uid, ids, toemail, test=False, code=False): serverid = ids[0] self.open_connection(cr, uid, ids, serverid) key = False if test and self.server[serverid]['state'] == 'confirm': body = self.server[serverid]['test_email'] or '' else: body = self.server[serverid]['verify_email'] or '' #ign...
466,912
def test_verify_email(self, cr, uid, ids, toemail, test=False, code=False): serverid = ids[0] self.open_connection(cr, uid, ids, serverid) key = False if test and self.server[serverid]['state'] == 'confirm': body = self.server[serverid]['test_email'] or '' else: body = self.server[serverid]['verify_email'] or '' #ign...
def test_verify_email(self, cr, uid, ids, toemail, test=False, code=False): serverid = ids[0] self.open_connection(cr, uid, ids, serverid) key = False if test and self.server[serverid]['state'] == 'confirm': body = self.server[serverid]['test_email'] or '' else: body = self.server[serverid]['verify_email'] or '' #ign...
466,913
def test_verify_email(self, cr, uid, ids, toemail, test=False, code=False): serverid = ids[0] self.open_connection(cr, uid, ids, serverid) key = False if test and self.server[serverid]['state'] == 'confirm': body = self.server[serverid]['test_email'] or '' else: body = self.server[serverid]['verify_email'] or '' #ign...
def test_verify_email(self, cr, uid, ids, toemail, test=False, code=False): serverid = ids[0] self.open_connection(cr, uid, ids, serverid) key = False if test and self.server[serverid]['state'] == 'confirm': body = self.server[serverid]['test_email'] or '' else: body = self.server[serverid]['verify_email'] or '' #ign...
466,914
def test_verify_email(self, cr, uid, ids, toemail, test=False, code=False): serverid = ids[0] self.open_connection(cr, uid, ids, serverid) key = False if test and self.server[serverid]['state'] == 'confirm': body = self.server[serverid]['test_email'] or '' else: body = self.server[serverid]['verify_email'] or '' #ign...
def test_verify_email(self, cr, uid, ids, toemail, test=False, code=False): serverid = ids[0] self.open_connection(cr, uid, ids, serverid) key = False if test and self.server[serverid]['state'] == 'confirm': body = self.server[serverid]['test_email'] or '' else: body = self.server[serverid]['verify_email'] or '' #ign...
466,915
def open_connection(self, cr, uid, ids, serverid=False, permission=True): if serverid: self.server[serverid] = self.getpassword(cr, uid, [serverid])[0] else: raise osv.except_osv(_('Read Error!'), _('Unable to read Server Settings')) if permission: if not self.check_permissions(cr, uid, [serverid]): raise osv.except_o...
def open_connection(self, cr, uid, ids, serverid=False, permission=True): if serverid: self.server[serverid] = self.getpassword(cr, uid, [serverid])[0] else: raise osv.except_osv(_('Read Error!'), _('Unable to read Server Settings')) if permission: if not self.check_permissions(cr, uid, [serverid]): raise osv.except_o...
466,916
def open_connection(self, cr, uid, ids, serverid=False, permission=True): if serverid: self.server[serverid] = self.getpassword(cr, uid, [serverid])[0] else: raise osv.except_osv(_('Read Error!'), _('Unable to read Server Settings')) if permission: if not self.check_permissions(cr, uid, [serverid]): raise osv.except_o...
def open_connection(self, cr, uid, ids, serverid=False, permission=True): if serverid: self.server[serverid] = self.getpassword(cr, uid, [serverid])[0] else: raise osv.except_osv(_('Read Error!'), _('Unable to read Server Settings')) if permission: if not self.check_permissions(cr, uid, [serverid]): raise osv.except_o...
466,917
def open_connection(self, cr, uid, ids, serverid=False, permission=True): if serverid: self.server[serverid] = self.getpassword(cr, uid, [serverid])[0] else: raise osv.except_osv(_('Read Error!'), _('Unable to read Server Settings')) if permission: if not self.check_permissions(cr, uid, [serverid]): raise osv.except_o...
def open_connection(self, cr, uid, ids, serverid=False, permission=True): if serverid: self.server[serverid] = self.getpassword(cr, uid, [serverid])[0] else: raise osv.except_osv(_('Read Error!'), _('Unable to read Server Settings')) if permission: if not self.check_permissions(cr, uid, [serverid]): raise osv.except_o...
466,918
def open_connection(self, cr, uid, ids, serverid=False, permission=True): if serverid: self.server[serverid] = self.getpassword(cr, uid, [serverid])[0] else: raise osv.except_osv(_('Read Error!'), _('Unable to read Server Settings')) if permission: if not self.check_permissions(cr, uid, [serverid]): raise osv.except_o...
def open_connection(self, cr, uid, ids, serverid=False, permission=True): if serverid: self.server[serverid] = self.getpassword(cr, uid, [serverid])[0] else: raise osv.except_osv(_('Read Error!'), _('Unable to read Server Settings')) if permission: if not self.check_permissions(cr, uid, [serverid]): raise osv.except_o...
466,919
def open_connection(self, cr, uid, ids, serverid=False, permission=True): if serverid: self.server[serverid] = self.getpassword(cr, uid, [serverid])[0] else: raise osv.except_osv(_('Read Error!'), _('Unable to read Server Settings')) if permission: if not self.check_permissions(cr, uid, [serverid]): raise osv.except_o...
def open_connection(self, cr, uid, ids, serverid=False, permission=True): if serverid: self.server[serverid] = self.getpassword(cr, uid, [serverid])[0] else: raise osv.except_osv(_('Read Error!'), _('Unable to read Server Settings')) if permission: if not self.check_permissions(cr, uid, [serverid]): raise osv.except_o...
466,920
def open_connection(self, cr, uid, ids, serverid=False, permission=True): if serverid: self.server[serverid] = self.getpassword(cr, uid, [serverid])[0] else: raise osv.except_osv(_('Read Error!'), _('Unable to read Server Settings')) if permission: if not self.check_permissions(cr, uid, [serverid]): raise osv.except_o...
def open_connection(self, cr, uid, ids, serverid=False, permission=True): if serverid: self.server[serverid] = self.getpassword(cr, uid, [serverid])[0] else: raise osv.except_osv(_('Read Error!'), _('Unable to read Server Settings')) if permission: if not self.check_permissions(cr, uid, [serverid]): raise osv.except_o...
466,921
def selectAddress(self, cr, uid, partner=None, contact=None, ): email = 'none@none.com' if partner is None and contact is None: return 'none@none.com' if partner is not None and contact is None: pool = self.pool.get('res.partner') data = pool.read(cr, uid, [partner])[0] if data: contact = data['address']
def selectAddress(self, cr, uid, partner=None, contact=None, ): email = 'none@none.com' if partner is None and contact is None: return 'none@none.com' if partner is not None and contact is None: pool = self.pool.get('res.partner') data = pool.read(cr, uid, [partner])[0] if data: contact = data['address']
466,922
def selectAddress(self, cr, uid, partner=None, contact=None, ): email = 'none@none.com' if partner is None and contact is None: return 'none@none.com' if partner is not None and contact is None: pool = self.pool.get('res.partner') data = pool.read(cr, uid, [partner])[0] if data: contact = data['address']
def selectAddress(self, cr, uid, partner=None, contact=None, ): email = 'none@none.com' if partner is None and contact is None: return 'none@none.com' if partner is not None and contact is None: pool = self.pool.get('res.partner') data = pool.read(cr, uid, [partner])[0] if data: contact = data['address']
466,923
def selectAddress(self, cr, uid, partner=None, contact=None, ): email = 'none@none.com' if partner is None and contact is None: return 'none@none.com' if partner is not None and contact is None: pool = self.pool.get('res.partner') data = pool.read(cr, uid, [partner])[0] if data: contact = data['address']
def selectAddress(self, cr, uid, partner=None, contact=None, ): email = 'none@none.com' if partner is None and contact is None: return 'none@none.com' if partner is not None and contact is None: pool = self.pool.get('res.partner') data = pool.read(cr, uid, [partner])[0] if data: contact = data['address']
466,924
def select(self, cr, uid, type): pool = self.pool.get('email.smtpclient') ids = pool.search(cr, uid, [('type','=',type)], context=False) if not ids: ids = pool.search(cr, uid, [('type','=','default')], context=False) if not ids: return False return ids[0]
def select(self, cr, uid, type): pool = self.pool.get('email.smtpclient') ids = pool.search(cr, uid, [('type','=',type)], context=False) if not ids: ids = pool.search(cr, uid, [('type','=','default')], context=False) if not ids: return False return ids[0]
466,925
def select(self, cr, uid, type): pool = self.pool.get('email.smtpclient') ids = pool.search(cr, uid, [('type','=',type)], context=False) if not ids: ids = pool.search(cr, uid, [('type','=','default')], context=False) if not ids: return False return ids[0]
def select(self, cr, uid, type): pool = self.pool.get('email.smtpclient') ids = pool.search(cr, uid, [('type','=',type)], context=False) if not ids: ids = pool.search(cr, uid, [('type','=','default')], context=False) if not ids: return False return ids[0]
466,926
def select(self, cr, uid, type): pool = self.pool.get('email.smtpclient') ids = pool.search(cr, uid, [('type','=',type)], context=False) if not ids: ids = pool.search(cr, uid, [('type','=','default')], context=False) if not ids: return False return ids[0]
def select(self, cr, uid, type): pool = self.pool.get('email.smtpclient') ids = pool.search(cr, uid, [('type','=',type)], context=False) if not ids: ids = pool.search(cr, uid, [('type','=','default')], context=False) if not ids: return False return ids[0]
466,927
def send_email(self, cr, uid, server_id, emailto, subject, body='', attachments=[], reports=[], ir_attach=[], charset='utf-8', headers={}, context={}): if not emailto: raise osv.except_osv(_('SMTP Data Error !'), _('Email TO Address not Defined !')) def createReport(cr, uid, report, ids, name=False): files = [] for i...
def send_email(self, cr, uid, server_id, emailto, subject, body='', attachments=[], reports=[], ir_attach=[], charset='utf-8', headers={}, context={}): if not emailto: raise osv.except_osv(_('SMTP Data Error !'), _('Email TO Address not Defined !')) def createReport(cr, uid, report, ids, name=False): files = [] for i...
466,928
def send_email(self, cr, uid, server_id, emailto, subject, body='', attachments=[], reports=[], ir_attach=[], charset='utf-8', headers={}, context={}): if not emailto: raise osv.except_osv(_('SMTP Data Error !'), _('Email TO Address not Defined !')) def createReport(cr, uid, report, ids, name=False): files = [] for i...
def send_email(self, cr, uid, server_id, emailto, subject, body='', attachments=[], reports=[], ir_attach=[], charset='utf-8', headers={}, context={}): if not emailto: raise osv.except_osv(_('SMTP Data Error !'), _('Email TO Address not Defined !')) def createReport(cr, uid, report, ids, name=False): files = [] for i...
466,929
def createReport(cr, uid, report, ids, name=False): files = [] for id in ids: try: service = netsvc.LocalService(report) (result, format) = service.create(cr, uid, [id], {}, {}) if not name: report_file = '/tmp/reports'+ str(id) + '.pdf' else: report_file = name fp = open(report_file,'wb+') fp.write(result); fp.close(...
def createReport(cr, uid, report, ids, name=False): files = [] for id in ids: try: service = netsvc.LocalService(report) (result, format) = service.create(cr, uid, [id], {}, {}) if not name: report_file = '/tmp/reports'+ str(id) + '.pdf' else: report_file = name fp = open(report_file,'wb+') fp.write(result); fp.close(...
466,930
def createReport(cr, uid, report, ids, name=False): files = [] for id in ids: try: service = netsvc.LocalService(report) (result, format) = service.create(cr, uid, [id], {}, {}) if not name: report_file = '/tmp/reports'+ str(id) + '.pdf' else: report_file = name fp = open(report_file,'wb+') fp.write(result); fp.close(...
def createReport(cr, uid, report, ids, name=False): files = [] for id in ids: try: service = netsvc.LocalService(report) (result, format) = service.create(cr, uid, [id], {}, {}) if not name: report_file = '/tmp/reports'+ str(id) + '.pdf' else: report_file = name fp = open(report_file,'wb+') fp.write(result); fp.close(...
466,931
def createReport(cr, uid, report, ids, name=False): files = [] for id in ids: try: service = netsvc.LocalService(report) (result, format) = service.create(cr, uid, [id], {}, {}) if not name: report_file = '/tmp/reports'+ str(id) + '.pdf' else: report_file = name fp = open(report_file,'wb+') fp.write(result); fp.close(...
def createReport(cr, uid, report, ids, name=False): files = [] for id in ids: try: service = netsvc.LocalService(report) (result, format) = service.create(cr, uid, [id], {}, {}) if not name: report_file = '/tmp/reports'+ str(id) + '.pdf' else: report_file = name fp = open(report_file,'wb+') fp.write(result); fp.close(...
466,932
def createReport(cr, uid, report, ids, name=False): files = [] for id in ids: try: service = netsvc.LocalService(report) (result, format) = service.create(cr, uid, [id], {}, {}) if not name: report_file = '/tmp/reports'+ str(id) + '.pdf' else: report_file = name fp = open(report_file,'wb+') fp.write(result); fp.close(...
def createReport(cr, uid, report, ids, name=False): files = [] for id in ids: try: service = netsvc.LocalService(report) (result, format) = service.create(cr, uid, [id], {}, {}) if not name: report_file = '/tmp/reports'+ str(id) + '.pdf' else: report_file = name fp = open(report_file,'wb+') fp.write(result); fp.close(...
466,933
def createReport(cr, uid, report, ids, name=False): files = [] for id in ids: try: service = netsvc.LocalService(report) (result, format) = service.create(cr, uid, [id], {}, {}) if not name: report_file = '/tmp/reports'+ str(id) + '.pdf' else: report_file = name fp = open(report_file,'wb+') fp.write(result); fp.close(...
def createReport(cr, uid, report, ids, name=False): files = [] for id in ids: try: service = netsvc.LocalService(report) (result, format) = service.create(cr, uid, [id], {}, {}) if not name: report_file = '/tmp/reports'+ str(id) + '.pdf' else: report_file = name fp = open(report_file,'wb+') fp.write(result); fp.close(...
466,934
def createReport(cr, uid, report, ids, name=False): files = [] for id in ids: try: service = netsvc.LocalService(report) (result, format) = service.create(cr, uid, [id], {}, {}) if not name: report_file = '/tmp/reports'+ str(id) + '.pdf' else: report_file = name fp = open(report_file,'wb+') fp.write(result); fp.close(...
def createReport(cr, uid, report, ids, name=False): files = [] for id in ids: try: service = netsvc.LocalService(report) (result, format) = service.create(cr, uid, [id], {}, {}) if not name: report_file = '/tmp/reports'+ str(id) + '.pdf' else: report_file = name fp = open(report_file,'wb+') fp.write(result); fp.close(...
466,935
def createReport(cr, uid, report, ids, name=False): files = [] for id in ids: try: service = netsvc.LocalService(report) (result, format) = service.create(cr, uid, [id], {}, {}) if not name: report_file = '/tmp/reports'+ str(id) + '.pdf' else: report_file = name fp = open(report_file,'wb+') fp.write(result); fp.close(...
def createReport(cr, uid, report, ids, name=False): files = [] for id in ids: try: service = netsvc.LocalService(report) (result, format) = service.create(cr, uid, [id], {}, {}) if not name: report_file = '/tmp/reports'+ str(id) + '.pdf' else: report_file = name fp = open(report_file,'wb+') fp.write(result); fp.close(...
466,936
def createReport(cr, uid, report, ids, name=False): files = [] for id in ids: try: service = netsvc.LocalService(report) (result, format) = service.create(cr, uid, [id], {}, {}) if not name: report_file = '/tmp/reports'+ str(id) + '.pdf' else: report_file = name fp = open(report_file,'wb+') fp.write(result); fp.close(...
def createReport(cr, uid, report, ids, name=False): files = [] for id in ids: try: service = netsvc.LocalService(report) (result, format) = service.create(cr, uid, [id], {}, {}) if not name: report_file = '/tmp/reports'+ str(id) + '.pdf' else: report_file = name fp = open(report_file,'wb+') fp.write(result); fp.close(...
466,937
def createReport(cr, uid, report, ids, name=False): files = [] for id in ids: try: service = netsvc.LocalService(report) (result, format) = service.create(cr, uid, [id], {}, {}) if not name: report_file = '/tmp/reports'+ str(id) + '.pdf' else: report_file = name fp = open(report_file,'wb+') fp.write(result); fp.close(...
def createReport(cr, uid, report, ids, name=False): files = [] for id in ids: try: service = netsvc.LocalService(report) (result, format) = service.create(cr, uid, [id], {}, {}) if not name: report_file = '/tmp/reports'+ str(id) + '.pdf' else: report_file = name fp = open(report_file,'wb+') fp.write(result); fp.close(...
466,938
def createReport(cr, uid, report, ids, name=False): files = [] for id in ids: try: service = netsvc.LocalService(report) (result, format) = service.create(cr, uid, [id], {}, {}) if not name: report_file = '/tmp/reports'+ str(id) + '.pdf' else: report_file = name fp = open(report_file,'wb+') fp.write(result); fp.close(...
def createReport(cr, uid, report, ids, name=False): files = [] for id in ids: try: service = netsvc.LocalService(report) (result, format) = service.create(cr, uid, [id], {}, {}) if not name: report_file = '/tmp/reports'+ str(id) + '.pdf' else: report_file = name fp = open(report_file,'wb+') fp.write(result); fp.close(...
466,939
def createReport(cr, uid, report, ids, name=False): files = [] for id in ids: try: service = netsvc.LocalService(report) (result, format) = service.create(cr, uid, [id], {}, {}) if not name: report_file = '/tmp/reports'+ str(id) + '.pdf' else: report_file = name fp = open(report_file,'wb+') fp.write(result); fp.close(...
def createReport(cr, uid, report, ids, name=False): files = [] for id in ids: try: service = netsvc.LocalService(report) (result, format) = service.create(cr, uid, [id], {}, {}) if not name: report_file = '/tmp/reports'+ str(id) + '.pdf' else: report_file = name fp = open(report_file,'wb+') fp.write(result); fp.close(...
466,940
def createReport(cr, uid, report, ids, name=False): files = [] for id in ids: try: service = netsvc.LocalService(report) (result, format) = service.create(cr, uid, [id], {}, {}) if not name: report_file = '/tmp/reports'+ str(id) + '.pdf' else: report_file = name fp = open(report_file,'wb+') fp.write(result); fp.close(...
def createReport(cr, uid, report, ids, name=False): files = [] for id in ids: try: service = netsvc.LocalService(report) (result, format) = service.create(cr, uid, [id], {}, {}) if not name: report_file = '/tmp/reports'+ str(id) + '.pdf' else: report_file = name fp = open(report_file,'wb+') fp.write(result); fp.close(...
466,941
def createReport(cr, uid, report, ids, name=False): files = [] for id in ids: try: service = netsvc.LocalService(report) (result, format) = service.create(cr, uid, [id], {}, {}) if not name: report_file = '/tmp/reports'+ str(id) + '.pdf' else: report_file = name fp = open(report_file,'wb+') fp.write(result); fp.close(...
def createReport(cr, uid, report, ids, name=False): files = [] for id in ids: try: service = netsvc.LocalService(report) (result, format) = service.create(cr, uid, [id], {}, {}) if not name: report_file = '/tmp/reports'+ str(id) + '.pdf' else: report_file = name fp = open(report_file,'wb+') fp.write(result); fp.close(...
466,942
def createReport(cr, uid, report, ids, name=False): files = [] for id in ids: try: service = netsvc.LocalService(report) (result, format) = service.create(cr, uid, [id], {}, {}) if not name: report_file = '/tmp/reports'+ str(id) + '.pdf' else: report_file = name fp = open(report_file,'wb+') fp.write(result); fp.close(...
def createReport(cr, uid, report, ids, name=False): files = [] for id in ids: try: service = netsvc.LocalService(report) (result, format) = service.create(cr, uid, [id], {}, {}) if not name: report_file = '/tmp/reports'+ str(id) + '.pdf' else: report_file = name fp = open(report_file,'wb+') fp.write(result); fp.close(...
466,943
def createReport(cr, uid, report, ids, name=False): files = [] for id in ids: try: service = netsvc.LocalService(report) (result, format) = service.create(cr, uid, [id], {}, {}) if not name: report_file = '/tmp/reports'+ str(id) + '.pdf' else: report_file = name fp = open(report_file,'wb+') fp.write(result); fp.close(...
def createReport(cr, uid, report, ids, name=False): files = [] for id in ids: try: service = netsvc.LocalService(report) (result, format) = service.create(cr, uid, [id], {}, {}) if not name: report_file = '/tmp/reports'+ str(id) + '.pdf' else: report_file = name fp = open(report_file,'wb+') fp.write(result); fp.close(...
466,944
def createReport(cr, uid, report, ids, name=False): files = [] for id in ids: try: service = netsvc.LocalService(report) (result, format) = service.create(cr, uid, [id], {}, {}) if not name: report_file = '/tmp/reports'+ str(id) + '.pdf' else: report_file = name fp = open(report_file,'wb+') fp.write(result); fp.close(...
def createReport(cr, uid, report, ids, name=False): files = [] for id in ids: try: service = netsvc.LocalService(report) (result, format) = service.create(cr, uid, [id], {}, {}) if not name: report_file = '/tmp/reports'+ str(id) + '.pdf' else: report_file = name fp = open(report_file,'wb+') fp.write(result); fp.close(...
466,945
def createReport(cr, uid, report, ids, name=False): files = [] for id in ids: try: service = netsvc.LocalService(report) (result, format) = service.create(cr, uid, [id], {}, {}) if not name: report_file = '/tmp/reports'+ str(id) + '.pdf' else: report_file = name fp = open(report_file,'wb+') fp.write(result); fp.close(...
def createReport(cr, uid, report, ids, name=False): files = [] for id in ids: try: service = netsvc.LocalService(report) (result, format) = service.create(cr, uid, [id], {}, {}) if not name: report_file = '/tmp/reports'+ str(id) + '.pdf' else: report_file = name fp = open(report_file,'wb+') fp.write(result); fp.close(...
466,946
def createReport(cr, uid, report, ids, name=False): files = [] for id in ids: try: service = netsvc.LocalService(report) (result, format) = service.create(cr, uid, [id], {}, {}) if not name: report_file = '/tmp/reports'+ str(id) + '.pdf' else: report_file = name fp = open(report_file,'wb+') fp.write(result); fp.close(...
def createReport(cr, uid, report, ids, name=False): files = [] for id in ids: try: service = netsvc.LocalService(report) (result, format) = service.create(cr, uid, [id], {}, {}) if not name: report_file = '/tmp/reports'+ str(id) + '.pdf' else: report_file = name fp = open(report_file,'wb+') fp.write(result); fp.close(...
466,947
def createReport(cr, uid, report, ids, name=False): files = [] for id in ids: try: service = netsvc.LocalService(report) (result, format) = service.create(cr, uid, [id], {}, {}) if not name: report_file = '/tmp/reports'+ str(id) + '.pdf' else: report_file = name fp = open(report_file,'wb+') fp.write(result); fp.close(...
def createReport(cr, uid, report, ids, name=False): files = [] for id in ids: try: service = netsvc.LocalService(report) (result, format) = service.create(cr, uid, [id], {}, {}) if not name: report_file = '/tmp/reports'+ str(id) + '.pdf' else: report_file = name fp = open(report_file,'wb+') fp.write(result); fp.close(...
466,948
def createReport(cr, uid, report, ids, name=False): files = [] for id in ids: try: service = netsvc.LocalService(report) (result, format) = service.create(cr, uid, [id], {}, {}) if not name: report_file = '/tmp/reports'+ str(id) + '.pdf' else: report_file = name fp = open(report_file,'wb+') fp.write(result); fp.close(...
def createReport(cr, uid, report, ids, name=False): files = [] for id in ids: try: service = netsvc.LocalService(report) (result, format) = service.create(cr, uid, [id], {}, {}) if not name: report_file = '/tmp/reports'+ str(id) + '.pdf' else: report_file = name fp = open(report_file,'wb+') fp.write(result); fp.close(...
466,949
def createReport(cr, uid, report, ids, name=False): files = [] for id in ids: try: service = netsvc.LocalService(report) (result, format) = service.create(cr, uid, [id], {}, {}) if not name: report_file = '/tmp/reports'+ str(id) + '.pdf' else: report_file = name fp = open(report_file,'wb+') fp.write(result); fp.close(...
def createReport(cr, uid, report, ids, name=False): files = [] for id in ids: try: service = netsvc.LocalService(report) (result, format) = service.create(cr, uid, [id], {}, {}) if not name: report_file = '/tmp/reports'+ str(id) + '.pdf' else: report_file = name fp = open(report_file,'wb+') fp.write(result); fp.close(...
466,950
def create_queue_enrty(self, cr, uid, data, context={}): queue = pooler.get_pool(cr.dbname).get('email.smtpclient.queue') return queue.create(cr, uid, data, context)
def create_queue_enrty(self, cr, uid, data, context={}): queue = pooler.get_pool(cr.dbname).get('email.smtpclient.queue') return queue.create(cr, uid, data, context)
466,951
def _check_history(self, cr, uid, ids=False, context={}): result = True server = self.pool.get('email.smtpclient') queue = self.pool.get('email.smtpclient.queue') sids = self.search(cr, uid, []) for server in self.browse(cr, uid, sids): if server.delete_queue == 'never': continue now = datetime.today() days = timedelt...
def _check_history(self, cr, uid, ids=False, context={}): result = True server = self.pool.get('email.smtpclient') queue = self.pool.get('email.smtpclient.queue') sids = self.search(cr, uid, []) for server in self.browse(cr, uid, sids): if server.delete_queue == 'never': continue now = datetime.today() days = timedelt...
466,952
def _check_history(self, cr, uid, ids=False, context={}): result = True server = self.pool.get('email.smtpclient') queue = self.pool.get('email.smtpclient.queue') sids = self.search(cr, uid, []) for server in self.browse(cr, uid, sids): if server.delete_queue == 'never': continue now = datetime.today() days = timedelt...
def _check_history(self, cr, uid, ids=False, context={}): result = True server = self.pool.get('email.smtpclient') queue = self.pool.get('email.smtpclient.queue') sids = self.search(cr, uid, []) for server in self.browse(cr, uid, sids): if server.delete_queue == 'never': continue now = datetime.today() days = timedelt...
466,953
def _check_history(self, cr, uid, ids=False, context={}): result = True server = self.pool.get('email.smtpclient') queue = self.pool.get('email.smtpclient.queue') sids = self.search(cr, uid, []) for server in self.browse(cr, uid, sids): if server.delete_queue == 'never': continue now = datetime.today() days = timedelt...
def _check_history(self, cr, uid, ids=False, context={}): result = True server = self.pool.get('email.smtpclient') queue = self.pool.get('email.smtpclient.queue') sids = self.search(cr, uid, []) for server in self.browse(cr, uid, sids): if server.delete_queue == 'never': continue now = datetime.today() days = timedelt...
466,954
def _check_history(self, cr, uid, ids=False, context={}): result = True server = self.pool.get('email.smtpclient') queue = self.pool.get('email.smtpclient.queue') sids = self.search(cr, uid, []) for server in self.browse(cr, uid, sids): if server.delete_queue == 'never': continue now = datetime.today() days = timedelt...
def _check_history(self, cr, uid, ids=False, context={}): result = True server = self.pool.get('email.smtpclient') queue = self.pool.get('email.smtpclient.queue') sids = self.search(cr, uid, []) for server in self.browse(cr, uid, sids): if server.delete_queue == 'never': continue now = datetime.today() days = timedelt...
466,955
def _check_history(self, cr, uid, ids=False, context={}): result = True server = self.pool.get('email.smtpclient') queue = self.pool.get('email.smtpclient.queue') sids = self.search(cr, uid, []) for server in self.browse(cr, uid, sids): if server.delete_queue == 'never': continue now = datetime.today() days = timedelt...
def _check_history(self, cr, uid, ids=False, context={}): result = True server = self.pool.get('email.smtpclient') queue = self.pool.get('email.smtpclient.queue') sids = self.search(cr, uid, []) for server in self.browse(cr, uid, sids): if server.delete_queue == 'never': continue now = datetime.today() days = timedelt...
466,956
def _send_emails(self, cr, uid, ids, context={}): queue = self.pool.get('email.smtpclient.queue') history = self.pool.get('email.smtpclient.history') queue.write(cr, uid, ids, {'state':'sending'}) error = [] sent = [] remove = [] open_server = [] for email in queue.browse(cr, uid, ids): if not email.server_id.id in ...
def _send_emails(self, cr, uid, ids, context={}): queue = self.pool.get('email.smtpclient.queue') history = self.pool.get('email.smtpclient.history') queue.write(cr, uid, ids, {'state':'sending'}) error = [] sent = [] remove = [] open_server = [] for email in queue.browse(cr, uid, ids): if not email.server_id.id in ...
466,957
def _send_emails(self, cr, uid, ids, context={}): queue = self.pool.get('email.smtpclient.queue') history = self.pool.get('email.smtpclient.history') queue.write(cr, uid, ids, {'state':'sending'}) error = [] sent = [] remove = [] open_server = [] for email in queue.browse(cr, uid, ids): if not email.server_id.id in ...
def _send_emails(self, cr, uid, ids, context={}): queue = self.pool.get('email.smtpclient.queue') history = self.pool.get('email.smtpclient.history') queue.write(cr, uid, ids, {'state':'sending'}) error = [] sent = [] remove = [] open_server = [] for email in queue.browse(cr, uid, ids): if not email.server_id.id in ...
466,958
def _send_emails(self, cr, uid, ids, context={}): queue = self.pool.get('email.smtpclient.queue') history = self.pool.get('email.smtpclient.history') queue.write(cr, uid, ids, {'state':'sending'}) error = [] sent = [] remove = [] open_server = [] for email in queue.browse(cr, uid, ids): if not email.server_id.id in ...
def _send_emails(self, cr, uid, ids, context={}): queue = self.pool.get('email.smtpclient.queue') history = self.pool.get('email.smtpclient.history') queue.write(cr, uid, ids, {'state':'sending'}) error = [] sent = [] remove = [] open_server = [] for email in queue.browse(cr, uid, ids): if not email.server_id.id in ...
466,959
def _send_emails(self, cr, uid, ids, context={}): queue = self.pool.get('email.smtpclient.queue') history = self.pool.get('email.smtpclient.history') queue.write(cr, uid, ids, {'state':'sending'}) error = [] sent = [] remove = [] open_server = [] for email in queue.browse(cr, uid, ids): if not email.server_id.id in ...
def _send_emails(self, cr, uid, ids, context={}): queue = self.pool.get('email.smtpclient.queue') history = self.pool.get('email.smtpclient.history') queue.write(cr, uid, ids, {'state':'sending'}) error = [] sent = [] remove = [] open_server = [] for email in queue.browse(cr, uid, ids): if not email.server_id.id in ...
466,960
def _send_emails(self, cr, uid, ids, context={}): queue = self.pool.get('email.smtpclient.queue') history = self.pool.get('email.smtpclient.history') queue.write(cr, uid, ids, {'state':'sending'}) error = [] sent = [] remove = [] open_server = [] for email in queue.browse(cr, uid, ids): if not email.server_id.id in ...
def _send_emails(self, cr, uid, ids, context={}): queue = self.pool.get('email.smtpclient.queue') history = self.pool.get('email.smtpclient.history') queue.write(cr, uid, ids, {'state':'sending'}) error = [] sent = [] remove = [] open_server = [] for email in queue.browse(cr, uid, ids): if not email.server_id.id in ...
466,961
def _send_emails(self, cr, uid, ids, context={}): queue = self.pool.get('email.smtpclient.queue') history = self.pool.get('email.smtpclient.history') queue.write(cr, uid, ids, {'state':'sending'}) error = [] sent = [] remove = [] open_server = [] for email in queue.browse(cr, uid, ids): if not email.server_id.id in ...
def _send_emails(self, cr, uid, ids, context={}): queue = self.pool.get('email.smtpclient.queue') history = self.pool.get('email.smtpclient.history') queue.write(cr, uid, ids, {'state':'sending'}) error = [] sent = [] remove = [] open_server = [] for email in queue.browse(cr, uid, ids): if not email.server_id.id in ...
466,962
def _send_emails(self, cr, uid, ids, context={}): queue = self.pool.get('email.smtpclient.queue') history = self.pool.get('email.smtpclient.history') queue.write(cr, uid, ids, {'state':'sending'}) error = [] sent = [] remove = [] open_server = [] for email in queue.browse(cr, uid, ids): if not email.server_id.id in ...
def _send_emails(self, cr, uid, ids, context={}): queue = self.pool.get('email.smtpclient.queue') history = self.pool.get('email.smtpclient.history') queue.write(cr, uid, ids, {'state':'sending'}) error = [] sent = [] remove = [] open_server = [] for email in queue.browse(cr, uid, ids): if not email.server_id.id in ...
466,963
def _check_queue(self, cr, uid, ids=False): queue = self.pool.get('email.smtpclient.queue') sids = [] if not ids: sids = queue.search(cr, uid, [('state','not in',['send','sending']), ('type','=','system')], order="priority", limit=30) ids =[] else: sids = queue.search(cr, uid, [('state','not in',['send','sending']), ('...
def _check_queue(self, cr, uid, ids=False): queue = self.pool.get('email.smtpclient.queue') sids = [] if not ids: sids = queue.search(cr, uid, [('state','not in',['send','sending']), ('type','=','system')], order="priority", limit=30) ids =[] else: sids = queue.search(cr, uid, [('state','not in',['send','sending']), ('...
466,964
def _check_queue(self, cr, uid, ids=False): queue = self.pool.get('email.smtpclient.queue') sids = [] if not ids: sids = queue.search(cr, uid, [('state','not in',['send','sending']), ('type','=','system')], order="priority", limit=30) ids =[] else: sids = queue.search(cr, uid, [('state','not in',['send','sending']), ('...
def _check_queue(self, cr, uid, ids=False): queue = self.pool.get('email.smtpclient.queue') sids = [] if not ids: sids = queue.search(cr, uid, [('state','not in',['send','sending']), ('type','=','system')], order="priority", limit=30) ids =[] else: sids = queue.search(cr, uid, [('state','not in',['send','sending']), ('...
466,965
def _check_queue(self, cr, uid, ids=False): queue = self.pool.get('email.smtpclient.queue') sids = [] if not ids: sids = queue.search(cr, uid, [('state','not in',['send','sending']), ('type','=','system')], order="priority", limit=30) ids =[] else: sids = queue.search(cr, uid, [('state','not in',['send','sending']), ('...
def _check_queue(self, cr, uid, ids=False): queue = self.pool.get('email.smtpclient.queue') sids = [] if not ids: sids = queue.search(cr, uid, [('state','not in',['send','sending']), ('type','=','system')], order="priority", limit=30) ids =[] else: sids = queue.search(cr, uid, [('state','not in',['send','sending']), ('...
466,966
def set_to_draft(self, cr, uid, ids, context={}): self.stop_process(cr, uid, ids, context) self.write(cr, uid, ids, {'state':'new', 'code':False}) return True
def set_to_draft(self, cr, uid, ids, context={}): self.stop_process(cr, uid, ids, context) self.write(cr, uid, ids, {'state':'new', 'code':False}) return True
466,967
def create_process(self, cr, uid, ids, context={}): svr = self.browse(cr, uid, ids[0]) if not svr.process_id: res = { 'name':'Process : ' + svr.name, 'model':'email.smtpclient', 'args': repr([ids]), 'function':'_check_queue', 'priority':5, 'interval_number':1, 'interval_type':'minutes', 'user_id':uid, 'numbercall':-1, ...
def create_process(self, cr, uid, ids, context={}): svr = self.browse(cr, uid, ids[0]) if not svr.process_id: res = { 'name':'Process : ' + svr.name, 'model':'email.smtpclient', 'args': repr([ids]), 'function':'_check_queue', 'priority':5, 'interval_number':1, 'interval_type':'minutes', 'user_id':uid, 'numbercall':-1, ...
466,968
def create_process(self, cr, uid, ids, context={}): svr = self.browse(cr, uid, ids[0]) if not svr.process_id: res = { 'name':'Process : ' + svr.name, 'model':'email.smtpclient', 'args': repr([ids]), 'function':'_check_queue', 'priority':5, 'interval_number':1, 'interval_type':'minutes', 'user_id':uid, 'numbercall':-1, ...
def create_process(self, cr, uid, ids, context={}): svr = self.browse(cr, uid, ids[0]) if not svr.process_id: res = { 'name':'Process : ' + svr.name, 'model':'email.smtpclient', 'args': repr([ids]), 'function':'_check_queue', 'priority':5, 'interval_number':1, 'interval_type':'minutes', 'user_id':uid, 'numbercall':-1, ...
466,969
def start_process(self, cr, uid, ids, context={}): process = self.browse(cr, uid, ids[0], context) if not process.process_id or process.state != 'confirm': raise osv.except_osv(_('SMTP Server Error !'), _('Server is not Verified, Please Verify the Server !'))
def start_process(self, cr, uid, ids, context={}): process = self.browse(cr, uid, ids[0], context) if not process.process_id or process.state != 'confirm': raise osv.except_osv(_('SMTP Server Error !'), _('Server is not Verified, Please Verify the Server !'))
466,970
def stop_process(self, cr, uid, ids, context={}): pid = self.browse(cr, uid, ids[0], context).process_id.id self.pool.get('ir.cron').write(cr, uid, [pid], {'active':False}) self.write(cr, uid, ids, {'pstate':'stop'}) return True
def stop_process(self, cr, uid, ids, context={}): pid = self.browse(cr, uid, ids[0], context).process_id.id self.pool.get('ir.cron').write(cr, uid, [pid], {'active':False}) self.write(cr, uid, ids, {'pstate':'stop'}) return True
466,971
def stop_process(self, cr, uid, ids, context={}): pid = self.browse(cr, uid, ids[0], context).process_id.id self.pool.get('ir.cron').write(cr, uid, [pid], {'active':False}) self.write(cr, uid, ids, {'pstate':'stop'}) return True
def stop_process(self, cr, uid, ids, context={}): pid = self.browse(cr, uid, ids[0], context).process_id.id self.pool.get('ir.cron').write(cr, uid, [pid], {'active':False}) self.write(cr, uid, ids, {'pstate':'stop'}) return True
466,972
def init(self, cr): cr.execute(""" create or replace view report_smtp_server as ( select min(h.id) as id, c.id as server_id, h.name as history, h.name as name, count(h.name) as no from email_smtpclient c inner join email_smtpclient_history h on c.id=h.server_id group by h.name, c.id ) """)
def init(self, cr): cr.execute(""" create or replace view report_smtp_server as ( select min(h.id) as id, c.id as server_id, h.name as history, h.name as name, count(h.name) as no from email_smtpclient c inner join email_smtpclient_history h on c.id=h.server_id group by h.name, c.id ) """)
466,973
def _generate_mailbox_item_from_template(self, cursor, user, template, record_id, context=None): """ Generates an email from the template for record record_id of target object @param cursor: Database Cursor @param user: ID of User @param template: Browse record of template @param record_id: ID of the target model for ...
def _generate_mailbox_item_from_template(self, cursor, user, template, record_id, context=None): """ Generates an email from the template for record record_id of target object @param cursor: Database Cursor @param user: ID of User @param template: Browse record of template @param record_id: ID of the target model for ...
466,974
def generate_mail(self, cursor, user, template_id, record_ids, context=None): if context is None: context = {} template = self.browse(cursor, user, template_id, context=context) if not template: raise Exception("The requested template could not be loaded") print 'loaded', record_ids result = True for record_id in recor...
def generate_mail(self, cursor, user, template_id, record_ids, context=None): if context is None: context = {} template = self.browse(cursor, user, template_id, context=context) if not template: raise Exception("The requested template could not be loaded") print 'loaded', record_ids result = True for record_id in recor...
466,975
def init_logger(): import os from tools.translate import resetlocale resetlocale() logger = logging.getLogger() # create a format for log messages and dates format = '[%(asctime)s] %(levelname)s:%(name)s:%(message)s' if tools.config['syslog']: # SysLog Handler if os.name == 'nt': handler = logging.handlers.NTEventLog...
def init_logger(): import os from tools.translate import resetlocale resetlocale() logger = logging.getLogger() # create a format for log messages and dates format = '[%(asctime)s] %(levelname)s:%(name)s:%(message)s' if tools.config['syslog']: # SysLog Handler if os.name == 'nt': handler = logging.handlers.NTEventLog...
466,976
def _get_accounting_values(self, cr, uid, move, context=None): product_obj=self.pool.get('product.product') product_uom_obj = self.pool.get('product.uom') price_type_obj = self.pool.get('product.price.type') accounts = product_obj.get_product_accounts(cr,uid,move.product_id.id,context) acc_src = accounts['stock_account...
def _get_accounting_values(self, cr, uid, move, context=None): product_obj=self.pool.get('product.product') product_uom_obj = self.pool.get('product.uom') price_type_obj = self.pool.get('product.price.type') accounts = product_obj.get_product_accounts(cr,uid,move.product_id.id,context) acc_src = accounts['stock_account...
466,977
def _get_intial_balance(self, partner): move_state = ['draft','posted'] if self.target_move == 'posted': move_state = ['posted']
def _get_intial_balance(self, partner): move_state = ['draft','posted'] if self.target_move == 'posted': move_state = ['posted']
466,978
def _sum_debit_partner(self, partner): move_state = ['draft','posted'] if self.target_move == 'posted': move_state = ['posted']
def _sum_debit_partner(self, partner): move_state = ['draft','posted'] if self.target_move == 'posted': move_state = ['posted']
466,979
def _sum_debit_partner(self, partner): move_state = ['draft','posted'] if self.target_move == 'posted': move_state = ['posted']
def _sum_debit_partner(self, partner): move_state = ['draft','posted'] if self.target_move == 'posted': move_state = ['posted']
466,980
def _sum_credit_partner(self, partner): move_state = ['draft','posted'] if self.target_move == 'posted': move_state = ['posted']
def _sum_credit_partner(self, partner): move_state = ['draft','posted'] if self.target_move == 'posted': move_state = ['posted']
466,981
def _sum_credit_partner(self, partner): move_state = ['draft','posted'] if self.target_move == 'posted': move_state = ['posted']
def _sum_credit_partner(self, partner): move_state = ['draft','posted'] if self.target_move == 'posted': move_state = ['posted']
466,982
def compute_refund(self, cr, uid, ids, mode='refund', context=None): """ @param cr: the current row, from the database cursor, @param uid: the current user’s ID for security checks, @param ids: the account invoice refund’s ID or list of IDs
def compute_refund(self, cr, uid, ids, mode='refund', context=None): """ @param cr: the current row, from the database cursor, @param uid: the current user’s ID for security checks, @param ids: the account invoice refund’s ID or list of IDs
466,983
def compute_refund(self, cr, uid, ids, mode='refund', context=None): """ @param cr: the current row, from the database cursor, @param uid: the current user’s ID for security checks, @param ids: the account invoice refund’s ID or list of IDs
def compute_refund(self, cr, uid, ids, mode='refund', context=None): """ @param cr: the current row, from the database cursor, @param uid: the current user’s ID for security checks, @param ids: the account invoice refund’s ID or list of IDs
466,984
def compute_refund(self, cr, uid, ids, mode='refund', context=None): """ @param cr: the current row, from the database cursor, @param uid: the current user’s ID for security checks, @param ids: the account invoice refund’s ID or list of IDs
def compute_refund(self, cr, uid, ids, mode='refund', context=None): """ @param cr: the current row, from the database cursor, @param uid: the current user’s ID for security checks, @param ids: the account invoice refund’s ID or list of IDs
466,985
def invoice_modify(self, cr, uid, ids, context={}): return self.compute_refund(cr, uid, ids, 'modify', context=context)
def invoice_modify(self, cr, uid, ids, context={}): return self.compute_refund(cr, uid, ids, 'modify', context=context)
466,986
def _default_location_destination(self, cr, uid, context=None): """ Gets default address of partner for destination location @return: Address id or False """ if context.get('move_line', []): if context['move_line'][0]: if isinstance(context['move_line'][0], (tuple, list)): return context['move_line'][0][2] and context[...
def _default_location_destination(self, cr, uid, context=None): """ Gets default address of partner for destination location @return: Address id or False """ if context.get('move_line', []): if context['move_line'][0]: if isinstance(context['move_line'][0], (tuple, list)): return context['move_line'][0][2] and context[...
466,987
def name_search(self, cr, user, name, args=None, operator='ilike', context=None, limit=100): if not args: args=[] if not context: context={} ids = [] if name: ids = self.search(cr, user, [('code','ilike',name)]+ args, limit=limit) if not ids: ids = self.search(cr, user, [('name',operator,name)]+ args, limit=limit) retu...
def name_search(self, cr, user, name, args=None, operator='ilike', context=None, limit=100): if not args: args=[] if context is None: context={} ids = [] if name: ids = self.search(cr, user, [('code','ilike',name)]+ args, limit=limit) if not ids: ids = self.search(cr, user, [('name',operator,name)]+ args, limit=limit) ...
466,988
def name_search(self, cr, user, name, args=None, operator='ilike', context=None, limit=100): if not args: args=[] if not context: context={} ids = [] if name: ids = self.search(cr, user, [('code','ilike',name)]+ args, limit=limit) if not ids: ids = self.search(cr, user, [('name',operator,name)]+ args, limit=limit) retu...
def name_search(self, cr, user, name, args=None, operator='ilike', context=None, limit=100): if not args: args=[] if not context: context={} ids = [] if name: ids = self.search(cr, user, [('code','ilike',name)]+ args, limit=limit, context=context) if not ids: ids = self.search(cr, user, [('name',operator,name)]+ args, ...
466,989
def name_search(self, cr, user, name, args=None, operator='ilike', context=None, limit=100): if not args: args=[] if not context: context={} ids = [] if name: ids = self.search(cr, user, [('code','ilike',name)]+ args, limit=limit) if not ids: ids = self.search(cr, user, [('name',operator,name)]+ args, limit=limit) retu...
def name_search(self, cr, user, name, args=None, operator='ilike', context=None, limit=100): if not args: args=[] if not context: context={} ids = [] if name: ids = self.search(cr, user, [('code','ilike',name)]+ args, limit=limit) if not ids: ids = self.search(cr, user, [('name',operator,name)]+ args, limit=limit, cont...
466,990
def _process(format, modules, rows, buffer, lang, newlang): if format == 'csv': writer=csv.writer(buffer, 'UNIX') for row in rows: writer.writerow(row) elif format == 'po': rows.pop(0) writer = tools.TinyPoFile(buffer) writer.write_infos(modules)
def _process(format, modules, rows, buffer, lang, newlang): if format == 'csv': writer=csv.writer(buffer, 'UNIX') for row in rows: writer.writerow(row) elif format == 'po': rows.pop(0) writer = tools.TinyPoFile(buffer) writer.write_infos(modules)
466,991
def _rec_convert(ids): if field_obj == table: return ids return self.__execute_recursive_in(cr, field._id1, field._rel, field._id2, ids, operator, field._type)
def _rec_convert(ids): if field_obj == table: return ids return self.__execute_recursive_in(cr, field._id1, field._rel, field._id2, ids, operator, field._type)
466,992
def _rec_convert(ids): if field_obj == table: return ids return self.__execute_recursive_in(cr, field._id1, field._rel, field._id2, ids, operator, field._type)
def _rec_convert(ids): if field_obj == table: return ids return self.__execute_recursive_in(cr, field._id1, field._rel, field._id2, ids, operator, field._type)
466,993
def _rec_convert(ids): if field_obj == table: return ids return self.__execute_recursive_in(cr, field._id1, field._rel, field._id2, ids, operator, field._type)
def _rec_convert(ids): if field_obj == table: return ids return self.__execute_recursive_in(cr, field._id1, field._rel, field._id2, ids, operator, field._type)
466,994
def fields_view_get(self, cr, uid, view_id=None, view_type='form', context=None, toolbar=False, submenu=False): res = super(product_product,self).fields_view_get(cr, uid, view_id, view_type, context, toolbar=toolbar, submenu=submenu) if context == None: context = {} if ('location' in context) and context['location']: l...
def fields_view_get(self, cr, uid, view_id=None, view_type='form', context=None, toolbar=False, submenu=False): res = super(product_product,self).fields_view_get(cr, uid, view_id, view_type, context, toolbar=toolbar, submenu=submenu) if context == None: context = {} if ('location' in context) and context['location']: l...
466,995
def copy(self, cr, uid, id, default=None, context={}): if default is None: default = {} default = default.copy() picking_obj = self.browse(cr, uid, [id], context)[0] if ('name' not in default) or (picking_obj.get('name')=='/'): seq_obj_name = 'stock.picking.' + picking_obj.type default['name'] = self.pool.get('ir.sequ...
def copy(self, cr, uid, id, default=None, context={}): if default is None: default = {} default = default.copy() picking_obj = self.browse(cr, uid, [id], context)[0] if ('name' not in default) or (picking_obj.name=='/'): seq_obj_name = 'stock.picking.' + picking_obj.type default['name'] = self.pool.get('ir.sequence')....
466,996
def write(self, cr, uid, ids, vals, *args, **kwargs): if isinstance(ids, (int, long)): ids = [ids] if vals.get('date', False): data_project = self.browse(cr, uid, ids) for prj in data_project: new_end_date = date(*time.strptime(vals['date'],'%Y-%m-%d')[:3]) if prj.date: old_end_date = date(*time.strptime(prj.date,'%Y-%...
def write(self, cr, uid, ids, vals, *args, **kwargs): if isinstance(ids, (int, long)): ids = [ids] if vals.get('date', False): data_project = self.browse(cr, uid, ids) for prj in data_project: if isinstance(vals['date'], datetime): new_end_date = vals['date'].date() elif isinstance(vals['date'], date): new_end_date = v...
466,997
def fetch_mail(self, cr, uid, ids, context={}): email_tool = self.pool.get('email.server.tools') action_pool = self.pool.get('ir.actions.server') context.update({'get_server': True}) for server in self.browse(cr, uid, ids, context): count = 0 try: if server.type == 'imap': imap_server = self.button_confirm_login(cr, ui...
def fetch_mail(self, cr, uid, ids, context={}): email_tool = self.pool.get('email.server.tools') action_pool = self.pool.get('ir.actions.server') context.update({'get_server': True}) for server in self.browse(cr, uid, ids, context): count = 0 try: if server.type == 'imap': imap_server = self.button_confirm_login(cr, ui...
466,998
def fetch_mail(self, cr, uid, ids, context={}): email_tool = self.pool.get('email.server.tools') action_pool = self.pool.get('ir.actions.server') context.update({'get_server': True}) for server in self.browse(cr, uid, ids, context): count = 0 try: if server.type == 'imap': imap_server = self.button_confirm_login(cr, ui...
def fetch_mail(self, cr, uid, ids, context={}): email_tool = self.pool.get('email.server.tools') action_pool = self.pool.get('ir.actions.server') context.update({'get_server': True}) for server in self.browse(cr, uid, ids, context): count = 0 try: if server.type == 'imap': imap_server = self.button_confirm_login(cr, ui...
466,999