gityopie/odoo-addons

Error while installing v12

Closed this issue · 1 comments

Hi!
I add the module in my folder app and when im trying to install, the following message appears:

Error:
Odoo Server Error

Traceback (most recent call last):
  File "/opt/odoo/odoo/odoo/models.py", line 1108, in _validate_fields
    check(self)
  File "/opt/odoo/odoo/odoo/addons/base/models/ir_ui_view.py", line 351, in _check_xml
    self.postprocess_and_fields(view.model, view_doc, view.id)
  File "/opt/odoo/odoo/odoo/addons/base/models/ir_ui_view.py", line 1109, in postprocess_and_fields
    self.raise_view_error("\n".join(msg_lines), view_id)
  File "/opt/odoo/odoo/odoo/addons/base/models/ir_ui_view.py", line 548, in raise_view_error
    raise ValueError(message)
ValueError: El campo 'is_blacklisted' utilizado en los atributos debe estar presente en la vista pero falta:
 - 'is_blacklisted' in attrs="{'invisible': [('is_blacklisted', '=', False)]}"

Contexto del error:
Vista `res.partner.geolocation.inherit`
[view_id: 454, xml_id: n/a, model: res.partner, parent_id: 113]

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/opt/odoo/odoo/odoo/tools/convert.py", line 758, in parse
    self._tags[rec.tag](rec, de, mode=mode)
  File "/opt/odoo/odoo/odoo/tools/convert.py", line 663, in _tag_record
    record = model.with_context(rec_context)._load_records([data], self.mode == 'update')
  File "/opt/odoo/odoo/odoo/models.py", line 3865, in _load_records
    records = self._load_records_create([data['values'] for data in to_create])
  File "/opt/odoo/odoo/odoo/models.py", line 3779, in _load_records_create
    return self.create(values)
  File "</home/angel/.local/lib/python3.6/site-packages/decorator.py:decorator-gen-32>", line 2, in create
  File "/opt/odoo/odoo/odoo/api.py", line 452, in _model_create_multi
    return create(self, arg)
  File "/opt/odoo/odoo/odoo/addons/base/models/ir_ui_view.py", line 428, in create
    return super(View, self).create(vals_list)
  File "</home/angel/.local/lib/python3.6/site-packages/decorator.py:decorator-gen-3>", line 2, in create
  File "/opt/odoo/odoo/odoo/api.py", line 452, in _model_create_multi
    return create(self, arg)
  File "/opt/odoo/odoo/odoo/models.py", line 3596, in create
    fields[0].determine_inverse(batch_recs)
  File "/opt/odoo/odoo/odoo/fields.py", line 1117, in determine_inverse
    getattr(records, self.inverse)()
  File "/opt/odoo/odoo/odoo/addons/base/models/ir_ui_view.py", line 275, in _inverse_arch
    view.write(data)
  File "/opt/odoo/odoo/odoo/addons/base/models/ir_ui_view.py", line 444, in write
    return super(View, self).write(self._compute_defaults(vals))
  File "/opt/odoo/odoo/odoo/models.py", line 3321, in write
    self._write(store_vals)
  File "/opt/odoo/odoo/odoo/models.py", line 3457, in _write
    self._validate_fields(vals)
  File "/opt/odoo/odoo/odoo/models.py", line 1112, in _validate_fields
    raise ValidationError("%s\n\n%s" % (_("Error while validating constraint"), tools.ustr(e)))
odoo.exceptions.ValidationError: ('Error mientras se validaban las restricciones\n\nEl campo \'is_blacklisted\' utilizado en los atributos debe estar presente en la vista pero falta:\n - \'is_blacklisted\' in attrs="{\'invisible\': [(\'is_blacklisted\', \'=\', False)]}"\n\nContexto del error:\nVista `res.partner.geolocation.inherit`\n[view_id: 454, xml_id: n/a, model: res.partner, parent_id: 113]', None)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/opt/odoo/odoo/odoo/http.py", line 656, in _handle_exception
    return super(JsonRequest, self)._handle_exception(exception)
  File "/opt/odoo/odoo/odoo/http.py", line 314, in _handle_exception
    raise pycompat.reraise(type(exception), exception, sys.exc_info()[2])
  File "/opt/odoo/odoo/odoo/tools/pycompat.py", line 87, in reraise
    raise value
  File "/opt/odoo/odoo/odoo/http.py", line 698, in dispatch
    result = self._call_function(**self.params)
  File "/opt/odoo/odoo/odoo/http.py", line 346, in _call_function
    return checked_call(self.db, *args, **kwargs)
  File "/opt/odoo/odoo/odoo/service/model.py", line 97, in wrapper
    return f(dbname, *args, **kwargs)
  File "/opt/odoo/odoo/odoo/http.py", line 339, in checked_call
    result = self.endpoint(*a, **kw)
  File "/opt/odoo/odoo/odoo/http.py", line 941, in __call__
    return self.method(*args, **kw)
  File "/opt/odoo/odoo/odoo/http.py", line 519, in response_wrap
    response = f(*args, **kw)
  File "/opt/odoo/odoo/addons/web/controllers/main.py", line 966, in call_button
    action = self._call_kw(model, method, args, {})
  File "/opt/odoo/odoo/addons/web/controllers/main.py", line 954, in _call_kw
    return call_kw(request.env[model], method, args, kwargs)
  File "/opt/odoo/odoo/odoo/api.py", line 749, in call_kw
    return _call_kw_multi(method, model, args, kwargs)
  File "/opt/odoo/odoo/odoo/api.py", line 736, in _call_kw_multi
    result = method(recs, *args, **kwargs)
  File "</home/angel/.local/lib/python3.6/site-packages/decorator.py:decorator-gen-61>", line 2, in button_immediate_install
  File "/opt/odoo/odoo/odoo/addons/base/models/ir_module.py", line 74, in check_and_log
    return method(self, *args, **kwargs)
  File "/opt/odoo/odoo/odoo/addons/base/models/ir_module.py", line 445, in button_immediate_install
    return self._button_immediate_function(type(self).button_install)
  File "/opt/odoo/odoo/odoo/addons/base/models/ir_module.py", line 561, in _button_immediate_function
    modules.registry.Registry.new(self._cr.dbname, update_module=True)
  File "/opt/odoo/odoo/odoo/modules/registry.py", line 86, in new
    odoo.modules.load_modules(registry._db, force_demo, status, update_module)
  File "/opt/odoo/odoo/odoo/modules/loading.py", line 421, in load_modules
    loaded_modules, update_module, models_to_check)
  File "/opt/odoo/odoo/odoo/modules/loading.py", line 313, in load_marked_modules
    perform_checks=perform_checks, models_to_check=models_to_check
  File "/opt/odoo/odoo/odoo/modules/loading.py", line 222, in load_module_graph
    load_data(cr, idref, mode, kind='data', package=package, report=report)
  File "/opt/odoo/odoo/odoo/modules/loading.py", line 68, in load_data
    tools.convert_file(cr, package.name, filename, idref, mode, noupdate, kind, report)
  File "/opt/odoo/odoo/odoo/tools/convert.py", line 802, in convert_file
    convert_xml_import(cr, module, fp, idref, mode, noupdate, report)
  File "/opt/odoo/odoo/odoo/tools/convert.py", line 865, in convert_xml_import
    obj.parse(doc.getroot(), mode=mode)
  File "/opt/odoo/odoo/odoo/tools/convert.py", line 764, in parse
    exc_info[2]
  File "/opt/odoo/odoo/odoo/tools/pycompat.py", line 86, in reraise
    raise value.with_traceback(tb)
  File "/opt/odoo/odoo/odoo/tools/convert.py", line 758, in parse
    self._tags[rec.tag](rec, de, mode=mode)
  File "/opt/odoo/odoo/odoo/tools/convert.py", line 663, in _tag_record
    record = model.with_context(rec_context)._load_records([data], self.mode == 'update')
  File "/opt/odoo/odoo/odoo/models.py", line 3865, in _load_records
    records = self._load_records_create([data['values'] for data in to_create])
  File "/opt/odoo/odoo/odoo/models.py", line 3779, in _load_records_create
    return self.create(values)
  File "</home/angel/.local/lib/python3.6/site-packages/decorator.py:decorator-gen-32>", line 2, in create
  File "/opt/odoo/odoo/odoo/api.py", line 452, in _model_create_multi
    return create(self, arg)
  File "/opt/odoo/odoo/odoo/addons/base/models/ir_ui_view.py", line 428, in create
    return super(View, self).create(vals_list)
  File "</home/angel/.local/lib/python3.6/site-packages/decorator.py:decorator-gen-3>", line 2, in create
  File "/opt/odoo/odoo/odoo/api.py", line 452, in _model_create_multi
    return create(self, arg)
  File "/opt/odoo/odoo/odoo/models.py", line 3596, in create
    fields[0].determine_inverse(batch_recs)
  File "/opt/odoo/odoo/odoo/fields.py", line 1117, in determine_inverse
    getattr(records, self.inverse)()
  File "/opt/odoo/odoo/odoo/addons/base/models/ir_ui_view.py", line 275, in _inverse_arch
    view.write(data)
  File "/opt/odoo/odoo/odoo/addons/base/models/ir_ui_view.py", line 444, in write
    return super(View, self).write(self._compute_defaults(vals))
  File "/opt/odoo/odoo/odoo/models.py", line 3321, in write
    self._write(store_vals)
  File "/opt/odoo/odoo/odoo/models.py", line 3457, in _write
    self._validate_fields(vals)
  File "/opt/odoo/odoo/odoo/models.py", line 1112, in _validate_fields
    raise ValidationError("%s\n\n%s" % (_("Error while validating constraint"), tools.ustr(e)))
odoo.tools.convert.ParseError: "Error mientras se validaban las restricciones

El campo 'is_blacklisted' utilizado en los atributos debe estar presente en la vista pero falta:
 - 'is_blacklisted' in attrs="{'invisible': [('is_blacklisted', '=', False)]}"

Contexto del error:
Vista `res.partner.geolocation.inherit`
[view_id: 454, xml_id: n/a, model: res.partner, parent_id: 113]
None" while parsing /opt/odoo/odoo/addons/base_geolocalize/views/res_partner_views.xml:3, near
<record id="view_crm_partner_geo_form" model="ir.ui.view">
            <field name="name">res.partner.geolocation.inherit</field>
            <field name="model">res.partner</field>
            <field name="inherit_id" ref="base.view_partner_form"/>
            <field name="arch" type="xml">
                <xpath expr="//notebook[last()]" position="inside">
                    <page string="Partner Assignation" name="geo_location">
                        <!-- something to do here -->
                        <group colspan="2" col="2">
                            <separator string="Geolocation" colspan="2"/>
                            <button string="Geolocate" name="geo_localize" colspan="2" icon="fa-check" type="object"/>
                            <div>
                                <span class="oe_inline"> ( On  </span>
                                <field name="date_localization" nolabel="1" class="oe_inline"/>
                                <span> : Lat : </span>
                                <field name="partner_latitude" nolabel="1" class="oe_inline"/>
                                <span> ;  Long:  </span>
                                <field name="partner_longitude" nolabel="1" class="oe_inline"/>
                                <span>) </span>
                            </div>
                        </group>
                    </page>
                </xpath>
            </field>
        </record>

Could you helpme? Thanks in advance!