Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
2 ตอบกลับ
7714 มุมมอง

Hello,


I have started maintaining an installation of Odoo 13 that seems to be missing the Archive/Unarchive Actions for records and I have been trying to add this functionality back without success so far.


I hope people here can help me!


อวตาร
ละทิ้ง
ผู้เขียน

Hello Niyas,

thank you for your reply, the forum does not yet allow me to answer you directly so I hope you see this: 

I tried that approach. The option is missing for all models including res.users which is currently the most pressing for me, so I tried adding a new one and adding it to the form view, but sadly that did not fix the issue. 

คำตอบที่ดีที่สุด

Hi,

If there is no active field in the model, just add a active field of type of type boolean in the model and then add the same field to the view and keep it as invisible. Now you will have archive/unarchive option in the action button.

For more, see: https://www.youtube.com/watch?v=wNRONFlI3xo

Thanks

อวตาร
ละทิ้ง
ผู้เขียน

Hello Niyas,
I am commenting here since I cannot comment on your other comment: yes, i am logged in as admin and i rechecked the access rights.

คำตอบที่ดีที่สุด

Hi  Friederike Thies,

Archive and Unarchive options are available on a record if the model has a Boolean field named active

Follow these steps to add the active field,


In Py

active = fields.Boolean(default=True)

In XML,




Hope it helps,

Kiran K


อวตาร
ละทิ้ง

In XML,

<field name="active" invisible="1"/>

ผู้เขียน

Hello Kiran,

I tried that option on the Res.Users model but sadly it did not affect anything, the archive option is still missing.

Related Posts ตอบกลับ มุมมอง กิจกรรม
1
เม.ย. 25
1132
Odoo Server Error แก้ไขแล้ว
1
เม.ย. 25
1283
1
พ.ย. 24
1414
0
พ.ย. 24
1507
0
ต.ค. 24
1528