AssertionError: Element odoo has extra content: record, line 3?

  • language
  • type
  • info created for version
  • mvc
      XML (records/views/templates)
Add to Cart

  1. If you are extending a view, check if your model name is the one of the parent view.

  2. To spot invalid syntax, go to an online relax ng validator like Add the contents of your view in the first input field and the contents of odoo/odoo/import_xml.rng in the second and validate. The errors here will give you precise info on the error. Here is an example ...