hr_expense_account_split/views/hr_expense_payment_wizard_views.xml

30 lines
1.5 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="view_hr_expense_payment_wizard_form" model="ir.ui.view">
<field name="name">hr.expense.payment.wizard.form</field>
<field name="model">hr.expense.payment.wizard</field>
<field name="arch" type="xml">
<form string="Register Payment">
<group>
<group>
<field name="partner_id" widget="res_partner_many2one" context="{'res_partner_search_mode': 'supplier'}"/>
<field name="journal_id" options="{'no_create': True}"/>
<field name="payment_method_line_id" options="{'no_create': True, 'no_open': True}"/>
</group>
<group>
<field name="amount" widget="monetary" options="{'currency_field': 'currency_id'}"/>
<field name="payment_date"/>
<field name="company_id" invisible="1"/>
<field name="currency_id" invisible="1"/>
<field name="expense_sheet_id" invisible="1"/>
</group>
</group>
<footer>
<button string="Create Payment" name="action_create_payment" type="object" class="oe_highlight" data-hotkey="q"/>
<button string="Cancel" class="btn btn-secondary" special="cancel" data-hotkey="z"/>
</footer>
</form>
</field>
</record>
</odoo>