I'm using Odoo 11. When user1 confirms a sale order, a delivery order is created by the admin user, not by the user1. So the admin user becomes a follower automatically to the delivery order. What should happen is that the user1 becomes automatically a follower of that delivery order. It's an important issue for us.
How can I modify the code so that the user who confirms the sale order is the same user who creates the delivery order.
you need to add come customization for this and save the confirmed user inside the record and while validating the delivery order, check whether the sale confirmed user and delivery order validating user is the same, else you can raise warning
Thanks Niyas Raphy, but this not exactly what I like to do. I'd like that the user who creates the delivery order is the same as the user who confirms the sale order. Here, the worflow is wrong since it's always the admin user who creates the delivery order. It should be user1. So in the method where sale order is confirmed, I need to force the user to be the current user.