art60 : Article 60§7 job supplyments

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

This page contains code snippets (lines starting with >>>), which are being tested during our development workflow. The following snippet initializes the demo project used throughout this page.

>>> 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=92)
>>> obj
JobProvider #92 ('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               123
 Pro Aktiv Noereth      4700 Eupen               122
 Pro Aktiv Unterstadt   4700 Eupen               121
====================== ============ =========== =====