Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
5610 Lượt xem

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
Ảnh đại diện
Huỷ bỏ

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

Tác giả Câu trả lời hay nhất

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

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
3
thg 3 15
52389
1
thg 6 24
2647
2
thg 4 23
5518
3
thg 11 20
6376
3
thg 7 25
9221