[FIX] account: Set domain for showing move lines only for current year
authorpso <pso@tinyerp.com>
Wed, 29 Dec 2010 06:51:08 +0000 (12:21 +0530)
committerpso <pso@tinyerp.com>
Wed, 29 Dec 2010 06:51:08 +0000 (12:21 +0530)
lp bug: https://launchpad.net/bugs/694876 fixed

bzr revid: pso@tinyerp.com-20101229065108-cibbrgwxzt58l021

addons/account/board_account_view.xml

index 93bcc77..a4f7044 100644 (file)
@@ -26,7 +26,8 @@
           <field name="view_type">form</field>
           <field name="view_mode">tree,graph</field>
           <field name="context">{'group_by':['user_type'], 'group_by_no_leaf':1}</field>
-            <field name="view_id" ref="account.view_account_entries_report_tree"/>
+          <field name="domain">[('period_id','in','current_year')]</field>
+          <field name="view_id" ref="account.view_account_entries_report_tree"/>
       </record>
       <record id="action_treasory_graph" model="ir.actions.act_window">
           <field name="name">Treasury</field>