[IMP] excel_import_export: Set import wizard filename

pull/2771/head
PauBForgeFlow 2023-12-01 11:35:12 +01:00
parent 590cf43c30
commit b9cc8b28db
2 changed files with 3 additions and 0 deletions

View File

@ -14,6 +14,7 @@ class ImportXLSXWizard(models.TransientModel):
_description = "Wizard for importing excel"
import_file = fields.Binary(string="Import File (*.xlsx)")
filename = fields.Char("Import File Name")
template_id = fields.Many2one(
"xlsx.template",
string="Template",

View File

@ -11,6 +11,7 @@
<field name="id" invisible="1" />
<field name="state" invisible="1" />
<field name="fname" invisible="1" />
<field name="filename" invisible="1" />
<field name="res_model" invisible="1" />
<field name="res_id" invisible="1" />
<group states="choose">
@ -18,6 +19,7 @@
<field
name="import_file"
attrs="{'invisible': [('res_id', '=', False)]}"
filename="filename"
/>
<field
name="attachment_ids"