Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
error is 
Exception: Module loading tailor_management_sys failed: file tailor_management_sys\security/ir.model.access.csv could not be processed:
 No matching record found for external id 'model_tar_production' in field 'Model'
Missing required value for the field 'Model' (model_id)

i have double checked the __init__ and __manifest__ file for any typo error or
sequence but all was good and i also have checked that start log that if maybe there
appear any error or warning after restarting the server but there also
found nothing to be wrong so i have g through many documentation i have
edited the csv file by text editor too but also does not work.




csv file is

 id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
access_tailor_tailor,tailor_tailor,model_tailor_tailor,base.group_user,1,1,1,1
access_tailor_task,tailor_task,model_tailor_task,base.group_user,1,1,1,1
access_tar_production,tar_production,model_tar_production,base.group_user,1,1,1,1
Avatar
Buang
Jawaban Terbai

Hi,

This error is raised as it cannot find a model named tar_production in your module:  tailor_management_sys


If the model is defined in a different module, you have to give full external id of the model, suppose if this model is defined or added from a module named module_abc, then the full external id will be module_abc.model_tar_production


Also you can ensure these points:

* file has been imported in init

* service has been restarted

Thanks

Avatar
Buang
Penulis

i have imported it in __init__ and also restarted the server but nothing is working so, i have made some changes in fields of model .py file and also in xml but those changes also not reflecting after server restarting it start throwing error that these fields are not present in model i think there is something wrong with the module .py file these are not loading nor updating.

i believe the restarting is not successfull, you can ensure it by stop the service and see if odoo is still accessible or not

Penulis

when i stop the server odoo is still accessible.

so that means, the service is not stopped yet, you can forecefully kill using sudo kill -9 PROCESS_ID by listing the running process by ps aux||grep command .

if you are finding hard to do the above, just restart the machine, if it is in local

Penulis

thanks for helping after restarting my pc its start working.

Post Terkait Replies Tampilan Aktivitas
2
Mei 24
2469
2
Mei 24
2356
1
Apr 23
2964
0
Feb 22
104
2
Mar 22
5171