Skip to content

Commit

Permalink
fixup! [MIG] base_report_to_printer: Migration to 18.0
Browse files Browse the repository at this point in the history
  • Loading branch information
trisdoan committed Oct 14, 2024
1 parent 9fc9b44 commit dd3fdff
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions base_report_to_printer/models/printing_action.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ class PrintingAction(models.Model):
_name = "printing.action"
_description = "Print Job Action"

_available_action_types = AVAILABLE_ACTION_TYPES

name = fields.Char(required=True)
action_type = fields.Selection(
selection=AVAILABLE_ACTION_TYPES, string="Type", required=True
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class PrintingReportXmlAction(models.Model):
comodel_name="res.users", string="User", required=True, ondelete="cascade"
)
action = fields.Selection(
selection=lambda s: s.env["printing.action"]._available_action_types(),
selection=lambda s: s.env["printing.action"]._available_action_types,
required=True,
)
printer_id = fields.Many2one(comodel_name="printing.printer", string="Printer")
Expand Down

0 comments on commit dd3fdff

Please sign in to comment.