0
私はodoo9で新しく、どのようにして2つのテーブルを持つ単純なモジュールを作成しますか? 最初のテーブルなどチーム(teamId、teamName、teamDescription)と2番目のテーブルプレーヤー(playerId、teamId、playerName、playerSurname)。私はそのチームのプレイヤー2つのテーブルを持つモジュールodoo9
例https://postimg.org/image/uam0v0cct/
class team_module(model.Models):
_name = 'team.module'
_description = 'team description'
name = fields.char('Team Name', size=128, required=True)
description = fields.char('Team desc', size=256)
class player_module(model.Models):
_name = 'player.module'
_description = 'player description'
name = fields.char('Player Name', size=128, required=True)
surname = fields.char('Player Surname', size=128, required=True)
どれでもシンプルなソリューションやモジュールを追加する必要があります下に
した後、リスト上のチームを追加しますか? team_module
で