Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

Value Error

By
Abdirahman
on 2/29/16, 1:28 AM 285 views

please i'm getting debug error when i click Human resource module

or press it one feature of the modules

Here is error detail

aise ValueError("Invalid field %r in leaf %r" % (left, str(leaf)))
ValueError: Invalid field 'company_id' in leaf "<osv.ExtendedLeaf: ('company_id', '=', False) on hr_holidays (ctx: )>"
0
Ankit Gauri
On 2/29/16, 1:49 AM
hello Abdirahman jawle

you have given invalid field name company_id or that field is not available in that model that's they giving this error

thank you
0
Abdirahman
On 2/29/16, 2:35 AM

Ankit gauri

when i try to view the companies also i'm getting this error

Odoo Server Error
Traceback (most recent call last):
  File "/home/testserver/odoo-8.0/openerp/http.py", line 530, in _handle_exception
    return super(JsonRequest, self)._handle_exception(exception)
  File "/home/testserver/odoo-8.0/openerp/http.py", line 567, in dispatch
    result = self._call_function(**self.params)
  File "/home/testserver/odoo-8.0/openerp/http.py", line 303, in _call_function
    return checked_call(self.db, *args, **kwargs)
  File "/home/testserver/odoo-8.0/openerp/service/model.py", line 113, in wrapper
    return f(dbname, *args, **kwargs)
  File "/home/testserver/odoo-8.0/openerp/http.py", line 300, in checked_call
    return self.endpoint(*a, **kw)
  File "/home/testserver/odoo-8.0/openerp/http.py", line 796, in __call__
    return self.method(*args, **kw)
  File "/home/testserver/odoo-8.0/openerp/http.py", line 396, in response_wrap
    response = f(*args, **kw)
  File "/home/testserver/odoo-8.0/addons/web/controllers/main.py", line 949, in call_kw
    return self._call_kw(model, method, args, kwargs)
  File "/home/testserver/odoo-8.0/addons/web/controllers/main.py", line 941, in _call_kw
    return getattr(request.registry.get(model), method)(request.cr, request.uid, *args, **kwargs)
  File "/home/testserver/odoo-8.0/openerp/api.py", line 241, in wrapper
    return old_api(self, *args, **kwargs)
  File "/home/testserver/odoo-8.0/openerp/models.py", line 1554, in fields_view_get
    xarch, xfields = View.postprocess_and_fields(cr, uid, self._name, etree.fromstring(result['arch']), view_id, context=ctx)
  File "/home/testserver/odoo-8.0/openerp/api.py", line 241, in wrapper
    return old_api(self, *args, **kwargs)
  File "/home/testserver/odoo-8.0/openerp/addons/base/ir/ir_ui_view.py", line 843, in postprocess_and_fields
    self.raise_view_error(cr, user, message, view_id, context)
  File "/home/testserver/odoo-8.0/openerp/api.py", line 241, in wrapper
    return old_api(self, *args, **kwargs)
  File "/home/testserver/odoo-8.0/openerp/addons/base/ir/ir_ui_view.py", line 367, in raise_view_error
    raise AttributeError(message)
AttributeError: Field `company_code` does not exist

Error context:
View `res.company.form`
[view_id: 111, xml_id: base.view_company_form, model: res.company, parent_id: n/a]

company_code is not a field in Odoo 8.0 (no more in 6.0, 7.0 or 9.0...)

Jérémy Kersten (jke)
on 2/29/16, 3:09 AM

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 2/29/16, 1:28 AM
Seen: 285 times
Last updated: 2/29/16, 4:15 AM