-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
[8.0] Add base_model_metaclass_mixin #273
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[8.0] Add base_model_metaclass_mixin #273
Conversation
|
Hey, This is the beginning of work done at the PyconFR 2015 to merge some XCG Odoo addons into OCA. We are going to start with analytic management; that starts with this base meta-class module, which our other addons make use of. |
dbff5d9 to
caaf1e1
Compare
| @@ -0,0 +1,26 @@ | |||
| ### README ### | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use OCA's readme template here
|
|
||
|
|
||
| This module handles methods and MetaClass to modify OpenERP base methods. | ||
| For Exemple, we override copy method to restrict the copy in Odoo/OpenERP. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
exAmple
|
|
||
|
|
||
| def get_overrides(): | ||
| overrides = {} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this will be global for all databases running on the server. Shouldn't this be per database (as in: Set up the data structure in _register_hook and keep it per registry)?
|
There hasn't been any activity on this pull request in the past 4 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days. |
Syncing from upstream OCA/server-tools (9.0)
This module helps providing methods that override base Odoo model ones.
It is implemented via a nifty meta-class.
Check out its README file for use examples.