You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Impacted versions: 14.0 (Not sure about previous versions)
Steps to reproduce: (Can be reproduced in runbot)
Create automated action with following data:
Model: Task (project.task)
Active: True
Trigger: On Update
Action To Do: Create Next Activity
Example image
Open or create a task in Project module
Click Edit to modify the task
Try to change or set customer (partner_id)
Current behavior: Odoo raises a traceback with following information:
Error screenshot
Expected behavior: Odoo should change the customer and execute the automated action on save.
Further Information
I tried looking into the issue myself. I can not say if this problem exists for other models too. In our case we only have this issue with project.task and Field Service Module (industry_fsm) installed.
Changing the customer triggers following method for computed fields def _compute_display_conditions_count(self) (in Odoo Enterprise > industry_fsm > project.py > project.task:97)
Inside _compute_display_conditions_count write is called which is overwritten/patched by base.automation:
I don't have a deep understanding of Odoo's internals regarding ORM, Cache and Computed Fields. It looks to me like a problem with onchange (NewId) in combination with write (in project.task > _compute_display_conditions_count) and access to database/cache (in base.automation > records.read(list(vals)) .
The text was updated successfully, but these errors were encountered:
Impacted versions: 14.0 (Not sure about previous versions)
Steps to reproduce: (Can be reproduced in runbot)
project.task
)Example image
partner_id
)Current behavior: Odoo raises a traceback with following information:
Error screenshot
Expected behavior: Odoo should change the customer and execute the automated action on save.
Further Information
I tried looking into the issue myself. I can not say if this problem exists for other models too. In our case we only have this issue with
project.task
and Field Service Module (industry_fsm
) installed.Changing the customer triggers following method for computed fields
def _compute_display_conditions_count(self)
(in Odoo Enterprise > industry_fsm > project.py >project.task
:97)Inside
_compute_display_conditions_count
write is called which is overwritten/patched bybase.automation
:odoo/addons/base_automation/models/base_automation.py
Lines 315 to 338 in 6eb9ddd
Error is thrown because of
records.read(list(vals)
in line 328.Stacktrace
I don't have a deep understanding of Odoo's internals regarding ORM, Cache and Computed Fields. It looks to me like a problem with onchange (NewId) in combination with write (in
project.task
>_compute_display_conditions_count
) and access to database/cache (in base.automation >records.read(list(vals)
) .The text was updated successfully, but these errors were encountered: