+
+ <record id="action_bank_reconcile" model="ir.actions.client">
+ <field name="name">Reconciliation on Bank Statements</field>
+ <field name="res_model">account.bank.statement.line</field>
+ <field name="tag">bank_statement_reconciliation_view</field>
+ </record>
+
+ <!-- because of the needaction badge, groups needs to be specified -->
+ <menuitem id="menu_bank_reconcile_bank_statements" name="Reconcile" parent="account.periodical_processing_bank_statements" groups="group_account_user" action="action_bank_reconcile" sequence="20"/>
+
+ <record id="view_account_statement_operation_template_form" model="ir.ui.view">
+ <field name="name">account.statement.operation.template.form</field>
+ <field name="model">account.statement.operation.template</field>
+ <field name="arch" type="xml">
+ <form string="Statement Operation Templates">
+ <sheet>
+ <div class="oe_title">
+ <label for="name" class="oe_edit_only"/>
+ <h1>
+ <field name="name"/>
+ </h1>
+ </div>
+ <group>
+ <group>
+ <field name="account_id" domain="[('company_id', '=', company_id)]"/>
+ <field name="amount_type"/>
+ <field name="tax_id" domain="[('company_id', '=', company_id)]"/>
+ </group>
+ <group>
+ <field name="label"/>
+ <label for="amount"/>
+ <div>
+ <field name="amount" class="oe_inline" />
+ <label string="%" class="oe_inline" attrs="{'invisible':[('amount_type','not in',('percentage_of_total', 'percentage_of_balance'))]}" />
+ </div>
+ <field name="analytic_account_id" groups="analytic.group_analytic_accounting" domain="[('company_id', '=', company_id)]"/>
+ <field name="company_id" groups="base.group_multi_company"/>
+ </group>
+ </group>
+ </sheet>
+ </form>
+ </field>
+ </record>
+ <record id="view_account_statement_operation_template_tree" model="ir.ui.view">
+ <field name="name">account.statement.operation.template.tree</field>
+ <field name="model">account.statement.operation.template</field>
+ <field name="arch" type="xml">
+ <tree string="Bank Reconciliation Move Presets">
+ <field name="name"/>
+ <field name="account_id"/>
+ <field name="amount_type"/>
+ </tree>
+ </field>
+ </record>
+ <record id="view_account_statement_operation_template_search" model="ir.ui.view">
+ <field name="name">account.statement.operation.template.search</field>
+ <field name="model">account.statement.operation.template</field>
+ <field name="arch" type="xml">
+ <search string="Bank Reconciliation Move preset">
+ <filter string="With tax" domain="[('tax_id','!=',False)]"/>
+ <field name="amount_type"/>
+ </search>
+ </field>
+ </record>
+ <record id="action_account_statement_operation_template" model="ir.actions.act_window">
+ <field name="name">Statement Operations</field>
+ <field name="res_model">account.statement.operation.template</field>
+ <field name="view_type">form</field>
+ <field name="view_mode">tree,form</field>
+ <field name="search_view_id" ref="view_account_statement_operation_template_search"/>
+ <field name="help" type="html">
+ <p class="oe_view_nocontent_create">
+ Click to create a statement operation template.
+ </p><p>
+ Those can be used to quickly create a move line when reconciling
+ your bank statements.
+ </p>
+ </field>
+ </record>
+
+ <menuitem
+ id="account_template_folder"
+ name="Templates"
+ parent="account_account_menu"
+ groups="account.group_account_manager"
+ sequence="3"/>
+ <menuitem
+ id="account_report_folder"
+ name="Reports"
+ parent="account_account_menu"
+ groups="account.group_account_manager"
+ sequence="4"/>
+ <menuitem action="action_account_statement_operation_template" id="menu_action_account_statement_operation_template" parent="account_template_folder" name="Statement Operation Templates" sequence="22"/>