Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
1 Відповісти
6308 Переглядів

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
3999
1
бер. 15
12043
2
жовт. 24
12575
3
жовт. 17
17040
1
бер. 15
8136