Skip to content
Permalink
Browse files

[IMP] web, *: Click on the edit button in the popover. The popup shou…

…ld always open in edit mode.
  • Loading branch information...
jat-odoo committed Feb 21, 2019
1 parent 2563444 commit c3cd7f9b4d0b770f655d160f40029bbc92ee3693
@@ -229,47 +229,12 @@
</field>
</record>

<record id="view_calendar_event_form_popup" model="ir.ui.view">
<field name="name">calendar.event.form</field>
<field name="model">calendar.event</field>
<field name="priority" eval="2"/>
<field name="arch" type="xml">
<form string="Meetings">
<button string="Document" class="oe_stat_button float-right" icon="fa-bars" type="object" name="action_open_calendar_event" attrs="{'invisible': ['|', ('res_model', '=', False), ('res_id', '=', False)]}"/>
<field name="res_model" invisible="1" />
<field name="res_id" invisible="1" />
<field name="state" invisible="1"/>
<field name="is_attendee" invisible="1"/>
<field name="attendee_status" invisible="1"/>
<group>
<group>
<field name="start_date" string="Starting at" attrs="{'invisible': [('allday','=',False)]}"/>
<field name="start_datetime" string="Starting at" attrs="{'invisible': [('allday','=',True)]}"/>
<label for="duration" attrs="{'invisible': [('allday','=',True)]}"/>
<div attrs="{'invisible': [('allday','=',True)]}">
<field name="duration" widget="float_time" class="oe_inline"/>
<span> hours</span>
</div>
<field name="allday" class="oe_inline" attrs="{'invisible': [('allday','=',False)]}"/>
<field name="partner_ids" widget="many2manyattendee" string="Attendees"/>
</group>
<group>
<field name="location"/>
<field name="categ_ids" widget="many2many_tags"/>
<field name="alarm_ids" widget="many2many_tags" />
</group>
</group>
</form>
</field>
</record>

<record id="view_calendar_event_calendar" model="ir.ui.view">
<field name="name">calendar.event.calendar</field>
<field name="model">calendar.event</field>
<field name="priority" eval="2"/>
<field name="arch" type="xml">
<calendar string="Meetings" date_start="start" date_stop="stop" date_delay="duration" all_day="allday"
readonly_form_view_id="%(calendar.view_calendar_event_form_popup)s"
event_open_popup="true"
event_limit="5"
color="partner_id">
@@ -374,7 +374,7 @@ var CalendarController = AbstractController.extend({
}
self.dialog = new dialogs.FormViewDialog(self, options).open();
};
open_dialog(true);
open_dialog(this.readonlyFormViewId);
},
/**
* @private

0 comments on commit c3cd7f9

Please sign in to comment.
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.