fixup! Add tests and support of _inherits

This commit is contained in:
Guewen Baconnier 2018-07-26 16:45:21 +02:00
parent a6ae304e49
commit 1f80d13773
1 changed files with 2 additions and 0 deletions

View File

@ -87,6 +87,7 @@ class ServerEnvTestInherits1(models.Model):
base_id = fields.Many2one(
comodel_name='server.env.test',
delegate=True,
required=True,
)
# host is not redefined, handled by the delegated model
@ -102,6 +103,7 @@ class ServerEnvTestInherits2(models.Model):
base_id = fields.Many2one(
comodel_name='server.env.test',
delegate=True,
required=True,
)
host = fields.Char()