How to set a record of one2many field as readonly by a condition - Odoo 11
I nee to make a record as readonly .That means,I have my attendace and also have timesheets,
If my attendance is zero,I need to make that day's timesheet as readonly and show as absent
How could I do this?
Thanks in advance