Skip to Content
Menu
This question has been flagged
1 Reply
3316 Views

I'm trying to figure out how to create a custom report/invoice, using the backend of Odoo only. I don't have server access presently.

I followed the above tutorial, but it's for V8 and there are differences between that and V11. I've followed as far as possible, the only issue is that - in 11 - there is no option for Action Binding. I've followed the rest, but I get an Odoo Server Error when I go to print from the button.

Traceback (most recent call last):
  File "/odoo/odoo-server/odoo/tools/cache.py", line 84, in lookup
    r = d[key]
  File "/odoo/odoo-server/odoo/tools/func.py", line 68, in wrapper
    return func(self, *args, **kwargs)
  File "/odoo/odoo-server/odoo/tools/lru.py", line 44, in __getitem__
    a = self.d[obj].me

Then there are some more traceback notes and then

 KeyError: ('ir.qweb', <function IrQWeb.compile at 0x7efc24086840>, 'account.kelly_report_document', ('en_GB', True, None, None, None, None))
Template not found
Template: account.kelly_report_document

I've tried search for the answers online, and researched in the Odoo Development books, but no joy. Any one able to offer any assistance/guidance?


Avatar
Discard

1- How to create Qweb reports in OpenErp: https://goo.gl/tg2Zyp

2- How to create custom reports in Odoo (Qweb): https://goo.gl/KZEo8X

Best Answer

Hi,

If you are looking how to create a new report from the code in odoo 11, please read this available documentations.


1.  QWeb Reports

2.  How to Create Qweb Reports In Odoo 12


Regarding the error message that you are getting, it says that the template is not found, template_id should be module_name.template_id.


Thanks

Avatar
Discard