From 2241aa8d08765ef62332595d50c0ae3a5c562255 Mon Sep 17 00:00:00 2001 From: Ludovic CHEVALIER Date: Sun, 27 Sep 2015 10:29:08 +0200 Subject: [PATCH] [DATA] ~'send by email' message template --- __openerp__.py | 1 + data/account.xml | 64 ++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 65 insertions(+) create mode 100644 data/account.xml diff --git a/__openerp__.py b/__openerp__.py index 02e9b8e..cdba7f8 100644 --- a/__openerp__.py +++ b/__openerp__.py @@ -42,6 +42,7 @@ Module pour les personnalisations de L'Heureux Cyclage 'update_xml': [ 'security/lhc_custom_oe_security.xml', 'security/ir.model.access.csv', + 'data/account.xml', 'data/wiki.xml', 'view/account_invoice.xml', 'view/account.xml', diff --git a/data/account.xml b/data/account.xml new file mode 100644 index 0000000..667d7a6 --- /dev/null +++ b/data/account.xml @@ -0,0 +1,64 @@ + + + + + ${object.company_id.name|safe} - Facture ${object.number or 'n/a'} + +

Bonjour ${object.partner_id.name},

+ +

Voici une facture pour vous:

+.... +

+   REFERENCES
+   Numéro de facture: ${object.number}
+   Montant total: ${object.amount_total} ${object.currency_id.name}
+   Date: ${object.date_invoice}
+ % if object.origin: +   Référence du devis: ${object.origin}
+ % endif + % if object.user_id: +   Contact: ${object.user_id.name} + % endif +

.. +.... +
+

Si vous avez une question, n'hésitez pas à me contacter.

+
+
+
+ ${object.company_id.name} +
+
+ + % if object.company_id.street: + ${object.company_id.street}
+ % endif + % if object.company_id.street2: + ${object.company_id.street2}
+ % endif + % if object.company_id.city or object.company_id.zip: + ${object.company_id.zip} ${object.company_id.city}
+ % endif + % if object.company_id.country_id: + ${object.company_id.state_id and ('%s, ' % object.company_id.state_id.name) or ''} ${object.company_id.country_id.name or ''}
+ % endif +
+ % if object.company_id.phone: +
${object.company_id.website} +
+ %endif +

+
+ + ]]>
+
+
+
-- 2.20.1