-
Notifications
You must be signed in to change notification settings - Fork 0
[18.0][MIG] pos_ticket_send_by_mail: Migration to 18.0 #6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
P-H-Phuc
wants to merge
13
commits into
18.0
Choose a base branch
from
18.0-mig-pos_ticket_send_by_mail
base: 18.0
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
27f1131
[MIG]Migration to 12.0: email_pos_receipt
f8f2651
[FIX] pos_ticket_send_by_mail: Solve test case issue
chetanrdhaduk e1ad626
Optimise the code
chetanrdhaduk ceff5b4
[UPD] Update pos_ticket_send_by_mail.pot
druidoo-transbot bfab5f5
[IMP] pos_ticket_send_by_mail: email templates are no_update = True
f1f9825
Solve tranlsation issue.
chetanrdhaduk 3c57361
[UPD] Update pos_ticket_send_by_mail.pot
druidoo-transbot f6ea1cf
[UPD] pos_ticket_send_by_mail: Update pos_ticket_send_by_mail.pot
druidoo-transbot 7b2d28e
Translated using Weblate (French)
msdruidoo efefcc0
[UPD] pos_ticket_send_by_mail: Help with test of mass mailing
nguyenminhchien 8fdd7c7
[ADD] pos_ticket_send_by_mail: Automatic POS receipt by mail, except …
nguyenminhchien 7ca73ec
[IMP] pos_ticket_send_by_mail: pre-commit auto fixes
P-H-Phuc b5cf8f2
[MIG] pos_ticket_send_by_mail: Migration to 18.0
P-H-Phuc File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,35 @@ | ||
| .. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg | ||
| :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html | ||
| :alt: License: AGPL-3 | ||
|
|
||
| ======================= | ||
| POS Ticket Send By Mail | ||
| ======================= | ||
|
|
||
| This module allow to send the mail to customer from point of sale | ||
| base on configuration. | ||
|
|
||
| Credits | ||
| ======= | ||
|
|
||
| Authors | ||
| ~~~~~~~ | ||
|
|
||
| * Druidoo | ||
|
|
||
| Contributors | ||
| ~~~~~~~~~~~~ | ||
|
|
||
| * Iván Todorovich <ivan.todorovich@druidoo.io> | ||
| * Phan Hong Phuc <phucph@trobz.com> | ||
|
|
||
| Maintainers | ||
| ~~~~~~~~~~~ | ||
|
|
||
| .. |maintainer-ivantodorovich| image:: https://github.com/ivantodorovich.png?size=40px | ||
| :target: https://github.com/ivantodorovich | ||
| :alt: ivantodorovich | ||
|
|
||
| Current maintainer: | ||
|
|
||
| |maintainer-ivantodorovich| | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| # Copyright (C) 2016-Today: La Louve (<http://www.lalouve.fr/>) | ||
| # Copyright (C) 2019-Today: Druidoo (<https://www.druidoo.io>) | ||
| # @author: La Louve | ||
| # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html | ||
|
|
||
| from . import models |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,31 @@ | ||
| # Copyright (C) 2016-Today: La Louve (<http://www.lalouve.fr/>) | ||
| # Copyright (C) 2019-Today: Druidoo (<https://www.druidoo.io>) | ||
| # @author: La Louve | ||
| # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html | ||
|
|
||
| { | ||
| "name": "POS Receipt By Email", | ||
| "version": "18.0.1.0.0", | ||
| "category": "Custom", | ||
| "author": "Druidoo, Odoo Community Association (OCA)", | ||
| "website": "https://github.com/OCA/pos", | ||
| "license": "AGPL-3", | ||
| "depends": [ | ||
| "point_of_sale", | ||
| ], | ||
| "data": [ | ||
| "views/report_paperformat.xml", | ||
| "views/view_pos_config_settings.xml", | ||
| "data/email_template_data.xml", | ||
| "data/ir_cron_data.xml", | ||
| "views/view_res_partner.xml", | ||
| "views/report_receipt.xml", | ||
| ], | ||
| "assets": { | ||
| "point_of_sale._assets_pos": [ | ||
| "pos_ticket_send_by_mail/static/src/js/*", | ||
| "pos_ticket_send_by_mail/static/src/xml/*", | ||
| ], | ||
| }, | ||
| "installable": True, | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,32 @@ | ||
| <?xml version="1.0" encoding="utf-8" ?> | ||
| <odoo noupdate="1"> | ||
| <!--Email template --> | ||
| <record id="email_send_pos_receipt" model="mail.template"> | ||
|
P-H-Phuc marked this conversation as resolved.
|
||
| <field name="name">Send Receipt</field> | ||
| <field | ||
| name="email_from" | ||
| >{{ (object.user_id.company_id.email_formatted or user.email_formatted) }}</field> | ||
| <field | ||
| name="subject" | ||
| >{{ object.user_id.company_id.name }} Received {{ object.pos_reference and object.pos_reference.split(' ')[1] or '' }}</field> | ||
| <field name="partner_to">{{ object.partner_id.id }}</field> | ||
| <field name="model_id" ref="point_of_sale.model_pos_order" /> | ||
| <field | ||
| name="report_template_ids" | ||
| eval="[(4, ref('pos_ticket_send_by_mail.action_report_pos_receipt'))]" | ||
| /> | ||
| <field name="auto_delete" eval="True" /> | ||
| <field name="lang">{{ object.partner_id.lang }}</field> | ||
| <field name="body_html" type="html"> | ||
| <div> | ||
| <p>Thank you for your visit !</p> | ||
| <p>You will find your receipt <t | ||
| t-out="object.pos_reference and object.pos_reference.split(' ')[1] or ''" | ||
| /> attached.</p> | ||
| <p /> | ||
| <p>Sincerely,</p> | ||
| <p>The team of the cooperative</p> | ||
| </div> | ||
| </field> | ||
| </record> | ||
| </odoo> | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| <?xml version="1.0" encoding="utf-8" ?> | ||
| <odoo noupdate="1"> | ||
| <record id="ir_cron_sent_pos_ticket" model="ir.cron"> | ||
| <field name="name">Send Reciept via Email</field> | ||
| <field name="interval_number">1</field> | ||
| <field name="interval_type">minutes</field> | ||
| <field name="model_id" ref="point_of_sale.model_pos_order" /> | ||
| <field name="code">model._send_order_cron()</field> | ||
| <field name="state">code</field> | ||
| </record> | ||
| </odoo> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,224 @@ | ||
| # Translation of Odoo Server. | ||
| # This file contains the translation of the following modules: | ||
| # * pos_ticket_send_by_mail | ||
| # | ||
| msgid "" | ||
| msgstr "" | ||
| "Project-Id-Version: Odoo Server 18.0\n" | ||
| "Report-Msgid-Bugs-To: \n" | ||
| "POT-Creation-Date: 2025-11-25 08:22+0000\n" | ||
| "PO-Revision-Date: 2025-11-25 08:22+0000\n" | ||
| "Last-Translator: \n" | ||
| "Language-Team: \n" | ||
| "MIME-Version: 1.0\n" | ||
| "Content-Type: text/plain; charset=UTF-8\n" | ||
| "Content-Transfer-Encoding: \n" | ||
| "Plural-Forms: \n" | ||
|
|
||
| #. module: pos_ticket_send_by_mail | ||
| #: model:ir.actions.report,print_report_name:pos_ticket_send_by_mail.action_report_pos_receipt | ||
| msgid "'POS-Receipt-'+(object.name or '').replace('/','-')" | ||
| msgstr "'Reçu PoS-'+(object.name or '').replace('/','-')" | ||
|
|
||
| #. module: pos_ticket_send_by_mail | ||
| #: model:ir.model.fields,help:pos_ticket_send_by_mail.field_res_partner__pos_email_receipt | ||
| #: model:ir.model.fields,help:pos_ticket_send_by_mail.field_res_users__pos_email_receipt | ||
| msgid "" | ||
| "- E-receipt: The user will only receive e-receipt \n" | ||
| "- No E-receipt: The user will not receive e-receipt" | ||
| msgstr "" | ||
| "- E-reçu : L’utilisateur recevra exclusivement un reçu électronique n\" | ||
| "- Pas d’e-reçu : L’utilisateur ne recevra pas de reçu électronique" | ||
|
|
||
| #. module: pos_ticket_send_by_mail | ||
| #: model_terms:ir.ui.view,arch_db:pos_ticket_send_by_mail.report_receipt_document | ||
| msgid "" | ||
| "<br/>\n" | ||
| " Date:" | ||
| msgstr "" | ||
| "<br/>\n" | ||
| " Date:" | ||
|
|
||
| #. module: pos_ticket_send_by_mail | ||
| #: model:mail.template,body_html:pos_ticket_send_by_mail.email_send_pos_receipt | ||
| msgid "" | ||
| "<div>\n" | ||
| " <p>Thank you for your visit !</p>\n" | ||
| " <p>You will find your receipt <t t-out=\"object.pos_reference and object.pos_reference.split(' ')[1] or ''\"/> attached.</p>\n" | ||
| " <p/>\n" | ||
| " <p>Sincerely,</p>\n" | ||
| " <p>The team of the cooperative</p>\n" | ||
| " </div>\n" | ||
| " " | ||
| msgstr "" | ||
| "<div>\n" | ||
| " <p>Merci pour votre visite !</p>\n" | ||
| " <p>Vous trouverez votre reçu <t t-out=\"object.pos_reference and object.pos_reference.split(' ')[1] or ''\"/> en pièce jointe.</p>\n" | ||
| " <p/>\n" | ||
| " <p>Cordialement,</p>\n" | ||
| " <p>L’équipe de la coopérative</p>\n" | ||
| " </div>\n" | ||
| " " | ||
|
|
||
| #. module: pos_ticket_send_by_mail | ||
| #: model_terms:ir.ui.view,arch_db:pos_ticket_send_by_mail.report_receipt_document | ||
| msgid "<strong>Taxes</strong>" | ||
| msgstr "<strong>Taxes</strong>" | ||
|
|
||
| #. module: pos_ticket_send_by_mail | ||
| #: model_terms:ir.ui.view,arch_db:pos_ticket_send_by_mail.report_receipt_document | ||
| msgid "<strong>Total</strong>" | ||
| msgstr "<strong>Total</strong>" | ||
|
|
||
| #. module: pos_ticket_send_by_mail | ||
| #: model_terms:ir.ui.view,arch_db:pos_ticket_send_by_mail.report_receipt_document | ||
| msgid "Amount" | ||
| msgstr "Montant" | ||
|
|
||
| #. module: pos_ticket_send_by_mail | ||
| #: model:ir.model,name:pos_ticket_send_by_mail.model_res_config_settings | ||
| msgid "Config Settings" | ||
| msgstr "Paramètres de configuration" | ||
|
|
||
| #. module: pos_ticket_send_by_mail | ||
| #: model:ir.model,name:pos_ticket_send_by_mail.model_res_partner | ||
| msgid "Contact" | ||
| msgstr "Contact" | ||
|
|
||
| #. module: pos_ticket_send_by_mail | ||
| #: model_terms:ir.ui.view,arch_db:pos_ticket_send_by_mail.report_receipt_document | ||
| msgid "Description" | ||
| msgstr "Description" | ||
|
|
||
| #. module: pos_ticket_send_by_mail | ||
| #: model:ir.model.fields.selection,name:pos_ticket_send_by_mail.selection__pos_order__email_status__no_send | ||
| msgid "Do not Send" | ||
| msgstr "Ne pas envoyer" | ||
|
|
||
| #. module: pos_ticket_send_by_mail | ||
| #: model:ir.model.fields.selection,name:pos_ticket_send_by_mail.selection__pos_config__receipt_options__1 | ||
| msgid "Do not send receipt via email" | ||
| msgstr "Ne pas envoyer le reçu par email" | ||
|
|
||
| #. module: pos_ticket_send_by_mail | ||
| #: model:ir.model.fields.selection,name:pos_ticket_send_by_mail.selection__res_partner__pos_email_receipt__email_pos_receipt | ||
| msgid "E-receipt Only" | ||
| msgstr "E-reçu uniquement" | ||
|
|
||
| #. module: pos_ticket_send_by_mail | ||
| #: model:ir.model.fields.selection,name:pos_ticket_send_by_mail.selection__pos_config__receipt_options__4 | ||
| msgid "Email receipt" | ||
| msgstr "Envoyer le reçu par email" | ||
|
|
||
| #. module: pos_ticket_send_by_mail | ||
| #: model:ir.model.fields.selection,name:pos_ticket_send_by_mail.selection__pos_config__receipt_options__2 | ||
| msgid "Email receipt and print it" | ||
| msgstr "Envoyer le reçu par email et l'imprimer" | ||
|
|
||
| #. module: pos_ticket_send_by_mail | ||
| #: model:ir.model.fields.selection,name:pos_ticket_send_by_mail.selection__pos_config__receipt_options__3 | ||
| msgid "" | ||
| "Email receipt and print it unless configured on user that" | ||
| " he only receives electronically" | ||
| msgstr "" | ||
| "Envoyer le reçu par email et l'imprimer sauf si ce partenaire est configuré " | ||
| "pour recevoir uniquement le reçu électronique" | ||
|
|
||
| #. module: pos_ticket_send_by_mail | ||
| #: model:ir.model.fields.selection,name:pos_ticket_send_by_mail.selection__res_partner__pos_email_receipt__no_email_pos_receipt | ||
| msgid "No E-receipt" | ||
| msgstr "Pas Reçu électronique" | ||
|
|
||
| #. module: pos_ticket_send_by_mail | ||
| #: model:ir.model.fields,field_description:pos_ticket_send_by_mail.field_res_partner__pos_email_receipt | ||
| #: model:ir.model.fields,field_description:pos_ticket_send_by_mail.field_res_users__pos_email_receipt | ||
| msgid "POS Email Receipt Preference" | ||
| msgstr "Préférence d’envoi du reçu par e-mail du PoS" | ||
|
|
||
| #. module: pos_ticket_send_by_mail | ||
| #: model_terms:ir.ui.view,arch_db:pos_ticket_send_by_mail.report_receipt_document | ||
| msgid "Payment Mode" | ||
| msgstr "Mode de paiement" | ||
|
|
||
| #. module: pos_ticket_send_by_mail | ||
| #: model:ir.model,name:pos_ticket_send_by_mail.model_pos_config | ||
| msgid "Point of Sale Configuration" | ||
| msgstr "Configuration du point de vente" | ||
|
|
||
| #. module: pos_ticket_send_by_mail | ||
| #: model:ir.model,name:pos_ticket_send_by_mail.model_pos_order | ||
| msgid "Point of Sale Orders" | ||
| msgstr "Commandes du point de vente" | ||
|
|
||
| #. module: pos_ticket_send_by_mail | ||
| #: model_terms:ir.ui.view,arch_db:pos_ticket_send_by_mail.report_receipt_document | ||
| msgid "Price" | ||
| msgstr "Prix" | ||
|
|
||
| #. module: pos_ticket_send_by_mail | ||
| #: model_terms:ir.ui.view,arch_db:pos_ticket_send_by_mail.report_receipt_document | ||
| msgid "Quantity" | ||
| msgstr "Quantité" | ||
|
|
||
| #. module: pos_ticket_send_by_mail | ||
| #: model:ir.actions.report,name:pos_ticket_send_by_mail.action_report_pos_receipt | ||
| #: model:ir.model.fields,field_description:pos_ticket_send_by_mail.field_pos_config__receipt_options | ||
| #: model:ir.model.fields,field_description:pos_ticket_send_by_mail.field_res_config_settings__pos_receipt_options | ||
| msgid "Receipt" | ||
| msgstr "Reçu" | ||
|
|
||
| #. module: pos_ticket_send_by_mail | ||
| #: model_terms:ir.ui.view,arch_db:pos_ticket_send_by_mail.view_res_config_settings_form_pos_inherit | ||
| msgid "Receipt Options" | ||
| msgstr "Reçu" | ||
|
|
||
| #. module: pos_ticket_send_by_mail | ||
| #: model:mail.template,name:pos_ticket_send_by_mail.email_send_pos_receipt | ||
| msgid "Send Received" | ||
| msgstr "Envoyer le reçu" | ||
|
|
||
| #. module: pos_ticket_send_by_mail | ||
| #: model:ir.actions.server,name:pos_ticket_send_by_mail.ir_cron_sent_pos_ticket_ir_actions_server | ||
| msgid "Send Reciept via Email" | ||
| msgstr "Ne pas envoyer le reçu par email" | ||
|
|
||
| #. module: pos_ticket_send_by_mail | ||
| #: model:ir.model.fields,field_description:pos_ticket_send_by_mail.field_pos_order__email_status | ||
| msgid "Send Status" | ||
| msgstr "Statut d’envoi" | ||
|
|
||
| #. module: pos_ticket_send_by_mail | ||
| #: model:ir.model.fields.selection,name:pos_ticket_send_by_mail.selection__pos_order__email_status__sent | ||
| msgid "Sent" | ||
| msgstr "Envoyé" | ||
|
|
||
| #. module: pos_ticket_send_by_mail | ||
| #: model_terms:ir.ui.view,arch_db:pos_ticket_send_by_mail.view_res_config_settings_form_pos_inherit | ||
| msgid "" | ||
| "There are 4 ways of obtaining a receipt: 1.Do not send receipt via email " | ||
| "2.Email receipt and print it 3. Email receipt and print it unless configured" | ||
| " on user that he only receives electronically 4.Email receipt" | ||
| msgstr "" | ||
| "Il y a 4 façons d’obtenir un reçu: 1.Ne pas envoyer le reçu par e-mail " | ||
| "2.Envoyer le reçu par e-mail et l’imprimer 3.Envoyer le reçu par e-mail et " | ||
| "l’imprimer sauf si l’utilisateur est configuré pour ne recevoir que par voie" | ||
| " électronique 4. Envoyer le reçu par e-mail" | ||
|
|
||
| #. module: pos_ticket_send_by_mail | ||
| #: model:ir.model.fields.selection,name:pos_ticket_send_by_mail.selection__pos_order__email_status__to_send | ||
| msgid "To send" | ||
| msgstr "Envoyer" | ||
|
|
||
| #. module: pos_ticket_send_by_mail | ||
| #: model_terms:ir.ui.view,arch_db:pos_ticket_send_by_mail.report_receipt_document | ||
| msgid "User:" | ||
| msgstr "Utilisateur:" | ||
|
|
||
| #. module: pos_ticket_send_by_mail | ||
| #: model:mail.template,subject:pos_ticket_send_by_mail.email_send_pos_receipt | ||
| msgid "" | ||
| "{{ object.user_id.company_id.name }} Received {{ object.pos_reference and " | ||
| "object.pos_reference.split(' ')[1] or '' }}" | ||
| msgstr "" | ||
| "{{ object.user_id.company_id.name }} a reçu {{ object.pos_reference and " | ||
| "object.pos_reference.split(' ')[1] or '' }}" |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.