コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
6433 ビュー

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 ?

関連投稿 返信 ビュー 活動
0
3月 15
4193
1
3月 15
12242
2
10月 24
12731
3
10月 17
17194
1
3月 15
8346