[IMP] add filter for filtering the uncompleted move line that should be completed manually

pull/272/head
Sébastien BEAU 2017-12-11 17:50:46 +01:00 committed by Yannick Vaucher
parent 42fc0e51d2
commit 5f6847fe95
1 changed files with 18 additions and 0 deletions

View File

@ -64,4 +64,22 @@
<menuitem string="Move Completion Rule" action="action_move_completion_rule_tree" <menuitem string="Move Completion Rule" action="action_move_completion_rule_tree"
id="menu_action_move_completion_rule_tree_menu" parent="account.account_management_menu"/> id="menu_action_move_completion_rule_tree_menu" parent="account.account_management_menu"/>
<record id="view_account_move_filter" model="ir.ui.view">
<field name="model">account.move</field>
<field name="inherit_id" ref="account.view_account_move_filter"/>
<field name="arch" type="xml">
<separator position="after">
<filter
string="To Complete"
domain="[
('state','!=','posted'),
('journal_id.used_for_completion', '=', True),
('line_ids.already_completed', '=', False)]"
help="Account move that should be completed manually"/>
<separator/>
</separator>
</field>
</record>
</odoo> </odoo>