Skip to Content
Menu
This question has been flagged
1 Reply
4258 Views

Hi all, 

I'm new to Odoo and I'm trying to create some automated actions. As per follow


When a contact is created I want to automatically tell me the source of its creation: Sales, Website or PoS. So in the "data to write" I used: Sales Team > Python Expression > Value= x? I'm trying to understand what should I use for the value. record.team_id?


Thanks for the help! 

Avatar
Discard

You might be able to use "record.create_uid.sale_team_id.id". That's the "Created by" user's Sales Team.

Author Best Answer

Thanks a lot John, works perfectly well! Cheers.

Avatar
Discard