Skip to content

V18 requesting validion and entering already validate entry #2015

@MakramElAhmadye

Description

@MakramElAhmadye

Module

Describe the bug
After creating a tier validation for journal entry, the tier validation has a domain of amount_currency>100
and the reviewer is 1 user, this tier validation had issue when the notification checkboxes where activated, thus I had to remove them and it worked, the designated user was able to validate the invoice, after that when trying to log to the invoice had the below error

UncaughtPromiseError > OwlError

Uncaught Promise > Got duplicate key in t-foreach: 1

Occured on azkatech-izzat-daouk-stage-20758203.dev.odoo.com on 2025-05-27 20:14:21 GMT

OwlError: Got duplicate key in t-foreach: 1
    Error: Got duplicate key in t-foreach: 1
        at ReviewsTable.template (eval at compile (https://azkatech-izzat-daouk-stage-20758203.dev.odoo.com/web/assets/dcf4d3e/web.assets_web.min.js:1574:421), <anonymous>:22:44)
        at Fiber._render (https://azkatech-izzat-daouk-stage-20758203.dev.odoo.com/web/assets/dcf4d3e/web.assets_web.min.js:996:96)
        at Fiber.render (https://azkatech-izzat-daouk-stage-20758203.dev.odoo.com/web/assets/dcf4d3e/web.assets_web.min.js:995:6)
        at ComponentNode.initiateRender (https://azkatech-izzat-daouk-stage-20758203.dev.odoo.com/web/assets/dcf4d3e/web.assets_web.min.js:1065:47)
To Reproduce
Affected versions:

Steps to reproduce the behavior:
Case I

  1. create a tier validation with 1 user to review without any notification check boxes with any domain you like
  2. then create an entry that matches the domain
  3. Request validation and then login on behalf of the reviewer and confirm
  4. get back to invoice list view
  5. try entering the validation entry

Case II:

  1. Create a tier validation same like the above mentioned ones, but this time with the reviewer notifications checkboxes all enabled
  2. Create any invoice and request validation

Expected behavior

Case I
you will receive below error:

UncaughtPromiseError > OwlError

Uncaught Promise > Got duplicate key in t-foreach: 1

Occured on azkatech-izzat-daouk-stage-20758203.dev.odoo.com on 2025-05-27 20:14:21 GMT

OwlError: Got duplicate key in t-foreach: 1
    Error: Got duplicate key in t-foreach: 1
        at ReviewsTable.template (eval at compile (https://azkatech-izzat-daouk-stage-20758203.dev.odoo.com/web/assets/dcf4d3e/web.assets_web.min.js:1574:421), <anonymous>:22:44)
        at Fiber._render (https://azkatech-izzat-daouk-stage-20758203.dev.odoo.com/web/assets/dcf4d3e/web.assets_web.min.js:996:96)
        at Fiber.render (https://azkatech-izzat-daouk-stage-20758203.dev.odoo.com/web/assets/dcf4d3e/web.assets_web.min.js:995:6)
        at ComponentNode.initiateRender (https://azkatech-izzat-daouk-stage-20758203.dev.odoo.com/web/assets/dcf4d3e/web.assets_web.min.js:1065:47)

Case II
you will receive below validation error:

Validation Error

You are not allowed to write those fields under validation.

  • Is Manually Modified

Only those fields can be modified:

  • Followers
  • Main Attachment
  • Security Token
  • Needed Terms Dirty
  • Total

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