Odoo Help

0

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

By
Abdul Halim
on 10/11/17, 1:54 AM 107 views

What is the problem with this code? I couldn't understand the problem.

Here I'm inheriting view from other module.

<?xml version="1.0" encoding="UTF-8"?>
<odoo>
  <record id="view_form_todo_task_inherit_tree" model="ir.ui.view">
      <field name="name">Todo Task Form - User Extension</field>
      <field name="model">todo.task</field>
      <field name="inherit_id" ref="todo_app.view_form_todo_task" />
      <field name="arch" type="xml">
          <!-- <field name="state" position="after">
              <field name="de" />
          </field> -->
      </field>
  </record>
</odoo>

Hello Abdul Halim, because of comments this error is occurred. Remove comments and try update it. Thanks,

Jignesh Mehta
on 10/11/17, 2:51 AM
0
NIKHIL KRISHNAN
On 10/11/17, 4:27 AM

<?xml version="1.0" encoding="UTF-8"?>

<odoo>

  <record id="view_form_todo_task_inherit_tree" model="ir.ui.view">

      <field name="name">Todo Task Form - User Extension</field> 

      <field name="model">todo.task</field>

      <field name="inherit_id" ref="todo_app.view_form_todo_task" />

      <field name="arch" type="xml">

          <field name="state" position="after">

              <field name="de" />

          </field>

      </field>

  </record>

</odoo>


Try this, it may help you.


I believe that there is a module named "todo_app". it has a view too "view_form_todo_task".

Thanks @Jignesh Mehta & @NIKHIL KRISHNAN.

Abdul Halim
on 10/12/17, 2:37 PM

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

Register

Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)

Stats

Asked: 10/11/17, 1:54 AM
Seen: 107 times
Last updated: 10/12/17, 2:35 PM