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

Hi,

I'm migrating from Odoo V12 to V13 and I'm facing a problem:
I have a Tree view with domain inside:

    <record model="ir.ui.view" id="agence.affaire_list">
      <field name="name">Affaire</field>
      <field name="model">agence.affaire</field>
      <field name="domain">[('type', '=', 'temporary')]</field>
      <field name="arch" type="xml">
        <tree default_order='create_date desc'>
          <field name="reference"/>



But it doesn't seem to work the same way in Odoo V13:

odoo.tools.convert.ParseError: "Invalid field 'domain' on model 'ir.ui.view'" while parsing file 
I can't find any alternative for that so if you have a solution I will be really grateful.

Thanks in advance

Théo Da silva
頭像
捨棄

View cannot have domain. Please check if this was the feature from other custom module or not.

作者 最佳答案

It was an error from me, there is no domain in the model, thank you Sudhir Arya :).

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
3
3月 15
52356
1
6月 24
2616
2
4月 23
5488
3
11月 20
6373
3
7月 25
9190