- Create an expense, approve. - Register the payment by check - Print the check The amount in words is not written. The core of the issue is that the wizard `hr.expense.register.payment.wizard` has been defined as a brand new model instead of inheriting from `account.register.payments`. Hence the Enterprise module "hr_expense_sepa" and now "hr_expense_check". opw-742305
19 lines
1.1 KiB
XML
19 lines
1.1 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<data>
|
|
<record id="hr_expense_register_payment_view_form_check_inherit" model="ir.ui.view">
|
|
<field name="name">hr.expense.register.payment.wizard.form.check.inherited</field>
|
|
<field name="model">hr.expense.register.payment.wizard</field>
|
|
<field name="inherit_id" ref="hr_expense.hr_expense_register_payment_view_form" />
|
|
<field name="arch" type="xml">
|
|
<xpath expr="//div[@name='amount_div']" position="after">
|
|
<field name="check_amount_in_words" attrs="{'invisible': [('payment_method_code_2', '!=', 'check_printing')]}" groups="base.group_no_one"/>
|
|
</xpath>
|
|
<xpath expr="//field[@name='communication']" position="after">
|
|
<field name="payment_method_code_2" invisible="1"/>
|
|
<field name="check_manual_sequencing" invisible="1"/>
|
|
<field name="check_number" attrs="{'invisible': ['|', ('payment_method_code_2', '!=', 'check_printing'), ('check_manual_sequencing', '=', False)]}"/>
|
|
</xpath>
|
|
</field>
|
|
</record>
|
|
</data>
|