How can I achieve the following
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Accounting
- Inventory
- PoS
- Project
- MRP
This question has been flagged
You can give onchange for the task_status field and check if it's Finished, you can set the Task Finisher as the current user.
if record.task_status == 'finished':
record.task_finisher = self.env.uid
Thank you so much.
Hello
you can write onchange to update task finisher.
@api.onchange('task_status')
def onchange_stage_id(self):
if self.task_status == 'finished':
self.task_finisher_id = self.env.user.id if self.task_finisher_id else False
Thanks & Regards,
CandidRoot Solutions Pvt. Ltd.
Mobile: (+91) 8849036209
Email: info@candidroot.com
Skype: live:candidroot
Web: https://www.candidroot.com
Address: 1229-1230, Iconic Shyamal, Near Shyamal Cross Road, Ahmedabad, Gujarat 380015
Thank you so much
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Prijavi