apiVersion: jenkins.io/v1 kind: PipelineActivity metadata: annotations: lighthouse.jenkins-x.io/cloneURI: https://github.com/hgngenterprises/riders.git lighthouse.jenkins-x.io/job: release pipeline.jenkins-x.io/traceID: a6ddb8854203e2ee6d0143a032d6fe48 creationTimestamp: "2026-08-29T10:51:22Z" generation: 7 labels: branch: main build: "26" context: release created-by-lighthouse: "true" event-GUID: 8ea92e34-a397-11f1-9df9-413961d90177 lighthouse.jenkins-x.io/baseSHA: b0cf512627953bbae59b03b895a4db3ee5fdf969 lighthouse.jenkins-x.io/branch: main lighthouse.jenkins-x.io/buildNum: "1788000679861" lighthouse.jenkins-x.io/context: release lighthouse.jenkins-x.io/id: genterprises-riders-main-release-489wl lighthouse.jenkins-x.io/job: release lighthouse.jenkins-x.io/lastCommitSHA: b0cf512627953bbae59b03b895a4db3ee5fdf969 lighthouse.jenkins-x.io/refs.org: hgngenterprises lighthouse.jenkins-x.io/refs.repo: riders lighthouse.jenkins-x.io/type: postsubmit owner: hgngenterprises podName: genterprises-riders-main-release-wfmcx-from-build-pack-pod provider: github repository: riders tekton.dev/pipeline: genterprises-riders-main-release managedFields: - apiVersion: jenkins.io/v1 fieldsType: FieldsV1 fieldsV1: f:metadata: f:labels: f:branch: {} f:context: {} f:owner: {} f:provider: {} f:repository: {} f:spec: f:lastCommitMessage: {} f:lastCommitSHA: {} f:releaseNotesURL: {} f:version: {} manager: jx-changelog-0.10.29 operation: Update time: "2026-08-29T10:54:01Z" - apiVersion: jenkins.io/v1 fieldsType: FieldsV1 fieldsV1: f:metadata: f:annotations: .: {} f:lighthouse.jenkins-x.io/cloneURI: {} f:lighthouse.jenkins-x.io/job: {} f:pipeline.jenkins-x.io/traceID: {} f:labels: .: {} f:build: {} f:created-by-lighthouse: {} f:event-GUID: {} f:lighthouse.jenkins-x.io/baseSHA: {} f:lighthouse.jenkins-x.io/branch: {} f:lighthouse.jenkins-x.io/buildNum: {} f:lighthouse.jenkins-x.io/context: {} f:lighthouse.jenkins-x.io/id: {} f:lighthouse.jenkins-x.io/job: {} f:lighthouse.jenkins-x.io/lastCommitSHA: {} f:lighthouse.jenkins-x.io/refs.org: {} f:lighthouse.jenkins-x.io/refs.repo: {} f:lighthouse.jenkins-x.io/type: {} f:podName: {} f:tekton.dev/pipeline: {} f:spec: .: {} f:baseSHA: {} f:batchPipelineActivity: {} f:build: {} f:buildLogsUrl: {} f:completedTimestamp: {} f:context: {} f:gitBranch: {} f:gitOwner: {} f:gitRepository: {} f:gitUrl: {} f:message: {} f:pipeline: {} f:startedTimestamp: {} f:status: {} f:steps: {} manager: jx-build-controller operation: Update time: "2026-08-29T10:55:47Z" name: hgngenterprises-riders-main-26 namespace: jx resourceVersion: "307114115" uid: 94f3529e-6054-416b-9cb8-2a67f0eb2aca spec: baseSHA: b0cf512627953bbae59b03b895a4db3ee5fdf969 batchPipelineActivity: {} build: "26" buildLogsUrl: s3://logs-gct-prod-20260425045301534100000007/jenkins-x/logs/hgngenterprises/riders/main/26.log completedTimestamp: "2026-08-29T10:55:41Z" context: release gitBranch: main gitOwner: hgngenterprises gitRepository: riders gitUrl: https://github.com/hgngenterprises/riders.git lastCommitMessage: | fix: scope odoo queries to company 4 only riders read across companies 4 and 5: `allowed_company_ids: [4, 5]` on every RPC, plus `company_id in [4, 5]` / `'|', company=4, company=5` leaves in most domains. Company 5 is the B2B entity — its partners are corporates (YANTRON, FEPL E-VENTURES, VERTEV MOBILITY, ...), not riders. The only rider-shaped record that ever landed there was a duplicate created by createRider against the company-5 `Rider` job (hr.job 37, now archived), which made an existing rider resolve to an employee named "Rider" instead of their own record. Scope every query to company 4: - allowed_company_ids: [4, 5] -> [4] in count/search/read - `'|', company=4, company=5` OR-blocks collapse to `company = 4` - `['company_id', 'in', [4, 5]]` -> `['company_id', '=', 4]` - getRiderJobId / getRiderDepartmentId look in company 4 getPlans(categ_id = 5) is untouched: that is a product category id. This also removes a latent failure introduced by archiving hr.job 37. getRiderJobId searched `company_id = 5, name = 'Rider'`, which now returns nothing and throws `no_rider_job`; createRider has no catch in queue/consume.js, so a new rider's first order_completed would have skipped createPayment and silently lost the payment. Pointed at company 4 it resolves to job 33. Verified against production Odoo in a rolled-back transaction, over all 533 employees: exactly one partner ref changes resolution (988688, whose only company-4-visible record is a company-5 duplicate — handled separately as a data fix), and dues are unchanged for the two riders holding company-5 entries, whose lines net to zero. Co-Authored-By: Claude Opus 5 (1M context) Claude-Session: https://claude.ai/code/session_01MeCwDikfJZkdpwXRGKTovU lastCommitSHA: 71d28cee8fb69c7712cf146054657339529a8954 message: 'Tasks Completed: 1 (Failed: 0, Cancelled 0), Skipped: 0' pipeline: hgngenterprises/riders/main releaseNotesURL: https://github.com/hgngenterprises/riders/releases/tag/v0.27.20 startedTimestamp: "2026-08-29T10:51:21Z" status: Succeeded steps: - kind: Stage stage: completedTimestamp: "2026-08-29T10:55:41Z" name: from build pack startedTimestamp: "2026-08-29T10:51:35Z" status: Succeeded steps: - completedTimestamp: "2026-08-29T10:52:18Z" name: Git Clone startedTimestamp: "2026-08-29T10:51:35Z" status: Succeeded - completedTimestamp: "2026-08-29T10:52:20Z" name: Next Version startedTimestamp: "2026-08-29T10:52:18Z" status: Succeeded - completedTimestamp: "2026-08-29T10:52:23Z" name: Jx Variables startedTimestamp: "2026-08-29T10:52:20Z" status: Succeeded - completedTimestamp: "2026-08-29T10:53:01Z" name: Build Npm Install startedTimestamp: "2026-08-29T10:52:23Z" status: Succeeded - completedTimestamp: "2026-08-29T10:53:52Z" name: Build Container Build startedTimestamp: "2026-08-29T10:53:02Z" status: Succeeded - completedTimestamp: "2026-08-29T10:54:01Z" name: Promote Changelog startedTimestamp: "2026-08-29T10:53:53Z" status: Succeeded - completedTimestamp: "2026-08-29T10:54:05Z" name: Promote Helm Release startedTimestamp: "2026-08-29T10:54:01Z" status: Succeeded - completedTimestamp: "2026-08-29T10:55:41Z" name: Promote Jx Promote startedTimestamp: "2026-08-29T10:54:06Z" status: Succeeded - kind: Promote promote: environment: staging pullRequest: pullRequestURL: https://github.com/greencapitaltrade/mcu/pull/5569 startedTimestamp: "2026-08-29T10:55:02Z" status: Succeeded startedTimestamp: "2026-08-29T10:55:02Z" status: Succeeded - kind: Promote promote: environment: production pullRequest: pullRequestURL: https://github.com/greencapitaltrade/mcu/pull/5570 startedTimestamp: "2026-08-29T10:55:38Z" status: Succeeded startedTimestamp: "2026-08-29T10:55:38Z" status: Succeeded version: 0.27.20 status: {}