Hi,
From the expense report form view, I can add a new expense line by clicking on "add a line". This open a search form, then I have to click on "Create" to access to the creation form.
I want to skip the search view and show the create form when the modal open.
Is there a way to do this ?
EDIT:
I tried to add a control to the list with no success.
<record id="view_hr_expense_sheet_form" model="ir.ui.view">
<field name="model">hr.expense.sheet</field>
<field name="inherit_id" ref="hr_expense.view_hr_expense_sheet_form" />
<field name="arch" type="xml">
<xpath expr="//field[@name='expense_line_ids']/tree" position="after">
<control>
<create string="Add new line" />
</control>
</xpath>
</field>
</record>
According to the documentation this should shows a button and remove the "Add a line" link.
regards