Contributors mailing list archives
contributors@odoo-community.org
Browse archives
Re: Overwriting a method in OCA module.
by
        
            Opener B.V., Stefan Rijnhart
        
        
        
    
        
        On 15-09-15 09:38, Kitti U. wrote: > > 1. In module C, create a MonkeyPatch to module A with a new > "hook_point". (just the hook point only). -> as the result we can > think of module A as if it already have the hook_point. > > 2. In module C, we write method as if hook_point exists (now we can > call super()) > Crystal clear! But I would follow Nhomar's practice of putting the monkeypatch with the hooks in its own module, separated from the module(s) that make use of those hooks. Cheers, Stefan.
Reference
- 
                
Overwriting a method in OCA module.
by "Kitti U." <kittiu@ecosoft.co.th> - 11/09/2015 11:56:28 - 0- 
                
 - 
                
Re: Overwriting a method in OCA module.
byEcosoft Co. Ltd., Kitti Upariphutthiphong- 30/09/2015 08:23:06 - 0 - 
                
 - 
                
Re: Overwriting a method in OCA module.
byEcosoft Co. Ltd., Kitti Upariphutthiphong- 28/09/2015 05:16:16 - 0 - 
                
 - 
                
 - 
                
Re: Overwriting a method in OCA module.
by "Kitti U." <kittiu@ecosoft.co.th> - 16/09/2015 14:44:11 - 0 - 
                
 - 
                
 - 
                
 
 -