Skip to content

Commit

Permalink
[FIX] printing_auto_base: bound to model
Browse files Browse the repository at this point in the history
  • Loading branch information
jbaudoux committed Dec 6, 2024
1 parent 3d6ec1b commit e645555
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions printing_auto_base/models/printing_auto.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ class PrintingAuto(models.Model):
_description = "Printing Auto"

name = fields.Char(string="Name", required=True)
model = fields.Char(string="Related Document Model", required=True)

data_source = fields.Selection(
[
Expand Down
1 change: 1 addition & 0 deletions printing_auto_base/tests/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ def setUpClass(cls):

@classmethod
def _create_printing_auto(cls, vals):
vals.setdefault("model", "printing.auto")
return cls.env["printing.auto"].create(vals)

@classmethod
Expand Down

0 comments on commit e645555

Please sign in to comment.