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

I want to be able to see the button that changes from ACTIVE to ARCHIVED in equipment, as i do in Employees. I dont know how to code so id need to do it trough the Odoo 15.0 interface. 

Any ideas? thank you!


Awatar
Odrzuć
Autor

Thanks for your answer but i dont see it that way. The only actions i have are Duplicate or delete. Id be more than fine with adding archive to the action list, i just want to be able to archive, i dont care about it being a button or not

Najlepsza odpowiedź

add field name active in equipment model if it doesn't have one

active = fields.Boolean(string='active')

 by adding this odoo will give archive button in action by default.

Awatar
Odrzuć
Najlepsza odpowiedź

You don't need to, there is already a Menu option in the Action Menu:


Making it a button would increase the chances Users will accidentally click it, that's why we have it in the Action Menu.

When a record is archived, you will see a red banner in the corner:


Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
1
maj 23
1529
2
gru 22
11916
2
lis 22
3360
1
maj 22
3261