Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
3220 Widoki

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.

Awatar
Odrzuć
Najlepsza odpowiedź

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

Awatar
Odrzuć
Autor

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

Powiązane posty Odpowiedzi Widoki Czynność
1
lip 18
14214
2
sie 25
2698
1
lip 25
1069
1
sie 25
1151
0
maj 25
1506