Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Wishlist] calendar: Add option to disable Edit/Delete on Calendar popover #49001

Open
sswapnesh opened this issue Apr 4, 2020 · 6 comments
Open
Labels
Framework General frontend/backend framework issues Wishlist

Comments

@sswapnesh
Copy link
Contributor

Impacted versions: 13.0

Steps to reproduce: Go to Calendar --> Click on Record --> Its displays popover with Edit/Delete buttons in the footer
screenshot-localhost_8069-2020 04 04-15_43_46

Current behavior: No option to hide these Buttons

(These buttons are visible even User has no Rights to perform the Operation)

<a href="#" class="btn btn-primary o_cw_popover_edit">Edit</a>
<a href="#" class="btn btn-secondary o_cw_popover_delete ml-2">Delete</a>

Expected behavior: Add option to remove these buttons (Eg, delete=False or quick_delete=False)

Video/Screenshot link (optional):

(This is needed to fix #48734)

@Yenthe666 Yenthe666 added Framework General frontend/backend framework issues Wishlist labels Apr 4, 2020
@thanhdong210
Copy link

thanhdong210 commented Dec 25, 2022

i am using odoo 15 and I solved this by my own way, add this code in a xml file in static folder, just find the template of the pop up and replace there two button by none
<odoo>
    <t t-extend="CalendarView.event.popover">
        <t t-jquery=".o_cw_popover_edit" t-operation="replace">
        </t>
        <t t-jquery=".o_cw_popover_delete" t-operation="replace">
        </t>
    </t>
</odoo>

@mbucad
Copy link

mbucad commented Aug 2, 2023

In Odoo version 16, this code works, just need to create an xml file inside the static folder and declare the xml path to the module manifest file.

@juliusm254
Copy link

I cant seem to get this to work. Anything I am missing?
I used above code in a custom module and the delete option is still available in the calendar app

@juliusm254
Copy link

In Odoo version 16, this code works, just need to create an xml file inside the static folder and declare the xml path to the module manifest file.

Please share full code

@chitswe
Copy link

chitswe commented Dec 7, 2023

In odoo 16, you can use 'delete' attribute of calendar view.
<calendar delete="0" string="Details" date_start="date_start" date_stop="date_end" mode="month" color="event_type"> ... </calendar>

@precise-rawish
Copy link

anything for edit ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Framework General frontend/backend framework issues Wishlist
Projects
None yet
Development

No branches or pull requests

7 participants