in my custom module, I inherit sale.report_saleorder_document to create a new mycustom.report_saleorder_document.
This mycustom.report_saleorder_document is used for each company in my multi-company setup of Odoo 8.
What would be the easiest approach to have different view or different report for each company in our multi-company setup? Each company should have his own mycustom.report_saleorder_document (for example).
You inherit this xml code, and add t-if="user.company_id.id == XXX":
<t t-foreach="doc_ids" t-as="doc_id">
<t t-raw="translate_doc(doc_id, doc_model, 'partner_id.lang', 'sale.report_saleorder_document')"/>
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
|Asked: 2/16/15, 7:59 AM|
|Seen: 637 times|
|Last updated: 3/16/15, 8:10 AM|