Forum

Benvenuto!

Questo è il forum ufficiale dell'Associazione Odoo Italia. Dopo esserti registrato potrai partecipare ponendo domande o rispondendo a quelle esistenti. Non scordarti di compilare il tuo profilo e consultare le linee guida prima di iniziare a scrivere.

0

Errore creazione fattura su Odoo 14

Avatar
Michele Pupin

Buongiorno ho intallato Odoo 14 su Aruba cloud ed installato i moduli per la localizzazione italiana, alla generazione della fattura dopo la conferma dell ordine mi esce questo errore:

Errore:

Odoo Server Error


Traceback (most recent call last):

  File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_http.py", line 237, in _dispatch

    result = request.dispatch()

  File "/usr/lib/python3/dist-packages/odoo/http.py", line 685, in dispatch

    result = self._call_function(**self.params)

  File "/usr/lib/python3/dist-packages/odoo/http.py", line 361, in _call_function

    return checked_call(self.db, *args, **kwargs)

  File "/usr/lib/python3/dist-packages/odoo/service/model.py", line 94, in wrapper

    return f(dbname, *args, **kwargs)

  File "/usr/lib/python3/dist-packages/odoo/http.py", line 349, in checked_call

    result = self.endpoint(*a, **kw)

  File "/usr/lib/python3/dist-packages/odoo/http.py", line 914, in __call__

    return self.method(*args, **kw)

  File "/usr/lib/python3/dist-packages/odoo/http.py", line 533, in response_wrap

    response = f(*args, **kw)

  File "/usr/lib/python3/dist-packages/odoo/addons/web/controllers/main.py", line 1398, in call_button

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

  File "/usr/lib/python3/dist-packages/odoo/addons/web/controllers/main.py", line 1386, in _call_kw

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

  File "/usr/lib/python3/dist-packages/odoo/api.py", line 399, in call_kw

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

  File "/usr/lib/python3/dist-packages/odoo/api.py", line 386, in _call_kw_multi

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

  File "/usr/lib/python3/dist-packages/odoo/addons/sale/wizard/sale_make_invoice_advance.py", line 161, in create_invoices

    sale_orders._create_invoices(final=self.deduct_down_payments)

  File "/opt/odoo/addons/l10n-italy/l10n_it_fatturapa_sale/models/sale_order.py", line 19, in _create_invoices

    moves = super()._create_invoices(grouped=grouped, final=final, date=date)

  File "/usr/lib/python3/dist-packages/odoo/addons/sale/models/sale.py", line 801, in _create_invoices

    move.message_post_with_view('mail.message_origin_link',

  File "/usr/lib/python3/dist-packages/odoo/addons/mail/models/mail_thread.py", line 1944, in message_post_with_view

    record.message_post_with_template(False, **kwargs)

  File "/usr/lib/python3/dist-packages/odoo/addons/mail/models/mail_thread.py", line 1975, in message_post_with_template

    return composer.send_mail(auto_commit=auto_commit)

  File "/usr/lib/python3/dist-packages/odoo/addons/sale/models/mail_compose_message.py", line 13, in send_mail

    return super(MailComposeMessage, self).send_mail(auto_commit=auto_commit)

  File "/usr/lib/python3/dist-packages/odoo/addons/mail/wizard/mail_compose_message.py", line 264, in send_mail

    ActiveModel.browse(res_id).message_post(**post_params)

  File "/usr/lib/python3/dist-packages/odoo/addons/mail/models/mail_thread.py", line 1832, in message_post

    record_name = record_name or self.display_name

  File "/usr/lib/python3/dist-packages/odoo/fields.py", line 1021, in __get__

    self.compute_value(recs)

  File "/usr/lib/python3/dist-packages/odoo/fields.py", line 1177, in compute_value

    records._compute_field_value(self)

  File "/usr/lib/python3/dist-packages/odoo/addons/mail/models/mail_thread.py", line 410, in _compute_field_value

    return super()._compute_field_value(field)

  File "/usr/lib/python3/dist-packages/odoo/models.py", line 4069, in _compute_field_value

    getattr(self, field.compute)()

  File "/usr/lib/python3/dist-packages/odoo/models.py", line 1728, in _compute_display_name

    names = dict(self.name_get())

  File "/usr/lib/python3/dist-packages/odoo/addons/account/models/account_move.py", line 2058, in name_get

    name = move._get_move_display_name(show_ref=True)

  File "/usr/lib/python3/dist-packages/odoo/addons/account/models/account_move.py", line 2268, in _get_move_display_name

    draft_name += {

Exception


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


Traceback (most recent call last):

  File "/usr/lib/python3/dist-packages/odoo/http.py", line 641, in _handle_exception

    return super(JsonRequest, self)._handle_exception(exception)

  File "/usr/lib/python3/dist-packages/odoo/http.py", line 317, in _handle_exception

    raise exception.with_traceback(None) from new_cause

KeyError: 'other'


qualcuno sa dirmi a cosa è dovuto? Grazie per l'attenzione e Buona Pasqua a tutti.

Avatar
Abbandona
1 risposta
0
Avatar
Davide Corio
Migliore risposta

Ciao,

parrebbe un bug del modulo l10n_it_fatturapa_sale
Per confermarlo puoi provare a disinstallarlo, magari su una copia del db e vedere se il problema si risolve

3 commenti
Avatar
Abbandona
Avatar
Michele Pupin
-

Grazie, prpvp

Avatar
Michele Pupin
-

Ma poi dopo averlo disinstallato dovrei reinstallarlo? Ma non è che ricompare il bug?

Avatar
Davide Corio
-

Se è effettivamente un bug sarà necessario segnalarlo. Se il modulo invece non ti serve puoi lasciarlo disinstallato