콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다

I have a custom module in which i want to import some of the updated data but getting an error

Unknown error during import: : 'field1' at row 2 Resolve other errors first

I am getting this error in some of the fields not all.


Below are the type and description and parameters of the field in which i am getting this error:-


field1 = fields.Many2one(comodel_name="ab", string="Field1", required=False, )
field2 = fields.Many2one(comodel_name="bc", string="Field2", required=False, )
field3 = fields.Char('Field3', size=30, required=True)
field4 = fields.Char('Field4', size=30)
field5 = fields.Char('Field5', size=30, required=True)
After including these fields in export and import resolves this issue but if i remove any of the fields in export and import of data gives this issue again. Why is this happening?
Is this error related to migration or something else i am missing? Do anyone have any idea how to solve this issue?


아바타
취소
베스트 답변

As per you code you have only two required fields field3 and field5 so these fields need to be included in the import file. 

Did you change the module code lately by setting required to False and not upgrade the module?

 You can enable developer mode and go to settings -> Technical -> Fields and search for fields you got them in your error and see if the required is checked. If its checked and in your code set to False, thats mean your module is not upgraded and you need to upgrade it.

아바타
취소
작성자

Hello Waleed, Thanks for the prompt response. My module is already upgraded and also as per your suggestion, I have checked those fields in which i am getting error while importing but they are not required.

관련 게시물 답글 화면 활동
1
5월 21
8378
1
5월 23
1966
0
8월 21
2654
1
5월 24
3136
5
11월 23
2978