Skip to content

Commit

Permalink
[IMP] sale_import_wizard: avoid warning using selection add
Browse files Browse the repository at this point in the history
  • Loading branch information
oihane committed Oct 14, 2024
1 parent 30caa2d commit 65a5b1d
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions sale_import_wizard/models/sale_order_import_line.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,10 @@ class SaleOrderImportLine(models.Model):
store=True,
)
action = fields.Selection(
selection=[
selection_add=[
("create", "Create"),
("nothing", "Nothing"),
],
default="nothing",
states={"done": [("readonly", True)]},
copy=False,
required=True,
ondelete={"create": "set default"},
)
sale_order_id = fields.Many2one(
string="Sale Order",
Expand Down

0 comments on commit 65a5b1d

Please sign in to comment.