Search 1.9 billion lines of Odoo code on GitHub

web_cache_name_get

Author: Akretion, Odoo Community Association (OCA)
License: AGPL-3
Branch: 10.0-add-web_cache_name_get
Repository: akretion/web
Dependencies: web
Languages: JavaScript (80, 56.7%), Python (18, 12.8%), XML (8, 5.7%), and reStructuredText (35, 24.8%)
Other repositories: camptocamp/web

<a class="reference external image-reference" href="http://www.gnu.org/licenses/lgpl-3.0-standalone.html"><img alt="License: LGPL-3" src="https://img.shields.io/badge/license-LGPL--3-blue.svg"> </a> <a name="web-cache-name-get"></a> <h2>Web Cache Name Get</h2> <p>This module improves the loading time of some views: mainly sale or purchase orders with many order lines.</p> <p>It reduce the number of useless requests done by the user's browser.</p> <p>This modules cache some requests to name_get() done from list views.</p> <p>For instance, if you have 40 sale order lines on a sale. All these lines have the same tax.</p> <ul class="simple"> <li>Without this module : your browser makes about 40 time the same name_get() request.</li> <li>With this modules: your browser makes 1 request and reuse the result for all the lines.</li> </ul> <p>It works on many2many and many2one on list views. The cache is cleaned when you navigate to other objects.</p> <a name="usage"></a> <h3>Usage</h3> <a class="reference external image-reference" href="https://runbot.odoo-community.org/runbot/162/10.0"><img alt="Try me on Runbot" src="https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas" /></a> <a name="known-issues-roadmap"></a> <h3>Known issues / Roadmap</h3> <ul class="simple"> <li>The cache is not very aggressive, if put more globally it may catch more useless requests.</li> <li>some requests can be done twice in many2one, because of 'this' been erased in</li> </ul> <p>other parts of the core code.</p> <a name="credits"></a> <h3>Credits</h3> <a name="contributors"></a> <h4>Contributors</h4> <ul class="simple"> <li>Raphaƫl Reverdy &lt;<a class="reference external" href="mailto:raphael.reverdy&#64;akretion.com">raphael.reverdy&#64;akretion.com</a>&gt;</li> </ul> <a name="funders"></a> <h4>Funders</h4> <p>The development of this module has been financially supported by:</p> <ul class="simple"> <li>Akretion</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>