[7.0] Invalid field in "quick add" pop up
How do I reprogram the "quick add" dialog box that pops up when you have a selection, but item you want to select does not exist.
def _grade_get(self, cr, uid, context=None):
grade_obj = self.pool.
grade_ids = grade_obj.
grade_types = grade_obj.read(cr, uid, grade_ids, ['id','grade'], context=context)
res = []
for record in grade_types:
res.
return res
_columns = {
'grade': fields.
)
I get the following error:
Server Traceback (most recent call last):
File "/opt/openerp/
return openerp.
File "/opt/openerp/
result = ExportService.
File "/opt/openerp/
res = fn(db, uid, *params)
File "/opt/openerp/
return self.execute(db, uid, obj, method, *args, **kw or {})
File "/opt/openerp/
return f(self, dbname, *args, **kwargs)
File "/opt/openerp/
res = self.execute_cr(cr, uid, obj, method, *args, **kw)
File "/opt/openerp/
return getattr(object, method)(cr, uid, *args, **kw)
File "/opt/openerp/
return self._name_
File "/opt/openerp/
ids = self._search(cr, user, args, limit=limit, context=context, access_
File "/opt/openerp/
query = self._where_
File "/opt/openerp/
e = expression.
File "/opt/openerp/
self.parse(cr, uid, context=context)
File "/opt/openerp/
raise ValueError("Invalid field %r in leaf %r" % (left, str(leaf)))
ValueError: Invalid field 'name' in leaf "<osv.ExtendedLeaf: ('name', 'ilike', 'product.
I can get the error to go away if I add the column "name" to "product.
Where is the code that is referenced when you click inside of a many2one and openERP searches gives you the option to create an entry if it doesn't already exist?
Question information
- Language:
- English Edit question
- Status:
- Solved
- Assignee:
- No assignee Edit question
- Solved by:
- Stefan Rijnhart (Opener)
- Solved:
- Last query:
- Last reply: