mirror of
https://github.com/OCA/report-print-send.git
synced 2025-02-16 07:11:31 +02:00
[FIX] printing_auto_base: bound to model
This commit is contained in:
@@ -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(
|
||||
[
|
||||
|
||||
@@ -50,6 +50,7 @@ class TestPrintingAutoCommon(common.SavepointCase):
|
||||
|
||||
@classmethod
|
||||
def _create_printing_auto(cls, vals):
|
||||
vals.setdefault("model", "printing.auto")
|
||||
return cls.env["printing.auto"].create(vals)
|
||||
|
||||
@classmethod
|
||||
|
||||
Reference in New Issue
Block a user