Odoo Help


how to hide tree column

on 5/9/13, 3:22 AM 2,551 views

my view xml is:

>  <page string="DSA Payment Trace">
                            <field name="pay_method"/>
                        <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',))]}"/>
                        <field name="final_count" attrs="{'invisible': [('pay_method','not in', ('pay_for','pay_direct'))]}"/>
                        <field name="scan_file" widget="many2many_binary"/>

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 ?

on 5/9/13, 7:19 AM

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

0 follower(s)


Asked: 5/9/13, 3:22 AM
Seen: 2551 times
Last updated: 3/16/15, 8:10 AM