Search 1.9 billion lines of Odoo code on GitHub

generic_mixin

Author: Center of Research and Development
License: LGPL-3
Branch: 16.0
Repository: crnd-inc/generic-addons
Dependencies: base, bus, and http_routing
Languages: HTML (74, 3.0%), JavaScript (177, 7.3%), Markdown (94, 3.9%), PO File (480, 19.8%), Python (1540, 63.5%), Sass (24, 1.0%), and reStructuredText (38, 1.6%)
Other branches: 10.0, 11.0, 12.0, 13.0, 14.0, 15.0, and 9.0
Other repositories: DamithDDS/cybererp, Guobower/generic-addons, abdalmola-apps/generic-addons, cybergate-services/cybererp, eslammohamed13/generic-addons, katyukha/generic-addons, leodoooca/generic-addons, loftwah/cybererp, marcelsavegnago/generic-addons, martinllanos/generic-addons, openemail/cybererp, oycl/generic-addons, royalline1/generic-addons, srekal/generic-addons, suningwz/cybererp, tate11/cybererp, tate11/generic-addons, vidtsin/cybererp, and vidtsin/generic-addons

<a name="generic-mixins"></a> <h2>Generic Mixins</h2> <p><a class="reference external" href="https://github.com/crnd-inc/generic-addons"><img alt="badge1" src="https://img.shields.io/badge/pipeline-pass-brightgreen.png" /></a> <a class="reference external" 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.png" /></a> <a class="reference external" href="https://crnd.pro/"><img alt="badge5" src="https://img.shields.io/badge/maintainer-CR&amp;D-purple.png" /></a> <a class="reference external" href="https://github.com/crnd-inc/generic-addons/tree/11.0/generic_mixin"><img alt="badge6" src="https://img.shields.io/badge/GitHub-Generic_Mixin-green.png" /></a></p> <p>This is technical addon, that contains model mixins, that may be useful in develompent of other addons.</p> <p>Following mixins ara available:</p> <ul class="simple"> <li><code>generic.mixin.delegation.interface</code> - Mixin for Interface concept model</li> <li><code>generic.mixin.delegation.implementation</code> - Mixin for Implementation of Interface model</li> <li><code>generic.mixin.name_with_code</code> - just add <code>name</code> and <code>code</code> fields to model, on name changed - compute code automatically.</li> <li><code>generic.mixin.uniq_name_code</code> - add <em>unique</em> constraint to name and code fields.</li> <li><code>generic.mixin.name.by.sequence</code> - Add <em>name</em> field to your model, that will be automatically filled with value based on <code>ir.sequence</code> (in same way as in sale order, or other odoo models)</li> <li><code>generic.mixin.namesearch.by.fields</code> - Easily add name search that allows to search by a set of fields.</li> <li><code>generic.mixin.transaction.utils</code> - utility methods to handle transactions in Odoo.</li> <li><code>generic.mixin.no.unlink</code> - deny unlink of specific records in model.</li> <li><code>generic.parent.names</code> - implement <code>name_get</code> and <code>name_search</code> for hierarchial models in generic way</li> <li><code>generic.mixin.refresh.view</code> - provides methods to refresh views in browser from python</li> <li><code>generic.mixin.track.changes</code> - provides convenient mechanism to handle changes of specific fields.</li> <li><code>generic.mixin.uuid</code> - Easy way to generate UUIDs for records in your model</li> </ul> <p>Also, there are <code>pre_write</code>, <code>post_write</code>, <code>pre_create</code> and <code>post_create</code> decoratrors, that could be used together with <code>generic.mixin.track.changes</code>. These decorators could signifiantly simplify code.</p> <p>Additionally, there are some set of utitlity functions available at <code>generic_mixin.tools</code> modules.</p> <p>This module is part of the Bureaucrat ITSM project. You can try it by the references below.</p> <a name="launch-your-own-itsm-system-in-60-seconds"></a> <h3>Launch your own ITSM system in 60 seconds:</h3> <p>Create your own <a class="reference external" href="https://yodoo.systems/saas/template/bureaucrat-itsm-demo-data-95">Bureaucrat ITSM</a> database</p> <p><a class="reference external" href="https://yodoo.systems"><img alt="badge3" src="https://img.shields.io/badge/powered%20by-yodoo.systems-00a09d.png" /></a></p> <a name="bug-tracker"></a> <h2>Bug Tracker</h2> <p>Bugs are tracked on <a class="reference external" href="https://github.com/crnd-inc/generic-addons/issues">GitHub Issues</a>. In case of trouble, please check there if your issue has already been reported.</p> <a name="maintainer"></a> <h3>Maintainer</h3> <img alt="https://crnd.pro/web/image/3699/300x140/crnd.png" src="https://crnd.pro/web/image/3699/300x140/crnd.png" /> <p>Our web site: <a class="reference external" href="https://crnd.pro/">https://crnd.pro/</a></p> <p>This module is maintained by the Center of Research &amp; Development company.</p> <p>We can provide you further Odoo Support, Odoo implementation, Odoo customization, Odoo 3rd Party development and integration software, consulting services. Our main goal is to provide the best quality product for you.</p> <p>For any questions <a class="reference external" href="mailto:info&#64;crnd.pro">contact us</a>.</p>