Italy mailing list archives

italy@odoo-community.org

Avatar

Re: vat_registries: Corrispettivi

by
TAKOBI s.r.l., Lorenzo Battistini.
- 01/02/2017 17:12:01
Ciao Giuliano,
grazie della segnalazione.
Ho appena caricato su eLBati:10.0-mig-l10n_it_vat_registries le modifiche che dovrebbero gestire correttamente anche le registrazioni del POS.
Fammi sapere.
Grazie



2017-01-27 23:33 GMT+01:00 Giuliano Lotta <giuliano.lotta@stilotecnica.it>:
Ho un ERRORE suila stampa corrispettivi/POS:

Nel menù POS->config->punto vendita, apro il punto vendita "Main", e 
attribuisco come al "registro vendite" il sezionale POS Sale Journal

(nota: di default invece ho notato che era impostato su fatture clienti 
!! è un errore di config del modulo ita ?
su runbot è settato correttamente su  POS Sale Journal (USD).... 
strano..... inoltre aprendo il form il punto vendita Main scrive 
"(inutilizato)" nel mentre sul runbot compare la scritta 
"(adminisstrator)"..... qualcosa andato storto ? )

A fine sessione di vendtia POS, le operazioni POS sono effettivamente 
caricate nel registro POS Sale Journal (le ritrovo cercandole in 
contab-> report->sez.vend.)

Tuttavia se chiedo la STAMPA del registro iva CORRISPETTIVI, caricando 
direttamente i dati nel wizard dal POS sale Jour,

ottengo l' errore del server seguente


Odoo Server Error

Traceback (most recent call last):
   File "/home/giuliano/odoo-dev/odoo-10a/src/odoo/addons/report/controllers/main.py", line 100, in report_download
     response = self.report_routes(reportname, converter='pdf', **dict(data))
   File "/home/giuliano/odoo-dev/odoo-10a/src/odoo/odoo/http.py", line 504, in response_wrap
     response = f(*args, **kw)
   File "/home/giuliano/odoo-dev/odoo-10a/src/odoo/addons/report/controllers/main.py", line 45, in report_routes
     pdf = report_obj.with_context(context).get_pdf(docids, reportname, data=data)
   File "/home/giuliano/odoo-dev/odoo-10a/src/odoo/addons/report/models/report.py", line 178, in get_pdf
     html = self.with_context(context).get_html(docids, report_name, data=data)
   File "/home/giuliano/odoo-dev/odoo-10a/src/odoo/addons/report/models/report.py", line 135, in get_html
     return report_model.render_html(docids, data=data)
   File "/home/giuliano/odoo-dev/odoo-10a/local-addons/l10n_it_vat_registries/models/vat_registry.py", line 36, in render_html
     'l10n_it_vat_registries.report_registro_iva', docargs)
   File "/home/giuliano/odoo-dev/odoo-10a/src/odoo/addons/report/models/report.py", line 120, in render
     return view_obj.render_template(template, values)
   File "/home/giuliano/odoo-dev/odoo-10a/src/odoo/odoo/addons/base/ir/ir_ui_view.py", line 1029, in render_template
     return self.browse(self.get_view_id(template)).render(values, engine)
   File "/home/giuliano/odoo-dev/odoo-10a/src/odoo/addons/web_editor/models/ir_ui_view.py", line 26, in render
     return super(IrUiView, self).render(values=values, engine=engine)
   File "/home/giuliano/odoo-dev/odoo-10a/src/odoo/odoo/addons/base/ir/ir_ui_view.py", line 1049, in render
     return self.env[engine].render(self.id, qcontext)
   File "/home/giuliano/odoo-dev/odoo-10a/src/odoo/odoo/addons/base/ir/ir_qweb/ir_qweb.py", line 53, in render
     return super(IrQWeb, self).render(id_or_xml_id, values=values, **context)
   File "/home/giuliano/odoo-dev/odoo-10a/src/odoo/odoo/addons/base/ir/ir_qweb/qweb.py", line 248, in render
     self.compile(template, options)(self, body.append, values or {})
   File "/home/giuliano/odoo-dev/odoo-10a/src/odoo/odoo/addons/base/ir/ir_qweb/qweb.py", line 322, in _compiled_fn
     raise QWebException("Error to render compiling AST", e, path, node and etree.tostring(node[0]), name)
QWebException: Can't find invoice for move POSS/2017/0001
Traceback (most recent call last):
   File "/home/giuliano/odoo-dev/odoo-10a/src/odoo/odoo/addons/base/ir/ir_qweb/qweb.py", line 315, in _compiled_fn
     return compiled(self, append, values, options, log)
   File "", line 1, in template_506_2194
   File "", line 3, in body_call_content_2193
   File "", line 13, in body_call_content_2192
   File "", line 62, in foreach_2180
   File "/home/giuliano/odoo-dev/odoo-10a/local-addons/l10n_it_vat_registries/models/vat_registry.py", line 76, in _get_tax_lines
     invoice = self._get_invoice_from_move(move)
   File "/home/giuliano/odoo-dev/odoo-10a/local-addons/l10n_it_vat_registries/models/vat_registry.py", line 52, in _get_invoice_from_move
     raise Exception(_("Can't find invoice for move %s") % move.name)
Exception: Can't find invoice for move POSS/2017/0001

Error to render compiling AST
Exception: Can't find invoice for move POSS/2017/0001
Template: 506
Path: /templates/t/t/t[4]/div/table/tbody/t[2]/t[1]


Reference