It is currently Sun Feb 12, 2012 11:10 am

All times are UTC + 2 hours




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: Bi-directional many2many in OpenObject GUI? (cross-posted)
PostPosted: Fri Feb 26, 2010 10:59 am 
Offline

Joined: Wed Jan 13, 2010 8:27 pm
Posts: 21
Location: Sweden
Hi yall

I am adding the possibility to add many2many Contacts to Teams.

I did this:

1. Added the many2many field "x_contact_team_ids" to "res.partner.contact"
2. Added the many2many field "x_team_contact_ids" to "res.partner.team"
3. Set up tree widgets in both objects form-views using the relation fields above.
4. Tested the relation by adding a Team to Contact.
5. Went over to the Team form view to see that the Contact ended up in the tree-widget there as well... Which it had not
6. So i realized that i had not specified any relation table to be created.
7. Went into the "x_contact_team_id" field and found that i had no way of specifying this relationship?!

How do i do this in the IDE (the OpenObject GUI tools)?

Thanks,
Lars

(This post was originally posted without success in the developer fourm.)


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC + 2 hours


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:

Protected by Anti-Spam ACP