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
- Boekhouding
- Voorraad
- PoS
- Project
- MRP
Deze vraag is gerapporteerd
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
Geniet je van het gesprek? Blijf niet alleen lezen, doe ook mee!
Maak vandaag nog een account aan om te profiteren van exclusieve functies en deel uit te maken van onze geweldige community!
Aanmelden