OCA / pylint-odoo

Odoo plugin for Pylint
http://www.pylint.org
143 stars 168 forks source link

[FIX] pylint_odoo: Using "node.op" instead of hardcoded % #432

Closed moylop260 closed 1 year ago

moylop260 commented 1 year ago

If you use the operator - e.g. datetime.now() - timedelta(days=1)

The new code is replaced using: datetime.now( % timedelta(days=3)) raising errors

Better using the same operator datetime.now( - timedelta(days=3))