Re: [Tinyerp-users] Selection in relation multiple / multiple with attributes

2009-03-03 Thread forum-user
I tried, but to create object jdb.game.character.team.rel relationship field character_id is not yet initialized. Therefore it is not possible to simply a restriction with the attribute domain style [( 'game_id','=', game_id)]. Fabrice m2f --

[Tinyerp-users] Selection in relation multiple / multiple with attributes

2009-03-02 Thread forum-user
I am currently developing a module for the management of role-playing scale. Basically my items are as follows: jdb.world: a world in which a game is played jdb.game: a game jdb.game.character: a character of the game jdb.game.character.team: a team game jdb.game.character.team.rel: a

Re: [Tinyerp-users] Selection in relation multiple / multiple with attributes

2009-03-02 Thread forum-user
My problem is this: when I create a new relationship between a character and a team, I can not find how to filter the selection list so that only the teams of the game which the character appears. Have a look at the domain-clause in some view definitions. I think, it fits your needs.