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

Filtering Customers by Customer Payment Term

By
Roberto Barreiro
on 2/18/14, 2:04 PM 891 views

It's possible to filter customers by "Customer Payment Term"? I was looking in "Advanced Search" but I didn´t saw the way to do this.

1
wilson zauma
On 2/28/14, 5:24 PM

i put in the view XML.

filter view.

<record id="view_specialty_tree_filter" model="ir.ui.view"> <field name="name">Filter.specialty</field> <field name="model">specialty</field> <field name="type">search</field> <field name="priority" eval="20"/> <field name="arch" type="xml"> <search string="Search Detail">

           <!-- Aplica los filtros por item -->
            <filter string="Habilitados" name="specialty_habilitado" domain="[('esta_specialty','=',1)]"/>
            <filter string="Deshabilitados" name="specialty_deshabilitado" domain="[('esta_specialty','=',0)]"/>

            <separator/>
            <!-- Aplica la busqueda del campo-->
            <group col="10" colspan="4">
               <field name="name"  string="nombre especialidad"/>
               <field name="level" string="level"/>
               <field name="esta_specialty" string="estado"/>
            </group>
               <newline />
             <!-- Aplica las agrupaciones de los resultados-->  
              <group expand="0" string="Group By...">
               <filter string="Estado" icon="terp-folder-orange" domain="[]" context="{'group_by':'esta_specialty'}" />

            </group>
        </search>
       </field>
    </record>

===== then i call in the action view

<record model="ir.actions.act_window" id="action_specialty"> <field name="name">Specialty</field> <field name="res_model">specialty</field> <field name="view_type">form</field> <field name="view_mode">tree,form</field> <field name="context">{'search_default_specialty_habilitado':1}</field> <field name="search_view_id" ref="view_specialty_tree_filter"/> </record>

thanks for your explantion! this is a lot of usseful.

Roberto Barreiro
on 3/3/14, 7:26 AM
6

Openies Services

--Openies Services--
925
| 2 2 4
Vadodara, India
--Openies Services--

We provide Odoo Services.

Contact us on : contact@openies.com

Openies Services
On 2/18/14, 5:01 PM

No we do not have any filter to do this but we can customize it and add this filter or Group by on property_payment_term.

How to do this?

Roberto Barreiro
on 2/19/14, 4:31 AM

I'm looking for the way to do it, but i'm really lost. I'm trying to do it at User-defined Filters, but I have no idea how to configure the domain.

Roberto Barreiro
on 2/19/14, 1:16 PM

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

1 follower(s)

Stats

Asked: 2/18/14, 2:04 PM
Seen: 891 times
Last updated: 3/30/15, 10:57 AM