Files
odoo_source/addons/website_mail/data/mail_channel_data.xml
T
kujiu 9de1bc0eef [IMP] Improve compatibility with screen readers (accessibility) (#24574)
Today, Odoo is really tricky to use without seeing the screen, it must be improved to be usable.

This PR forbid to use labels without a "for" attribute, add some title, rule and aria attributes in HTML. With that, Odoo will be fully usable with a screen reader.


* [IMP] Labels must have a for attribute. Improve accessibility.
* [IMP] Better error message when trying to read a missing cached value
* [FIX] Add some aria-label and title attributes for screen readers.
* [FIX] Template name is not included in the error message in case of SyntaxError in QWeb
* [FIX] Improve the Tour failed at step error message to be more explicit.
* [IMP] Add aria-labels
* [FIX] Add missing aria-label on failing test
* [IMP] aria-hidden means hidden. Fix all bad aria-hidden and hide aria-hidden for all.
* [IMP] Color names on kanban views and many2many tags
* [IMP] Add some checks on views for accessibility.
* [IMP] Add `alt` attribute on `img` tags.
* [IMP] Add aria-label and title on non-described icons
* [IMP] Add button role to widgets with btn class
* [IMP] Translate aria and formatted attributes.
* [IMP] Remove wrong aria-labelledby
* [IMP] Add menu role on dropdowns
* [IMP] Buttons must be focusable
* [IMP] Add aria attributes on progress bars
* [IMP] Improve accessibility of basic widgets
* [IMP] Change main layout to more semantic tags
* [IMP] Add menuitem role when missing
* [IMP] Remove wrong role='presentation'
* [IMP] Improve accessibility of tab panels
* [IMP] Add aria-invalid on invalid fields
* [IMP] Add aria-sort on ordered columns
* [IMP] Add role on alerts
* [IMP] Use dialog role, header, main and footer tags for modals
* [IMP] Add labels on o_status
* [IMP] Improve accessibility of kanban view with feeds and articles
* [IMP] Add alerts in case of new messages
* [IMP] Add widget, navigation or img role to aria-labelled items
2018-06-22 21:22:21 +02:00

121 lines
7.2 KiB
XML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<data noupdate="1">
<record id="channel_public" model="mail.channel">
<field name="name">Discussion Group</field>
<field name="public">public</field>
<field name="description">Public Discussion Group</field>
</record>
<!-- notify to admin of module installation -->
<record id="mail_template_data_module_install_website_mail" model="mail.template">
<field name="name">website module install then send email</field>
<field name="subject">Your business is reachable from anywhere, anytime !</field>
<field name="email_from">help@odoo.com</field>
<field name="email_to">${user.email|safe}</field>
<field name="lang">${user.lang}</field>
<field name="model_id" ref="base.model_ir_module_module"/>
<field name="auto_delete" eval="True"/>
<field name="scheduled_date">${(datetime.datetime.now() + relativedelta(days=1)).strftime('%Y-%m-%d %H:%M')}</field>
<field name="body_html" ><![CDATA[
<div style="margin: 10px auto;">
<table cellspacing="0" cellpadding="0" style="width:100%;">
<tbody>
<tr>
<td style="padding:2px;width:30%;">
<img src="web/static/src/img/logo.png" alt="Logo"/>
</td>
<td style="vertical-align: top; padding: 8px 10px;text-align: left;font-size: 14px;">
<a href="web/login" style="float:right ;margin:15px auto;background: #875A7B;border-radius: 5px;color: #ffffff;font-size: 16px;padding: 10px 20px 10px 20px;text-decoration: none;">Auto Login</a>
</td>
</tr>
</tbody>
</table>
<table style="width:100%;text-align:justify;margin:0 auto;border-collapse:collapse;border-top:1px solid lightgray"">
<tbody>
<tr>
<td style="padding:15px 10px;font-size:20px">
<p style="color:#875A7B;margin:0" >Awesome!</p><br>
<p dir="ltr" style="font-size:15px;margin-top:0pt;margin-bottom:0pt;">
<span>Your website is now online!</span></p><br>
<p dir="ltr" style="margin-top:0pt;margin-bottom:8pt;">
<span style="font-size:13px;font-weight:bold; ">Did you know?</span></p>
<ul style="margin-top:0pt;margin-bottom:0pt;font-size:13px;list-style-type:disc;">
<li dir="ltr">
<p dir="ltr" style="margin-top:0pt;margin-bottom:0pt;">
<span>From the Customize / Install Apps menu, you can install new features (forum, blog, eCommerce, jobs, ...)</span>
</p>
</li>
<li dir="ltr">
<p dir="ltr" style="margin-top:0pt;margin-bottom:8pt;">
<span>Customize the look of your website with the Customize menu.</span>
</p>
</li>
</ul> <br>
<ul style="margin-top:0pt;margin-bottom:0pt;font-size:13px;list-style-type:disc;">
<li dir="ltr">
<p dir="ltr" style="margin-top:0pt;margin-bottom:0pt;">
<span>Grow your traffic by optimizing your referencing with our SEO tool,</span>
</p>
</li>
<li dir="ltr">
<p dir="ltr" style="margin-top:0pt;margin-bottom:0pt;">
<span>Improve your conversion from visitor to customer with the Website Live support,</span>
</p>
</li>
<li dir="ltr">
<p dir="ltr" style="margin-top:0pt;margin-bottom:0pt;">
<span>Broaden your audience with the multi-language support,</span>
</p>
</li>
<li dir="ltr">
<p dir="ltr" style="margin-top:0pt;margin-bottom:0pt;">
<span>Go further into the customization with our advanced HTML editor,</span>
</p>
</li>
<li dir="ltr">
<p dir="ltr" style="margin-top:0pt;margin-bottom:8pt;">
<span>And much more...</span>
</p>
</li>
</ul>
<br>
<p dir="ltr" style="font-size:13px;line-height:1.3;margin-top:0pt;margin-bottom:8pt;">
<span style="font-weight:bold;">Need Help?</span>
<span style="font-style:italic;">You’re not alone</span>
</p>
<p dir="ltr" style="font-size:13px;margin-top:0pt;margin-bottom:8pt;">
<span>We would be delighted to assist you along the way. Contact us through our
<a href="https://www.odoo.com/help">support form</a> if you have any question.
You can also discover how to get the best out of Odoo with our </span>
<a href="https://www.odoo.com/documentation/user">
<span style="text-decoration:underline;">User Documentation</span></a>
</span><span> or with our </span>
<a href="https://www.odoo.com/documentation">
<span style="text-decoration:underline;">API Documentation</span></a>
</p>
<p dir="ltr" style="font-size:13px;margin-top:0pt;margin-bottom:8pt;"><span>Enjoy your Odoo experience,</span></p>
</td>
</tr>
</tbody>
</table>
<div dir="ltr" style="font-size:13px;margin-top:0pt;margin-bottom:8pt;color:grey">
<span><br/>-- <br/>The Odoo Team<br/>PS: People love Odoo, check </span><a href="https://twitter.com/odoo/favorites"><span style="text-decoration:underline;">what they say about it.</span></a></span>
</div>
</div>]]></field>
</record>
</data>
<data noupdate="1">
<function
id="mail_template_function_module_install_website_mail"
model="mail.template"
name="send_mail"
eval="[ref('mail_template_data_module_install_website_mail'), ref('base.module_website_mail')]"/>
</data>
</odoo>