minor fix email message
This commit is contained in:
parent
f635cc5cf7
commit
540a6add2e
|
@ -1021,6 +1021,10 @@ msgctxt "model:ir.message,text:msg_delete_cancel"
|
|||
msgid "Liquidation \"%(liquidation)s\" must be cancelled before deletion."
|
||||
msgstr ""
|
||||
|
||||
msgctxt "model:ir.message,text:msg_dont_send_email"
|
||||
msgid "No mail sent, check employee email for \"%(employee)s\" in parties/parties/"
|
||||
msgstr "Email no enviado, revisa el email para el empleado \"%(employee)s\" en la ruta terceros/terceros/"
|
||||
|
||||
msgctxt "model:ir.message,text:msg_department_not_exists"
|
||||
msgid "The department with name \"%s\" not exists!"
|
||||
msgstr ""
|
||||
|
|
|
@ -71,6 +71,9 @@ this repository contains the full copyright notices and license terms. -->
|
|||
<record model="ir.message" id="msg_duplicate_liquidation">
|
||||
<field name="text">You have a liquidation with id "%(liquidation)s" in state "%(state)s".</field>
|
||||
</record>
|
||||
<record model="ir.message" id="msg_dont_send_email">
|
||||
<field name="text">No mail sent, check employee email for "%(employee)s" in parties/parties/</field>
|
||||
</record>
|
||||
|
||||
</data>
|
||||
</tryton>
|
||||
|
|
|
@ -894,8 +894,8 @@ class Payroll(metaclass=PoolMeta):
|
|||
if response and response.status_code == 202:
|
||||
self.write([self], {'sended_mail': True})
|
||||
else:
|
||||
raise UserError('No mail sent, check employee email',
|
||||
employee=self.employee.party.name)
|
||||
raise UserError(gettext('msg_dont_send_email',
|
||||
employee=self.employee.party.name))
|
||||
else:
|
||||
raise MissingTemplateEmailPayroll(
|
||||
gettext('staff_payroll_co.msg_template_not_exist'))
|
||||
|
|
Loading…
Reference in New Issue