Files
mvd_tcg_mtg/models/mvd_tcg_game.py
2026-04-03 23:08:57 +02:00

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")