跳至內容
選單
此問題已被標幟
1 回覆
29003 瀏覽次數

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,

最佳答案

<?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.

相關帖文 回覆 瀏覽次數 活動
2
5月 17
3361
0
3月 18
3262
0
4月 17
2478
1
3月 25
1221
0
11月 24
1447