Skip to content

Commit 9827dcc

Browse files
authored
Merge pull request #46 from ingadhoc/18.0
Fork Sync Branch 18.0
2 parents ab6070a + 825eb9c commit 9827dcc

2 files changed

Lines changed: 17 additions & 5 deletions

File tree

stock_ux/i18n/es.po

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ msgid ""
1111
msgstr ""
1212
"Project-Id-Version: Odoo Server 18.0+e\n"
1313
"Report-Msgid-Bugs-To: \n"
14-
"POT-Creation-Date: 2025-11-03 21:02+0000\n"
14+
"POT-Creation-Date: 2025-11-10 21:43+0000\n"
1515
"PO-Revision-Date: 2024-11-13 15:07+0000\n"
1616
"Last-Translator: ADHOC - Bot <transbot@adhoc.com.ar>, 2025\n"
1717
"Language-Team: Spanish (https://app.transifex.com/adhoc/teams/46451/es/)\n"
@@ -685,6 +685,11 @@ msgstr "Propagación del transportista"
685685
msgid "Q. UdM Producto"
686686
msgstr ""
687687

688+
#. module: stock_ux
689+
#: model:ir.model.fields,field_description:stock_ux.field_stock_warehouse_orderpoint__rating_ids
690+
msgid "Ratings"
691+
msgstr ""
692+
688693
#. module: stock_ux
689694
#: model_terms:ir.ui.view,arch_db:stock_ux.view_picking_internal_search
690695
msgid "Ready"
@@ -866,7 +871,7 @@ msgstr "Total"
866871
#: model:ir.model,name:stock_ux.model_stock_picking
867872
#: model_terms:ir.ui.view,arch_db:stock_ux.view_picking_internal_search
868873
msgid "Transfer"
869-
msgstr "Traslado"
874+
msgstr "Transferir"
870875

871876
#. module: stock_ux
872877
#: model:ir.model.fields,field_description:stock_ux.field_stock_move__picking_partner_id

stock_ux/models/stock_picking.py

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,10 @@ def _send_confirmation_email(self):
7171
for rec in self:
7272
if rec.picking_type_id.mail_template_id:
7373
try:
74-
rec.message_post_with_source(rec.picking_type_id.mail_template_id)
74+
rec.with_context(
75+
email_notification_force_header=True,
76+
email_notification_force_footer=True,
77+
).message_post_with_source(rec.picking_type_id.mail_template_id)
7578
except Exception as error:
7679
title = _("ERROR: Picking was not sent via email")
7780
rec.message_post(
@@ -88,7 +91,11 @@ def _send_confirmation_email(self):
8891
super(StockPicking, self)._send_confirmation_email()
8992

9093
def _action_done(self):
91-
for rec in self.with_context(mail_notify_force_send=False).filtered("picking_type_id.mail_template_id"):
94+
for rec in self.with_context(
95+
mail_notify_force_send=False,
96+
email_notification_force_header=True,
97+
email_notification_force_footer=True,
98+
).filtered("picking_type_id.mail_template_id"):
9299
try:
93100
rec.message_post_with_template(rec.picking_type_id.mail_template_id.id)
94101
except Exception as error:
@@ -97,7 +104,7 @@ def _action_done(self):
97104
body="<br/><br/>".join(
98105
[
99106
"<b>" + title + "</b>",
100-
_("Please check the email template associated with" " the picking type."),
107+
_("Please check the email template associated with the picking type."),
101108
"<code>" + str(error) + "</code>",
102109
]
103110
),

0 commit comments

Comments
 (0)