commit
35e8576cee
|
@ -14,6 +14,7 @@ class ImportXLSXWizard(models.TransientModel):
|
||||||
_description = "Wizard for importing excel"
|
_description = "Wizard for importing excel"
|
||||||
|
|
||||||
import_file = fields.Binary(string="Import File (*.xlsx)")
|
import_file = fields.Binary(string="Import File (*.xlsx)")
|
||||||
|
filename = fields.Char("Import File Name")
|
||||||
template_id = fields.Many2one(
|
template_id = fields.Many2one(
|
||||||
"xlsx.template",
|
"xlsx.template",
|
||||||
string="Template",
|
string="Template",
|
||||||
|
|
|
@ -11,6 +11,7 @@
|
||||||
<field name="id" invisible="1" />
|
<field name="id" invisible="1" />
|
||||||
<field name="state" invisible="1" />
|
<field name="state" invisible="1" />
|
||||||
<field name="fname" invisible="1" />
|
<field name="fname" invisible="1" />
|
||||||
|
<field name="filename" invisible="1" />
|
||||||
<field name="res_model" invisible="1" />
|
<field name="res_model" invisible="1" />
|
||||||
<field name="res_id" invisible="1" />
|
<field name="res_id" invisible="1" />
|
||||||
<group states="choose">
|
<group states="choose">
|
||||||
|
@ -18,6 +19,7 @@
|
||||||
<field
|
<field
|
||||||
name="import_file"
|
name="import_file"
|
||||||
attrs="{'invisible': [('res_id', '=', False)]}"
|
attrs="{'invisible': [('res_id', '=', False)]}"
|
||||||
|
filename="filename"
|
||||||
/>
|
/>
|
||||||
<field
|
<field
|
||||||
name="attachment_ids"
|
name="attachment_ids"
|
||||||
|
|
Loading…
Reference in New Issue