Skip to Content

W0223 (abstract-method) warning in pylint-odoo

Hello, everyone.

When I check any Odoo module using pylint-odoo, I always get the warning “W0223: Method ‘onchange’ is abstract in class ‘BaseModel’ but is not overridden in child class ‘...’ (abstract-method)” for any class.

Please advise if this is a false warning. If not, what is the reason for it?

Also, please tell me if there are any recommended .pylintrc settings for high-quality Odoo development.

Thank you!


by Serhii Miroshnychenko - 09:41 - 31 Jan 2026

Follow-Ups

  • Re: W0223 (abstract-method) warning in pylint-odooHi
    Hi,
    
    I'm not quite sure if this one should be ignored for Odoo or not, but 
    for examples of Pylint configurations you can look at the OCA CI template:
    
    https://github.com/OCA/oca-addons-repo-template/blob/master/version-specific/mqt-compat/.pylintrc-mandatory.jinja
    
    Or how it works out in actual repositories:
    
    https://github.com/OCA/server-tools/blob/18.0/.pylintrc-mandatory
    
    -Tom
    
    
    On 1/31/26 9:42 AM, Serhii Miroshnychenko wrote:
    
    >
    
    > Hello, everyone.
    
    >
    
    > When I check any Odoo module using pylint-odoo, I always get the 
    
    > warning “W0223: Method ‘onchange’ is abstract in class ‘BaseModel’ but 
    
    > is not overridden in child class ‘...’ (abstract-method)” for any class.
    
    >
    
    > Please advise if this is a false warning. If not, what is the reason 
    
    > for it?
    
    >
    
    > Also, please tell me if there are any recommended .pylintrc settings 
    
    > for high-quality Odoo development.
    
    >
    
    > Thank you!
    
    >
    
    > _______________________________________________
    
    > Mailing-List: https://odoo-community.org/groups/contributors-15
    
    > Post to: mailto:contributors@odoo-community.org
    
    > Unsubscribe: https://odoo-community.org/groups?unsubscribe
    
    >
    

    by Tom Blauwendraat - 10:41 - 31 Jan 2026