Search 1.9 billion lines of Odoo code on GitHub

report_py3o_multilang

Author: ACSONE SA/NV,Odoo Community Association (OCA)
License: AGPL-3
Branch: 13.0-mig-report_py3o_multilang
Repository: acsone/reporting-engine
Dependencies: report_py3o
Languages: Python (84, 84.0%), and XML (16, 16.0%)
Other branches: 10.0-brb_master, and 10.0-py3o_template_multilang-lmi

<a class="reference external image-reference" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.svg"> </a> <a name="report-py3o-multilang"></a> <h2>Report Py3o Multilang</h2> <p>This module extends the Py3o Report functionality by letting you specify a rule to choose the appropriate template to use according to an expected language.</p> <a name="usage"></a> <h3>Usage</h3> <p>This module add two new fields on the report definition:</p> <ul class="simple"> <li>Alternate lang report file path: This should be a placeholder expression that provides the path to an alternate report file to use for a given language. The the expression can use the string '{lang}' as placeholder in the path, e.g. &quot;folder/my_template_{lang}.odt&quot;. If the expression is not provided or can be resolved, the report falls back on the main report file path/controller.</li> <li>Language: This should usually be a placeholder expression that provides the appropriate language, e.g. &quot;${object.partner_id.lang}.&quot;. The 'object' in the expression is on instance of the model on which the report applies.</li> </ul> <a class="reference external image-reference" href="https://runbot.odoo-community.org/runbot/143/10.0"><img alt="Try me on Runbot" src="https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas" /></a> <a name="bug-tracker"></a> <h3>Bug Tracker</h3> <p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/{project_repo}/issues">GitHub Issues</a>. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us smashing it by providing a detailed and welcomed feedback.</p> <a name="credits"></a> <h3>Credits</h3> <a name="images"></a> <h4>Images</h4> <ul class="simple"> <li>Odoo Community Association: <a class="reference external" href="https://github.com/OCA/maintainer-tools/blob/master/template/module/static/description/icon.svg">Icon</a>.</li> </ul> <a name="contributors"></a> <h4>Contributors</h4> <ul class="simple"> <li>Laurent Mignon &lt;<a class="reference external" href="mailto:laurent.mignon&#64;acsone.eu">laurent.mignon&#64;acsone.eu</a>&gt;</li> </ul> <a name="maintainer"></a> <h4>Maintainer</h4> <a class="reference external image-reference" href="https://odoo-community.org"><img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" /></a> <p>This module is maintained by the OCA.</p> <p>OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use.</p> <p>To contribute to this module, please visit <a class="reference external" href="https://odoo-community.org">https://odoo-community.org</a>.</p>