PURPOSE Improve elearning backend usability and onboarding SPECIFICATIONS Improve layout of email send when invite. Do like a SO, add the join button in the notification email and not in the composer itself. It required to create a new notification layout specific to that invite wizard. Improve channel form view: remove statistics as they are already displayed in various places, add a stat button for content/visits, better display of karma (split gain from karma-based access rules). Automatically publish channel's product to avoid de-synchronization of publish flags. Remove unused channel_url field on wizard. LINKS Task ID-2241513 PR #55698
38 lines
1.7 KiB
XML
38 lines
1.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">
|
|
<group col="1">
|
|
<group col="2">
|
|
<field name="partner_ids"
|
|
widget="many2many_tags_email"
|
|
placeholder="Add existing contacts..."
|
|
context="{'force_email':True, 'show_email':True, 'no_create_edit': True}"/>
|
|
</group>
|
|
<group col="2">
|
|
<field name="subject" placeholder="Subject..."/>
|
|
</group>
|
|
<field name="body" options="{'style-inline': true}"/>
|
|
<group>
|
|
<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>
|
|
<footer>
|
|
<button string="Send" name="action_invite" type="object" class="btn-primary"/>
|
|
<button string="Cancel" class="btn-secondary" special="cancel"/>
|
|
</footer>
|
|
</form>
|
|
</field>
|
|
</record>
|
|
</data>
|
|
</odoo>
|