Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
2 Odpovědi
5791 Zobrazení

Hi everyone! i´m a newbie in Odoo and hope you can help me to fix this error:

When i go to CRM > Sales  and click on Create button or trying to edit existing opportunities, it goes to this error message:

Error:
Rastreo de error (Tracking Error):
Error: Unknown field user_id.department_id in domain
    at Class.compute (https://fastcom-sa.odoo.com/web/content/561-4d46000/web.assets_backend.js:322:55)
    at evalModifier (https://fastcom-sa.odoo.com/web/content/561-4d46000/web.assets_backend.js:1203:91)
    at Class._evalModifiers (https://fastcom-sa.odoo.com/web/content/561-4d46000/web.assets_backend.js:1206:44)
    at Class._registerModifiers (https://fastcom-sa.odoo.com/web/content/561-4d46000/web.assets_backend.js:1407:101)
    at Class._renderFieldWidget (https://fastcom-sa.odoo.com/web/content/561-4d46000/web.assets_backend.js:1412:550)
    at Class._renderInnerGroupField (https://fastcom-sa.odoo.com/web/content/561-4d46000/web.assets_backend.js:1688:381)
    at https://fastcom-sa.odoo.com/web/content/561-4d46000/web.assets_backend.js:1685:44
    at Array.forEach (<anonymous>)
    at Class._renderInnerGroup (https://fastcom-sa.odoo.com/web/content/561-4d46000/web.assets_backend.js:1682:75)
    at Class._renderTagGroup (https://fastcom-sa.odoo.com/web/content/561-4d46000/web.assets_backend.js:1697:248)

All suggestions are welcome, Thanks in advance! :)

Avatar
Zrušit
Nejlepší odpověď

Hi Cesar:

As mentioned by Hassan, one of the domain configurations seems to be incorrect, probably in one of the custom modules.

You can do the following to identify the source of the problem.

  1. Activate developer mode

  2. Go to Settings > Technical > Window Actions and search for rows using a filter of Domain Value contains user_id

  3. Check whether one of them has user_id.department_id on the right hand side of the domain expression

To confirm that this is the cause of the problem, you can try clearing out the domain field and see if the error goes away. Make sure you try this in a  local/dev environment.

The fix would depend on the requirement and the fields in the underlying model.

Avatar
Zrušit
Nejlepší odpověď

I think you have custom module that has wrong domain

Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
1
bře 15
4212
1
čvc 24
3581
1
srp 18
3194
1
bře 25
4407
1
čvc 23
2110