Warnings show up when using a recent pylint. It's only a fraction of what e.g. pycharm flags as "local variable might be referenced before assignment" but seems a good idea to fix anyway in prevision of possibly eventually updating the reference pylint. closes odoo/odoo#107968 Signed-off-by: Xavier Morel (xmo) <xmo@odoo.com>