Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
6593 มุมมอง

my view xml is:

>  <page string="DSA Payment Trace">
                        <group>
                            <field name="pay_method"/>
                        </group>
                        <field  name="pay_id" attrs="{'invisible': [('pay_method','=', False)]}">
                           <tree string="Purchase pay history" editable="bottom">
                              <field name="name" attrs="{'invisible': [('parent.pay_method','not in', ('pay_for',))]}"/>
                              <field name="date"/>
                              <field name="pay" attrs="{'invisible': [('parent.pay_method','not in', ('project_pay',))]}"/>
                              <field name="pay_no" attrs="{'invisible': [('parent.pay_method','not in', ('project_pay',))]}"/>
                              <field name="percent" attrs="{'invisible': [('parent.pay_method','not in', ('project_pay',))]}"/>
                           </tree>
                       </field>
                      <group>
                        <field name="final_count" attrs="{'invisible': [('pay_method','not in', ('pay_for','pay_direct'))]}"/>
                        <field name="scan_file" widget="many2many_binary"/>
                       </group>
                    </page>

have this error

Uncaught Error: QWeb2 - template['ListView.row']: Runtime Error: Error: Unknown field parent.pay_method in domai

how could i get the pay_method in attrs

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Try (parent.ressource_type_id,'=',False)

อวตาร
ละทิ้ง
ผู้เขียน

what the meaning of ressource_type_id, like , parent.purchase_order.pay_method ?

Related Posts ตอบกลับ มุมมอง กิจกรรม
0
มี.ค. 15
4345
1
มี.ค. 15
12390
How to color a field in tree view? แก้ไขแล้ว
2
ต.ค. 24
12912
3
ต.ค. 17
17377
1
มี.ค. 15
8500