PURPOSE Before this commit, it was possible to send an email to all attendees only. After this commit, it will be possible to send an email to attendees that completed the course. SPECIFICATION Adds a searchable o2m field in the res.partner model to find all the completed courses linked to that partner. LINKS Task ID : 2216352 PR : #49592
32 lines
1.4 KiB
XML
32 lines
1.4 KiB
XML
<?xml version="1.0"?>
|
|
<odoo>
|
|
<record id="slide_channel_view_form" model="ir.ui.view">
|
|
<field name="name">slide.channel.view.form.inherit.mass.mailing</field>
|
|
<field name="model">slide.channel</field>
|
|
<field name="inherit_id" ref="website_slides.view_slide_channel_form"/>
|
|
<field name="arch" type="xml">
|
|
<button name="action_channel_invite" position="after">
|
|
<button name="action_mass_mailing_attendees" string="Contact Attendees" type="object"
|
|
class="oe_highlight" attrs="{'invisible': [('members_count', '=', 0)]}"
|
|
groups="mass_mailing.group_mass_mailing_user"/>
|
|
</button>
|
|
</field>
|
|
</record>
|
|
|
|
<record id="slide_channel_view_kanban" model="ir.ui.view">
|
|
<field name="name">slide.channel.view.kanban.inherit.mass.mailing</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="//div[@name='action_channel_invite']" position="after">
|
|
<div role="menuitem">
|
|
<a name="action_mass_mailing_attendees" type="object"
|
|
groups="mass_mailing.group_mass_mailing_user">
|
|
Contact Attendees
|
|
</a>
|
|
</div>
|
|
</xpath>
|
|
</field>
|
|
</record>
|
|
</odoo>
|