Skip to content
Permalink
Browse files

[IMP] account: filter aml on posted by default

Task 193992
The changes in account asset generate a lot of unposted aml in the future rendering hiding them by default necessary

closes #31361

Signed-off-by: Quentin De Paoli (qdp) <qdp@openerp.com>
  • Loading branch information...
william-andre authored and qdp-odoo committed Feb 26, 2019
1 parent ce799f2 commit dfebe2f51d1fc3d9788c8ae43ca4c01895bac0cf
Showing with 3 additions and 3 deletions.
  1. +3 −3 addons/account/views/account_move_views.xml
@@ -194,7 +194,7 @@
</record>

<record id="view_account_move_line_filter" model="ir.ui.view">
<field name="name">Journal Items</field>
<field name="name">account.move.line.search</field>
<field name="model">account.move.line</field>
<field name="arch" type="xml">
<search string="Search Journal Items">
@@ -449,7 +449,7 @@
view_id="account.view_move_line_tax_audit_tree"/>

<record id="action_account_moves_all_a" model="ir.actions.act_window">
<field name="context">{'journal_type':'general'}</field>
<field name="context">{'journal_type':'general', 'search_default_group_by_move': 1, 'search_default_posted':1}</field>
<field name="name">Journal Items</field>
<field name="res_model">account.move.line</field>
<field name="view_id" ref="view_move_line_tree"/>
@@ -459,7 +459,7 @@
<record id="action_account_moves_all_tree" model="ir.actions.act_window">
<field name="name">Journal Items</field>
<field name="res_model">account.move.line</field>
<field name="context">{'search_default_partner_id': [active_id], 'default_partner_id': active_id}</field>
<field name="context">{'search_default_partner_id': [active_id], 'default_partner_id': active_id, 'search_default_posted':1}</field>
<field name="view_id" ref="view_move_line_tree"/>
</record>

0 comments on commit dfebe2f

Please sign in to comment.
You can’t perform that action at this time.