Task set to read only after completion

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • rfrancocantero
    Member
    • May 2020
    • 82

    Task set to read only after completion

    Hi,

    Is it possible to make a task read only after it has a certain status?
  • victor
    Active Community Member
    • Aug 2022
    • 819

    #2
    Does it mean that a certain record (in the Task entity) is invisible to certain users until the status of this record becomes, for example, "ready to read"?
    Please elaborate on your request.

    Comment

    • rfrancocantero
      Member
      • May 2020
      • 82

      #3
      Hi,

      We work with tasks that are assigned to a team. Each team does something with the task and afterwards assigns the task to another team. Each task also has statusses.
      When a task reaches 15 or Geannuleerd. It needs to be converted to read only so that noone can add thing to the stream or modify it. Is this even possible?

      Click image for larger version

Name:	image.png
Views:	65
Size:	28.1 KB
ID:	115582

      Comment

      • dreginald
        Senior Member
        • Sep 2018
        • 124

        #4
        IN entity manager, make all the fields Read Only when the Status is "Completed"
        Attached Files

        Comment

        • rfrancocantero
          Member
          • May 2020
          • 82

          #5
          Hi, thanks but where exactly can I find this?

          Click image for larger version

Name:	image.png
Views:	58
Size:	26.1 KB
ID:	115586

          Comment

        • rfrancocantero
          Member
          • May 2020
          • 82

          #6
          Hi, thanks but in the Field Names I don't see the Stream option. I would like to 'lock' the stream option so that nobody can add things into a completed task. I can't seem to achieve this.

          Comment

          • rfrancocantero
            Member
            • May 2020
            • 82

            #7
            Does anyone have an idea?

            Comment

            • dreginald
              Senior Member
              • Sep 2018
              • 124

              #8
              There is no option from the front end. You can try with https://docs.espocrm.com/development/hooks/

              Comment

              • yuri
                Member
                • Mar 2014
                • 8714

                #9
                For record locking, I recommend to have a read-only bool field that will be set to true (by formula or a workflow) when specific conditions met. Then, the dynamic logic will check that bool field.

                Additionally, in the Before-Save API script it's reasonable to check for that field and throw an exception. This will prevent editing the record completely (even via the API).
                If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

                Comment

                Working...