bugged stringlengths 4 228k | fixed stringlengths 0 96.3M | __index_level_0__ int64 0 481k |
|---|---|---|
def send_mail(self, cr, uid, ids, addresses, subject='', body=None, payload=None, message_id=None, context=None): #TODO: Replace all this with a single email object if body is None: body = {} if payload is None: payload = {} if context is None: context = {} logger = netsvc.Logger() for id in ids: core_obj = self.browse... | def send_mail(self, cr, uid, ids, addresses, subject='', body=None, payload=None, message_id=None, context=None): #TODO: Replace all this with a single email object if body is None: body = {} if payload is None: payload = {} if context is None: context = {} logger = netsvc.Logger() for id in ids: core_obj = self.browse... | 466,800 |
def send_mail(self, cr, uid, ids, addresses, subject='', body=None, payload=None, message_id=None, context=None): #TODO: Replace all this with a single email object if body is None: body = {} if payload is None: payload = {} if context is None: context = {} logger = netsvc.Logger() for id in ids: core_obj = self.browse... | def send_mail(self, cr, uid, ids, addresses, subject='', body=None, payload=None, message_id=None, context=None): #TODO: Replace all this with a single email object if body is None: body = {} if payload is None: payload = {} if context is None: context = {} logger = netsvc.Logger() for id in ids: core_obj = self.browse... | 466,801 |
def read(self, cr, user, ids, fields=None, context=None, load='_classic_read'): """ overrides orm Read method.Read List of fields for report creator. @param cr: the current row, from the database cursor, @param user: the current user’s ID for security checks, @param ids: List of report creator's id. @param fields: Lis... | def read(self, cr, user, ids, fields=None, context=None, load='_classic_read'): """ overrides orm Read method.Read List of fields for report creator. @param cr: the current row, from the database cursor, @param user: the current user’s ID for security checks, @param ids: List of report creator's id. @param fields: Lis... | 466,802 |
def read(self, cr, user, ids, fields=None, context=None, load='_classic_read'): """ overrides orm Read method.Read List of fields for report creator. @param cr: the current row, from the database cursor, @param user: the current user’s ID for security checks, @param ids: List of report creator's id. @param fields: Lis... | def read(self, cr, user, ids, fields=None, context=None, load='_classic_read'): """ overrides orm Read method.Read List of fields for report creator. @param cr: the current row, from the database cursor, @param user: the current user’s ID for security checks, @param ids: List of report creator's id. @param fields: Lis... | 466,803 |
def read(self, cr, user, ids, fields=None, context=None, load='_classic_read'): """ overrides orm Read method.Read List of fields for report creator. @param cr: the current row, from the database cursor, @param user: the current user’s ID for security checks, @param ids: List of report creator's id. @param fields: Lis... | def read(self, cr, user, ids, fields=None, context=None, load='_classic_read'): """ overrides orm Read method.Read List of fields for report creator. @param cr: the current row, from the database cursor, @param user: the current user’s ID for security checks, @param ids: List of report creator's id. @param fields: Lis... | 466,804 |
def read(self, cr, user, ids, fields=None, context=None, load='_classic_read'): """ overrides orm Read method.Read List of fields for report creator. @param cr: the current row, from the database cursor, @param user: the current user’s ID for security checks, @param ids: List of report creator's id. @param fields: Lis... | def read(self, cr, user, ids, fields=None, context=None, load='_classic_read'): """ overrides orm Read method.Read List of fields for report creator. @param cr: the current row, from the database cursor, @param user: the current user’s ID for security checks, @param ids: List of report creator's id. @param fields: Lis... | 466,805 |
def search(self, cr, user, args, offset=0, limit=None, order=None, context=None, count=False): """ overrides orm search method. @param cr: the current row, from the database cursor, @param user: the current user’s ID for security checks, @param args: list of tuples of form [(‘name_of_the_field’, ‘operator’, value), ..... | def search(self, cr, user, args, offset=0, limit=None, order=None, context=None, count=False): """ overrides orm search method. @param cr: the current row, from the database cursor, @param user: the current user’s ID for security checks, @param args: list of tuples of form [(‘name_of_the_field’, ‘operator’, value), ..... | 466,806 |
def do_partial(self, cr, uid, ids, partial_datas, context=None): """ Makes partial pickings and moves done. @param partial_datas: Dictionary containing details of partial picking like partner_id, address_id, delivery_date, delivery moves with product_id, product_qty, uom """ res = {} picking_obj = self.pool.get('stock.... | def do_partial(self, cr, uid, ids, partial_datas, context=None): """ Makes partial pickings and moves done. @param partial_datas: Dictionary containing details of partial picking like partner_id, address_id, delivery_date, delivery moves with product_id, product_qty, uom """ res = {} picking_obj = self.pool.get('stock.... | 466,807 |
def open_meeting(self, cr, uid, ids, context=None): """ Open Crm Meeting Form for Crm Meeting. @param cr: the current row, from the database cursor, @param uid: the current user’s ID for security checks, @param ids: List of crm meeting’s IDs @param context: A standard dictionary for contextual values @return: Dictionar... | def open_meeting(self, cr, uid, ids, context=None): """ Open Crm Meeting Form for Crm Meeting. @param cr: the current row, from the database cursor, @param uid: the current user’s ID for security checks, @param ids: List of crm meeting’s IDs @param context: A standard dictionary for contextual values @return: Dictionar... | 466,808 |
def _get_number_of_days(date_from, date_to): """Returns a float equals to the timedelta between two dates given as string.""" | def _get_number_of_days(self, date_from, date_to): """Returns a float equals to the timedelta between two dates given as string.""" | 466,809 |
def _get_number_of_days(date_from, date_to): """Returns a float equals to the timedelta between two dates given as string.""" | def _get_number_of_days(date_from, date_to): """Returns a float equals to the timedelta between two dates given as string.""" | 466,810 |
def onchange_date_to(self, cr, uid, ids, date_from, date_to): return onchange_date_from(cr, uid, ids, date_to, date_from) | def onchange_date_to(self, cr, uid, ids, date_from, date_to): return onchange_date_from(cr, uid, ids, date_to, date_from) | 466,811 |
def createInstance(cls, pool, module, cr): parent_names = getattr(cls, '_inherit', None) if parent_names: if isinstance(parent_names, (str, unicode)): name = cls._name or parent_names parent_names = [parent_names] else: name = cls._name if not name: raise TypeError('_name is mandatory in case of multiple inheritance') | def createInstance(cls, pool, module, cr): parent_names = getattr(cls, '_inherit', None) if parent_names: if isinstance(parent_names, (str, unicode)): name = cls._name or parent_names parent_names = [parent_names] else: name = cls._name if not name: raise TypeError('_name is mandatory in case of multiple inheritance') | 466,812 |
def createInstance(cls, pool, module, cr): parent_names = getattr(cls, '_inherit', None) if parent_names: if isinstance(parent_names, (str, unicode)): name = cls._name or parent_names parent_names = [parent_names] else: name = cls._name if not name: raise TypeError('_name is mandatory in case of multiple inheritance') | def createInstance(cls, pool, module, cr): parent_names = getattr(cls, '_inherit', None) if parent_names: if isinstance(parent_names, (str, unicode)): name = cls._name or parent_names parent_names = [parent_names] else: name = cls._name if not name: raise TypeError('_name is mandatory in case of multiple inheritance') | 466,813 |
fld_def = (field in self._columns) and self._columns[field] or self._inherit_fields[field][2] | fld_def = (field in self._columns) and self._columns[field] or self._inherit_fields[field][2] | 466,814 |
def case_open(self, cr, uid, ids, *args): """Overrides cancel for crm_case for setting Open Date @param self: The object pointer @param cr: the current row, from the database cursor, @param uid: the current user’s ID for security checks, @param ids: List of case's Ids @param *args: Give Tuple Value """ old_state = self... | def case_open(self, cr, uid, ids, *args): """Overrides cancel for crm_case for setting Open Date @param self: The object pointer @param cr: the current row, from the database cursor, @param uid: the current user’s ID for security checks, @param ids: List of case's Ids @param *args: Give Tuple Value """ old_state = self... | 466,815 |
def load_information_from_description_file(module): """ :param module: The name of the module (sale, purchase, ...) """ for filename in ['__openerp__.py', '__terp__.py']: description_file = os.path.join(module, filename) if os.path.isfile(description_file): return eval(file(description_file).read()) return {} | def load_information_from_description_file(module): """ :param module: The name of the module (sale, purchase, ...) """ for filename in ['__openerp__.py', '__terp__.py']: description_file = os.path.join(module, filename) if os.path.isfile(description_file): return eval(file(description_file).read()) return {} | 466,816 |
def load_information_from_description_file(module): """ :param module: The name of the module (sale, purchase, ...) """ for filename in ['__openerp__.py', '__terp__.py']: description_file = os.path.join(module, filename) if os.path.isfile(description_file): return eval(file(description_file).read()) return {} | def load_information_from_description_file(module): """ :param module: The name of the module (sale, purchase, ...) """ for filename in ['__openerp__.py', '__terp__.py']: description_file = os.path.join(module, filename) if os.path.isfile(description_file): return eval(file(description_file).read()) return {} | 466,817 |
def load_information_from_description_file(module): """ :param module: The name of the module (sale, purchase, ...) """ for filename in ['__openerp__.py', '__terp__.py']: description_file = os.path.join(module, filename) if os.path.isfile(description_file): return eval(file(description_file).read()) return {} | def load_information_from_description_file(module): """ :param module: The name of the module (sale, purchase, ...) """ for filename in ['__openerp__.py', '__terp__.py']: description_file = os.path.join(module, filename) if os.path.isfile(description_file): return eval(file(description_file).read()) return {} | 466,818 |
def load_information_from_description_file(module): """ :param module: The name of the module (sale, purchase, ...) """ for filename in ['__openerp__.py', '__terp__.py']: description_file = os.path.join(module, filename) if os.path.isfile(description_file): return eval(file(description_file).read()) return {} | def load_information_from_description_file(module): """ :param module: The name of the module (sale, purchase, ...) """ for filename in ['__openerp__.py', '__terp__.py']: description_file = os.path.join(module, filename) if os.path.isfile(description_file): return eval(file(description_file).read()) return {} | 466,819 |
def load_information_from_description_file(module): """ :param module: The name of the module (sale, purchase, ...) """ for filename in ['__openerp__.py', '__terp__.py']: description_file = os.path.join(module, filename) if os.path.isfile(description_file): return eval(file(description_file).read()) return {} | def load_information_from_description_file(module): """ :param module: The name of the module (sale, purchase, ...) """ for filename in ['__openerp__.py', '__terp__.py']: description_file = os.path.join(module, filename) if os.path.isfile(description_file): return eval(file(description_file).read()) return {} | 466,820 |
def _default_get(self, cr, uid, fields, context={}): if not context.get('journal_id', False) and context.get('search_default_journal_id', False): context['journal_id'] = context.get('search_default_journal_id') period_obj = self.pool.get('account.period') | def _default_get(self, cr, uid, fields, context={}): if not context.get('journal_id', False) and context.get('search_default_journal_id', False): context['journal_id'] = context.get('search_default_journal_id') period_obj = self.pool.get('account.period') | 466,821 |
def _default_get(self, cr, uid, fields, context={}): if not context.get('journal_id', False) and context.get('search_default_journal_id', False): context['journal_id'] = context.get('search_default_journal_id') period_obj = self.pool.get('account.period') | def _default_get(self, cr, uid, fields, context={}): if not context.get('journal_id', False) and context.get('search_default_journal_id', False): context['journal_id'] = context.get('search_default_journal_id') period_obj = self.pool.get('account.period') | 466,822 |
def rmdir(self, datacr): """Remove the specified directory.""" cr, node, rem = datacr assert node cr = self.get_node_cr(node) node.rmcol(cr) cr.commit() | def rmdir(self, datacr): """Remove the specified directory.""" cr, node, rem = datacr assert node node.rmcol(cr) cr.commit() | 466,823 |
def read_group(self, cr, uid, domain, fields, groupby, offset=0, limit=None, context=None): """ Get the list of records in list view grouped by the given ``groupby`` fields | def read_group(self, cr, uid, domain, fields, groupby, offset=0, limit=None, context=None): """ Get the list of records in list view grouped by the given ``groupby`` fields | 466,824 |
def unlink(self, cr, uid, ids, context=None): res = False for id in ids: ls = common.caldav_id2real_id(id) if not isinstance(ls, (str, int, long)) and len(ls) >= 2: date_new = ls[1] for record in self.read(cr, uid, [common.caldav_id2real_id(id)], \ ['date', 'rrule', 'exdate']): if record['rrule']: exdate = (record['exd... | def unlink(self, cr, uid, ids, context=None): res = False for id in ids: ls = common.caldav_id2real_id(id) if not isinstance(ls, (str, int, long)) and len(ls) >= 2: date_new = ls[1] for record in self.read(cr, uid, [common.caldav_id2real_id(id)], \ ['date', 'rrule', 'exdate']): if record['rrule']: exdate = (record['exd... | 466,825 |
def unlink(self, cr, uid, ids, context=None): res = False for id in ids: ls = common.caldav_id2real_id(id) if not isinstance(ls, (str, int, long)) and len(ls) >= 2: date_new = ls[1] for record in self.read(cr, uid, [common.caldav_id2real_id(id)], \ ['date', 'rrule', 'exdate']): if record['rrule']: exdate = (record['exd... | def unlink(self, cr, uid, ids, context=None): res = False for id in ids: ls = common.caldav_id2real_id(id) if not isinstance(ls, (str, int, long)) and len(ls) >= 2: date_new = ls[1] for record in self.read(cr, uid, [common.caldav_id2real_id(id)], \ ['date', 'rrule', 'exdate']): if record['rrule']: exdate = (record['exd... | 466,826 |
def fill_inventory(self, cr, uid, ids, context): """ To Import stock inventory according to products available in the selected locations. @param self: The object pointer. @param cr: A database cursor @param uid: ID of the user currently logged in @param ids: the ID or list of IDs if we want more than one @param context... | def fill_inventory(self, cr, uid, ids, context): """ To Import stock inventory according to products available in the selected locations. @param self: The object pointer. @param cr: A database cursor @param uid: ID of the user currently logged in @param ids: the ID or list of IDs if we want more than one @param context... | 466,827 |
def _print_report(self, cr, uid, ids, data, query_line, context=None): | def _print_report(self, cr, uid, ids, data, query_line, context=None): | 466,828 |
def action_produce(self, cr, uid, production_id, production_qty, production_mode, context=None): """ To produce final product base on production mode (consume/consume&produce). If Production mode is consume, all stock move lines of raw materials will be done/consumed. If Production mode is consume & produce, all stock ... | def action_produce(self, cr, uid, production_id, production_qty, production_mode, context=None): """ To produce final product base on production mode (consume/consume&produce). If Production mode is consume, all stock move lines of raw materials will be done/consumed. If Production mode is consume & produce, all stock ... | 466,829 |
def read_group(self, cr, uid, domain, fields, groupby, offset=0, limit=None, context=None): groupby_list = groupby if isinstance(groupby, list): groupby = groupby[0] context = context or {} self.pool.get('ir.model.access').check(cr, uid, self._name, 'read', context=context) if not fields: fields = self._columns.keys() | def read_group(self, cr, uid, domain, fields, groupby, offset=0, limit=None, context=None): groupby_list = groupby if isinstance(groupby, list): groupby = groupby[0] context = context or {} self.pool.get('ir.model.access').check(cr, uid, self._name, 'read', context=context) if not fields: fields = self._columns.keys() | 466,830 |
def init(self, cr): drop_view_if_exists(cr, 'stock_report_prodlots') cr.execute(""" create or replace view stock_report_tracklots as ( select max(id) as id, location_id, product_id, tracking_id, sum(qty) as name from ( select -max(sm.id) as id, sm.location_id, sm.product_id, sm.tracking_id, -sum(sm.product_qty /uo.fac... | def init(self, cr): drop_view_if_exists(cr, 'stock_report_tracklots') cr.execute(""" create or replace view stock_report_tracklots as ( select max(id) as id, location_id, product_id, tracking_id, sum(qty) as name from ( select -max(sm.id) as id, sm.location_id, sm.product_id, sm.tracking_id, -sum(sm.product_qty /uo.fa... | 466,831 |
def init(self, cr): drop_view_if_exists(cr, 'stock_report_prodlots') cr.execute(""" create or replace view report_stock_lines_date as ( select p.id as id, p.id as product_id, max(s.date) as date from product_product p left outer join stock_inventory_line l on (p.id=l.product_id) left join stock_inventory s on (l.invent... | def init(self, cr): drop_view_if_exists(cr, 'report_stock_lines_date') cr.execute(""" create or replace view report_stock_lines_date as ( select p.id as id, p.id as product_id, max(s.date) as date from product_product p left outer join stock_inventory_line l on (p.id=l.product_id) left join stock_inventory s on (l.inve... | 466,832 |
def action_produce_assign_product(self, cr, uid, ids, context={}): """ @summary : This is action which call from workflow to assign production order to procuments @return : True """ res = self.make_mo(cr, uid, ids, context=context) return 1 #TO CHECK: why workflow is generated error if return True | def action_produce_assign_product(self, cr, uid, ids, context={}): """ @summary : This is action which call from workflow to assign production order to procuments @return : True """ res = self.make_mo(cr, uid, ids, context=context) res = res.values() return len(res) and res[0] or 0 #TO CHECK: why workflow is generated... | 466,833 |
def action_po_assign(self, cr, uid, ids, context={}): """ @summary : This is action which call from workflow to assign purchase order to procuments @return : True """ res = self.make_po(cr, uid, ids, context=context) return 1 #TO CHECK: why workflow is generated error if return True | def action_po_assign(self, cr, uid, ids, context={}): """ @summary : This is action which call from workflow to assign purchase order to procuments @return : True """ res = self.make_po(cr, uid, ids, context=context) res = res.values() return len(res) and res[0] or 0 #TO CHECK: why workflow is generated error if retur... | 466,834 |
def on_change_unit_amount(self, cr, uid, id, prod_id, quantity, company_id, unit=False, journal_id=False, context=None): if context==None: context={} if not journal_id: j_ids = self.pool.get('account.analytic.journal').search(cr, uid, [('type','=','purchase')]) journal_id = j_ids and j_ids[0] or False if not journal_id... | def on_change_unit_amount(self, cr, uid, id, prod_id, quantity, company_id, unit=False, journal_id=False, context=None): if context==None: context={} if not journal_id: j_ids = self.pool.get('account.analytic.journal').search(cr, uid, [('type','=','purchase')]) journal_id = j_ids and j_ids[0] or False if not journal_id... | 466,835 |
def search(self, cr, uid, args, offset=0, limit=None, order=None, context=None, count=False): | def search(self, cr, uid, args, offset=0, limit=None, order=None, context=None, count=False): | 466,836 |
def search(self, cr, uid, args, offset=0, limit=None, order=None, context=None, count=False): | def search(self, cr, uid, args, offset=0, limit=None, order=None, context=None, count=False): | 466,837 |
def onchange_dates(self, cr, uid, ids, start_date, duration=False, end_date=False, allday=False, context=None): """Returns duration and/or end date based on values passed @param self: The object pointer @param cr: the current row, from the database cursor, @param uid: the current user’s ID for security checks, @param i... | def onchange_dates(self, cr, uid, ids, start_date, duration=False, end_date=False, allday=False, context=None): """Returns duration and/or end date based on values passed @param self: The object pointer @param cr: the current row, from the database cursor, @param uid: the current user’s ID for security checks, @param i... | 466,838 |
def onchange_dates(self, cr, uid, ids, start_date, duration=False, end_date=False, allday=False, context=None): """Returns duration and/or end date based on values passed @param self: The object pointer @param cr: the current row, from the database cursor, @param uid: the current user’s ID for security checks, @param i... | def onchange_dates(self, cr, uid, ids, start_date, duration=False, end_date=False, allday=False, context=None): """Returns duration and/or end date based on values passed @param self: The object pointer @param cr: the current row, from the database cursor, @param uid: the current user’s ID for security checks, @param i... | 466,839 |
def rg(ids, table, parent): if not ids: return [] ids2 = table.search(cr, uid, [(parent, 'in', ids)], context=context) return ids + rg(ids2, table, parent) | def rg(ids, table, parent): if not ids: return [] ids2 = table.search(cr, uid, [(parent, 'in', ids)], context=context) return ids + rg(ids2, table, parent) | 466,840 |
def prep_http_options(self, uri, opts): """see HttpOptions._prep_OPTIONS """ self.parent.log_message('get options: %s' % uri) cr, uid, pool, dbname, uri2 = self.get_cr(uri, allow_last=True) | def prep_http_options(self, uri, opts): """see HttpOptions._prep_OPTIONS """ self.parent.log_message('get options: %s' % uri) cr, uid, pool, dbname, uri2 = self.get_cr(uri, allow_last=True) | 466,841 |
def _path_get(self,cr, uid, models, filter_ids=[]): | def _path_get(self,cr, uid, models, filter_ids=[]): | 466,842 |
def _path_get(self,cr, uid, models, filter_ids=[]): | def _path_get(self,cr, uid, models, filter_ids=[]): | 466,843 |
def _path_get(self,cr, uid, models, filter_ids=[]): | def _path_get(self,cr, uid, models, filter_ids=[]): | 466,844 |
def _result_get(x, keys): if x[1] in keys: return False keys.append(x[1]) if x[3]: model,id = x[2].split(',') id = int(id) fields = self.pool.get(model).fields_get_keys(cr, uid) pos = 0 while pos<len(fields): if fields[pos] in ('report_sxw_content', 'report_rml_content', 'report_sxw', 'report_rml', 'report_sxw_content_... | def _result_get(x, keys): if x[1] in keys: return False keys.append(x[1]) if x[3]: model,id = x[2].split(',') id = int(id) fields = self.pool.get(model).fields_get_keys(cr, uid) pos = 0 while pos<len(fields): if fields[pos] in ('report_sxw_content', 'report_rml_content', 'report_sxw', 'report_rml', 'report_sxw_content_... | 466,845 |
def _get_lines(self, cr, uid, ids, name, arg, context=None): res = {} for invoice in self.browse(cr, uid, ids, context=context): id = invoice.id res[id] = [] if not invoice.move_id: continue data_lines = invoice.move_id.line_id partial_ids = [] for line in data_lines: ids_line = [] if line.reconcile_id: ids_line = line... | def _get_lines(self, cr, uid, ids, name, arg, context=None): res = {} for invoice in self.browse(cr, uid, ids, context=context): id = invoice.id res[id] = [] if not invoice.move_id: continue data_lines = [x for x in invoice.move_id.line_id if x.account_id.id == invoice.account_id.id] partial_ids = [] for line in data_l... | 466,846 |
def get_children_accounts(self, account, form): res = [] ids_acc = self.pool.get('account.account')._get_children_and_consol(self.cr, self.uid, account.id) for child_account in self.pool.get('account.account').browse(self.cr, self.uid, ids_acc): sql = """ SELECT count(id) FROM account_move_line l WHERE %s AND l.account... | def get_children_accounts(self, account, form): res = [] ids_acc = self.pool.get('account.account')._get_children_and_consol(self.cr, self.uid, account.id) for child_account in self.pool.get('account.account').browse(self.cr, self.uid, ids_acc): sql = """ SELECT count(id) FROM account_move_line l WHERE %s AND l.account... | 466,847 |
def get_children_accounts(self, account, form): res = [] ids_acc = self.pool.get('account.account')._get_children_and_consol(self.cr, self.uid, account.id) for child_account in self.pool.get('account.account').browse(self.cr, self.uid, ids_acc): sql = """ SELECT count(id) FROM account_move_line l WHERE %s AND l.account... | def get_children_accounts(self, account, form): res = [] ids_acc = self.pool.get('account.account')._get_children_and_consol(self.cr, self.uid, account.id) for child_account in self.pool.get('account.account').browse(self.cr, self.uid, ids_acc): sql = """ SELECT count(id) FROM account_move_line l WHERE %s AND l.account... | 466,848 |
def create(self, cr, uid, vals, context=None): | def create(self, cr, uid, vals, context=None): | 466,849 |
def write(self, cr, uid, ids, vals, context=None): | defwrite(self,cr,uid,ids,vals,context=None): | 466,850 |
def action_forward(self, cr, uid, ids, context=None): """ Forward the lead to a partner """ this = self.browse(cr, uid, ids[0], context=context) case_pool = self.pool.get(context.get('active_model')) res_id = context and context.get('active_id', False) or False case = case_pool.browse(cr, uid, res_id, context=context) | def action_forward(self, cr, uid, ids, context=None): """ Forward the lead to a partner """ this = self.browse(cr, uid, ids[0], context=context) case_pool = self.pool.get(context.get('active_model')) res_id = context and context.get('active_id', False) or False case = case_pool.browse(cr, uid, res_id, context=context) | 466,851 |
def action_forward(self, cr, uid, ids, context=None): """ Forward the lead to a partner """ this = self.browse(cr, uid, ids[0], context=context) case_pool = self.pool.get(context.get('active_model')) res_id = context and context.get('active_id', False) or False case = case_pool.browse(cr, uid, res_id, context=context) | def action_forward(self, cr, uid, ids, context=None): """ Forward the lead to a partner """ this = self.browse(cr, uid, ids[0], context=context) case_pool = self.pool.get(context.get('active_model')) res_id = context and context.get('active_id', False) or False case = case_pool.browse(cr, uid, res_id, context=context) | 466,852 |
def _check_recursion(self, cr, uid, ids): obj_task = self.browse(cr, uid, ids[0]) parent_ids = [x.id for x in obj_task.parent_ids] children_ids = [x.id for x in obj_task.child_ids] | def _check_recursion(self, cr, uid, ids): obj_task = self.browse(cr, uid, ids[0]) parent_ids = [x.id for x in obj_task.parent_ids] children_ids = [x.id for x in obj_task.child_ids] | 466,853 |
def read_group(self, cr, uid, domain, fields, groupby, offset=0, limit=None, context=None): raise _('The read_group method is not implemented on this object !') | def read_group(self, cr, uid, domain, fields, groupby, offset=0, limit=None, context=None): raise _('The read_group method is not implemented on this object !') | 466,854 |
def read(self, cr, user, ids, fields=None, context=None, load='_classic_read'): raise _('The read method is not implemented on this object !') | def read(self, cr, user, ids, fields=None, context=None, load='_classic_read'): raise _('The read method is not implemented on this object !') | 466,855 |
def perm_read(self, cr, user, ids, context=None, details=True): raise _('The perm_read method is not implemented on this object !') | def perm_read(self, cr, user, ids, context=None, details=True): raise _('The perm_read method is not implemented on this object !') | 466,856 |
def unlink(self, cr, uid, ids, context=None): raise _('The unlink method is not implemented on this object !') | def unlink(self, cr, uid, ids, context=None): raise _('The unlink method is not implemented on this object !') | 466,857 |
def write(self, cr, user, ids, vals, context=None): raise _('The write method is not implemented on this object !') | def write(self, cr, user, ids, vals, context=None): raise _('The write method is not implemented on this object !') | 466,858 |
def create(self, cr, user, vals, context=None): raise _('The create method is not implemented on this object !') | def create(self, cr, user, vals, context=None): raise _('The create method is not implemented on this object !') | 466,859 |
def perm_write(self, cr, user, ids, fields, context=None): raise _('This method does not exist anymore') | def perm_write(self, cr, user, ids, fields, context=None): raise _('This method does not exist anymore') | 466,860 |
def _default_model(self, cursor, user, context=None): """ Returns the default value for model field @param cursor: Database Cursor @param user: ID of current user @param context: OpenERP Context """ return self.pool.get('email.template').read( cursor, user, context['template_id'], ['object_name'], context)['object_name... | def _default_model(self, cursor, user, context=None): """ Returns the default value for model field @param cursor: Database Cursor @param user: ID of current user @param context: OpenERP Context """ return self.pool.get('email.template').read( cursor, user, context['template_id'], ['object_name'], context)['object_name... | 466,861 |
def _default_model(self, cursor, user, context=None): """ Returns the default value for model field @param cursor: Database Cursor @param user: ID of current user @param context: OpenERP Context """ return self.pool.get('email.template').read( cursor, user, context['template_id'], ['object_name'], context)['object_name... | def _default_model(self, cursor, user, context=None): """ Returns the default value for model field @param cursor: Database Cursor @param user: ID of current user @param context: OpenERP Context """ return self.pool.get('email.template').read( cursor, user, context['template_id'], ['object_name'], context)['object_name... | 466,862 |
def create_action(self, cr, uid, ids, context): vals = {} template_obj = self.browse(cr, uid, ids)[0] src_obj = template_obj.object_name.model vals['ref_ir_act_window'] = self.pool.get('ir.actions.act_window').create(cr, uid, { 'name': _("%s Mail Form") % template_obj.name, 'type': 'ir.actions.act_window', 'res_model':... | def create_action(self, cr, uid, ids, context): vals = {} template_obj = self.browse(cr, uid, ids)[0] src_obj = template_obj.object_name.model vals['ref_ir_act_window'] = self.pool.get('ir.actions.act_window').create(cr, uid, { 'name': template_obj.name, 'type': 'ir.actions.act_window', 'res_model': 'email_template.sen... | 466,863 |
def onchange_type(self, cr, uid, line_id, partner_id, type, context=None): res = {'value': {}} obj_partner = self.pool.get('res.partner') if context is None: context = {} if not partner_id: return res account_id = False line = self.browse(cr, uid, line_id) if not line or (line and not line[0].account_id): part = obj_pa... | def onchange_type(self, cr, uid, line_id, partner_id, type, context=None): res = {'value': {}} obj_partner = self.pool.get('res.partner') if context is None: context = {} if not partner_id: return res account_id = False line = self.browse(cr, uid, line_id) if not line or (line and not line[0].account_id): part = obj_pa... | 466,864 |
def mime_match(mime, mdict): if mdict.has_key(mime): return (mime, mdict[mime]) if '/' in mime: mpat = mime.split('/')[0]+'/*' if mdict.has_key(mpat): return (mime, mdict[mpat]) return (None, None) | def mime_match(mime, mdict): if mdict.has_key(mime): return (mime, mdict[mime]) if '/' in mime: mpat = mime.split('/')[0]+'/*' if mdict.has_key(mpat): return (mime, mdict[mpat]) return (None, None) | 466,865 |
def register(self, obj): f = False for mime in obj._getMimeTypes(): self.mimes[mime] = obj f = True for ext in obj._getExtensions(): self.exts[ext] = obj f = True if f: log(netsvc.LOG_DEBUG, "Register content indexer: %r" % obj) if not f: raise Exception("Your indexer should at least suport a mimetype or extension") | def register(self, obj): f = False for mime in obj._getMimeTypes(): self.mimes[mime] = obj f = True for ext in obj._getExtensions(): self.exts[ext] = obj f = True if f: self.__logger.debug('Register content indexer: %s', obj) if not f: raise Exception("Your indexer should at least suport a mimetype or extension") | 466,866 |
def doIndex(self,content, filename=None, content_type=None, realfname = None, debug=False): fobj = None fname = None mime = None if content_type and self.mimes.has_key(content_type): mime = content_type fobj = self.mimes[content_type] elif filename: bname,ext = os.path.splitext(filename) if self.exts.has_key(ext): fobj... | def doIndex(self,content, filename=None, content_type=None, realfname = None, debug=False): fobj = None fname = None mime = None if content_type and self.mimes.has_key(content_type): mime = content_type fobj = self.mimes[content_type] elif filename: bname,ext = os.path.splitext(filename) if self.exts.has_key(ext): fobj... | 466,867 |
def doIndex(self,content, filename=None, content_type=None, realfname = None, debug=False): fobj = None fname = None mime = None if content_type and self.mimes.has_key(content_type): mime = content_type fobj = self.mimes[content_type] elif filename: bname,ext = os.path.splitext(filename) if self.exts.has_key(ext): fobj... | def doIndex(self,content, filename=None, content_type=None, realfname = None, debug=False): fobj = None fname = None mime = None if content_type and self.mimes.has_key(content_type): mime = content_type fobj = self.mimes[content_type] elif filename: bname,ext = os.path.splitext(filename) if self.exts.has_key(ext): fobj... | 466,868 |
def doIndex(self,content, filename=None, content_type=None, realfname = None, debug=False): fobj = None fname = None mime = None if content_type and self.mimes.has_key(content_type): mime = content_type fobj = self.mimes[content_type] elif filename: bname,ext = os.path.splitext(filename) if self.exts.has_key(ext): fobj... | def doIndex(self,content, filename=None, content_type=None, realfname = None, debug=False): fobj = None fname = None mime = None if content_type and self.mimes.has_key(content_type): mime = content_type fobj = self.mimes[content_type] elif filename: bname,ext = os.path.splitext(filename) if self.exts.has_key(ext): fobj... | 466,869 |
def doIndex(self,content, filename=None, content_type=None, realfname = None, debug=False): fobj = None fname = None mime = None if content_type and self.mimes.has_key(content_type): mime = content_type fobj = self.mimes[content_type] elif filename: bname,ext = os.path.splitext(filename) if self.exts.has_key(ext): fobj... | def doIndex(self,content, filename=None, content_type=None, realfname = None, debug=False): fobj = None fname = None mime = None if content_type and self.mimes.has_key(content_type): mime = content_type fobj = self.mimes[content_type] elif filename: bname,ext = os.path.splitext(filename) if self.exts.has_key(ext): fobj... | 466,870 |
def doIndex(self,content, filename=None, content_type=None, realfname = None, debug=False): fobj = None fname = None mime = None if content_type and self.mimes.has_key(content_type): mime = content_type fobj = self.mimes[content_type] elif filename: bname,ext = os.path.splitext(filename) if self.exts.has_key(ext): fobj... | def doIndex(self,content, filename=None, content_type=None, realfname = None, debug=False): fobj = None fname = None mime = None if content_type and self.mimes.has_key(content_type): mime = content_type fobj = self.mimes[content_type] elif filename: bname,ext = os.path.splitext(filename) if self.exts.has_key(ext): fobj... | 466,871 |
def _default_values(self, cr, uid, data, context): case_obj = pooler.get_pool(cr.dbname).get('crm.opportunity') categ_id = pooler.get_pool(cr.dbname).get('crm.phonecall.categ').search(cr, uid, [('name','=','Outbound')]) case = case_obj.browse(cr, uid, data['id']) return { 'user_id' : case.user_id and case.user_id.id, '... | def _default_values(self, cr, uid, data, context): case_obj = pooler.get_pool(cr.dbname).get('crm.opportunity') categ_id = pooler.get_pool(cr.dbname).get('crm.phonecall.categ').search(cr, uid, [('name','=','Outbound')]) case = case_obj.browse(cr, uid, data['id']) return { 'user_id' : case.user_id and case.user_id.id, '... | 466,872 |
def parse_ics(self, cr, uid, child, cal_children=None, context=None): """ parse calendaring and scheduling information @param self: The object pointer @param cr: the current row, from the database cursor, @param uid: the current user’s ID for security checks, @param context: A standard dictionary for contextual values ... | def parse_ics(self, cr, uid, child, cal_children=None, context=None): """ parse calendaring and scheduling information @param self: The object pointer @param cr: the current row, from the database cursor, @param uid: the current user’s ID for security checks, @param context: A standard dictionary for contextual values ... | 466,873 |
def _get_id(self, cr, uid, model, id): if type(id)==type(()): id=id[0] if (model,id) in self.ids: return self.ids[(model,id)], False dt = self.pool.get('ir.model.data') dtids = dt.search(cr, uid, [('model','=',model), ('res_id','=',id)]) if not dtids: return False, None obj = dt.browse(cr, uid, dtids[0]) self.depends[o... | def _get_id(self, cr, uid, model, id): if type(id)==type(()): id=id[0] if (model,id) in self.ids: return self.ids[(model,id)], False dt = self.pool.get('ir.model.data') dtids = dt.search(cr, uid, [('model','=',model), ('res_id','=',id)]) if not dtids: return False, None obj = dt.browse(cr, uid, dtids[0]) self.depends[o... | 466,874 |
def _generate_object_xml(self, cr, uid, rec, recv, doc, result=None): record_list = [] noupdate = False if rec[4]=='write': for id in rec[5]: id,update = self._get_id(cr, uid, rec[3], id) noupdate = noupdate or update if not id: continue record,update = self._create_record(cr, uid, doc, rec[3], rec[6], id) noupdate = n... | def _generate_object_xml(self, cr, uid, rec, recv, doc, result=None): record_list = [] noupdate = False if rec[4]=='write': for id in rec[5]: id,update = self._get_id(cr, uid, rec[3], id) noupdate = noupdate or update if not id: continue record,update = self._create_record(cr, uid, doc, rec[3], rec[6], id) noupdate = n... | 466,875 |
def generate_xml(self, cr, uid): # Create the minidom document if len(self.recording_data): self.ids = {} doc = minidom.Document() terp = doc.createElement("openerp") doc.appendChild(terp) for rec in self.recording_data: if rec[0]=='workflow': rec_id,noupdate = self._get_id(cr, uid, rec[1][2], rec[1][4]) if not rec_id:... | def generate_xml(self, cr, uid): # Create the minidom document if len(self.recording_data): self.ids = {} doc = minidom.Document() terp = doc.createElement("openerp") doc.appendChild(terp) for rec in self.recording_data: if rec[0]=='workflow': rec_id,noupdate = self._get_id(cr, uid, rec[1][2], rec[1][4]) if not rec_id:... | 466,876 |
def generate_yaml(self, cr, uid): self.ids = {} if len(self.recording_data): yaml_file='''\n''' for rec in self.recording_data: if rec[1][3] == 'create': self.mode="create" elif rec[1][3] == 'write': self.mode="write" elif rec[1][3] == 'copy': self.mode="copy" elif rec[0] == 'workflow': self.mode="workflow" else: cont... | def generate_yaml(self, cr, uid): self.ids = {} if len(self.recording_data): yaml_file='''\n''' for rec in self.recording_data: if rec[1][3] == 'create': self.mode="create" elif rec[1][3] == 'write': self.mode="write" elif rec[1][3] == 'copy': self.mode="copy" elif rec[0] == 'workflow': self.mode="workflow" else: cont... | 466,877 |
def generate_yaml(self, cr, uid): self.ids = {} if len(self.recording_data): yaml_file='''\n''' for rec in self.recording_data: if rec[1][3] == 'create': self.mode="create" elif rec[1][3] == 'write': self.mode="write" elif rec[1][3] == 'copy': self.mode="copy" elif rec[0] == 'workflow': self.mode="workflow" else: cont... | def generate_yaml(self, cr, uid): self.ids = {} if len(self.recording_data): yaml_file='''\n''' for rec in self.recording_data: if rec[1][3] == 'create': self.mode="create" elif rec[1][3] == 'write': self.mode="write" elif rec[1][3] == 'copy': self.mode="copy" elif rec[0] == 'workflow': self.mode="workflow" else: cont... | 466,878 |
def get(self, cr, obj, ids, name, user=None, offset=0, context=None, values=None): if not context: context = {} if not values: values = {} res = {} if not ids: return res for id in ids: res[id] = [] limit_str = self._limit is not None and ' limit %d' % self._limit or '' obj = obj.pool.get(self._obj) | defget(self,cr,obj,ids,name,user=None,offset=0,context=None,values=None):ifnotcontext:context={}ifnotvalues:values={}res={}ifnotids:returnresforidinids:res[id]=[]limit_str=self._limitisnotNoneand'limit%d'%self._limitor''obj=obj.pool.get(self._obj) | 466,879 |
def get(self, cr, obj, ids, name, user=None, offset=0, context=None, values=None): if not context: context = {} if not values: values = {} res = {} if not ids: return res for id in ids: res[id] = [] limit_str = self._limit is not None and ' limit %d' % self._limit or '' obj = obj.pool.get(self._obj) | def get(self, cr, obj, ids, name, user=None, offset=0, context=None, values=None): if not context: context = {} if not values: values = {} res = {} if not ids: return res for id in ids: res[id] = [] limit_str = self._limit is not None and ' limit %d' % self._limit or '' obj = obj.pool.get(self._obj) | 466,880 |
def _unit_compute(self, cr, uid, taxes, price_unit, address_id=None, product=None, partner=None, quantity=0): taxes = self._applicable(cr, uid, taxes, price_unit, address_id, product, partner) res = [] cur_price_unit=price_unit for tax in taxes: # we compute the amount for the current tax object and append it to the re... | def _unit_compute(self, cr, uid, taxes, price_unit, address_id=None, product=None, partner=None, quantity=0): taxes = self._applicable(cr, uid, taxes, price_unit, address_id, product, partner) res = [] cur_price_unit=price_unit for tax in taxes: # we compute the amount for the current tax object and append it to the re... | 466,881 |
def compute_tax(self, cr, uid, ids, context={}): tax_pool = self.pool.get('account.tax') partner_pool = self.pool.get('res.partner') position_pool = self.pool.get('account.fiscal.position') voucher_line_pool = self.pool.get('account.voucher.line') voucher_pool = self.pool.get('account.voucher') for voucher in voucher_... | defcompute_tax(self,cr,uid,ids,context={}):tax_pool=self.pool.get('account.tax')partner_pool=self.pool.get('res.partner')position_pool=self.pool.get('account.fiscal.position')voucher_line_pool=self.pool.get('account.voucher.line')voucher_pool=self.pool.get('account.voucher')forvoucherinvoucher_pool.browse(cr,uid,ids,co... | 466,882 |
def unlink(self, cr, uid, ids, context=None): for t in self.read(cr, uid, ids, ['state'], context=context): if t['state'] not in ('draft', 'cancel'): raise osv.except_osv(_('Invalid action !'), _('Cannot delete Voucher(s) which are already opened or paid !')) return super(account_voucher, self).unlink(cr, uid, ids, con... | def unlink(self, cr, uid, ids, context=None): for t in self.read(cr, uid, ids, ['state'], context=context): if t['state'] not in ('draft', 'cancel'): raise osv.except_osv(_('Invalid action !'), _('Cannot delete Voucher(s) which are already opened or paid !')) return super(account_voucher, self).unlink(cr, uid, ids, con... | 466,883 |
def _process_text(self, txt): if not self.localcontext: return str2xml(txt) if not txt: return '' result = '' sps = _regex.split(txt) while sps: # This is a simple text to translate result += unicode(self.localcontext.get('translate', lambda x:x)(sps.pop(0))) if sps: try: expr = sps.pop(0) txt = eval(expr,self.localcon... | def _process_text(self, txt): if not self.localcontext: return str2xml(txt) if not txt: return '' result = '' sps = _regex.split(txt) while sps: # This is a simple text to translate to_translate = tools.ustr(sps.pop(0)) result += tools.ustr(self.localcontext.get('translate', lambda x:x)(to_translate)) if sps: try: expr... | 466,884 |
def _process_text(self, txt): if not self.localcontext: return str2xml(txt) if not txt: return '' result = '' sps = _regex.split(txt) while sps: # This is a simple text to translate result += unicode(self.localcontext.get('translate', lambda x:x)(sps.pop(0))) if sps: try: expr = sps.pop(0) txt = eval(expr,self.localcon... | def _process_text(self, txt): if not self.localcontext: return str2xml(txt) if not txt: return '' result = '' sps = _regex.split(txt) while sps: # This is a simple text to translate result += unicode(self.localcontext.get('translate', lambda x:x)(sps.pop(0))) if sps: try: expr = sps.pop(0) txt = eval(expr, self.localco... | 466,885 |
def _process_text(self, txt): if not self.localcontext: return str2xml(txt) if not txt: return '' result = '' sps = _regex.split(txt) while sps: # This is a simple text to translate result += unicode(self.localcontext.get('translate', lambda x:x)(sps.pop(0))) if sps: try: expr = sps.pop(0) txt = eval(expr,self.localcon... | def _process_text(self, txt): if not self.localcontext: return str2xml(txt) if not txt: return '' result = '' sps = _regex.split(txt) while sps: # This is a simple text to translate result += unicode(self.localcontext.get('translate', lambda x:x)(sps.pop(0))) if sps: try: expr = sps.pop(0) txt = eval(expr,self.localcon... | 466,886 |
def geo_find(addr): import urllib,re regex = '<coordinates>([+-]?[0-9\.]+),([+-]?[0-9\.]+),([+-]?[0-9\.]+)</coordinates>' url = 'http://maps.google.com/maps/geo?q=' + urllib.quote(addr) + '&output=xml&oe=utf8&sensor=false' xml = urllib.urlopen(url).read() if '<error>' in xml: print 'Error' return None result = re.searc... | def geo_find(addr): import urllib,re regex = '<coordinates>([+-]?[0-9\.]+),([+-]?[0-9\.]+),([+-]?[0-9\.]+)</coordinates>' url = 'http://maps.google.com/maps/geo?q=' + urllib.quote(addr) + '&output=xml&oe=utf8&sensor=false' xml = urllib.urlopen(url).read() if '<error>' in xml: return None result = re.search(regex, xml, ... | 466,887 |
def geo_find(addr): import urllib,re regex = '<coordinates>([+-]?[0-9\.]+),([+-]?[0-9\.]+),([+-]?[0-9\.]+)</coordinates>' url = 'http://maps.google.com/maps/geo?q=' + urllib.quote(addr) + '&output=xml&oe=utf8&sensor=false' xml = urllib.urlopen(url).read() if '<error>' in xml: print 'Error' return None result = re.searc... | def geo_find(addr): import urllib,re regex = '<coordinates>([+-]?[0-9\.]+),([+-]?[0-9\.]+),([+-]?[0-9\.]+)</coordinates>' url = 'http://maps.google.com/maps/geo?q=' + urllib.quote(addr) + '&output=xml&oe=utf8&sensor=false' xml = urllib.urlopen(url).read() if '<error>' in xml: print 'Error' return None result = re.searc... | 466,888 |
def forward_to_partner(self, cr, uid, ids, context=None): fobj = self.pool.get('crm.lead.forward.to.partner') for lead in self.browse(cr, uid, ids, context=context): if lead.partner_assigned_id: email = False if lead.partner_assigned_id.address: email = lead.partner_assigned_id.address[0].email forward = fobj.create(cr... | def forward_to_partner(self, cr, uid, ids, context=None): fobj = self.pool.get('crm.lead.forward.to.partner') for lead in self.browse(cr, uid, ids, context=context): if lead.partner_assigned_id: email = False if lead.partner_assigned_id.address: email = lead.partner_assigned_id.address[0].email forward = fobj.create(cr... | 466,889 |
def search(self, cr, user, args, offset=0, limit=None, order=None, context=None, count=False): for arg in args: if arg[0]=='address_id': self._order = 'sequence_partner' if arg[0]=='contact_id': self._order = 'sequence_contact' return super(res_partner_job,self).search(cr, user, args, offset, limit, order, context, cou... | def search(self, cr, user, args, offset=0, limit=None, order=None, context=None, count=False): for arg in args: if arg[0]=='address_id': self._order = 'sequence_partner' if arg[0]=='contact_id': self._order = 'sequence_contact' return super(res_partner_job,self).search(cr, user, args, offset, limit, order, context, cou... | 466,890 |
def _get_users(self, cr, uid, context={}): return self.pool.get('res.users').search(cr, uid, []) | def _get_users(self, cr, uid, context={}): return self.pool.get('res.users').search(cr, uid, []) | 466,891 |
def _get_users(self, cr, uid, context={}): return self.pool.get('res.users').search(cr, uid, []) | def _get_users(self, cr, uid, context={}): return self.pool.get('res.users').search(cr, uid, []) | 466,892 |
def _get_users(self, cr, uid, context={}): return self.pool.get('res.users').search(cr, uid, []) | def _get_users(self, cr, uid, context={}): return self.pool.get('res.users').search(cr, uid, []) | 466,893 |
def create(self, cr, user, vals, context={}): if vals.get('password', False) != False: vals['password'] = base64.b64encode(vals.get('password')) res_id = super(smtpclient, self).create(cr, user, vals, context) return res_id | def create(self, cr, user, vals, context={}): if vals.get('password', False) != False: vals['password'] = base64.b64encode(vals.get('password')) res_id = super(smtpclient, self).create(cr, user, vals, context) return res_id | 466,894 |
def create(self, cr, user, vals, context={}): if vals.get('password', False) != False: vals['password'] = base64.b64encode(vals.get('password')) res_id = super(smtpclient, self).create(cr, user, vals, context) return res_id | def create(self, cr, user, vals, context={}): if vals.get('password', False) != False: vals['password'] = base64.b64encode(vals.get('password')) res_id = super(smtpclient, self).create(cr, user, vals, context) return res_id | 466,895 |
def write(self, cr, user, ids, vals, context=None): flag = False if vals.get('password', False) != False: for pass_char in vals.get('password'): if pass_char != '*': flag= True break | def write(self, cr, user, ids, vals, context=None): flag = False if vals.get('password', False) != False: for pass_char in vals.get('password'): if pass_char != '*': flag= True break | 466,896 |
def write(self, cr, user, ids, vals, context=None): flag = False if vals.get('password', False) != False: for pass_char in vals.get('password'): if pass_char != '*': flag= True break | def write(self, cr, user, ids, vals, context=None): flag = False if vals.get('password', False) != False: for pass_char in vals.get('password'): if pass_char != '*': flag= True break | 466,897 |
def write(self, cr, user, ids, vals, context=None): flag = False if vals.get('password', False) != False: for pass_char in vals.get('password'): if pass_char != '*': flag= True break | def write(self, cr, user, ids, vals, context=None): flag = False if vals.get('password', False) != False: for pass_char in vals.get('password'): if pass_char != '*': flag= True break | 466,898 |
def override_password(o): if len(o) > 0: for field in o[0]: if field == 'password': o[0][field] = '********' return o | def override_password(o): if len(o) > 0: for field in o[0]: if field == 'password': o[0][field] = '********' return o | 466,899 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.