diff --git a/models/calendar.py b/models/calendar.py index 093a44bf85c99be0bdec2d1a27bd7471971d57cd..42787c3861b7f87a002b4c399e4de402f5fa7b1f 100644 --- a/models/calendar.py +++ b/models/calendar.py @@ -330,8 +330,4 @@ class CGScopCalendar(models.Model): 'default_type': event.type, 'default_ur_financial_system_id': event.ur_financial_system_id.id, }, - 'flags': {'form': { - 'action_buttons': False, - 'options': { - 'mode': 'edit'}}}, } diff --git a/views/calendar.xml b/views/calendar.xml index d9123a07b4afd93dba0394daa48c7167cdf77203..b1919575756128772f68e808756163c59058123e 100644 --- a/views/calendar.xml +++ b/views/calendar.xml @@ -190,7 +190,6 @@ <calendar position="attributes"> <attribute name="quick_add">False</attribute> <attribute name="readonly_form_view_id">cgscop_calendar.view_calendar_cooperative_form_inherited</attribute> - <attribute name="ur_sidebar_filter">True</attribute> </calendar> <field name="partner_ids" position="before"> <field name="project_id" invisible="1"/> @@ -266,6 +265,12 @@ <!-- ****************************** *** Actions ****************************** --> + <!-- Override Calendar Event action --> + <record id="calendar.action_calendar_event" model="ir.actions.act_window"> + <field name="context">{ 'ur_sidebar_filter': True }</field> + </record> + + <!-- Ressource Action --> <record id="action_calendar_scop" model="ir.actions.act_window"> <field name="name">Agenda UR</field> <field name="res_model">calendar.event</field>