I am trying to add a file upload button on the bank reconciliation widget through:
<t t-name="account_statement_custom.BankRecRecordFormButtonsHeaderLeft" t-inherit="account_accountant.BankRecRecordFormButtonsHeaderLeft" t-inherit-mode="extension">
<xpath expr="//div[hasclass('o_bank_rec_stats_buttons_aside_left')]" position="inside">
<FileInput>
Upload
</FileInput>
</xpath>
</t>
I have added FileInput to the Controller through patching:
import { FileInput } from "@web/core/file_input/file_input";
patch(BankRecKanbanController.components, {
FileInput,
});But I am still getting the error:
OwlError: Cannot find the definition of component "FileInput"
This seems strange. If I add the FileInput component in the BankRecKanbanController code itself. So I feel like it should work through this patch mechanism as well. What am I missing?
Thank you,