Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
2 Odpovědi
2472 Zobrazení

Hi!

Currently I'm developing a module for Odoo 17 which is supposed to generate a simple PDF report of outgoing delivery orders from stock.picking. This PDF report is supposed to be triggered by a "Generate Delivery Report" button in the main menu of Odoo's delivery module.


The error appears when I attempt to install/upgrade the module. 


Please tell me if I'm missing something, as I can't find the problem in my code, yet.


See my code and the full error below:

__manifest__.py

{
'name': 'ModuleName',
'summary': "Erstellt eine neue Ansicht für Lieferungen und Sammelabwicklungen",
'description': "Erstellt eine neue Ansicht für Lieferungen und Sammelabwicklungen",
'version': '1.0.0',
'author': 'My_Company',
'category': 'Warehouse',
'depends': ['base', 'stock'],
'website': "https://www.website.com",
'license': 'Other proprietary',
'data': [
'views/views.xml',
'views/stock_menu_inherit.xml',
'templates/delivery_orders_report.xml',
],
'installable': True,
'application': True,
'auto_install': False
}

views/stock_menu_inherit.xml






stock.menu.action.inherit
stock.picking.type







templates/delivery_orders_report.xml







- Delivery Order


Date:


Customer:


State:

















Product Quantity







Delivery Orders
stock.picking
ModuleName.report_delivery_orders
qweb-pdf

report



Full Error:
RPC_ERROR
Odoo Server Error
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/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 /var/lib/odoo/addons/17.0/ZweiPunktDOReporter/views/stock_menu_inherit.xml:5, somewhere inside

            stock.menu.action.inherit
            stock.picking.type
           
           
               
                   
               
           
       

The above server error caused the following client error:
RPC_ERROR://localhost:8069/web/assets/04cc819/web.assets_web.min.js:2874:163)
    at XMLHttpRequest. (http://localhost:8069/web/assets/04cc819/web.assets_web.min.js:2878:13)
Avatar
Zrušit
Nejlepší odpověď

Hi,
It seems some code and error message is missing in the post. If you are getting cant find external id error, probably it may be due to wrong order of the files in the manifest db.

So verify the above such a way, the file/records will be inserted into db before referencing some where in the code.

Thanks

Avatar
Zrušit
Autor Nejlepší odpověď

Full error:
https://pastebin.com/Lf73Lmgr

Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
0
bře 15
3297
0
bře 15
4001
0
bře 25
793
0
lis 24
1923
1
říj 24
1728