Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
2 Trả lời
4689 Lượt xem

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>

Ảnh đại diện
Huỷ bỏ
Tác giả

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

Câu trả lời hay nhất

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

   


Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 4 23
4721
1
thg 12 22
6519
0
thg 12 21
1939
0
thg 5 20
2846
1
thg 4 24
13157