Search 1.9 billion lines of Odoo code on GitHub

base_no_translation

Author: Peter Hahn, initOS GmbH, Odoo Community Association (OCA)
License: AGPL-3
Branch: 8.0-base-no-translate
Repository: initOS/server-tools
Dependencies: base
Languages: Python (26, 40.0%), and reStructuredText (39, 60.0%)

<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="disable-model-translation"></a> <h2>Disable model translation</h2> <p>Provides means to globally disable translation of field contents for all fields on a per Model base. Overrides <cite>translate=True</cite> of all fields of a model (including inherited custom fields of other models).</p> <p>For example to disable translation of all product data (description etc.). Inherit from <cite>product.product</cite> (and <cite>product.template</cite>) and set class attribute <cite>self._disable_field_translations</cite> of the model to False.</p> <a name="installation"></a> <h3>Installation</h3> <p>No specific requirements.</p> <a name="configuration"></a> <h3>Configuration</h3> <p>To disable translation of all fields for a given model you need to inherit that model and set class attribute <cite>self._disable_field_translations</cite> of the model to True.</p> <a name="bug-tracker"></a> <h3>Bug Tracker</h3> <p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/serevr-tools/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>Peter Hahn &lt;<a class="reference external" href="mailto:peter.hahn&#64;initos.com">peter.hahn&#64;initos.com</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>