Skip to content

Commit

Permalink
Merge PR #121 into 14.0
Browse files Browse the repository at this point in the history
Signed-off-by hparfr
  • Loading branch information
shopinvader-git-bot committed Oct 13, 2023
2 parents cdfff4e + 4fae128 commit df9a005
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions pattern_import_export/models/pattern_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ class PatternFile(models.Model):
_name = "pattern.file"
_inherits = {"ir.attachment": "attachment_id"}
_description = "Attachment with pattern file metadata"
_order = "id desc"

attachment_id = fields.Many2one("ir.attachment", required=True, ondelete="cascade")
state = fields.Selection(
Expand Down
7 changes: 7 additions & 0 deletions pattern_import_export/views/pattern_file.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,13 @@
<field name="arch" type="xml">
<form string="pattern_file_form" create="false">
<header>
<button
name="%(import_pattern_wizard_action)d"
string="New Import"
class="oe_highlight"
type="action"
context="{'default_pattern_config_id': pattern_config_id, 'hide_pattern_config_id': True}"
/>
<button
name="split_in_chunk"
string="Re-launch Import"
Expand Down

0 comments on commit df9a005

Please sign in to comment.