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"
|
_description = "Printing Auto"
|
||||||
|
|
||||||
name = fields.Char(string="Name", required=True)
|
name = fields.Char(string="Name", required=True)
|
||||||
|
model = fields.Char(string="Related Document Model", required=True)
|
||||||
|
|
||||||
data_source = fields.Selection(
|
data_source = fields.Selection(
|
||||||
[
|
[
|
||||||
|
|||||||
@@ -50,6 +50,7 @@ class TestPrintingAutoCommon(common.SavepointCase):
|
|||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def _create_printing_auto(cls, vals):
|
def _create_printing_auto(cls, vals):
|
||||||
|
vals.setdefault("model", "printing.auto")
|
||||||
return cls.env["printing.auto"].create(vals)
|
return cls.env["printing.auto"].create(vals)
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
|
|||||||
Reference in New Issue
Block a user