OCA / pylint-odoo

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

If a record xml isn't defined the "id": TypeError: argument of type 'NoneType' is not iterable #50

Closed moylop260 closed 7 years ago

moylop260 commented 8 years ago

If the xml record is not defined the id

<record name="custom_name"/> <!-- without id -->

Example

Show the error

File "pylint-odoo/pylint_odoo/misc.py", line 234, in get_xml_record_ids
    if '.' in record.get('id') \
TypeError: argument of type 'NoneType' is not iterable
moylop260 commented 7 years ago

Fixed from https://github.com/Vauxoo/pylint-odoo/issues/78