Skip to Content
Menu
This question has been flagged
3 Replies
5139 Views

Hi, I hope someone can help me figure out this.

I cannot open any  1) Employee-related views by department or by each employee and

Every time I click the button -> 
Object: hr.department
Button Type: action
Action ID: 179

the page displays:
 Uncaught Promise > Cannot read properties of undefined (reading 'relation') TypeError: Cannot read properties of undefined (reading 'relation'). 

This happened after uninstalling custom modules related to employees.


UncaughtPromiseError > TypeError

Uncaught Promise > Cannot read properties of undefined (reading 'relation')

TypeError: Cannot read properties of undefined (reading 'relation')

at https://www.emergeone.co/web/assets/3901-65545fa/web.assets_backend.min.js:6669:84

at traverse (https://www.emergeone.co/web/assets/3901-65545fa/web.assets_backend.min.js:6662:200)

at https://www.emergeone.co/web/assets/3901-65545fa/web.assets_backend.min.js:6662:242

at Function.each (https://www.emergeone.co/web/assets/3900-612d6c1/web.assets_common.min.js:173:149)

at traverse (https://www.emergeone.co/web/assets/3901-65545fa/web.assets_backend.min.js:6662:211)

at https://www.emergeone.co/web/assets/3901-65545fa/web.assets_backend.min.js:6662:242

at Function.each (https://www.emergeone.co/web/assets/3900-612d6c1/web.assets_common.min.js:173:149)

at traverse (https://www.emergeone.co/web/assets/3901-65545fa/web.assets_backend.min.js:6662:211)

at https://www.emergeone.co/web/assets/3901-65545fa/web.assets_backend.min.js:6662:242

at Function.each (https://www.emergeone.co/web/assets/3900-612d6c1/web.assets_common.min.js:173:149)

2) After uninstalling custom modules, I cannot edit employee details in the backend as well (no edit option) even if I'm logged in as admin or manager user groups. 



Avatar
Discard
Best Answer

Maybe I'm a little bit late, but in case someone is stuck there. I had this error because I was calling from my custom action to a view_id from another model.

Avatar
Discard
Author Best Answer

Hi Niyas Raphy. I've updated the hr (Employee) module through the terminal and the error still shows up. and these are the errors in the terminal. I have uninstalled the formio custom module as well that might caused the issue.


2023-08-14 19:56:40,957 24357 WARNING emergehq061823 odoo.modules.loading: invalid custom view(s) for model ir.actions.server: Error while validating view near:

Field "formio_ref" does not exist in model "ir.actions.server" 

2023-08-14 19:56:40,961 24357 WARNING emergehq061823 odoo.modules.loading: invalid custom view(s) for model ir.attachment: Error while validating view near:                   

                   


Field "formio_asset_formio_version_id" does not exist in model "ir.attachment" 

2023-08-14 19:56:40,976 24357 WARNING emergehq061823 odoo.modules.loading: invalid custom view(s) for model res.lang: Error while validating view near:

                       

             

Field "formio_short_code" does not exist in model "res.lang" 

2023-08-14 19:56:41,025 24357 WARNING emergehq061823 odoo.modules.loading: invalid custom view(s) for model res.config.settings: Error while validating view near:



Field "spiffy_favicon" does not exist in model "res.config.settings" 

2023-08-14 19:56:41,060 24357 WARNING emergehq061823 odoo.modules.loading: invalid custom view(s) for model account.analytic.account: Error while validating view near:



Field "crossovered_budget_line" does not exist in model "account.analytic.account" 

2023-08-14 19:56:41,078 24357 WARNING emergehq061823 odoo.modules.loading: invalid custom view(s) for model hr.employee: Error while validating view near:


Field "payslip_count" does not exist in model "hr.employee" 

2023-08-14 19:56:41,097 24357 WARNING emergehq061823 odoo.modules.loading: invalid custom view(s) for model hr.contract: Error while validating view near:                       


Field "notice_days" does not exist in model "hr.contract" 

2023-08-14 19:56:41,103 24357 WARNING emergehq061823 odoo.modules.loading: invalid custom view(s) for model hr.leave.type: Error while validating view near:



Field "code" does not exist in model "hr.leave.type" 

2023-08-14 19:56:41,182 24357 INFO emergehq061823 odoo.modules.loading: Modules loaded. 

2023-08-14 19:56:41,197 24357 INFO emergehq061823 odoo.modules.registry: Registry loaded in 11.821s 

2023-08-14 19:56:41,197 24357 INFO emergehq061823 odoo.addons.base.models.ir_module: getting next ir.actions.todo() 

{'type': 'ir.actions.act_url', 'target': 'self', 'url': '/web'}


Avatar
Discard
Best Answer

Hi,
Can you try upgrading the hr (Employee) module in your database and see it its resolves the issue.

Thanks

Avatar
Discard

Updating the hr (Employee) module in your database could be worth a shot to see if it resolves the issue. https://gorillatag.io/

Related Posts Replies Views Activity
3
May 23
2582
2
Nov 22
1839
1
Mar 15
5364
1
Dec 24
10882
1
Jun 24
1506