This question has been flagged
2 Replies
3191 Views

I try to get only invoices with payment_management = False when I click on Without payment management tree view

Nevertheless I get as a result invoices where payment_management = False, what is more curiouse when I change to True, the result is still the same. Any clue? Thank you.


.py:

payment_management = fields.Boolean()      


.xml:

<record id="payment_management_filter_ib_tree" model="ir.ui.view">

        <field name="name">payment.management.filter.ib</field>

        <field name="model">account.invoice</field>

        <field name="type">search</field>

        <field name="inherit_id" ref="account.view_account_invoice_filter"/>

        <field name="arch" type="xml">

                <xpath expr="/search/filter[1]" position="before">


          <filter name="payment_management" string="Without payment management" domain="[('payment_management','=','False')]"/>

                        

                </xpath>

        </field>

</record>

Avatar
Discard
Author

*CORRECTION: Nevertheless I get as a result invoices where payment_management = True

Best Answer

Hello Jakub,

<filter name="payment_management" string="Without payment management" domain="[('payment_management','=',False)]"/>

remove quotes from True/False Values.

Regards,




Email:      odoo@aktivsoftware.com  

Skype: kalpeshmaheshwari

   


Avatar
Discard