Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
I have written an own module for my reports in Odoo 8.
+ (object.name or '').replace('/','_')
+ (object.partner_id.name or '').replace('/', '_').replace(' ', '-')
+ (object.state == 'draft' and '_draft' or '')
<?xml version="1.0" encoding="utf-8"?>
... many report related stuff ...
<t t-foreach="doc_ids" t-as="doc_id">
<t t-raw="translate_doc(doc_id, doc_model, 'partner_id.lang', 'my_reports.my_reports_saleorder_document')"/>
It is attached automatically to the print menu dropbox of the sale_order form.
If I print my report it will be automatically attached to the form. But it is not attached as 1 document. It will be attached multiple documents. One document for every page in the report. (I have installed 'Document Management System 2.1'.)
My invoice report works correctly.
Has any body an idea?
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 platform 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.Register
Odoo Training Center
Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.Test it now
|Asked: 8/7/15, 6:18 AM|
|Seen: 474 times|
|Last updated: 8/18/15, 4:18 AM|