Skip to content

Commit

Permalink
[FIX] excel_import_export: require attach when res_id false
Browse files Browse the repository at this point in the history
  • Loading branch information
Saran440 committed Sep 18, 2024
1 parent 4e9554a commit 780a6a2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion excel_import_export/wizard/import_xlsx_wizard.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ class ImportXLSXWizard(models.TransientModel):
attachment_ids = fields.Many2many(
"ir.attachment",
string="Import File(s) (*.xlsx)",
required=True,
help="You can select multiple files to import.",
)
state = fields.Selection(
Expand Down
2 changes: 1 addition & 1 deletion excel_import_export/wizard/import_xlsx_wizard.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
<field
name="attachment_ids"
widget="many2many_binary"
attrs="{'invisible': [('res_id', '!=', False)], 'required': [('res_id', '=', False)]}"
nolabel="1"
attrs="{'invisible': [('res_id', '!=', False)]}"
/>
</group>
<group>
Expand Down

0 comments on commit 780a6a2

Please sign in to comment.