[IMP] models: turn _patch_method() and _revert_method() into class methods
authorRaphael Collet <rco@openerp.com>
Tue, 5 Aug 2014 12:50:44 +0000 (14:50 +0200)
committerRaphael Collet <rco@openerp.com>
Tue, 5 Aug 2014 13:20:14 +0000 (15:20 +0200)
commit54b901effdd2ebbf5fbde33cf0b23e52c135821b
tree6117db43bb8f47f02442d81c47631ff63664a550
parent2d54afef9e72a27e9c8e60a9cecb41f08a0cb693
[IMP] models: turn _patch_method() and _revert_method() into class methods

This makes the patching mechanism more flexible, and enables patching BaseModel,
for instance. This should fix #1501.
openerp/models.py