art60 : Article 60§7 job supplyments

The lino_welfare.modlib.art60 plugin adds support for managing Art60 job supplyments.

This page is a tested document and the following instructions are used for initialization:

>>> from lino import startup
>>> startup('lino_welfare.projects.mathieu.settings.demo')
>>> from lino.api.doctest import *

Job providers with multiple workplaces

The demo data has one example of a job provider with multiple workplaces.

Any organization can become a workplace of a job provider by setting its field job_provider to that job provider.

A same organization can’t be workplace for multiple job providers.

>>> obj = jobs.JobProvider.objects.get(pk=191)
>>> obj
JobProvider #191 ('Pro Aktiv V.o.G.')
>>> ses = rt.login("robin")
>>> ses.show(jobs.WorkplacesByProvider, master_instance=obj)  
`Pro Aktiv Nispert <…>`__, `Pro Aktiv Noereth <…>`__, `Pro Aktiv Unterstadt <…>`__, **Nouveau** **?**
>>> ses.show(jobs.WorkplacesByProvider, master_instance=obj, nosummary=True)
... 
====================== ============ =========== =====
 Nom                    Adresse      Téléphone   ID
---------------------- ------------ ----------- -----
 Pro Aktiv Nispert      4700 Eupen               222
 Pro Aktiv Noereth      4700 Eupen               221
 Pro Aktiv Unterstadt   4700 Eupen               220
====================== ============ =========== =====