Skip to Content
Menu
This question has been flagged
2 Replies
1251 Views

Hello guys, i need to display alfodoo addons but when i try to install it this problem appear : 

Odoo Server Error
Traceback (most recent call last):
  File "/odoo/odoo-server/odoo/addons/base/models/ir_http.py", line 238, in _dispatch
    result = request.dispatch()
  File "/odoo/odoo-server/odoo/http.py", line 683, in dispatch
    result = self._call_function(**self.params)
  File "/odoo/odoo-server/odoo/http.py", line 359, in _call_function
    return checked_call(self.db, *args, **kwargs)
  File "/odoo/odoo-server/odoo/service/model.py", line 94, in wrapper
    return f(dbname, *args, **kwargs)
  File "/odoo/odoo-server/odoo/http.py", line 347, in checked_call
    result = self.endpoint(*a, **kw)
  File "/odoo/odoo-server/odoo/http.py", line 912, in __call__
    return self.method(*args, **kw)
  File "/odoo/odoo-server/odoo/http.py", line 531, in response_wrap
    response = f(*args, **kw)
  File "/odoo/odoo-server/addons/web/controllers/main.py", line 1679, in load
    action = request.env[action_type].sudo().browse([action_id]).read()
  File "/odoo/odoo-server/odoo/addons/base/models/ir_actions.py", line 241, in read
    result = super(IrActionsActWindow, self).read(fields, load=load)
  File "/odoo/odoo-server/odoo/models.py", line 3100, in read
    return self._read_format(fnames=fields, load=load)
  File "/odoo/odoo-server/odoo/models.py", line 3120, in _read_format
    vals[name] = convert(record[name], record, use_name_get)
  File "/odoo/odoo-server/odoo/models.py", line 5739, in __getitem__
    return self._fields[key].__get__(self, type(self))
  File "/odoo/odoo-server/odoo/fields.py", line 1096, in __get__
    self.compute_value(recs)
  File "/odoo/odoo-server/odoo/fields.py", line 1253, in compute_value
    records._compute_field_value(self)
  File "/odoo/odoo-server/odoo/models.py", line 4121, in _compute_field_value
    getattr(self, field.compute)()
  File "/odoo/odoo-server/odoo/addons/base/models/ir_actions.py", line 208, in _compute_search_view
    fvg = self.env[act.res_model].fields_view_get(act.search_view_id.id, 'search')
  File "/odoo/odoo-server/addons/web/models/models.py", line 220, in fields_view_get
    r = super().fields_view_get(view_id, view_type, toolbar, submenu)
  File "/odoo/odoo-server/odoo/models.py", line 1699, in fields_view_get
    xarch, xfields = view.postprocess_and_fields(etree.fromstring(result['arch']), model=self._name)
  File "/odoo/odoo-server/odoo/addons/base/models/ir_ui_view.py", line 863, in postprocess_and_fields
    arch, name_manager = self._postprocess_view(node, model, validate=validate)
  File "/odoo/odoo-server/odoo/addons/base/models/ir_ui_view.py", line 874, in _postprocess_view
    name_manager = NameManager(validate, self.env[model])
  File "/odoo/odoo-server/odoo/addons/base/models/ir_ui_view.py", line 1951, in __init__
    self.fields_get = self.Model.fields_get()
  File "/odoo/odoo-server/odoo/models.py", line 2968, in fields_get
    description = field.get_description(self.env)
  File "/odoo/odoo-server/odoo/fields.py", line 738, in get_description
    value = getattr(self, prop)
Exception
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
  File "/odoo/odoo-server/odoo/http.py", line 639, in _handle_exception
    return super(JsonRequest, self)._handle_exception(exception)
  File "/odoo/odoo-server/odoo/http.py", line 315, in _handle_exception
    raise exception.with_traceback(None) from new_cause 

AttributeError: 'CmisFolder' object has no attribute 'allow_create'

many thanks 

Avatar
Discard
Best Answer

Hi,

The model "CmisFolder" has no field allow_create

1. Check your xml file in which view is written for  model  CmisFolder,

2. In that view you should have used allow_create .

3. But allow_create is missing in your py file in which you create a class (model) for CmisFolder.

Comment that view line in your xml and try installing again.

Hope it helps,

Thanks

Avatar
Discard
Best Answer

Hi
The error which is shown in the last line is trying to mention that the object which is named ‘CmisFolder’ does not contain the field ‘allow_create’. The fields mentioned in the objects are commonly called attributes and here in this situation the Attribute error indicates the lack of existence of the attribute mentioned in the line. So I prefer to check the existence of this attribute/ field ‘allow_create’ in the specified space.

Regards

Avatar
Discard