Hello,
I have simple database which has 3 models as follows
1- camps (to store Camps master data)
2- players (to store players master data)
3- players_camps (to store camps each player has attended)
the code for all models as follows:
class Camps(Model):
_name = 'camps'
name = Char('Name')
organizer = Char()
date_from = Date('From date')
date_to = Date('To date')
place = Char()
supervisor = Char()
notes = Text()
class players(Model):
_name = 'player'
name = Char()
camps = One2many('player_camps', 'player')
class player_camps(Model):
_name = 'player_camps'
camp = Many2one('camps', on_delete='CASCADE', on_update='CASCADE')
organizer = Many2one('camps', on_delete='CASCADE', on_update='CASCADE')
place = Many2one('camps', on_delete='CASCADE', on_update='CASCADE')
date_from = Many2one('camps', on_delete='CASCADE', on_update='CASCADE')
date_to = Many2one('camps', on_delete='CASCADE', on_update='CASCADE')
result = Integer(default=0)
when I display players camps (using One2many widget in the view ) I can see only the camp name but the other data
like organizer or place (which are stored in master model of camps) not shown
how can I show this data in the tree view of the players camps view ?