Tech KB

Post Image

Creating Multiple Invoice Templates in Odoo v8

December 27, 2014

When we first got started using Odoo even the easiest of tasks seemed pretty complex. A workflow we required for our business was to have multiple invoice layouts which could be selected via the “Print” menu when creating invoices. The screenshots below are designed to walk you through the process of creating a second invoice template within Odoo. I hope it saves you some time! :-)
01 - Create New Report 01a - Note the ID 02 - Create Action Bindings via Duplicate 03 - Duplicate the Action Binding 04 - Create the Action Binding 05 - View QWeb Views for original invoices template 06 - Viewing the QWeb Templates 07 - Duplicate report_invoice 08 - Duplicate report_invoice - settings 09 - Note the ID of the new QWebView 10 - Duplicate report_invoice_document the same as before 11 - Open External Identifiers 12 - Create External ID 1 13 - Create External ID 2 14 - Edit your invoice

The Result:

15 - The result

 

David Birchmier

CEO - At age 15, David & his father built his first computer together. This bonding time also sparked a fire in him to learn more about computers. Fast forward a year or two, David was helping his neighbors & friends with their own tech issues. Even at such a young age, David recognized that one must understand the person & their unique challenge before a real solution can be offered. David holds an AAS & an AA from Indian Hills. He currently resides in Bloomfield and enjoys songwriting and a friendly game of poker.

  1. Abdul Gafoor

    I liked the way you wrote info here. Cool one :-). Write more about Odoo. I’m an IT guy and currently in a learning stage on this great piece of web application. Thanks for this blog.

  2. Hi David,
    thank you for your great description.
    I followed this in detail (many times) but when I try to print a invoice with the new report I got the following error:

    Odoo Client Error
    SyntaxError: JSON.parse: unexpected end of data at line 2 column 1 of the JSON data
    http://localhost:8069/web/static/src/js/core.js:449

    Do you have any idea what the problem could be?
    Thank you.
    Bye,
    Joachim.

  3. Hello David,
    I have seen your past ,
    You are rock!! hats off Brother :)

  4. Benjamin

    Dear David,

    first of all thank you. Great Post.
    One problem occuring by your copy-mode-invoice-generation is the language: every report generated by your method will print in English. Can you append information how to reference to the customer’s language?

    Best regards.

  5. Shaheryar Malik

    Thanks Alot… i followed the steps exactly and its flaw less.. You saved me many many hours.. thanks again

  6. Hi David,
    many compliments from Italy for your work.
    Your guide it’s minimal but very complete!
    Thank’s far all

    Adriano

  7. The best … thank you

  8. Exelente! Muy clara y acertada toda la explicación.

  9. Erwan

    This Tutorial is very helpful
    Thank You

Post your comment