slapos_erp5: Only edit if the document isMemberOf

   Factorize script to make easier projects slow roll migration or use activities in case the object removed contains way too many related objects.
5 jobs for master in 0 seconds
Status Job ID Name Coverage
  External
failed SlapOS-Master.UnitTest-Rafael

02:08:40

failed SlapOS-Master.UnitTest-Rafael

01:33:06

failed SlapOS-Master.UnitTest-Rafael

04:53:48

failed SlapOS-Master.UnitTest-Rafael

01:31:30

failed SlapOS-Master.UnitTest-Rafael

01:22:04