Author: |
Compassion CH |
License: |
AGPL-3 |
Branch: |
10.0 |
Repository: |
jonathantarabbia/compassion-switzerland |
Dependencies: |
child_switzerland,
contract_compassion,
mysql_connector,
partner_communication_switzerland,
partner_compassion,
queue_job,
and
sbc_compassion |
Languages: |
PO File (31, 1.8%),
Python (1187, 67.6%),
XML (495, 28.2%),
and
reStructuredText (42, 2.4%) |
Other branches: |
8.0,
9.0,
add-map-view-on-partner,
category-purpose,
devel,
fix-duplicate-advocate-details-id,
fix-forget-me,
fix-notification-donations,
fix-photos-zip-child,
fix-wizard-checker-partner,
improve-detection-scan-letter,
improve-donation,
improve-website,
limit-gift-communication,
and
mode-payment-brv |
Other repositories: |
Alaggaerion/compassion-switzerland,
CompassionCH/compassion-switzerland,
Grazia976/compassion-switzerland,
Nooka10/compassion-switzerland,
Quillasp/compassion-switzerland,
SylvainLosey/compassion-switzerland,
Theyiot/compassion-switzerland,
WithPrice/compassion-switzerland,
c-meier/compassion-switzerland,
cmtCousteau/compassion-switzerland,
cokotracy/compassion-switzerland,
consultingerp/theme_crowdfunding,
davidwul/compassion-switzerland,
ecino/compassion-switzerland,
eicher31/compassion-switzerland,
jklay/compassion-switzerland,
joblo-compassion/compassion-switzerland,
josueBulle/compassion-switzerland,
maxime-beck/compassion-switzerland,
nbornand/compassion-switzerland,
nfluckiger/compassion-switzerland,
quentingigon/compassion-switzerland,
samuel-fringeli/compassion-switzerland,
samybucher/compassion-switzerland,
simhayoz/compassion-switzerland,
suningwz/compassion-switzerland,
vidtsin/compassion-switzerland,
vwvw/compassion-switzerland,
and
wvmrtn/compassion-switzerland |
<img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.svg">
<a name="sponsor-to-beneficiary-for-switzerland"></a>
<h2>Sponsor to beneficiary for Switzerland</h2>
<p>This module tailors letters import for reading PDFs from the NAS.
It adds option to import letters with import configuration and option to select
multiple letters on import.</p>
<p>It also manage the Swiss translation platform for letters that need translation</p>
<a name="configuration"></a>
<h2>Configuration</h2>
<p>WARNING: You must install detectlanguage library on your server. It's used to
detect language from a text.
<a class="reference external" href="https://github.com/detectlanguage/detectlanguage-python">https://github.com/detectlanguage/detectlanguage-python</a></p>
<p>pip install detectlanguage</p>
<p>Add the following parameters to your Odoo configuration file:</p>
<ul class="simple">
<li><code>detect_language_api_key</code> : api key for use detectlanguage library</li>
<li><code>smb_user</code> : user for connecting on the NAS of Compassion with Samba</li>
<li><code>smb_pwd</code> : password for Samba</li>
<li><code>smb_ip</code> : IP address of the NAS of Compassion</li>
<li><code>smb_port</code> : Samba port of the NAS</li>
</ul>
<a name="usage"></a>
<h2>Usage</h2>
<p>Used by the onramp_compassion module to send an email on reception of a new
child letter.</p>
<p>The letter is sent to the sponsor's email address, using a SendGrid email
template corresponding to the sponsor's language. Templates for every language
have to be registered in the TemplateList model after creating them on the
<a class="reference external" href="https://sendgrid.com/templates">SendGrid web interface</a>.</p>
<p>The template should contain the following substitution variables which will be
replaced with corresponding values:</p>
<ul class="simple">
<li><code>{sponsor}</code> Full name of the sponsor</li>
<li><code>{child}</code> First name of the child</li>
<li><code>{letter_url}</code> URL where the letter can be viewed/downloaded</li>
</ul>
<a name="credits"></a>
<h2>Credits</h2>
<a name="contributors"></a>
<h3>Contributors</h3>
<ul class="simple">
<li>Emanuel Cino <<a class="reference external" href="mailto:ecino@compassion.ch">ecino@compassion.ch</a>></li>
<li>Stéphane Eicher <<a class="reference external" href="mailto:eicher31@hotmail.com">eicher31@hotmail.com</a>></li>
<li>Michaël Sandoz <<a class="reference external" href="mailto:sandozmichael@hotmail.com">sandozmichael@hotmail.com</a>></li>
</ul>
<a name="maintainer"></a>
<h3>Maintainer</h3>
<p>This module is maintained by
<a class="reference external" href="https://www.compassion.ch">Compassion Switzerland</a>.</p>