Odoo Help

Welcome!

This community 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.

0

how to hide tree column

By
codefans
on 5/9/13, 3:22 AM 1,888 views

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

0

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

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

codefans
on 5/9/13, 7:19 AM

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

0 follower(s)

Stats

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