Skip to content

Commit

Permalink
script_file_import: fix view
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastienbeau committed Sep 19, 2023
1 parent b7cfce7 commit ab0abba
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 2 deletions.
2 changes: 1 addition & 1 deletion script_file_import/views/menu.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<field name="name">Script File Import</field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">script.file.import</field>
<field name="view_mode">form</field>
<field name="view_mode">tree,form</field>
</record>

<menuitem
Expand Down
23 changes: 22 additions & 1 deletion script_file_import/views/script_file_import.xml
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,25 @@
</form>
</field>
</record>
</odoo>

<record id="script_file_import_view_tree" model="ir.ui.view">
<field name="model">script.file.import</field>
<field name="arch" type="xml">
<tree string="Script">
<field name="in_filename" />
<field name="create_date" />
<field name="state" />
</tree>
</field>
</record>

<record id="script_file_import_view_search" model="ir.ui.view">
<field name="model">script.file.import</field>
<field name="arch" type="xml">
<search string="Script">
<field name="in_filename" />
</search>
</field>
</record>

</odoo>

0 comments on commit ab0abba

Please sign in to comment.