From: Ludovic CHEVALIER Date: Wed, 30 Sep 2015 08:09:40 +0000 (+0200) Subject: [DATA] ~sent invoice mail X-Git-Tag: production~46 X-Git-Url: http://git.cyclocoop.org/?p=burette%2Flhc.git;a=commitdiff_plain;h=c9a750b841211d9618c7456f755999efd91b1d22 [DATA] ~sent invoice mail --- diff --git a/__openerp__.py b/__openerp__.py index deb668f..2c859e5 100644 --- a/__openerp__.py +++ b/__openerp__.py @@ -42,8 +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', + 'data/account_invoice.xml', 'view/account_invoice.xml', 'view/base.xml', 'view/hr_expense.xml', diff --git a/data/account.xml b/data/account.xml deleted file mode 100644 index 667d7a6..0000000 --- a/data/account.xml +++ /dev/null @@ -1,64 +0,0 @@ - - - - - ${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 -

-
- - ]]>
-
-
-
diff --git a/data/account_invoice.xml b/data/account_invoice.xml new file mode 100644 index 0000000..21d06d2 --- /dev/null +++ b/data/account_invoice.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 à nous 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 +

+
+ + ]]>
+
+
+
diff --git a/data/wiki.xml b/data/wiki.xml deleted file mode 100644 index 86c8221..0000000 --- a/data/wiki.xml +++ /dev/null @@ -1,5 +0,0 @@ - - - - -