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
37 lines
1.9 KiB
XML
37 lines
1.9 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
<record id="slide_channel_view_form" model="ir.ui.view">
|
|
<field name="name">slide.channel.view.form.inherit.survey</field>
|
|
<field name="model">slide.channel</field>
|
|
<field name="inherit_id" ref="website_slides.view_slide_channel_form"/>
|
|
<field name="arch" type="xml">
|
|
<xpath expr="//span[@name='members_done_count_label']" position="replace">
|
|
<field name="nbr_certification" invisible="1"/>
|
|
<span class="o_stat_text" attrs="{'invisible': [('nbr_certification', '>', 0)]}">Finished</span>
|
|
<span class="o_stat_text" attrs="{'invisible': [('nbr_certification', '=', 0)]}">Certified</span>
|
|
</xpath>
|
|
<xpath expr="//field[@name='slide_type']" position="after">
|
|
<field name="survey_id"/>
|
|
</xpath>
|
|
<xpath expr="//create[@name='add_slide_lesson']" position="after">
|
|
<create name="add_slide_certificate" string="Add Certification" groups="survey.group_survey_user" context="{'default_slide_type': 'certification'}"/>
|
|
</xpath>
|
|
</field>
|
|
</record>
|
|
|
|
<record id="slide_channel_view_kanban" model="ir.ui.view">
|
|
<field name="name">slide.channel.view.kanban.inherit.survey</field>
|
|
<field name="model">slide.channel</field>
|
|
<field name="inherit_id" ref="website_slides.slide_channel_view_kanban"/>
|
|
<field name="arch" type="xml">
|
|
<xpath expr="//field[@name='website_published']" position="after">
|
|
<field name="nbr_certification"/>
|
|
</xpath>
|
|
<xpath expr="//span[@name='done_members_count_label']" position="replace">
|
|
<t t-if="record.nbr_certification.raw_value"><span class="text-muted">Certified</span></t>
|
|
<t t-else=""><span class="text-muted">Finished</span></t>
|
|
</xpath>
|
|
</field>
|
|
</record>
|
|
</odoo>
|