How can I achieve the following
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- 客戶關係
- e-Commerce
- 會計
- 庫存
- PoS
- Project
- MRP
此問題已被標幟
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