Ok intanto fin qui ti ringrazio!
Quando proviamo ad installare il modulo pos_epson_epos
Ci restituisce questo errore:
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/odoo/http.py", line 642, in _handle_exception
return super(JsonRequest, self)._handle_exception(exception)
File "/usr/lib/python2.7/dist-packages/odoo/http.py", line 684, in dispatch
result = self._call_function(**self.params)
File "/usr/lib/python2.7/dist-packages/odoo/http.py", line 334, in _call_function
return checked_call(self.db, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/odoo/service/model.py", line 101, in wrapper
return f(dbname, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/odoo/http.py", line 327, in checked_call
result = self.endpoint(*a, **kw)
File "/usr/lib/python2.7/dist-packages/odoo/http.py", line 942, in __call__
return self.method(*args, **kw)
File "/usr/lib/python2.7/dist-packages/odoo/http.py", line 507, in response_wrap
response = f(*args, **kw)
File "/usr/lib/python2.7/dist-packages/odoo/addons/web/controllers/main.py", line 899, in call_button
action = self._call_kw(model, method, args, {})
File "/usr/lib/python2.7/dist-packages/odoo/addons/web/controllers/main.py", line 887, in _call_kw
return call_kw(request.env[model], method, args, kwargs)
File "/usr/lib/python2.7/dist-packages/odoo/api.py", line 689, in call_kw
return call_kw_multi(method, model, args, kwargs)
File "/usr/lib/python2.7/dist-packages/odoo/api.py", line 680, in call_kw_multi
result = method(recs, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/odoo/addons/base/module/module.py", line 412, in button_immediate_install
return self._button_immediate_function(type(self).button_install)
File "/usr/lib/python2.7/dist-packages/odoo/addons/base/module/module.py", line 486, in _button_immediate_function
modules.registry.Registry.new(self._cr.dbname, update_module=True)
File "/usr/lib/python2.7/dist-packages/odoo/modules/registry.py", line 83, in new
odoo.modules.load_modules(registry._db, force_demo, status, update_module)
File "/usr/lib/python2.7/dist-packages/odoo/modules/loading.py", line 377, in load_modules
loaded_modules, update_module, models_to_check)
File "/usr/lib/python2.7/dist-packages/odoo/modules/loading.py", line 270, in load_marked_modules
perform_checks=perform_checks, models_to_check=models_to_check
File "/usr/lib/python2.7/dist-packages/odoo/modules/loading.py", line 182, in load_module_graph
_load_data(cr, module_name, idref, mode, kind='data')
File "/usr/lib/python2.7/dist-packages/odoo/modules/loading.py", line 96, in _load_data
tools.convert_file(cr, module_name, filename, idref, mode, noupdate, kind, report)
File "/usr/lib/python2.7/dist-packages/odoo/tools/convert.py", line 845, in convert_file
convert_xml_import(cr, module, fp, idref, mode, noupdate, report)
File "/usr/lib/python2.7/dist-packages/odoo/tools/convert.py", line 915, in convert_xml_import
obj.parse(doc.getroot(), mode=mode)
File "/usr/lib/python2.7/dist-packages/odoo/tools/convert.py", line 796, in parse
self.parse(rec, mode)
File "/usr/lib/python2.7/dist-packages/odoo/tools/convert.py", line 799, in parse
self._tags[rec.tag](rec, de, mode=mode)
File "/usr/lib/python2.7/dist-packages/odoo/tools/convert.py", line 707, in _tag_record
id = self.env(context=rec_context)._update(rec_model, self.module, res, rec_id or False, not self.isnoupdate(data_node), noupdate=self.isnoupdate(data_node), mode=self.mode)
File "/usr/lib/python2.7/dist-packages/odoo/addons/base/ir/ir_model.py", line 1238, in _update
record = record.create(values)
File "/usr/lib/python2.7/dist-packages/odoo/addons/base/ir/ir_ui_view.py", line 362, in create
return super(View, self).create(self._compute_defaults(values))
File "/usr/lib/python2.7/dist-packages/odoo/models.py", line 3854, in create
self._fields[key].determine_inverse(record)
File "/usr/lib/python2.7/dist-packages/odoo/fields.py", line 1046, in determine_inverse
getattr(records, self.inverse)()
File "/usr/lib/python2.7/dist-packages/odoo/addons/base/ir/ir_ui_view.py", line 220, in _inverse_arch
view.write(data)
File "/usr/lib/python2.7/dist-packages/odoo/addons/base/ir/ir_ui_view.py", line 380, in write
return super(View, self).write(self._compute_defaults(vals))
File "/usr/lib/python2.7/dist-packages/odoo/models.py", line 3567, in write
self._write(old_vals)
File "/usr/lib/python2.7/dist-packages/odoo/models.py", line 3731, in _write
self._validate_fields(vals)
File "/usr/lib/python2.7/dist-packages/odoo/models.py", line 1081, in _validate_fields
raise ValidationError("%s\n\n%s" % (_("Error while validating constraint"), tools.ustr(e)))
ParseError: "Errore durante la validazione del vincolo
L'elemento '<page name="report">' non pu\xf2 esser localizzato nella vista genitore
Contesto errore:
Vista `res.company`
[view_id: 989, xml_id: n/d, model: res.company, parent_id: 111]
None" while parsing /opt/odoo/custom/addons/pos_epson_epos/views/res_company.xml:5, near
<record id="company_test" model="ir.ui.view">
<field name="name">res.company</field>
<field name="model">res.company</field>
<field name="inherit_id" ref="base.view_company_form"/>
<field name="arch" type="xml">
<page name="report" position="after">
<page name="pos" string="POS">
<group name="pos-main">
<field name="pos_receipt_header_1"/>
<field name="pos_receipt_header_2"/>
<field name="pos_receipt_footer_1"/>
<field name="pos_receipt_footer_2"/>
<field name="pos_zreport_print_date" groups="pos_epson_epos.group_pos_print_z"/>
</group>
</page>
</page>
</field>
</record>