error al actualizar modulo l10n_cl_fe.

cada vez que intento actualizar el modulo salta este error, alguna idea de poque?

Error:
Odoo Server Error

Traceback (most recent call last):
  File "/opt/odoo/odoo11/odoo/models.py", line 1037, in _validate_fields
    check(self)
  File "/opt/odoo/odoo11/odoo/addons/base/ir/ir_ui_view.py", line 342, in _check_xml
    self.postprocess_and_fields(view.model, view_doc, view.id)
  File "/opt/odoo/odoo11/odoo/addons/base/ir/ir_ui_view.py", line 1061, in postprocess_and_fields
    fields[field].update(fields_def[field])
  File "/opt/odoo/odoo11/odoo/addons/base/ir/ir_ui_view.py", line 516, in raise_view_error
    'msg': message,
ValueError: El campo `sii_code` no existe

Contexto del error:
Vista `account.invoice.sii.form`
[view_id: 868, xml_id: l10n_cl_fe.view_invoice_form, model: account.invoice, parent_id: 520]

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/opt/odoo/odoo11/odoo/tools/convert.py", line 744, in parse
    self._tags[rec.tag](rec, de, mode=mode)
  File "/opt/odoo/odoo11/odoo/tools/convert.py", line 654, in _tag_record
    id = self.env(context=rec_context)['ir.model.data']._update(rec_model, self.module, res, rec_id or False, not self.isnoupdate(data_node), noupdate=self.isnoupdate(data_node), mode=self.mode)
  File "/opt/odoo/odoo11/odoo/addons/base/ir/ir_model.py", line 1449, in _update
    " you can't define a `%s` record with this ID." % (xml_id, imd_model, model)
  File "/opt/odoo/odoo11/odoo/addons/base/ir/ir_ui_view.py", line 421, in write
    custom_view.unlink()
  File "/opt/odoo/odoo11/odoo/models.py", line 3108, in write
    for record in records:
  File "/opt/odoo/odoo11/odoo/fields.py", line 1071, in determine_inverse
  File "/opt/odoo/odoo11/odoo/addons/base/ir/ir_ui_view.py", line 273, in _inverse_arch
    view.write(data)
  File "/opt/odoo/odoo11/odoo/addons/base/ir/ir_ui_view.py", line 421, in write
    custom_view.unlink()
  File "/opt/odoo/odoo11/odoo/models.py", line 3090, in write
    protected_fields = [self._fields[n] for n in new_vals]
  File "/opt/odoo/odoo11/odoo/models.py", line 3256, in _write
    if unknown_fields:
  File "/opt/odoo/odoo11/odoo/models.py", line 1041, 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 `sii_code` no existe\n\nContexto del error:\nVista `account.invoice.sii.form`\n[view_id: 868, xml_id: l10n_cl_fe.view_invoice_form, model: account.invoice, parent_id: 520]', None)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/opt/odoo/odoo11/odoo/http.py", line 651, in _handle_exception
    return super(JsonRequest, self)._handle_exception(exception)
  File "/opt/odoo/odoo11/odoo/http.py", line 310, in _handle_exception
    raise pycompat.reraise(type(exception), exception, sys.exc_info()[2])
  File "/opt/odoo/odoo11/odoo/tools/pycompat.py", line 87, in reraise
    raise value
  File "/opt/odoo/odoo11/odoo/http.py", line 693, in dispatch
    result = self._call_function(**self.params)
  File "/opt/odoo/odoo11/odoo/http.py", line 342, in _call_function
    return checked_call(self.db, *args, **kwargs)
  File "/opt/odoo/odoo11/odoo/service/model.py", line 97, in wrapper
    return f(dbname, *args, **kwargs)
  File "/opt/odoo/odoo11/odoo/http.py", line 335, in checked_call
    result = self.endpoint(*a, **kw)
  File "/opt/odoo/odoo11/odoo/http.py", line 937, in __call__
    return self.method(*args, **kw)
  File "/opt/odoo/odoo11/odoo/http.py", line 515, in response_wrap
    response = f(*args, **kw)
  File "/opt/odoo/odoo11/addons/web/controllers/main.py", line 938, in call_button
    action = self._call_kw(model, method, args, {})
  File "/opt/odoo/odoo11/addons/web/controllers/main.py", line 926, in _call_kw
    return call_kw(request.env[model], method, args, kwargs)
  File "/opt/odoo/odoo11/odoo/api.py", line 689, in call_kw
    return call_kw_multi(method, model, args, kwargs)
  File "/opt/odoo/odoo11/odoo/api.py", line 680, in call_kw_multi
    result = method(recs, *args, **kwargs)
  File "<decorator-gen-51>", line 2, in button_immediate_upgrade
  File "/opt/odoo/odoo11/odoo/addons/base/module/module.py", line 71, in check_and_log
    return method(self, *args, **kwargs)
  File "/opt/odoo/odoo11/odoo/addons/base/module/module.py", line 603, in button_immediate_upgrade
    """
  File "/opt/odoo/odoo11/odoo/addons/base/module/module.py", line 542, in _button_immediate_function
    api.Environment.reset()
  File "/opt/odoo/odoo11/odoo/modules/registry.py", line 85, in new
    odoo.modules.load_modules(registry._db, force_demo, status, update_module)
  File "/opt/odoo/odoo11/odoo/modules/loading.py", line 376, in load_modules
    force, status, report, loaded_modules, update_module, models_to_check)
  File "/opt/odoo/odoo11/odoo/modules/loading.py", line 274, in load_marked_modules
    perform_checks=perform_checks, models_to_check=models_to_check
  File "/opt/odoo/odoo11/odoo/modules/loading.py", line 181, in load_module_graph
    _load_data(cr, module_name, idref, mode, kind='data')
  File "/opt/odoo/odoo11/odoo/modules/loading.py", line 95, in _load_data
    tools.convert_file(cr, module_name, filename, idref, mode, noupdate, kind, report)
  File "/opt/odoo/odoo11/odoo/tools/convert.py", line 791, in convert_file
    convert_xml_import(cr, module, fp, idref, mode, noupdate, report)
  File "/opt/odoo/odoo11/odoo/tools/convert.py", line 852, in convert_xml_import
    obj.parse(doc.getroot(), mode=mode)
  File "/opt/odoo/odoo11/odoo/tools/convert.py", line 741, in parse
    self.parse(rec, mode)
  File "/opt/odoo/odoo11/odoo/tools/convert.py", line 751, in parse
    exc_info[2]
  File "/opt/odoo/odoo11/odoo/tools/pycompat.py", line 86, in reraise
    raise value.with_traceback(tb)
  File "/opt/odoo/odoo11/odoo/tools/convert.py", line 744, in parse
    self._tags[rec.tag](rec, de, mode=mode)
  File "/opt/odoo/odoo11/odoo/tools/convert.py", line 654, in _tag_record
    id = self.env(context=rec_context)['ir.model.data']._update(rec_model, self.module, res, rec_id or False, not self.isnoupdate(data_node), noupdate=self.isnoupdate(data_node), mode=self.mode)
  File "/opt/odoo/odoo11/odoo/addons/base/ir/ir_model.py", line 1449, in _update
    " you can't define a `%s` record with this ID." % (xml_id, imd_model, model)
  File "/opt/odoo/odoo11/odoo/addons/base/ir/ir_ui_view.py", line 421, in write
    custom_view.unlink()
  File "/opt/odoo/odoo11/odoo/models.py", line 3108, in write
    for record in records:
  File "/opt/odoo/odoo11/odoo/fields.py", line 1071, in determine_inverse
  File "/opt/odoo/odoo11/odoo/addons/base/ir/ir_ui_view.py", line 273, in _inverse_arch
    view.write(data)
  File "/opt/odoo/odoo11/odoo/addons/base/ir/ir_ui_view.py", line 421, in write
    custom_view.unlink()
  File "/opt/odoo/odoo11/odoo/models.py", line 3090, in write
    protected_fields = [self._fields[n] for n in new_vals]
  File "/opt/odoo/odoo11/odoo/models.py", line 3256, in _write
    if unknown_fields:
  File "/opt/odoo/odoo11/odoo/models.py", line 1041, 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 `sii_code` no existe

Contexto del error:
Vista `account.invoice.sii.form`
[view_id: 868, xml_id: l10n_cl_fe.view_invoice_form, model: account.invoice, parent_id: 520]
None" while parsing /opt/odoo/odoo11-custom-addons/l10n_cl_fe/views/invoice_view.xml:37, near
<record id="view_invoice_form" model="ir.ui.view">
            <field name="model">account.invoice</field>
            <field name="name">account.invoice.sii.form</field>
            <field name="inherit_id" ref="account.invoice_form"/>
            <field name="arch" type="xml">
              <data><form>
                  <field name="available_journal_document_class_ids" invisible="1"/>
                  <field name="use_documents" invisible="1"/>
                  <field name="sii_document_number" invisible="1"/>
                  <field name="move_name" invisible="1"/>
                  <field name="sii_code" invisible="1"/>
              </form>

              <button name="invoice_print" position="after">
                 <button string="Imprimir Cedible" type="object" name="print_cedible"/>
              </button>
              <field name="invoice_line_tax_ids" position="attributes">
                <attribute name="required">1</attribute>    
              </field>
              

              <!--
              <button name="invoice_cancel" position="attributes">
                  <attribute name="invisible">1</attribute>
              </button>-->

              <field name="state" position="before">
                <button name="%(account.action_account_invoice_refund)d" type="action" string="Refund Invoice" groups="base.group_user" attrs="{'invisible': ['|',('type', '=', 'out_invoice'), ('state', 'not in', ('open','proforma2','paid'))]}"/>
              </field>

              <xpath expr="//form/sheet/h1" position="replace"> 
                <h1 class="mt0">
                  <div attrs="{'invisible': [('state','=','draft')]}">
                      <field name="sii_document_class_id" class="oe_inline"/> Número:<br/>
                      <field name="number" readonly="1" class="oe_inline"/>
                  </div>
                  <div attrs="{'invisible': [('state','!=','draft')]}">
                      <label string="Siguiente"/> <br/>
                      <field name="sii_document_class_id" class="oe_inline"/> Número:<br/>
                      <field name="sequence_number_next_prefix" class="oe_inline"/>
                      <field name="sequence_number_next" class="oe_inline" readonly="True"/>
                  </div>
                </h1>
              </xpath>

              <field name="partner_id" position="after">
                  <field name="activity_description" placeholder="Glosa descriptiva" options="{'no_open': True}"/>
              </field>

              <field name="user_id" position="after">
                <field name="forma_pago"/>
                <field name="contact_id" domain="[('parent_id','=',partner_id)]"/>
              </field>

              <field name="partner_bank_id" position="before">
                  <field name="vat_discriminated"/>
              </field>

              <field name="amount_untaxed" position="after">
                <field name="amount_untaxed_global_discount" widget="monetary" attrs="{'invisible':[('amount_untaxed_global_discount','=',0)]}"/>
                <field name="amount_untaxed_global_recargo" widget="monetary" attrs="{'invisible':[('amount_untaxed_global_recargo','=',0)]}"/>
              </field>

              <field name="comment" position="after">
                <field name="global_descuentos_recargos" widget="one2many_list" mode="tree" context="{'default_invoice_id': active_id}">
                  <tree string="Descuetos / Recargos Globales" editable="bottom">
                    <field name="type"/>
                    <field name="gdr_type"/>
                    <field name="valor"/>
                    <field name="gdr_dtail"/>
                    <field name="aplicacion"/>
                    <field name="amount_untaxed_global_dr" invisible="1"/>
                    <field name="invoice_id" invisible="1"/>
                  </tree>
                </field>
              </field>

              <field name="tax_line_ids" position="before">
                  <field name="referencias" mode="tree">
                    <form>
                      <group>
                        <field name="origen" required="True"/>
                        <field name="sii_referencia_TpoDocRef" required="True"/>
                        <field name="sii_referencia_CodRef"/>
                        <field name="motivo"/>
                        <field name="fecha_documento"/>
                      </group>
                    </form>
                    <tree>
                      <field name="origen" required="True"/>
                      <field name="sii_referencia_TpoDocRef" required="True"/>
                      <field name="sii_referencia_CodRef"/>
                      <field name="motivo"/>
                      <field name="fecha_documento"/>
                    </tree>
                  </field>
              </field>

              <field name="journal_id" position="after">
                  <field name="journal_document_class_id" attrs="{'invisible':[('use_documents','=',False)],'required':[('use_documents','=',True)],'readonly':['|',('state','!=','draft'),('sii_document_number','&gt;',0)]}" options="{'no_create': True}"/>
                  <field name="ticket" attrs="{'invisible': [('sii_code', 'in', [39, 41])]}"/>
              </field>

              <field name="account_id" position="attributes">
                  <attribute name="options">{'no_create': True}</attribute>
              </field>

              <xpath expr="//page/field[@name='invoice_line_ids']/tree/field[@name='product_id']" position="after">
                <field name="name"/>
              </xpath>

              <notebook>
                  <page string="Electronic Invoice" name="electronic_invoice">
                      <header>
                          <button string="Download XML" type="object" name="get_xml_file" attrs="{'invisible':['|',('state', 'in', ['draft']), ('sii_xml_request','=',False)]}"/>
                          <button string="Download XML Exchange" type="object" name="get_xml_exchange_file" attrs="{'invisible':['|',('state', 'in', ['draft']), ('sii_xml_request','=',False)]}"/>
                          <button string="Envío Manual XML Intercambio" type="object" name="manual_send_exchange" attrs="{'invisible':['|',('state', 'in', ['draft']), ('sii_xml_request','=',False)]}"/>
                          <button string="Send XML" type="object" class="oe_highlight" name="do_dte_send_invoice" attrs="{'invisible': ['|', ('state', 'in', ['draft']),('sii_result', 'not in', ['','NoEnviado','Rechazado'])]}"/>
                          <button string="Ask for DTE" type="object" class="oe_highlight" name="ask_for_dte_status" attrs="{'invisible':['|', ('state', 'in', ['draft']),('sii_result','in',['','NoEnviado'])]}"/>
                          <field name="sii_result" widget="statusbar"/>
                      </header>
                      <group>
                          <field name="sii_xml_request" attrs="{'invisible':[('sii_result', '=', '')]}" readonly="1" options="{'no_create': True}"/>
                          <field name="sii_batch_number" readonly="1"/>
                          <field name="sii_barcode_img" widget="image" attrs="{'invisible':[('sii_result', '=', '')]}" readonly="1"/>
                          <field name="sii_message" attrs="{'invisible':[('sii_result', 'in', ['','NoEnviado'])]}" readonly="1"/>
                          <field name="sii_xml_dte" attrs="{'invisible':[('sii_result', '=', '')]}" readonly="1"/>
                      </group>
                  </page>

                  <page name="client_claim" string="Registro de Reclamo en SII">
                    <header>
                      <button name="get_dte_claim" string="Consultar estado de Reclamo" type="object"/>
                      <field name="claim" widget="statusbar"/>
                    </header>
                    <group>
                      <field name="claim_description"/>
                    </group>
                  </page>
              </notebook>
            </data></field>
        </record>

peter albiña
peter albiña
27
| 2 1 1
Preguntado en 06-02-19 20:23
0
voto
1183 Vistas

error mio, no reinicie el servicio despues de hacer el git pull.

peter albiña
peter albiña
27
| 2 1 1
Respondido en 11-03-19 18:53
0
voto

Su respuesta

Trate por favor de dar una respuesta sustancial. Si quiere comentar en la pregunta o la respuesta, sólo use la herramienta de comentarios. Recuerde que siempre puede revise sus respuestas - no hay necesidad de responder dos veces la misma pregunta. También no olvide votar - ¡ayuda realmente a seleccionar las mejores preguntas y respuestas!

Realizar una pregunta

Mantener informado

Sobre este foro 

Esta comunidad es para profesionales y entusiastas de nuestros productos y servicios.

Lea las directrices

Herramientas de las preguntas

77 seguidor(es)

Estadísticas

Preguntado: 06-02-19 20:23
Visto: 1183 veces
Última actualización: 11-03-19 18:53