15 lines
374 B
Python
15 lines
374 B
Python
"""MTG-specific helpers on the neutral game model."""
|
|
|
|
from odoo import api, models
|
|
|
|
|
|
class MvdTcgGame(models.Model):
|
|
"""Provide stable access to the seeded MTG game record."""
|
|
|
|
_inherit = "mvd.tcg.game"
|
|
|
|
@api.model
|
|
def _mvd_tcg_get_mtg_game(self):
|
|
"""Return the seeded MTG game record."""
|
|
return self.env.ref("mvd_tcg_mtg.mvd_tcg_game_mtg")
|