1. pkumar
  2. openerp_repo

Commits

pkumar  committed 8f76a13 Draft

added record for fiter buttons

  • Participants
  • Parent commits 9c889e5
  • Branches default

Comments (0)

Files changed (1)

File test_module/address_book_view.xml

View file
 </field>
 </record>
 
+<record model="ir.ui.view" id="address_book_active_filter">
+<field name="name">address.book.select</field>
+<field name="model">address.book</field>
+<field name="type">search</field>
+<field name="arch" type="xml">
+    <search string="Active/Inactive">
+        <group col='10' colspan='4'>
+            <filter  icon="terp-personal+" string="Active" name="state" domain="[('state','=',True)]" />
+            <filter  icon="terp-personal+" string="Inactive" name="state" domain="[('state','=',False)]" />
+        </group>
+    </search>
+</field>
+</record>
 
 <record model="ir.actions.act_window" id="action_address_book_form">
 <field name="name">address_book</field>