Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
2 Odpowiedzi
4695 Widoki

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>

Awatar
Odrzuć
Autor

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

Najlepsza odpowiedź

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

   


Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
1
kwi 23
4724
1
gru 22
6520
0
gru 21
1939
0
maj 20
2847
1
kwi 24
13159