Skip to content

Read Odoo partners without fields that need the Invoicing app - #1597

Merged
helpcodeai merged 7 commits into
mainfrom
fix/odoo-partner-fields
Nov 9, 2026
Merged

helpcodeai merged 7 commits into
mainfrom
fix/odoo-partner-fields

Conversation

@helpcodeai

Copy link
Copy Markdown
Contributor

What and why

odoo_list_partners is the setup check (probe) of both Odoo adapters and read customer_rank and supplier_rank. Those fields come with Odoo's Invoicing app: an Odoo without it answers the check with 500 ValueError: Invalid field 'customer_rank' on 'res.partner', and the setup page tells the customer it is "on their side, not your configuration". 8 Cloud workspaces hit it in the last 14 days; fields_get on three affected instances confirmed two of them have no rank fields.

  • odoo and odoo-jsonrpc: the partner wrapper reads only id, name, email, phone, city, country_id, vat.
  • The domain hint still shows [["customer_rank",">",0]] and now says that field needs the Invoicing app.
  • Specs assert the wrapper never asks for the rank fields.

Installed connectors keep their stored tool until "Apply update"; a targeted update of unchanged odoo_list_partners mappings can follow after deploy.

Cloud and self-hosted

Same in both: the adapter JSON is shared.

Tests

packages/backend: npx jest src/adapters/intl/odoo --maxWorkers=4 → passed. Repository root: node scripts/validate-adapters.mjs --warn → only the existing tool-prefix warnings of odoo-jsonrpc (it shares tool names with odoo by design); node scripts/regenerate-catalog.mjs → no diff.

odoo_list_partners is the setup check of both Odoo adapters and asked for customer_rank and supplier_rank. Those fields come with Odoo's Invoicing app: an Odoo without it answered the check with a 500 Invalid field, and the setup page told the customer the problem was on their side. 8 workspaces hit it on Cloud in two weeks. The wrapper now reads only fields every Odoo has; the domain hint says when customer_rank exists.
@helpcodeai
helpcodeai requested a review from D3nisty as a code owner November 9, 2026 07:58
@helpcodeai
helpcodeai enabled auto-merge (squash) November 9, 2026 09:10
@helpcodeai
helpcodeai merged commit 9f14790 into main Nov 9, 2026
16 checks passed
@helpcodeai
helpcodeai deleted the fix/odoo-partner-fields branch November 9, 2026 10:49
@github-actions github-actions Bot locked and limited conversation to collaborators Nov 9, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant