Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
3157 Lượt xem

I need to deactivate a company instead of delete. I tried to add an  `active` field of Boolean type by default of True value in `res.company` model. But when I added this field the companies that I have created earlier disappeared and the companies which I created after adding the Boolean field also not listed in the tree view.

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Hi kabeer,


i am suggesting you to check any field named as active in res.company

if not exist then add as boolean field and set value as False for the company you want

hope it will work for you


thanks and regards

Haresh Kansara

Ảnh đại diện
Huỷ bỏ
Tác giả

@Haresh i hope i understood my question. I tried you suggested solution. And i already mentioned in my question.

Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 7 18
14157
2
thg 8 25
2430
1
thg 7 25
919
1
thg 8 25
1151
0
thg 5 25
1360