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
- Kirjanpito
- Varastointi
- PoS
- Project
- MRP
Tämä kysymys on merkitty
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
Nautitko keskustelusta? Älä vain lue, vaan osallistu!
Luo tili jo tänään nauttiaksesi yksinoikeusominaisuuksista ja osallistuaksesi mahtavaan yhteisöömme!
Rekisteröidy