This commit makes hotkey uses more coherent throughout the entire codebase by setting alt+q as main shortcurt for confirm and default actions and alt+x for cancel actions. task-3370463 closes odoo/odoo#127469 Related: odoo/enterprise#43694 Signed-off-by: Mathieu Duckerts-Antoine (dam) <dam@odoo.com>
56 lines
3.7 KiB
XML
56 lines
3.7 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
<data>
|
|
<record id="slide_channel_invite_view_form" model="ir.ui.view">
|
|
<field name="name">slide.channel.invite.view.form</field>
|
|
<field name="model">slide.channel.invite</field>
|
|
<field name="arch" type="xml">
|
|
<form string="Compose Email" class="o_mail_composer_form">
|
|
<div class="alert alert-warning text-center mb-0" role="alert" attrs="{'invisible': ['|', ('channel_published', '=', True), ('channel_id', '=', False)]}">
|
|
This course is not published. Attendees may not be able to access its contents.
|
|
</div>
|
|
<sheet>
|
|
<field name="channel_id" invisible="1"/>
|
|
<field name="channel_published" invisible="1"/>
|
|
<field name="channel_visibility" invisible="1"/>
|
|
<field name="enroll_mode" invisible="1"/>
|
|
<group col="1">
|
|
<group col="2" attrs="{'invisible':['|', ('enroll_mode', '=', True), ('channel_visibility', '!=', 'public')]}">
|
|
<field name="channel_invite_url" readonly="1" widget="CopyClipboardChar"/>
|
|
<field name="send_email" widget="boolean_toggle" options="{'autosave': False}"/>
|
|
</group>
|
|
<group col="2" attrs="{'invisible':[('send_email', '=', False)]}">
|
|
<field name="partner_ids"
|
|
widget="many2many_tags_email"
|
|
placeholder="Add contacts..."
|
|
attrs="{'required':[('send_email', '=', True)]}"
|
|
context="{'force_email':True, 'show_email':True, 'no_create_edit': True, 'no_quick_create': True}"/>
|
|
</group>
|
|
<group col="2" attrs="{'invisible':[('send_email', '=', False)]}">
|
|
<field name="lang" invisible="1"/>
|
|
<field name="render_model" invisible="1"/>
|
|
<field name="subject" placeholder="Subject..."/>
|
|
</group>
|
|
<field name="can_edit_body" invisible="1"/>
|
|
<field name="body" class="oe-bordered-editor" options="{'style-inline': true}" attrs="{'readonly': [('can_edit_body', '=', False)], 'invisible':[('send_email', '=', False)]}" force_save="1"/>
|
|
<group attrs="{'invisible':[('send_email', '=', False)]}">
|
|
<group>
|
|
<field name="attachment_ids" widget="many2many_binary"/>
|
|
</group>
|
|
<group>
|
|
<field name="template_id" label="Use template" context="{'default_model': 'slide.channel.partner'}"/>
|
|
</group>
|
|
</group>
|
|
</group>
|
|
</sheet>
|
|
<footer>
|
|
<button string="Send" attrs="{'invisible':[('send_email', '=', False)]}" name="action_invite" type="object" class="btn-primary" data-hotkey="q"/>
|
|
<button string="Close" attrs="{'invisible':[('send_email', '=', True)]}" class="btn-secondary" special="cancel" data-hotkey="x"/>
|
|
<button string="Cancel" attrs="{'invisible':[('send_email', '=', False)]}" class="btn-secondary" special="cancel" data-hotkey="x"/>
|
|
</footer>
|
|
</form>
|
|
</field>
|
|
</record>
|
|
</data>
|
|
</odoo>
|