In [59]: Patient.copy(patient[0].id,patient[0]._fields) --------------------------------------------------------------------------- Exception Traceback (most recent call last) /home/gh/Development/Celso/medical_global/trunk/ in 1 Patient.copy(patient[0].id,patient[0]._fields) /home/gh/.local/lib/python2.7/site-packages/proteus/config.pyc in __call__(self, *args 73 del context['_timestamp'] 74 transaction.context = context ---> 75 res = getattr(self._object, self._name)(*args) 76 if self._object._rpc[self._name]: 77 transaction.cursor.commit() /home/gh/.local/lib/python2.7/site-packages/trytond/model/modelstorage.pyc in copy(self, ids, 319 new_ids = {} 320 fields_names = self._columns.keys() --> 321 datas = self.read(ids, fields_names=fields_names) 322 field_defs = self.fields_get(fields_names=fields_names) 323 for data in datas: /home/gh/.local/lib/python2.7/site-packages/trytond/model/modelsql.pyc in read(self, ids, fields_names) 620 continue 621 # get the value of that field for all records/ids --> 622 res2 = self._columns[field].get(ids, self, field, values=res) 623 for record in res: 624 record[field] = res2[record['id']] /home/gh/.local/lib/python2.7/site-packages/trytond/model/fields/one2many.pyc in get(self, ids, model, n 81 ids2.append(pool.get(self.model_name).search([ 82 (self.field, 'in', sub_ids), ---> 83 ], order=self.order)) 84 85 cache = Transaction().cursor.get_cache(Transaction().context) /home/gh/.local/lib/python2.7/site-packages/trytond/model/modelsql.pyc in search(self, domain, offset, limit, order, 1151 1152 # Get domain clauses -> 1153 qu1, qu2, tables, tables_args = self.search_domain(domain) 1154 1155 # Get order by /home/gh/.local/lib/python2.7/site-packages/trytond/model/modelsql.pyc in search_domain(self, domain, ac 1309 tables = [table_query + '"' + self._table + '"'] 1310 -> 1311 qu1, qu2 = self.__search_domain_oper(domain, tables, tables_args) 1312 if self._history and Transaction().context.get('_datetime'): 1313 if qu1: /home/gh/.local/lib/python2.7/site-packages/trytond/model/modelsql.pyc in __search_domain_oper(self, domain, tables, 1338 list_args.append(arg) 1339 -> 1340 qu1, qu2 = self.__search_domain_calc(tuple_args, tables, tables_args) 1341 if len(qu1): 1342 qu1 = (' ' + operator + ' ').join(qu1) /home/gh/.local/lib/python2.7/site-packages/trytond/model/modelsql.pyc in __search_domain_calc(self, domain, tables, 1390 if not fargs[0] in self._inherit_fields: 1391 raise Exception('ValidateError', 'Field "%s" doesn\'t ' \ -> 1392 'exist on "%s"' % (fargs[0], self._name)) 1393 table = pool.get(self._inherit_fields[fargs[0]][0]) 1394 field = table._columns.get(fargs[0], False) Exception: ('ValidateError', 'Field "name" doesn\'t exist on "gnuhealth.patient.psc"') In [60]: Patient.copy(patient[0].id,config.context) --------------------------------------------------------------------------- Exception Traceback (most recent call last) /home/gh/Development/Celso/medical_global/trunk/ in 1 Patient.copy(patient[0].id,config.context) /home/gh/.local/lib/python2.7/site-packages/proteus/config.pyc in __call__(self, *args) 73 del context['_timestamp'] 74 transaction.context = context ---> 75 res = getattr(self._object, self._name)(*args) 76 if self._object._rpc[self._name]: 77 transaction.cursor.commit() /home/gh/.local/lib/python2.7/site-packages/trytond/model/modelstorage.pyc in copy(self, ids, 319 new_ids = {} 320 fields_names = self._columns.keys() --> 321 datas = self.read(ids, fields_names=fields_names) 322 field_defs = self.fields_get(fields_names=fields_names) 323 for data in datas: /home/gh/.local/lib/python2.7/site-packages/trytond/model/modelsql.pyc in read(self, ids, fields_names) 620 continue 621 # get the value of that field for all records/ids --> 622 res2 = self._columns[field].get(ids, self, field, values=res) 623 for record in res: 624 record[field] = res2[record['id']] /home/gh/.local/lib/python2.7/site-packages/trytond/model/fields/one2many.pyc in get(self, ids, model, name, values 81 ids2.append(pool.get(self.model_name).search([ 82 (self.field, 'in', sub_ids), ---> 83 ], order=self.order)) 84 85 cache = Transaction().cursor.get_cache(Transaction().context) /home/gh/.local/lib/python2.7/site-packages/trytond/model/modelsql.pyc in search(self, domain, offset, limit, order, count, query_ 1151 1152 # Get domain clauses -> 1153 qu1, qu2, tables, tables_args = self.search_domain(domain) 1154 1155 # Get order by /home/gh/.local/lib/python2.7/site-packages/trytond/model/modelsql.pyc in search_domain(self, domain, ac 1309 tables = [table_query + '"' + self._table + '"'] 1310 -> 1311 qu1, qu2 = self.__search_domain_oper(domain, tables, tables_args) 1312 if self._history and Transaction().context.get('_datetime'): 1313 if qu1: /home/gh/.local/lib/python2.7/site-packages/trytond/model/modelsql.pyc in __search_domain_oper(self, domain, tables, 1338 list_args.append(arg) 1339 -> 1340 qu1, qu2 = self.__search_domain_calc(tuple_args, tables, tables_args) 1341 if len(qu1): 1342 qu1 = (' ' + operator + ' ').join(qu1) /home/gh/.local/lib/python2.7/site-packages/trytond/model/modelsql.pyc in __search_domain_calc(self, domain, tables, 1390 if not fargs[0] in self._inherit_fields: 1391 raise Exception('ValidateError', 'Field "%s" doesn\'t ' \ -> 1392 'exist on "%s"' % (fargs[0], self._name)) 1393 table = pool.get(self._inherit_fields[fargs[0]][0]) 1394 field = table._columns.get(fargs[0], False) Exception: ('ValidateError', 'Field "name" doesn\'t exist on "gnuhealth.patient.psc"') In [61]: Patient.copy(patient[clea0].id,config.context) --------------------------------------------------------------------------- NameError Traceback (most recent call last) /home/gh/Development/Celso/medical_global/trunk/ in 1 Patient.copy(patient[clea0].id,config.context) NameError: name 'clea0' is not defined In [62]: clear In [63]: Patient.copy(patient[clea0].id,config.context) --------------------------------------------------------------------------- NameError Traceback (most recent call last) /home/gh/Development/Celso/medical_global/trunk/ in 1 Patient.copy(patient[clea0].id,config.context) NameError: name 'clea0' is not defined In [64]: Patient.copy(patient[0].id,config.context) --------------------------------------------------------------------------- Exception Traceback (most recent call last) /home/gh/Development/Celso/medical_global/trunk/ in 1 Patient.copy(patient[0].id,config.context) /home/gh/.local/lib/python2.7/site-packages/proteus/config.pyc in __call__(self, *args) 73 del context['_timestamp'] 74 transaction.context = context ---> 75 res = getattr(self._object, self._name)(*args) 76 if self._object._rpc[self._name]: 77 transaction.cursor.commit() /home/gh/.local/lib/python2.7/site-packages/trytond/model/modelstorage.pyc in copy(self, ids, 319 new_ids = {} 320 fields_names = self._columns.keys() --> 321 datas = self.read(ids, fields_names=fields_names) 322 field_defs = self.fields_get(fields_names=fields_names) 323 for data in datas: /home/gh/.local/lib/python2.7/site-packages/trytond/model/modelsql.pyc in read(self, ids, fields_names) 620 continue 621 # get the value of that field for all records/ids --> 622 res2 = self._columns[field].get(ids, self, field, values=res) 623 for record in res: 624 record[field] = res2[record['id']] /home/gh/.local/lib/python2.7/site-packages/trytond/model/fields/one2many.pyc in get(self, ids, model, name, values 81 ids2.append(pool.get(self.model_name).search([ 82 (self.field, 'in', sub_ids), ---> 83 ], order=self.order)) 84 85 cache = Transaction().cursor.get_cache(Transaction().context) /home/gh/.local/lib/python2.7/site-packages/trytond/model/modelsql.pyc in search(self, domain, offset, limit, order, count, query_ 1151 1152 # Get domain clauses -> 1153 qu1, qu2, tables, tables_args = self.search_domain(domain) 1154 1155 # Get order by /home/gh/.local/lib/python2.7/site-packages/trytond/model/modelsql.pyc in search_domain(self, domain, ac 1309 tables = [table_query + '"' + self._table + '"'] 1310 -> 1311 qu1, qu2 = self.__search_domain_oper(domain, tables, tables_args) 1312 if self._history and Transaction().context.get('_datetime'): 1313 if qu1: /home/gh/.local/lib/python2.7/site-packages/trytond/model/modelsql.pyc in __search_domain_oper(self, domain, tables, tables_args) 1338 list_args.append(arg) 1339 -> 1340 qu1, qu2 = self.__search_domain_calc(tuple_args, tables, tables_args) 1341 if len(qu1): 1342 qu1 = (' ' + operator + ' ').join(qu1) /home/gh/.local/lib/python2.7/site-packages/trytond/model/modelsql.pyc in __search_domain_calc(self, domain, tables, tables_args) 1390 if not fargs[0] in self._inherit_fields: 1391 raise Exception('ValidateError', 'Field "%s" doesn\'t ' \ -> 1392 'exist on "%s"' % (fargs[0], self._name)) 1393 table = pool.get(self._inherit_fields[fargs[0]][0]) 1394 field = table._columns.get(fargs[0], False) Exception: ('ValidateError', 'Field "name" doesn\'t exist on "gnuhealth.patient.psc"')