Skip to content

[18.0][FIX] spreadsheet_oca: Fixed the fields[col.name] is undefined issue from form view m2o field - #88

Merged
OCA-git-bot merged 1 commit into
OCA:18.0from
Nitrokey:18.0
Jun 11, 2026
Merged

OCA-git-bot merged 1 commit into
OCA:18.0from
Nitrokey:18.0

Conversation

@hitesh-erpharbor

Copy link
Copy Markdown
Contributor

…issue

@pedrobaeza

Copy link
Copy Markdown
Member

Steps to reproduce the problem?

Check also pre-commit and CIs.

@hitesh-erpharbor

Copy link
Copy Markdown
Contributor Author

Steps to reproduce the problem?

Check also pre-commit and CIs.

I've resolved the issues with the CI tests. All checks are now passing, and the pipeline is running successfully.

@jans23

jans23 commented Jan 9, 2026

Copy link
Copy Markdown

To reproduce:

  1. Open Sales
  2. Press New to create a new Sale Order
  3. Click into the Customer field and choose Search More
  4. Press the "Add to Spreadsheet" icon at the top left
  5. The following error will be shown, sometimes hidden in a background window.
Odoo Client Error
UncaughtClientError > TypeError

Uncaught Javascript Error > can't access property "type", fields[col.name] is undefined

Occured on oca-spreadsheet-18-0-58e289f665bd.runboat.odoo-community.org on 2026-01-09 14:17:05 GMT

TypeError: can't access property "type", fields[col.name] is undefined
    getSpreadsheetColumns/<@http://oca-spreadsheet-18-0-58e289f665bd.runboat.odoo-community.org/web/assets/fa338ca/web.assets_web.min.js:21323:1672
    getSpreadsheetColumns@http://oca-spreadsheet-18-0-58e289f665bd.runboat.odoo-community.org/web/assets/fa338ca/web.assets_web.min.js:21323:1548
    onAddListOnSpreadsheet@http://oca-spreadsheet-18-0-58e289f665bd.runboat.odoo-community.org/web/assets/fa338ca/web.assets_web.min.js:21323:1371
    trigger@http://oca-spreadsheet-18-0-58e289f665bd.runboat.odoo-community.org/web/assets/fa338ca/web.assets_web.min.js:764:63
    onSpreadsheetButtonClicked@http://oca-spreadsheet-18-0-58e289f665bd.runboat.odoo-community.org/web/assets/fa338ca/web.assets_web.min.js:21320:357
    slot1/hdlr2<@http://oca-spreadsheet-18-0-58e289f665bd.runboat.odoo-community.org/web/assets/fa338ca/web.assets_web.min.js line 1585 > Function:33:30
    mainEventHandler@http://oca-spreadsheet-18-0-58e289f665bd.runboat.odoo-community.org/web/assets/fa338ca/web.assets_web.min.js:1638:77
    listener@http://oca-spreadsheet-18-0-58e289f665bd.runboat.odoo-community.org/web/assets/fa338ca/web.assets_web.min.js:782:15

@jans23

jans23 commented Jan 15, 2026

Copy link
Copy Markdown

@pedrobaeza any other information you need?

@flotho flotho left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi,

Tested on runboat without any issue with the process.
LGTM

@github-actions

Copy link
Copy Markdown

There hasn't been any activity on this pull request in the past 4 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days.
If you want this PR to never become stale, please ask a PSC member to apply the "no stale" label.

@github-actions github-actions Bot added the stale label May 24, 2026
@pedrobaeza

Copy link
Copy Markdown
Member

There are still no steps to reproduce.

@jans23

jans23 commented May 26, 2026

Copy link
Copy Markdown

To reproduce:

1. Open Sales

2. Press New to create a new Sale Order

3. Click into the Customer field and choose Search More

4. Press the "Add to Spreadsheet" icon at the top left

5. The following error will be shown, sometimes hidden in a background window.
Odoo Client Error
UncaughtClientError > TypeError

Uncaught Javascript Error > can't access property "type", fields[col.name] is undefined

Occured on oca-spreadsheet-18-0-58e289f665bd.runboat.odoo-community.org on 2026-01-09 14:17:05 GMT

TypeError: can't access property "type", fields[col.name] is undefined
    getSpreadsheetColumns/<@http://oca-spreadsheet-18-0-58e289f665bd.runboat.odoo-community.org/web/assets/fa338ca/web.assets_web.min.js:21323:1672
    getSpreadsheetColumns@http://oca-spreadsheet-18-0-58e289f665bd.runboat.odoo-community.org/web/assets/fa338ca/web.assets_web.min.js:21323:1548
    onAddListOnSpreadsheet@http://oca-spreadsheet-18-0-58e289f665bd.runboat.odoo-community.org/web/assets/fa338ca/web.assets_web.min.js:21323:1371
    trigger@http://oca-spreadsheet-18-0-58e289f665bd.runboat.odoo-community.org/web/assets/fa338ca/web.assets_web.min.js:764:63
    onSpreadsheetButtonClicked@http://oca-spreadsheet-18-0-58e289f665bd.runboat.odoo-community.org/web/assets/fa338ca/web.assets_web.min.js:21320:357
    slot1/hdlr2<@http://oca-spreadsheet-18-0-58e289f665bd.runboat.odoo-community.org/web/assets/fa338ca/web.assets_web.min.js line 1585 > Function:33:30
    mainEventHandler@http://oca-spreadsheet-18-0-58e289f665bd.runboat.odoo-community.org/web/assets/fa338ca/web.assets_web.min.js:1638:77
    listener@http://oca-spreadsheet-18-0-58e289f665bd.runboat.odoo-community.org/web/assets/fa338ca/web.assets_web.min.js:782:15

Isn't this what you are looking for?

@flotho

flotho commented May 27, 2026

Copy link
Copy Markdown
Member

To reproduce:

1. Open Sales

2. Press New to create a new Sale Order

3. Click into the Customer field and choose Search More

4. Press the "Add to Spreadsheet" icon at the top left

5. The following error will be shown, sometimes hidden in a background window.
Odoo Client Error
UncaughtClientError > TypeError

Uncaught Javascript Error > can't access property "type", fields[col.name] is undefined

Occured on oca-spreadsheet-18-0-58e289f665bd.runboat.odoo-community.org on 2026-01-09 14:17:05 GMT

TypeError: can't access property "type", fields[col.name] is undefined
    getSpreadsheetColumns/<@http://oca-spreadsheet-18-0-58e289f665bd.runboat.odoo-community.org/web/assets/fa338ca/web.assets_web.min.js:21323:1672
    getSpreadsheetColumns@http://oca-spreadsheet-18-0-58e289f665bd.runboat.odoo-community.org/web/assets/fa338ca/web.assets_web.min.js:21323:1548
    onAddListOnSpreadsheet@http://oca-spreadsheet-18-0-58e289f665bd.runboat.odoo-community.org/web/assets/fa338ca/web.assets_web.min.js:21323:1371
    trigger@http://oca-spreadsheet-18-0-58e289f665bd.runboat.odoo-community.org/web/assets/fa338ca/web.assets_web.min.js:764:63
    onSpreadsheetButtonClicked@http://oca-spreadsheet-18-0-58e289f665bd.runboat.odoo-community.org/web/assets/fa338ca/web.assets_web.min.js:21320:357
    slot1/hdlr2<@http://oca-spreadsheet-18-0-58e289f665bd.runboat.odoo-community.org/web/assets/fa338ca/web.assets_web.min.js line 1585 > Function:33:30
    mainEventHandler@http://oca-spreadsheet-18-0-58e289f665bd.runboat.odoo-community.org/web/assets/fa338ca/web.assets_web.min.js:1638:77
    listener@http://oca-spreadsheet-18-0-58e289f665bd.runboat.odoo-community.org/web/assets/fa338ca/web.assets_web.min.js:782:15

Isn't this what you are looking for?

Hi @pedrobaeza , I've tested on runboat with the above procedure. No more issue

@github-actions github-actions Bot removed the stale label May 31, 2026
@pedrobaeza pedrobaeza added this to the 18.0 milestone Jun 11, 2026

@pedrobaeza pedrobaeza left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Checked the problem depicted.

/ocabot merge patch

@OCA-git-bot

Copy link
Copy Markdown
Contributor

Hey, thanks for contributing! Proceeding to merge this for you.
Prepared branch 18.0-ocabot-merge-pr-88-by-pedrobaeza-bump-patch, awaiting test results.

@OCA-git-bot
OCA-git-bot merged commit 481ccae into OCA:18.0 Jun 11, 2026
7 checks passed
@OCA-git-bot

Copy link
Copy Markdown
Contributor

Congratulations, your PR was merged at 008225c. Thanks a lot for contributing to OCA. ❤️

susaglam added a commit to susaglam/spreadsheet that referenced this pull request Sep 17, 2026
The OCA 18.0 based frontend used o-spreadsheet and web client APIs that no
longer exist in saas-19.4. Every API was checked against the 19.4 source;
OCA 19.0 was used as an idea reference only.

spreadsheet_oca
- Global filters: globalFieldMatchingRegistry (getters first) replaces the
  removed globalFiltersFieldMatchers / RELATIVE_DATE_RANGE_TYPES; default
  values use {operator, ids|strings}; date defaults use DefaultDateValue;
  FilterValue gets globalFilterValue / setGlobalFilterValue; string domains
  for DomainSelector. The edit panel no longer crashes on open.
- Insert flows: pivots use getCollapsed/ExpandedTableStructure (dynamic vs
  static), lists use listId and the flat 19.4 definition, graphs create native
  bar/line/pie charts with an "odoo" data source and a valid CREATE_CHART
  payload. Re-insert from the side panels works; SELECT_ODOO_LIST removed.
- List "Add to spreadsheet" moved to the ListController and waits for the
  lazily loaded model (clicks before the renderer mounted were lost); x2many
  lists in forms never react (OCA OCA#88 root cause).
- Side panels: OWL3 hooks pass the component scope as first argument, so the
  pivot/list panels no longer bind loaders with default parameters.
- Charts: a community "odoo" chart data-source side panel is registered
  (community 19.4 only ships "range"); the ChartTypePicker patch that let Odoo
  charts become scorecard/gauge and the dead odoo_* chart panels are removed.
- Control panel: parent components are inherited (OCA OCA#112), breadcrumbs and
  Dropdown use the 19.4 markup (desktop and 375px), t-slot -> t-call-slot,
  graph "Add to spreadsheet" is enabled/disabled on real data.
- getExtraModelCustom() hook lets add-ons extend the model config (OCA OCA#127
  idea); image store implements getFile for clipboard copies.

spreadsheet_forecast_oca, spreadsheet_period_comparison_oca
- toNumber with locale, EvaluationError instead of Error, eslint errors
  fixed, missing _t strings added to the catalogs.

Tests (throwaway saas-19.4 databases on the test clone, Chrome)
- New browser tours for filters, pivot/list/graph insertion into new and
  existing spreadsheets, side-panel re-insert and domain edit, chart panel,
  breadcrumbs (desktop + mobile); hoot suites for the formula modules.
- Fresh install with demo: 491 tests, 0 failed, 0 errors.
- Upgrade of the pre-fix database: 489 tests, 0 failed, 0 errors.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants