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

Morning all

could someone help solve this problem. i am unable to install Account Check Printing Report Base on odoo 14. i get the following message

Erreur:

Odoo Server Error

Traceback (most recent call last):
  File "/home/fedaone/odoo-14-ocb/odoo/tools/convert.py", line 677, in _tag_root
    f(rec)
  File "/home/fedaone/odoo-14-ocb/odoo/tools/convert.py", line 580, in _tag_record
    record = model._load_records([data], self.mode == 'update')
  File "/home/fedaone/odoo-14-ocb/odoo/models.py", line 4220, in _load_records
    records = self._load_records_create([data['values'] for data in to_create])
  File "/home/fedaone/odoo-14-ocb/odoo/models.py", line 4149, in _load_records_create
    return self.create(values)
  File "", line 2, in create
  File "/home/fedaone/odoo-14-ocb/odoo/api.py", line 348, in _model_create_multi
    return create(self, arg)
  File "/home/fedaone/odoo-14-ocb/odoo/addons/base/models/ir_ui_view.py", line 482, in create
    return super(View, self).create(vals_list)
  File "", line 2, in create
  File "/home/fedaone/odoo-14-ocb/odoo/api.py", line 348, in _model_create_multi
    return create(self, arg)
  File "/home/fedaone/odoo-14-ocb/odoo/addons/base/models/ir_fields.py", line 534, in create
    recs = super().create(vals_list)
  File "", line 2, in create
  File "/home/fedaone/odoo-14-ocb/odoo/api.py", line 348, in _model_create_multi
    return create(self, arg)
  File "/home/fedaone/odoo-14-ocb/odoo/models.py", line 3910, in create
    fields[0].determine_inverse(batch_recs)
  File "/home/fedaone/odoo-14-ocb/odoo/fields.py", line 1187, in determine_inverse
    getattr(records, self.inverse)()
  File "/home/fedaone/odoo-14-ocb/odoo/addons/base/models/ir_ui_view.py", line 300, in _inverse_arch
    view.write(data)
  File "/home/fedaone/odoo-14-ocb/addons/website/models/theme_models.py", line 286, in write
    res = super(IrUiView, other_views).write(vals)
  File "/home/fedaone/odoo-14-ocb/addons/website/models/ir_ui_view.py", line 68, in write
    return super(View, self).write(vals)
  File "/home/fedaone/odoo-14-ocb/odoo/addons/base/models/ir_ui_view.py", line 500, in write
    res = super(View, self).write(self._compute_defaults(vals))
  File "/home/fedaone/odoo-14-ocb/odoo/models.py", line 3694, in write
    real_recs._validate_fields(vals, inverse_fields)
  File "/home/fedaone/odoo-14-ocb/odoo/models.py", line 1266, in _validate_fields
    check(self)
  File "/home/fedaone/odoo-14-ocb/odoo/addons/base/models/ir_ui_view.py", line 408, in _check_xml
    raise ValidationError(_(
  File "/home/fedaone/odoo-14-ocb/odoo/addons/base/models/ir_ui_view.py", line 391, in _check_xml
    view.postprocess_and_fields(view_doc, validate=True)
  File "/home/fedaone/odoo-14-ocb/odoo/addons/base/models/ir_ui_view.py", line 850, in postprocess_and_fields
    arch, name_manager = self._postprocess_view(node, model, validate=validate)
  File "/home/fedaone/odoo-14-ocb/odoo/addons/base/models/ir_ui_view.py", line 864, in _postprocess_view
    name_manager.check_view_fields(self)
  File "/home/fedaone/odoo-14-ocb/odoo/addons/base/models/ir_ui_view.py", line 2008, in check_view_fields
    view.handle_view_error(msg)
  File "/home/fedaone/odoo-14-ocb/odoo/addons/base/models/ir_ui_view.py", line 673, in handle_view_error
    raise ValueError(formatted_message).with_traceback(from_traceback) from from_exception
odoo.exceptions.ValidationError: Erreur lors de la validation de la vue:

Field available_partner_bank_ids used in field partner_bank_id default domain ([('id', 'in', available_partner_bank_ids)]) must be present in view but is missing.

View name: account.payment.form.inherited
Error context:
 view: ir.ui.view(3286,)
 xmlid: view_account_payment_form_inherited
 view.model: account.payment
 view.parent: ir.ui.view(585,)
 file: /home/fedaone/odoo-14-ocb/addons/account_check_printing/views/account_payment_views.xml


The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/home/fedaone/odoo-14-ocb/odoo/addons/base/models/ir_http.py", line 237, in _dispatch
    result = request.dispatch()
  File "/home/fedaone/odoo-14-ocb/odoo/http.py", line 684, in dispatch
    result = self._call_function(**self.params)
  File "/home/fedaone/odoo-14-ocb/odoo/http.py", line 360, in _call_function
    return checked_call(self.db, *args, **kwargs)
  File "/home/fedaone/odoo-14-ocb/odoo/service/model.py", line 94, in wrapper
    return f(dbname, *args, **kwargs)
  File "/home/fedaone/odoo-14-ocb/odoo/http.py", line 348, in checked_call
    result = self.endpoint(*a, **kw)
  File "/home/fedaone/odoo-14-ocb/odoo/http.py", line 913, in __call__
    return self.method(*args, **kw)
  File "/home/fedaone/odoo-14-ocb/odoo/http.py", line 532, in response_wrap
    response = f(*args, **kw)
  File "/home/fedaone/odoo-14-ocb/addons/web/controllers/main.py", line 1396, in call_button
    action = self._call_kw(model, method, args, kwargs)
  File "/home/fedaone/odoo-14-ocb/addons/web/controllers/main.py", line 1384, in _call_kw
    return call_kw(request.env[model], method, args, kwargs)
  File "/home/fedaone/odoo-14-ocb/odoo/api.py", line 399, in call_kw
    result = _call_kw_multi(method, model, args, kwargs)
  File "/home/fedaone/odoo-14-ocb/odoo/api.py", line 386, in _call_kw_multi
    result = method(recs, *args, **kwargs)
  File "", line 2, in button_immediate_install
  File "/home/fedaone/odoo-14-ocb/odoo/addons/base/models/ir_module.py", line 74, in check_and_log
    return method(self, *args, **kwargs)
  File "/home/fedaone/odoo-14-ocb/odoo/addons/base/models/ir_module.py", line 475, in button_immediate_install
    return self._button_immediate_function(type(self).button_install)
  File "/home/fedaone/odoo-14-ocb/odoo/addons/base/models/ir_module.py", line 593, in _button_immediate_function
    modules.registry.Registry.new(self._cr.dbname, update_module=True)
  File "/home/fedaone/odoo-14-ocb/odoo/modules/registry.py", line 89, in new
    odoo.modules.load_modules(registry._db, force_demo, status, update_module)
  File "/home/fedaone/odoo-14-ocb/odoo/modules/loading.py", line 459, in load_modules
    processed_modules += load_marked_modules(cr, graph,
  File "/home/fedaone/odoo-14-ocb/odoo/modules/loading.py", line 347, in load_marked_modules
    loaded, processed = load_module_graph(
  File "/home/fedaone/odoo-14-ocb/odoo/modules/loading.py", line 222, in load_module_graph
    load_data(cr, idref, mode, kind='data', package=package)
  File "/home/fedaone/odoo-14-ocb/odoo/modules/loading.py", line 69, in load_data
    tools.convert_file(cr, package.name, filename, idref, mode, noupdate, kind)
  File "/home/fedaone/odoo-14-ocb/odoo/tools/convert.py", line 733, in convert_file
    convert_xml_import(cr, module, fp, idref, mode, noupdate)
  File "/home/fedaone/odoo-14-ocb/odoo/tools/convert.py", line 799, in convert_xml_import
    obj.parse(doc.getroot())
  File "/home/fedaone/odoo-14-ocb/odoo/tools/convert.py", line 719, in parse
    self._tag_root(de)
  File "/home/fedaone/odoo-14-ocb/odoo/tools/convert.py", line 681, in _tag_root
    raise ParseError('while parsing %s:%s, near\n%s' % (
Exception

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/home/fedaone/odoo-14-ocb/odoo/http.py", line 640, in _handle_exception
    return super(JsonRequest, self)._handle_exception(exception)
  File "/home/fedaone/odoo-14-ocb/odoo/http.py", line 316, in _handle_exception
    raise exception.with_traceback(None) from new_cause
odoo.tools.convert.ParseError: while parsing /home/fedaone/odoo-14-ocb/addons/account_check_printing/views/account_payment_views.xml:3, near

            account.payment.form.inherited
            account.payment
            
            
                
                    
                    
                    
                
                
                    
                
                
                    
                    
                
                
                    
                
            
        

i am learning odoo development please help. my objectif is to install Odoo 14 Full Accounting Kit on odoo 14 . but it depends on the Account Check Printing Report Base.

i dont know where to start

thank you in advance


Avatar
Discard
Best Answer

Looks like there is a field 'available_partner_bank_ids' defined in the model, is not present in the view.
Please try to add that field in your respective inherited view (account.payment.form.inherited).


Read this in the error log for more info.

Field available_partner_bank_ids used in field partner_bank_id default domain ([('id', 'in', available_partner_bank_ids)]) must be present in view but is missing.
View name: account.payment.form.inherited
Error context:
 view: ir.ui.view(3286,)
 xmlid: view_account_payment_form_inherited
 view.model: account.payment
 view.parent: ir.ui.view(585,)
 file: /home/fedaone/odoo-14-ocb/addons/account_check_printing/views/account_payment_views.xml


Avatar
Discard
Author Best Answer

thank you ! it worked.

Avatar
Discard
Related Posts Replies Views Activity
1
Nov 24
1485
1
Nov 24
1193
2
Sep 24
1047
1
Aug 24
2454
3
Aug 24
2687