Contributors mailing list archives
Re: Overwriting a method in OCA module.by
Vauxoo, Nhomar Hernández
On Tue, Sep 15, 2015 at 4:07 AM, Kitti U. <email@example.com> wrote:
So, we will have 1 monkey patch addon for each Project? i.e., account-invoicing_monkeypatch, sale-workflow_monkeypatch, etc...
The monkey patch can be by functionality even by method.
The point of th monkey patch is that with simple correct the py file you will use quickly the original one in seconds.
And don't forget make alwas the PR to odoo/odoo itlesf in order to ensure in some moment do not need the monkey patch.
We apply this monkey patches temporarly when issues comes fron OPW also.
We called the "*_unfuck" modules.
You can find a placeholder here:
Which if you look in the blame for the model/*.py it is empty just because we just receive the patch on odoo/odoo some weeks ago!. But the module stais there doing nothing until we make a major release, and everything was moves smothly.