vendor_batch_payment_merge/wizard/intercompany_settlement_wizard_views.xml

55 lines
2.4 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="view_intercompany_settlement_wizard_form" model="ir.ui.view">
<field name="name">intercompany.settlement.wizard.form</field>
<field name="model">intercompany.settlement.wizard</field>
<field name="arch" type="xml">
<form string="Intercompany Settlement">
<group>
<group string="Head Office (Receiving)">
<field name="ho_company_id" options="{'no_create': True}"/>
<field name="ho_journal_id" options="{'no_create': True}"/>
</group>
<group string="Branch (Paying)">
<field name="branch_company_id" options="{'no_create': True}"/>
<field name="branch_journal_id" options="{'no_create': True}"/>
</group>
</group>
<group>
<field name="amount"/>
<field name="currency_id" invisible="1"/>
<field name="date"/>
<field name="memo"/>
</group>
<footer>
<button name="action_confirm_settlement" string="Confirm Settlement" type="object" class="btn-primary"/>
<button string="Cancel" class="btn-secondary" special="cancel"/>
</footer>
</form>
</field>
</record>
<record id="action_intercompany_settlement_wizard" model="ir.actions.act_window">
<field name="name">Intercompany Settlement</field>
<field name="res_model">intercompany.settlement.wizard</field>
<field name="view_mode">form</field>
<field name="target">new</field>
<field name="help" type="html">
<p class="o_view_nocontent_smiling_face">
Record an intercompany settlement payment
</p>
<p>
This will automatically generate both the inbound payment in the Head Office
and the outbound payment in the Branch company.
</p>
</field>
</record>
<menuitem id="menu_intercompany_settlement"
name="Intercompany Settlement"
parent="account.menu_finance_receivables"
action="action_intercompany_settlement_wizard"
groups="base.group_multi_company,account.group_account_manager"
sequence="12"/>
</odoo>