Skip to content

[16.0/17.0/18.0] account_analytic_distribution_manual: JS crash in account_reconcile_oca #844

@alexis-via

Description

@alexis-via

Here are the steps to reproduce the bug:

  1. On Odoo CE 16.0, create a new DB
  2. Install the module account_reconcile_oca from OCA/account-reconcile
  3. Enable analytic accounting
  4. In the bank reconcile interface, select an unreconciled statement line. Select the counterpart line, click on the "Manual operation" tab, set an account and set an analytic distribution (for example : on the 'Projects' plan, set 100% for 'Deco Addict')
  5. click on the button "Validate" : it works
  6. install the module account_analytic_distribution_manual from OCA/account-analytic
  7. Re-run steps 4 and 5 on a new unreconciled statement line. When you click on the button "Validate", you get a JS crash:
UncaughtPromiseError > TypeError

Uncaught Promise > can't access property "type", this.fields[fieldName] is undefined

The bug happens on 16.0, but not on 17.0 nor 18.0.
I really love the module account_analytic_distribution_manual... but we can't keep it if it triggers crashes in the OCA bank reconcile interface.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions