Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

How to use Aeroo Reports with sale_layout in Odoo 8?

By
Rolf Wojtech
on 9/4/15, 8:38 AM 521 views

sale_layout allows you do add page breaks and subtotals to a sale invoice or sales order.

It is important to note that the sale_layout module has changed completely from OpenERP 6.1 to Odoo 8.0 (It did not officially exist in 7.0).

In 6.1 the visual elements (page breaks, subtotals) would be inserted like a line. To achieve that, sale_order_lines had an additional field layout_type. We used this in combination with Aeroo Reports using a parser that would check the layout_type and inserting the corresponding element into the generated OpenOffice-Document.

However 8.0 changes the architecture: you create a Report Layout Category. You can set a page break or subtotal per Category. Odoo then prints each Category on its own and inserts page breaks if configured to do so.

I am not sure yet how to combine that with Aeroo Reports. I will look into creating a custom parser.py that handles the extraction of the category and its formatting options in pyhton but if someone has a more "canonical" way I would be very interested to hear it.

@Rolf,
I'm also interested in this. I'll post back here if I figure out how to implement it in an Aeroo report, please post back if you find an answer to this as well.

Luke Branch
on 9/6/15, 9:03 PM

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

2 follower(s)

Stats

Asked: 9/4/15, 8:38 AM
Seen: 521 times
Last updated: 9/6/15, 9:03 PM