Author: |
XCG Consulting |
License: |
no license |
Branch: |
8.0-base_model_metaclass_mixin |
Repository: |
houzefa-abba/server-tools |
Dependencies: |
base |
Languages: |
PO File (20, 36.4%),
and
Python (35, 63.6%) |
<p>### README ###</p>
<p>### Oemetaslfor Odoo/OpenERP ###</p>
<p>This module handles methods and MetaClass to modify OpenERP base methods.
For Exemple, we override copy method to restrict the copy in Odoo/OpenERP.
But you can implement the method you need.</p>
<a name="how-to"></a>
<h2>How to</h2>
<pre>
<code># In an Openerp Module:
from base_model_metaclass_mixin import BaseModelMetaclassMixin
class oetest(osv.Model):
__metaclass__ = BaseModelMetaclassMixin
# Functions defined in BaseModelMetaclassMixin will be automatically added if they are not
# implemented in the osv.Model class</code>
</pre>