Elouan Le Bars
5 years ago
6 changed files with 3786 additions and 10 deletions
-
1beesdoo_shift/__openerp__.py
-
19beesdoo_shift/data/cron.xml
-
58beesdoo_shift/data/mail_template.xml
-
1836beesdoo_shift/i18n/fr.po
-
1837beesdoo_shift/i18n/fr_BE.po
-
45beesdoo_shift/models/task.py
@ -0,0 +1,58 @@ |
|||
<?xml version="1.0" encoding="utf-8"?> |
|||
<odoo> |
|||
<!-- Mail template are declared in a NOUPDATE block |
|||
so users can freely customize/delete them --> |
|||
<data noupdate="1"> |
|||
<record id="email_template_shift_summary" model="mail.template"> |
|||
<field name="name">Shift Summary</field> |
|||
<field name="subject">Your next shift (${format_tz(object.start_time,object.worker_id.tz or 'Europe/Brussels','%d.%m.%Y - %H:%M')})</field> |
|||
<field name="email_from">${object.worker_id.company_id.email}</field> |
|||
<field name="partner_to">${object.replaced_id.id or object.worker_id.id|safe}</field> |
|||
<field name="model_id" ref="model_beesdoo_shift_shift"/> |
|||
<field name="auto_delete" eval="True"/> |
|||
<field name="lang">${object.worker_id.lang}</field> |
|||
<field name="body_html"><![CDATA[ |
|||
<div style="font-family: 'Lucica Grande', Ubuntu, Arial, Verdana, sans-serif; font-size: 12px; color: rgb(34, 34, 34); background-color: #FFF; "> |
|||
|
|||
<p>Hello ${object.worker_id.name},</p> |
|||
|
|||
<p>You are awaited the ${format_tz(object.start_time,object.worker_id.tz or 'Europe/Brussels','%d.%m.%Y')} |
|||
for the shift starting at ${format_tz(object.start_time,object.worker_id.tz or 'Europe/Brussels','%H:%M')}. |
|||
|
|||
<br/><br/>Please contact us at ${object.worker_id.company_id.email} if you have any trouble attending the shift. |
|||
</p> |
|||
<br/> |
|||
<p>Sustainably yours,</p> |
|||
<p>${object.worker_id.company_id.name}.</p> |
|||
|
|||
% if object.worker_id.company_id.street: |
|||
${object.worker_id.company_id.street} |
|||
% endif |
|||
% if object.worker_id.company_id.street2: |
|||
${object.worker_id.company_id.street2}<br/> |
|||
% endif |
|||
% if object.worker_id.company_id.city or object.worker_id.company_id.zip: |
|||
${object.worker_id.company_id.zip} ${object.worker_id.company_id.city}<br/> |
|||
% endif |
|||
% if object.worker_id.company_id.country_id: |
|||
${object.worker_id.company_id.state_id and ('%s, ' % object.worker_id.company_id.state_id.name) or ''} ${object.worker_id.company_id.country_id.name or ''}<br/> |
|||
% endif |
|||
% if object.worker_id.company_id.phone: |
|||
Phone: ${object.worker_id.company_id.phone} |
|||
% endif |
|||
|
|||
% if object.worker_id.company_id.website: |
|||
<div> |
|||
Web : <a href="${object.worker_id.company_id.website}">${object.worker_id.company_id.website}</a> |
|||
</div> |
|||
%endif |
|||
% if object.worker_id.company_id.logo_url: |
|||
<div> |
|||
<img src=${object.worker_id.company_id.logo_url}> |
|||
</div> |
|||
%endif |
|||
</div> |
|||
]]></field> |
|||
</record> |
|||
</data> |
|||
</odoo> |
1836
beesdoo_shift/i18n/fr.po
File diff suppressed because it is too large
View File
File diff suppressed because it is too large
View File
1837
beesdoo_shift/i18n/fr_BE.po
File diff suppressed because it is too large
View File
File diff suppressed because it is too large
View File
Write
Preview
Loading…
Cancel
Save
Reference in new issue