Author: |
Vauxoo, Odoo Community Association (OCA) |
License: |
AGPL-3 |
Branch: |
11.0 |
Repository: |
Vauxoo/server-tools |
Languages: |
Python (584, 85.3%),
XML (52, 7.6%),
and
reStructuredText (49, 7.2%) |
Other branches: |
10.0,
12.0-vx.bkp20191113,
8.0,
8.0-littlefix,
and
9.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="odoolint"></a>
<h2>odoolint</h2>
<p>Add runtime lint checks that don't are detected by odoo.</p>
<p>They are shown from logger.warning</p>
<ul class="simple">
<li>Demo xml_id referenced from data xml if the module is installed with <cite>--without-demo=all</cite></li>
<li>Unachievable xml_id if the module is installed with <cite>-i module</cite></li>
<li>Broken button If the module use a button action but is not defined on odoo</li>
<li>Broken local path in <cite>link</cite> items of views, e.g. <cite><link /module_a/folder</cite> and <cite>/module_a/folder</cite> is not exists.</li>
<li>Duplicate items from selection fields e.g. <cite>myfield = fields.Selection([('duplicated1', 'Duplicated1')])... myfield = fields.Selection(selection_add=[('duplicated1', 'Duplicated1')])</cite></li>
<li>Superfluous dependency e.g.
- <cite>sale_project: ['sale, 'project']</cite>
- <cite>my_module: ['sale', 'base', 'sale_project', 'project']</cite>
<cite>sale</cite>, <cite>project</cite> and <cite>base</cite> are superfluous in <cite>my_module</cite> because <cite>sale_project</cite> contains them.</li>
<li>Add check to validate non boolean values in boolean fields e.g.
- <cite><field name="active">False</field></cite> It's processed like as a True and you should fix it with <cite><field name="customer" eval="False"/></cite>
- For your information a Pull Request to change this behaviour: <a class="reference external" href="https://github.com/odoo/odoo/pull/13152">https://github.com/odoo/odoo/pull/13152</a></li>
<li>Add a log error if there is a 404 code in the message of werkzeug logger
- For your information a Pull Request to change this behaviour: <a class="reference external" href="https://github.com/odoo/odoo/pull/13289">https://github.com/odoo/odoo/pull/13289</a></li>
</ul>
<a name="installation"></a>
<h3>Installation</h3>
<p>To install this module, you need to:</p>
<p># Install with --test-enable</p>
<a name="usage"></a>
<h3>Usage</h3>
<p>To use this module, you need to:</p>
<p># After start the server with --test-enable review the log of this module
to check the result</p>
<a class="reference external image-reference" href="https://runbot.odoo-community.org/runbot/{repo_id}/{branch}"><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>Moises López <<a class="reference external" href="mailto:moylop260@vauxoo.com">moylop260@vauxoo.com</a>></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>