It is currently Mon May 21, 2012 7:36 pm

All times are UTC + 2 hours




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: Many2many on_change event
PostPosted: Fri Aug 12, 2011 10:05 am 
Offline

Joined: Mon Oct 04, 2010 12:06 pm
Posts: 17
Hi all,
I'm trying to use on_change event on many2many field. In on_change function, where I get that many2many field as parameter, I can get total set of values like (6,0,[1,10,15]), where [1,10,15] are ID's of up to that time inserted records of target objects in relationship table.
When I insert another record with ID=4, I get (6,0,[1,4,10,15]). If I delete record with ID=10 I get (6,0,[1,4,15]).
Can anyone tell me if there is a way to find out IF the record has been deleted or inserted, and which is ID of that record?

And additional question - how can I find out which user has added relationship record?

Thanks in advance.


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