Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
534 Weergaven

Here is the details error :

RPC_ERROR

Odoo Server Error

Traceback (most recent call last):

  File "C:\Users\VF Systeme\Desktop\Av_exer\odoo\addons\sign\models\sign_template.py", line 192, in _check_pdf_data_validity

    self._get_pdf_number_of_pages(base64.b64decode(datas))

  File "C:\Users\VF Systeme\Desktop\Av_exer\odoo\addons\sign\models\sign_template.py", line 159, in _get_pdf_number_of_pages

    file_pdf = PdfFileReader(io.BytesIO(pdf_data), strict=False, overwriteWarnings=False)

               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "C:\Program Files\Python312\Lib\site-packages\PyPDF2\_reader.py", line 1971, in __init__

    super().__init__(*args, **kwargs)

TypeError: PdfReader.__init__() got an unexpected keyword argument 'overwriteWarnings'


During handling of the above exception, another exception occurred:


Traceback (most recent call last):

  File "C:\Users\VF Systeme\Desktop\Av_exer\odoo\odoo\tools\convert.py", line 556, in _tag_root

    f(rec)

  File "C:\Users\VF Systeme\Desktop\Av_exer\odoo\odoo\tools\convert.py", line 456, in _tag_record

    record = model._load_records([data], self.mode == 'update')

             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "C:\Users\VF Systeme\Desktop\Av_exer\odoo\odoo\models.py", line 5088, in _load_records

    records = self._load_records_create([data['values'] for data in to_create])

              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "C:\Users\VF Systeme\Desktop\Av_exer\odoo\odoo\models.py", line 4999, in _load_records_create

    return self.create(values)

           ^^^^^^^^^^^^^^^^^^^

  File "<decorator-gen-157>", line 2, in create

  File "C:\Users\VF Systeme\Desktop\Av_exer\odoo\odoo\api.py", line 415, in _model_create_multi

    return create(self, arg)

           ^^^^^^^^^^^^^^^^^

  File "C:\Users\VF Systeme\Desktop\Av_exer\odoo\addons\sign\models\sign_template.py", line 115, in create

    self._check_pdf_data_validity(attachment.datas)

  File "C:\Users\VF Systeme\Desktop\Av_exer\odoo\addons\sign\models\sign_template.py", line 194, in _check_pdf_data_validity

    raise UserError(_("One uploaded file cannot be read. Is it a valid PDF?"))

odoo.exceptions.UserError: One uploaded file cannot be read. Is it a valid PDF?


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


Traceback (most recent call last):

  File "C:\Users\VF Systeme\Desktop\Av_exer\odoo\odoo\http.py", line 1782, in _serve_db

    return service_model.retrying(self._serve_ir_http, self.env)

           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "C:\Users\VF Systeme\Desktop\Av_exer\odoo\odoo\service\model.py", line 133, in retrying

    result = func()

             ^^^^^^

  File "C:\Users\VF Systeme\Desktop\Av_exer\odoo\odoo\http.py", line 1809, in _serve_ir_http

    response = self.dispatcher.dispatch(rule.endpoint, args)

               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "C:\Users\VF Systeme\Desktop\Av_exer\odoo\odoo\http.py", line 2013, in dispatch

    result = self.request.registry['ir.http']._dispatch(endpoint)

             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "C:\Users\VF Systeme\Desktop\Av_exer\odoo\odoo\addons\base\models\ir_http.py", line 221, in _dispatch

    result = endpoint(**request.params)

             ^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "C:\Users\VF Systeme\Desktop\Av_exer\odoo\odoo\http.py", line 757, in route_wrapper

    result = endpoint(self, *args, **params_ok)

             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "C:\Users\VF Systeme\Desktop\Av_exer\odoo\addons\web\controllers\dataset.py", line 28, in call_button

    action = self._call_kw(model, method, args, kwargs)

             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "C:\Users\VF Systeme\Desktop\Av_exer\odoo\addons\web\controllers\dataset.py", line 20, in _call_kw

    return call_kw(request.env[model], method, args, kwargs)

           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "C:\Users\VF Systeme\Desktop\Av_exer\odoo\odoo\api.py", line 468, in call_kw

    result = _call_kw_multi(method, model, args, kwargs)

             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "C:\Users\VF Systeme\Desktop\Av_exer\odoo\odoo\api.py", line 453, in _call_kw_multi

    result = method(recs, *args, **kwargs)

             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "C:\Program Files\Python312\Lib\site-packages\decorator.py", line 232, in fun

    return caller(func, *(extras + args), **kw)

           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "C:\Users\VF Systeme\Desktop\Av_exer\odoo\odoo\addons\base\models\ir_module.py", line 75, in check_and_log

    return method(self, *args, **kwargs)

           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "C:\Users\VF Systeme\Desktop\Av_exer\odoo\odoo\addons\base\models\ir_module.py", line 469, in button_immediate_install

    return self._button_immediate_function(self.env.registry[self._name].button_install)

           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "C:\Users\VF Systeme\Desktop\Av_exer\odoo\odoo\addons\base\models\ir_module.py", line 593, in _button_immediate_function

    registry = modules.registry.Registry.new(self._cr.dbname, update_module=True)

               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "C:\Program Files\Python312\Lib\site-packages\decorator.py", line 232, in fun

    return caller(func, *(extras + args), **kw)

           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "C:\Users\VF Systeme\Desktop\Av_exer\odoo\odoo\tools\func.py", line 87, in locked

    return func(inst, *args, **kwargs)

           ^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "C:\Users\VF Systeme\Desktop\Av_exer\odoo\odoo\modules\registry.py", line 114, in new

    odoo.modules.load_modules(registry, force_demo, status, update_module)

  File "C:\Users\VF Systeme\Desktop\Av_exer\odoo\odoo\modules\loading.py", line 480, in load_modules

    processed_modules += load_marked_modules(env, graph,

                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "C:\Users\VF Systeme\Desktop\Av_exer\odoo\odoo\modules\loading.py", line 364, in load_marked_modules

    loaded, processed = load_module_graph(

                        ^^^^^^^^^^^^^^^^^^

  File "C:\Users\VF Systeme\Desktop\Av_exer\odoo\odoo\modules\loading.py", line 227, in load_module_graph

    load_data(env, idref, mode, kind='data', package=package)

  File "C:\Users\VF Systeme\Desktop\Av_exer\odoo\odoo\modules\loading.py", line 71, in load_data

    tools.convert_file(env, package.name, filename, idref, mode, noupdate, kind)

  File "C:\Users\VF Systeme\Desktop\Av_exer\odoo\odoo\tools\convert.py", line 627, in convert_file

    convert_xml_import(env, module, fp, idref, mode, noupdate)

  File "C:\Users\VF Systeme\Desktop\Av_exer\odoo\odoo\tools\convert.py", line 693, in convert_xml_import

    obj.parse(doc.getroot())

  File "C:\Users\VF Systeme\Desktop\Av_exer\odoo\odoo\tools\convert.py", line 613, in parse

    self._tag_root(de)

  File "C:\Users\VF Systeme\Desktop\Av_exer\odoo\odoo\tools\convert.py", line 569, in _tag_root

    raise ParseError('while parsing %s:%s, somewhere inside\n%s' % (

odoo.tools.convert.ParseError: while parsing file:/c:/users/vf%20systeme/desktop/av_exer/odoo/addons/sign/data/sign_data.xml:9, somewhere inside

<record id="template_sign_tour" model="sign.template">

        <field name="attachment_id" ref="attachment_sign_tour"/>

        <field name="active" eval="False"/>

    </record>


The above server error caused the following client error:

RPC_ERROR: Odoo Server Error

    RPCError@http://localhost:8069/web/assets/9350976/web.assets_web.min.js:2885:319

    makeErrorFromResponse@http://localhost:8069/web/assets/9350976/web.assets_web.min.js:2888:163

    jsonrpc/promise</<@http://localhost:8069/web/assets/9350976/web.assets_web.min.js:2892:34

   

Avatar
Annuleer