You can override the create method of member object and with the creation of each member object, create a new user..
NOTE: tag each user with the member for future references.. (like relation between res_partner and res_users, where res_users is having a many2one to res_partner, same way u can add a many2one field referencing your member object in res_users).
and remember to tag the member with the new user created..as
member_id = fields.Many2one([member_object])
def create(self, vals):
res = super([member_class], self).create(vals)
# Create your user here and tag res.id(new member created) to it at member_id field.
Hope it helps!
Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!
About This Community
|Asked: 6/11/16, 6:39 AM|
|Seen: 228 times|
|Last updated: 6/13/16, 7:26 AM|