Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
3 Replies
5596 Tampilan

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
Buang
Jawaban Terbai

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
Buang
Penulis Jawaban Terbai

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
Buang
Jawaban Terbai

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

Thanks

Avatar
Buang

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

Post Terkait Replies Tampilan Aktivitas
3
Mei 23
3093
2
Nov 22
2095
1
Mar 15
5626
1
Des 24
11541
1
Jun 24
1910