Configuration

The configuration page is accessible from Home > Setup > Modules > Project time entry (mobile) > Configuration tab.

Module configuration page with the duration chips and the service filter

Duration chips

Comma-separated list of durations to display as buttons on the mobile page, in minutes. Default: 15,30,60,120.

You can freely add or remove values. An Other chip (with a free field in minutes) is always present in addition to your list, independently of the configuration. If you leave the list empty or enter only invalid values, the previous list is kept and a warning is displayed.

Useful examples depending on your activity:

  • 15,30,60,120 (default) -- quarter-hour granularity up to 2 h.
  • 30,60,90,120,240 -- half-hour granularity up to 4 h for long sessions.
  • 5,10,15,30,60 -- fine granularity for support or troubleshooting.

Offered services

The mobile page displays a drop-down menu to associate a time line with a service (in the "Service-type product" sense in Dolibarr). The module offers three filtering modes for this list:

  • All services: all Service-type products marked "for sale" in Dolibarr appear in the list. Handy if you have few services.
  • Services of a category: only the services attached to the chosen category appear. Useful if you have many services and want to expose only those dedicated to time-based billing.
  • Manual service list: you explicitly choose the services to expose in the drop-down menu. The most restrictive and most precise mode.

If the "Services of a category" mode is chosen without a selected category, or if the "Manual list" mode is chosen without any service ticked, a warning is displayed on save and no service will appear on the mobile page (the drop-down menu will be absent and each line will be entered without fk_product).

Service selector with the three filtering modes

QR signing secret

The module signs the QR code URLs with an HMAC secret stored in the database. This secret is generated randomly on first activation and is not regenerated afterwards, unless explicitly requested.

  • Configured (green badge): all good, the QR codes are signed.
  • Missing (red badge): the secret is not in the database. Reactivate the module to regenerate it.

The Regenerate secret button immediately invalidates all QR codes in circulation. Use it in two cases:

  • You photographed a QR code screen and the photo leaked (unlikely but possible).
  • You want to force all users to re-scan from their workstation (for example after an organizational change).

A confirmation dialog is displayed before the regeneration. After confirmation, phones trying to reuse an old link will get an "Expired link" page.

Each QR code generated on a task's time entry page is valid 24 hours by default. Beyond that, the phone must re-scan from the workstation.

You can adjust this duration in the Link validity duration field, in hours (from 1 to 8760, i.e. one year at most). A few landmarks:

  • 24 (default) -- covers an end-of-month entry session.
  • 1 -- very restrictive, for a shared workstation.
  • 168 -- one week, if you enter your time spread out.

If you set the value to 0, the link no longer expires over time: it remains valid as long as the project is open. This is the setting suited to a particular use: print the QR code and stick it on a machine, a piece of equipment or a place that responders scan on each visit to record their time directly on the right task.

In this mode, the security bound is no longer time but the project's state:

  • As long as the project is open, the printed QR works.
  • As soon as you close the project from Dolibarr (Project > Close button), all QR codes pointing to its tasks immediately stop working. Closing then reopening the project is therefore your revocation switch.
  • To revoke a single QR without touching the project, regenerate the signing secret (see below) -- but this also invalidates all the other QR codes.

An unlimited link never self-expires: a printed QR remains valid indefinitely as long as the project is open. Only use it if this trade-off suits you. For the classic "I enter my time from my phone" use, keep a limited duration (24 h by default).

Email notification

The Notification email field allows you to be notified on each time entry made from the mobile page.

  • Leave the field empty to disable notifications (default behavior).
  • Enter an email address to receive a message on each recording. You can enter several addresses separated by commas.

The email summarizes everything needed to follow the activity without opening Dolibarr: project, task, user who entered, date and time, duration, service (if filled in) and report.

Sending is best-effort: if Dolibarr's email sending server is not configured, or if sending fails, the time entry is still recorded (the failure is only logged). Check that the sender (Home > Setup > Emails, "Sending email" field) and the SMTP sending are properly configured in Dolibarr for the notifications to go out.