mirror of
https://github.com/OCA/contract.git
synced 2025-02-13 17:57:24 +02:00
[FIX] contract: Link format error for messages posted when creates manual invoices
This commit is contained in:
@@ -6,6 +6,8 @@ msgid ""
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: Odoo Server 17.0\n"
|
"Project-Id-Version: Odoo Server 17.0\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
|
"POT-Creation-Date: 2024-09-03 19:17+0000\n"
|
||||||
|
"PO-Revision-Date: 2024-09-03 19:17+0000\n"
|
||||||
"Last-Translator: \n"
|
"Last-Translator: \n"
|
||||||
"Language-Team: \n"
|
"Language-Team: \n"
|
||||||
"MIME-Version: 1.0\n"
|
"MIME-Version: 1.0\n"
|
||||||
@@ -13,6 +15,13 @@ msgstr ""
|
|||||||
"Content-Transfer-Encoding: \n"
|
"Content-Transfer-Encoding: \n"
|
||||||
"Plural-Forms: \n"
|
"Plural-Forms: \n"
|
||||||
|
|
||||||
|
#. module: contract
|
||||||
|
#. odoo-python
|
||||||
|
#: code:addons/contract/models/contract.py:0
|
||||||
|
#, python-format
|
||||||
|
msgid "%(msg)s by contract: %(contract_link)s"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#. module: contract
|
#. module: contract
|
||||||
#: model:mail.template,body_html:contract.email_contract_template
|
#: model:mail.template,body_html:contract.email_contract_template
|
||||||
msgid ""
|
msgid ""
|
||||||
@@ -718,9 +727,7 @@ msgstr ""
|
|||||||
#. odoo-python
|
#. odoo-python
|
||||||
#: code:addons/contract/models/contract.py:0
|
#: code:addons/contract/models/contract.py:0
|
||||||
#, python-format
|
#, python-format
|
||||||
msgid ""
|
msgid "Contract manually invoiced: %(invoice_link)s"
|
||||||
"Contract manually invoiced: <a href=\"#\" data-oe-"
|
|
||||||
"model=\"%(model_name)s\" data-oe-id=\"%(rec_id)s\">Invoice</a>"
|
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#. module: contract
|
#. module: contract
|
||||||
@@ -1395,6 +1402,11 @@ msgstr ""
|
|||||||
msgid "Name"
|
msgid "Name"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: contract
|
||||||
|
#: model:ir.model.fields,field_description:contract.field_contract_contract__activity_calendar_event_id
|
||||||
|
msgid "Next Activity Calendar Event"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#. module: contract
|
#. module: contract
|
||||||
#: model:ir.model.fields,field_description:contract.field_contract_contract__activity_date_deadline
|
#: model:ir.model.fields,field_description:contract.field_contract_contract__activity_date_deadline
|
||||||
msgid "Next Activity Deadline"
|
msgid "Next Activity Deadline"
|
||||||
|
|||||||
@@ -9,16 +9,23 @@ msgid ""
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: Odoo Server 11.0\n"
|
"Project-Id-Version: Odoo Server 11.0\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2020-12-31 14:54+0000\n"
|
"POT-Creation-Date: 2024-09-03 19:17+0000\n"
|
||||||
"PO-Revision-Date: 2024-08-12 13:51+0000\n"
|
"PO-Revision-Date: 2024-09-03 21:25+0200\n"
|
||||||
"Last-Translator: \"Pedro M. Baeza\" <pedro.baeza@gmail.com>\n"
|
"Last-Translator: Sergio Teruel <sergio.teruel@tecnativa.com>\n"
|
||||||
"Language-Team: Spanish (https://www.transifex.com/oca/teams/23907/es/)\n"
|
"Language-Team: Spanish (https://www.transifex.com/oca/teams/23907/es/)\n"
|
||||||
"Language: es\n"
|
"Language: es\n"
|
||||||
"MIME-Version: 1.0\n"
|
"MIME-Version: 1.0\n"
|
||||||
"Content-Type: text/plain; charset=UTF-8\n"
|
"Content-Type: text/plain; charset=UTF-8\n"
|
||||||
"Content-Transfer-Encoding: 8bit\n"
|
"Content-Transfer-Encoding: 8bit\n"
|
||||||
"Plural-Forms: nplurals=2; plural=n != 1;\n"
|
"Plural-Forms: nplurals=2; plural=n != 1;\n"
|
||||||
"X-Generator: Weblate 5.6.2\n"
|
"X-Generator: Poedit 3.0.1\n"
|
||||||
|
|
||||||
|
#. module: contract
|
||||||
|
#. odoo-python
|
||||||
|
#: code:addons/contract/models/contract.py:0
|
||||||
|
#, python-format
|
||||||
|
msgid "%(msg)s by contract: %(contract_link)s"
|
||||||
|
msgstr "%(msg)s por el contrato: %(contract_link)s"
|
||||||
|
|
||||||
#. module: contract
|
#. module: contract
|
||||||
#: model:mail.template,body_html:contract.email_contract_template
|
#: model:mail.template,body_html:contract.email_contract_template
|
||||||
@@ -875,12 +882,8 @@ msgstr "Líneas de contrato (fijo)"
|
|||||||
#. odoo-python
|
#. odoo-python
|
||||||
#: code:addons/contract/models/contract.py:0
|
#: code:addons/contract/models/contract.py:0
|
||||||
#, python-format
|
#, python-format
|
||||||
msgid ""
|
msgid "Contract manually invoiced: %(invoice_link)s"
|
||||||
"Contract manually invoiced: <a href=\"#\" data-oe-"
|
msgstr "Contrato facturado manualmente: %(invoice_link)s"
|
||||||
"model=\"%(model_name)s\" data-oe-id=\"%(rec_id)s\">Invoice</a>"
|
|
||||||
msgstr ""
|
|
||||||
"Contrato facturado manualmente: <a href=\"#\" data-oe-"
|
|
||||||
"model=\"%(model_name)s\" data-oe-id=\"%(rec_id)s\">Factura</a>"
|
|
||||||
|
|
||||||
#. module: contract
|
#. module: contract
|
||||||
#: model:mail.message.subtype,name:contract.mail_message_subtype_contract_modification
|
#: model:mail.message.subtype,name:contract.mail_message_subtype_contract_modification
|
||||||
@@ -1576,6 +1579,13 @@ msgstr "Fecha límite de mi actividad"
|
|||||||
msgid "Name"
|
msgid "Name"
|
||||||
msgstr "Nombre"
|
msgstr "Nombre"
|
||||||
|
|
||||||
|
#. module: contract
|
||||||
|
#: model:ir.model.fields,field_description:contract.field_contract_contract__activity_calendar_event_id
|
||||||
|
#, fuzzy
|
||||||
|
#| msgid "Next Activity Deadline"
|
||||||
|
msgid "Next Activity Calendar Event"
|
||||||
|
msgstr "Fecha límite de la siguiente actividad"
|
||||||
|
|
||||||
#. module: contract
|
#. module: contract
|
||||||
#: model:ir.model.fields,field_description:contract.field_contract_contract__activity_date_deadline
|
#: model:ir.model.fields,field_description:contract.field_contract_contract__activity_date_deadline
|
||||||
msgid "Next Activity Deadline"
|
msgid "Next Activity Deadline"
|
||||||
@@ -2416,483 +2426,3 @@ msgid ""
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
"{{ object.company_id.name }} Contrato (Ref {{ object.name or 'n/a' }}) - "
|
"{{ object.company_id.name }} Contrato (Ref {{ object.name or 'n/a' }}) - "
|
||||||
"Modificaciones"
|
"Modificaciones"
|
||||||
|
|
||||||
#~ msgid "SMS Delivery error"
|
|
||||||
#~ msgstr "Error de entrega de SMS"
|
|
||||||
|
|
||||||
#~ msgid ""
|
|
||||||
#~ "<span attrs=\"{'invisible': [('contract_to_invoice_count', '>', "
|
|
||||||
#~ "1)]}\">\n"
|
|
||||||
#~ " contract to invoice\n"
|
|
||||||
#~ " </span>\n"
|
|
||||||
#~ " <span attrs=\"{'invisible': "
|
|
||||||
#~ "[('contract_to_invoice_count', '<=', 1)]}\">\n"
|
|
||||||
#~ " contracts to invoice\n"
|
|
||||||
#~ " </span>"
|
|
||||||
#~ msgstr ""
|
|
||||||
#~ "<span attrs=\"{'invisible': [('contract_to_invoice_count', '>', "
|
|
||||||
#~ "1)]}\">\n"
|
|
||||||
#~ " contrato a facturar\n"
|
|
||||||
#~ " </span>\n"
|
|
||||||
#~ " <span attrs=\"{'invisible': "
|
|
||||||
#~ "[('contract_to_invoice_count', '<=', 1)]}\">\n"
|
|
||||||
#~ " contratos a facturar\n"
|
|
||||||
#~ " </span>"
|
|
||||||
|
|
||||||
#~ msgid "Analytic"
|
|
||||||
#~ msgstr "Analítico"
|
|
||||||
|
|
||||||
#~ msgid "Last Modified on"
|
|
||||||
#~ msgstr "Última Modificación en"
|
|
||||||
|
|
||||||
#~ msgid "Main Attachment"
|
|
||||||
#~ msgstr "Adjunto principal"
|
|
||||||
|
|
||||||
#~ msgid "Analytic account"
|
|
||||||
#~ msgstr "Cuenta analítica"
|
|
||||||
|
|
||||||
#~ msgid "Number of messages which requires an action"
|
|
||||||
#~ msgstr "Número de mensajes que requieren una acción"
|
|
||||||
|
|
||||||
#~ msgid ""
|
|
||||||
#~ "<div style=\"font-family: 'Lucida Grande', Ubuntu, Arial, Verdana, sans-"
|
|
||||||
#~ "serif; font-size: 12px; color: rgb(34, 34, 34); background-color: #FFF; "
|
|
||||||
#~ "\">\n"
|
|
||||||
#~ " <p>Hello <t t-out=\"object.partner_id.name or '' \"/>,</"
|
|
||||||
#~ "p>\n"
|
|
||||||
#~ " <p>A new contract has been created: </p>\n"
|
|
||||||
#~ "\n"
|
|
||||||
#~ " <p style=\"border-left: 1px solid #8e0000; margin-left: "
|
|
||||||
#~ "30px;\">\n"
|
|
||||||
#~ " &nbsp;&nbsp;<strong>REFERENCES</strong><br/>\n"
|
|
||||||
#~ " &nbsp;&nbsp;Contract: <strong t-out=\"object."
|
|
||||||
#~ "name\"/><br/>\n"
|
|
||||||
#~ " <t t-if=\"object.date_start\">\n"
|
|
||||||
#~ " &nbsp;&nbsp;Contract Date Start: <t t-"
|
|
||||||
#~ "out=\"object.date_start or ''\"/><br/>\n"
|
|
||||||
#~ " </t>\n"
|
|
||||||
#~ "\n"
|
|
||||||
#~ " <t t-if=\"object.user_id\">\n"
|
|
||||||
#~ " <t t-if=\"object.user_id.email\">\n"
|
|
||||||
#~ " &nbsp;&nbsp;Your Contact: <a t-att-"
|
|
||||||
#~ "href=\"'mailto:%s?subject=Contract %s' % (object.user_id.email, object."
|
|
||||||
#~ "name)\" t-out=\"object.user_id.name\"/>\n"
|
|
||||||
#~ " </t>\n"
|
|
||||||
#~ " <t t-else=\"\">\n"
|
|
||||||
#~ " &nbsp;&nbsp;Your Contact: <t t-"
|
|
||||||
#~ "out=\"object.user_id.name\"/>\n"
|
|
||||||
#~ " </t>\n"
|
|
||||||
#~ " </t>\n"
|
|
||||||
#~ " </p>\n"
|
|
||||||
#~ "\n"
|
|
||||||
#~ " <br/>\n"
|
|
||||||
#~ " <p>If you have any questions, do not hesitate to contact "
|
|
||||||
#~ "us.</p>\n"
|
|
||||||
#~ " <p>Thank you for choosing <t t-out=\"object.company_id."
|
|
||||||
#~ "name or 'us'\"/>!</p>\n"
|
|
||||||
#~ " <br/>\n"
|
|
||||||
#~ " <br/>\n"
|
|
||||||
#~ " <div style=\"width: 375px; margin: 0px; padding: 0px; "
|
|
||||||
#~ "background-color: #8E0000; border-top-left-radius: 5px 5px; border-top-"
|
|
||||||
#~ "right-radius: 5px 5px; background-repeat: repeat no-repeat;\">\n"
|
|
||||||
#~ " <h3 style=\"margin: 0px; padding: 2px 14px; font-"
|
|
||||||
#~ "size: 12px; color: #DDD;\">\n"
|
|
||||||
#~ " <strong style=\"text-transform:uppercase;\" t-"
|
|
||||||
#~ "out=\"object.company_id.name\"/></h3>\n"
|
|
||||||
#~ " </div>\n"
|
|
||||||
#~ " <div style=\"width: 347px; margin: 0px; padding: 5px "
|
|
||||||
#~ "14px; line-height: 16px; background-color: #F2F2F2;\">\n"
|
|
||||||
#~ " <span style=\"color: #222; margin-bottom: 5px; "
|
|
||||||
#~ "display: block; \">\n"
|
|
||||||
#~ " <address t-field=\"object.company_id.sudo()."
|
|
||||||
#~ "partner_id\" t-options=\"{"widget": "contact", ""
|
|
||||||
#~ "fields": ["name", "address"], ""
|
|
||||||
#~ "no_marker": True}\"/>\n"
|
|
||||||
#~ " </span>\n"
|
|
||||||
#~ " <t t-if=\"object.company_id.phone\">\n"
|
|
||||||
#~ " <div style=\"margin-top: 0px; margin-right: 0px; "
|
|
||||||
#~ "margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: "
|
|
||||||
#~ "0px; padding-bottom: 0px; padding-left: 0px; \">\n"
|
|
||||||
#~ " Phone: <t t-out=\"object.company_id.phone\"/"
|
|
||||||
#~ ">\n"
|
|
||||||
#~ " </div>\n"
|
|
||||||
#~ " </t>\n"
|
|
||||||
#~ " <t t-if=\"object.company_id.website\">\n"
|
|
||||||
#~ " <div>\n"
|
|
||||||
#~ " Web: <a t-att-href=\"object.company_id."
|
|
||||||
#~ "website\" t-out=\"object.company_id.website\"/>\n"
|
|
||||||
#~ " </div>\n"
|
|
||||||
#~ " </t>\n"
|
|
||||||
#~ " </div>\n"
|
|
||||||
#~ " <br/>\n"
|
|
||||||
#~ " <a t-att-href=\"'%s/my/contracts/%s?access_token=%s' % "
|
|
||||||
#~ "(object.get_base_url(), object.id, object.access_token)\" "
|
|
||||||
#~ "target=\"_blank\" style=\"background-color:#875A7B;padding: 8px 16px 8px "
|
|
||||||
#~ "16px; text-decoration: none; color: #fff; border-radius: 5px; font-"
|
|
||||||
#~ "size:13px;\">View contract</a>\n"
|
|
||||||
#~ " </div>\n"
|
|
||||||
#~ " "
|
|
||||||
#~ msgstr ""
|
|
||||||
#~ "<div style=\"font-family: 'Lucida Grande', Ubuntu, Arial, Verdana, sans-"
|
|
||||||
#~ "serif; font-size: 12px; color: rgb(34, 34, 34); background-color: #FFF; "
|
|
||||||
#~ "\">\n"
|
|
||||||
#~ " <p>Hello <t t-out=\"object.partner_id.name or '' \"/>,</"
|
|
||||||
#~ "p>\n"
|
|
||||||
#~ " <p>Se ha creado un nuevo contrato: </p>\n"
|
|
||||||
#~ "\n"
|
|
||||||
#~ " <p style=\"border-left: 1px solid #8e0000; margin-left: "
|
|
||||||
#~ "30px;\">\n"
|
|
||||||
#~ " &nbsp;&nbsp;<strong>REFERENCES</strong><br/>\n"
|
|
||||||
#~ " &nbsp;&nbsp;Contract: <strong t-out=\"object."
|
|
||||||
#~ "name\"/><br/>\n"
|
|
||||||
#~ " <t t-if=\"object.date_start\">\n"
|
|
||||||
#~ " &nbsp;&nbsp;Fecha de inicio del contrato: "
|
|
||||||
#~ "<t t-out=\"object.date_start or ''\"/><br/>\n"
|
|
||||||
#~ " </t>\n"
|
|
||||||
#~ "\n"
|
|
||||||
#~ " <t t-if=\"object.user_id\">\n"
|
|
||||||
#~ " <t t-if=\"object.user_id.email\">\n"
|
|
||||||
#~ " &nbsp;&nbsp;Su contacto: <a t-att-"
|
|
||||||
#~ "href=\"'mailto:%s?subject=Contrato %s' % (object.user_id.email, object."
|
|
||||||
#~ "name)\" t-out=\"object.user_id.name\"/>\n"
|
|
||||||
#~ " </t>\n"
|
|
||||||
#~ " <t t-else=\"\">\n"
|
|
||||||
#~ " &nbsp;&nbsp;Su contacto: <t t-"
|
|
||||||
#~ "out=\"object.user_id.name\"/>\n"
|
|
||||||
#~ " </t>\n"
|
|
||||||
#~ " </t>\n"
|
|
||||||
#~ " </p>\n"
|
|
||||||
#~ "\n"
|
|
||||||
#~ " <br/>\n"
|
|
||||||
#~ " <p>No dude en ponerse en contacto con nosotros para "
|
|
||||||
#~ "cualquier aclaración.</p>\n"
|
|
||||||
#~ " <p>Gracias por escoger <t t-out=\"object.company_id.name "
|
|
||||||
#~ "or 'us'\"/>!</p>\n"
|
|
||||||
#~ " <br/>\n"
|
|
||||||
#~ " <br/>\n"
|
|
||||||
#~ " <div style=\"width: 375px; margin: 0px; padding: 0px; "
|
|
||||||
#~ "background-color: #8E0000; border-top-left-radius: 5px 5px; border-top-"
|
|
||||||
#~ "right-radius: 5px 5px; background-repeat: repeat no-repeat;\">\n"
|
|
||||||
#~ " <h3 style=\"margin: 0px; padding: 2px 14px; font-"
|
|
||||||
#~ "size: 12px; color: #DDD;\">\n"
|
|
||||||
#~ " <strong style=\"text-transform:uppercase;\" t-"
|
|
||||||
#~ "out=\"object.company_id.name\"/></h3>\n"
|
|
||||||
#~ " </div>\n"
|
|
||||||
#~ " <div style=\"width: 347px; margin: 0px; padding: 5px "
|
|
||||||
#~ "14px; line-height: 16px; background-color: #F2F2F2;\">\n"
|
|
||||||
#~ " <span style=\"color: #222; margin-bottom: 5px; "
|
|
||||||
#~ "display: block; \">\n"
|
|
||||||
#~ " <address t-field=\"object.company_id.sudo()."
|
|
||||||
#~ "partner_id\" t-options=\"{"widget": "contact", ""
|
|
||||||
#~ "fields": ["name", "address"], ""
|
|
||||||
#~ "no_marker": True}\"/>\n"
|
|
||||||
#~ " </span>\n"
|
|
||||||
#~ " <t t-if=\"object.company_id.phone\">\n"
|
|
||||||
#~ " <div style=\"margin-top: 0px; margin-right: 0px; "
|
|
||||||
#~ "margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: "
|
|
||||||
#~ "0px; padding-bottom: 0px; padding-left: 0px; \">\n"
|
|
||||||
#~ " Phone: <t t-out=\"object.company_id.phone\"/"
|
|
||||||
#~ ">\n"
|
|
||||||
#~ " </div>\n"
|
|
||||||
#~ " </t>\n"
|
|
||||||
#~ " <t t-if=\"object.company_id.website\">\n"
|
|
||||||
#~ " <div>\n"
|
|
||||||
#~ " Web: <a t-att-href=\"object.company_id."
|
|
||||||
#~ "website\" t-out=\"object.company_id.website\"/>\n"
|
|
||||||
#~ " </div>\n"
|
|
||||||
#~ " </t>\n"
|
|
||||||
#~ " </div>\n"
|
|
||||||
#~ " <br/>\n"
|
|
||||||
#~ " <a t-att-href=\"'%s/my/contracts/%s?access_token=%s' % "
|
|
||||||
#~ "(object.get_base_url(), object.id, object.access_token)\" "
|
|
||||||
#~ "target=\"_blank\" style=\"background-color:#875A7B;padding: 8px 16px 8px "
|
|
||||||
#~ "16px; text-decoration: none; color: #fff; border-radius: 5px; font-"
|
|
||||||
#~ "size:13px;\">View contract</a>\n"
|
|
||||||
#~ " </div>\n"
|
|
||||||
#~ " "
|
|
||||||
|
|
||||||
#~ msgid "Analytic Tags"
|
|
||||||
#~ msgstr "Etiquetas Analíticas"
|
|
||||||
|
|
||||||
#~ msgid "Number of unread messages"
|
|
||||||
#~ msgstr "Número de mensajes no leídos"
|
|
||||||
|
|
||||||
#~ msgid "Unread Messages"
|
|
||||||
#~ msgstr "Mensajes no leídos"
|
|
||||||
|
|
||||||
#~ msgid "Unread Messages Counter"
|
|
||||||
#~ msgstr "Número de mensajes no leídos"
|
|
||||||
|
|
||||||
#~ msgid ""
|
|
||||||
#~ "\n"
|
|
||||||
#~ " <p>Hello</p>\n"
|
|
||||||
#~ " <p>We have modifications on the contract that we want to "
|
|
||||||
#~ "notify you.</p>\n"
|
|
||||||
#~ " "
|
|
||||||
#~ msgstr ""
|
|
||||||
#~ "\n"
|
|
||||||
#~ " <p>Hola</p>\n"
|
|
||||||
#~ " <p>Tenemos modificaciones en el contrato que queremos "
|
|
||||||
#~ "notificarle.</p>\n"
|
|
||||||
#~ " "
|
|
||||||
|
|
||||||
#~ msgid ""
|
|
||||||
#~ "\n"
|
|
||||||
#~ "<div style=\"font-family: 'Lucida Grande', Ubuntu, Arial, Verdana, sans-"
|
|
||||||
#~ "serif; font-size: 12px; color: rgb(34, 34, 34); background-color: #FFF; "
|
|
||||||
#~ "\">\n"
|
|
||||||
#~ " <p>Hello ${object.partner_id.name or ''},</p>\n"
|
|
||||||
#~ " <p>A new contract has been created: </p>\n"
|
|
||||||
#~ "\n"
|
|
||||||
#~ " <p style=\"border-left: 1px solid #8e0000; margin-left: 30px;\">\n"
|
|
||||||
#~ " <strong>REFERENCES</strong><br />\n"
|
|
||||||
#~ " Contract: <strong>${object.name}</strong><br />\n"
|
|
||||||
#~ " % if object.date_start:\n"
|
|
||||||
#~ " Contract Date Start: ${object.date_start or ''}<br />\n"
|
|
||||||
#~ " % endif\n"
|
|
||||||
#~ "\n"
|
|
||||||
#~ " % if object.user_id:\n"
|
|
||||||
#~ " % if object.user_id.email:\n"
|
|
||||||
#~ " Your Contact: <a href=\"mailto:${object.user_id.email "
|
|
||||||
#~ "or ''}?subject=Contract%20${object.name}\">${object.user_id.name}</a>\n"
|
|
||||||
#~ " % else:\n"
|
|
||||||
#~ " Your Contact: ${object.user_id.name}\n"
|
|
||||||
#~ " % endif\n"
|
|
||||||
#~ " % endif\n"
|
|
||||||
#~ " </p>\n"
|
|
||||||
#~ "\n"
|
|
||||||
#~ " <br/>\n"
|
|
||||||
#~ " <p>If you have any questions, do not hesitate to contact us.</p>\n"
|
|
||||||
#~ " <p>Thank you for choosing ${object.company_id.name or 'us'}!</p>\n"
|
|
||||||
#~ " <br/>\n"
|
|
||||||
#~ " <br/>\n"
|
|
||||||
#~ " <div style=\"width: 375px; margin: 0px; padding: 0px; background-"
|
|
||||||
#~ "color: #8E0000; border-top-left-radius: 5px 5px; border-top-right-radius: "
|
|
||||||
#~ "5px 5px; background-repeat: repeat no-repeat;\">\n"
|
|
||||||
#~ " <h3 style=\"margin: 0px; padding: 2px 14px; font-size: 12px; "
|
|
||||||
#~ "color: #DDD;\">\n"
|
|
||||||
#~ " <strong style=\"text-transform:uppercase;\">${object."
|
|
||||||
#~ "company_id.name}</strong></h3>\n"
|
|
||||||
#~ " </div>\n"
|
|
||||||
#~ " <div style=\"width: 347px; margin: 0px; padding: 5px 14px; line-"
|
|
||||||
#~ "height: 16px; background-color: #F2F2F2;\">\n"
|
|
||||||
#~ " <span style=\"color: #222; margin-bottom: 5px; display: block; "
|
|
||||||
#~ "\">\n"
|
|
||||||
#~ " ${object.company_id.partner_id.sudo()."
|
|
||||||
#~ "with_context(show_address=True, html_format=True).name_get()[0][1] | "
|
|
||||||
#~ "safe}\n"
|
|
||||||
#~ " </span>\n"
|
|
||||||
#~ " % if object.company_id.phone:\n"
|
|
||||||
#~ " <div style=\"margin-top: 0px; margin-right: 0px; margin-"
|
|
||||||
#~ "bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; "
|
|
||||||
#~ "padding-bottom: 0px; padding-left: 0px; \">\n"
|
|
||||||
#~ " Phone: ${object.company_id.phone}\n"
|
|
||||||
#~ " </div>\n"
|
|
||||||
#~ " % endif\n"
|
|
||||||
#~ " % if object.company_id.website:\n"
|
|
||||||
#~ " <div>\n"
|
|
||||||
#~ " Web: <a href=\"${object.company_id.website}\">${object."
|
|
||||||
#~ "company_id.website}</a>\n"
|
|
||||||
#~ " </div>\n"
|
|
||||||
#~ " %endif\n"
|
|
||||||
#~ " <p></p>\n"
|
|
||||||
#~ " </div>\n"
|
|
||||||
#~ " <p></p>\n"
|
|
||||||
#~ " <a href=\"${object.get_base_url()}/my/contracts/${object.id}?"
|
|
||||||
#~ "access_token=${object.access_token}\" target=\"_blank\" "
|
|
||||||
#~ "style=\"background-color:#875A7B;padding: 8px 16px 8px 16px; text-"
|
|
||||||
#~ "decoration: none; color: #fff; border-radius: 5px; font-size:13px;\">View "
|
|
||||||
#~ "contract</a>\n"
|
|
||||||
#~ "</div>\n"
|
|
||||||
#~ " "
|
|
||||||
#~ msgstr ""
|
|
||||||
#~ "\n"
|
|
||||||
#~ "<div style=\"font-family: 'Lucida Grande', Ubuntu, Arial, Verdana, sans-"
|
|
||||||
#~ "serif; font-size: 12px; color: rgb(34, 34, 34); background-color: #FFF; "
|
|
||||||
#~ "\">\n"
|
|
||||||
#~ " <p>Hola ${object.partner_id.name or ''},</p>\n"
|
|
||||||
#~ " <p>Se ha creado un nuevo contrato: </p>\n"
|
|
||||||
#~ "\n"
|
|
||||||
#~ " <p style=\"border-left: 1px solid #8e0000; margin-left: 30px;\">\n"
|
|
||||||
#~ " <strong>REFERENCIAS</strong><br />\n"
|
|
||||||
#~ " Contrato: <strong>${object.name}</strong><br />\n"
|
|
||||||
#~ " % if object.date_start:\n"
|
|
||||||
#~ " Fecha inicio contrato: ${object.date_start or ''}<br /"
|
|
||||||
#~ ">\n"
|
|
||||||
#~ " % endif\n"
|
|
||||||
#~ "\n"
|
|
||||||
#~ " % if object.user_id:\n"
|
|
||||||
#~ " % if object.user_id.email:\n"
|
|
||||||
#~ " Su contacto: <a href=\"mailto:${object.user_id.email "
|
|
||||||
#~ "or ''}?subject=Contract%20${object.name}\">${object.user_id.name}</a>\n"
|
|
||||||
#~ " % else:\n"
|
|
||||||
#~ " Su contacto: ${object.user_id.name}\n"
|
|
||||||
#~ " % endif\n"
|
|
||||||
#~ " % endif\n"
|
|
||||||
#~ " </p>\n"
|
|
||||||
#~ "\n"
|
|
||||||
#~ " <br/>\n"
|
|
||||||
#~ " <p>Si tiene alguna pregunta, no dude en contactarnos.</p>\n"
|
|
||||||
#~ " <p>Gracias por elegir a ${object.company_id.name or 'nosotros'}!</p>\n"
|
|
||||||
#~ " <br/>\n"
|
|
||||||
#~ " <br/>\n"
|
|
||||||
#~ " <div style=\"width: 375px; margin: 0px; padding: 0px; background-"
|
|
||||||
#~ "color: #8E0000; border-top-left-radius: 5px 5px; border-top-right-radius: "
|
|
||||||
#~ "5px 5px; background-repeat: repeat no-repeat;\">\n"
|
|
||||||
#~ " <h3 style=\"margin: 0px; padding: 2px 14px; font-size: 12px; "
|
|
||||||
#~ "color: #DDD;\">\n"
|
|
||||||
#~ " <strong style=\"text-transform:uppercase;\">${object."
|
|
||||||
#~ "company_id.name}</strong></h3>\n"
|
|
||||||
#~ " </div>\n"
|
|
||||||
#~ " <div style=\"width: 347px; margin: 0px; padding: 5px 14px; line-"
|
|
||||||
#~ "height: 16px; background-color: #F2F2F2;\">\n"
|
|
||||||
#~ " <span style=\"color: #222; margin-bottom: 5px; display: block; "
|
|
||||||
#~ "\">\n"
|
|
||||||
#~ " ${object.company_id.partner_id.sudo()."
|
|
||||||
#~ "with_context(show_address=True, html_format=True).name_get()[0][1] | "
|
|
||||||
#~ "safe}\n"
|
|
||||||
#~ " </span>\n"
|
|
||||||
#~ " % if object.company_id.phone:\n"
|
|
||||||
#~ " <div style=\"margin-top: 0px; margin-right: 0px; margin-"
|
|
||||||
#~ "bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; "
|
|
||||||
#~ "padding-bottom: 0px; padding-left: 0px; \">\n"
|
|
||||||
#~ " Teléfono: ${object.company_id.phone}\n"
|
|
||||||
#~ " </div>\n"
|
|
||||||
#~ " % endif\n"
|
|
||||||
#~ " % if object.company_id.website:\n"
|
|
||||||
#~ " <div>\n"
|
|
||||||
#~ " Web: <a href=\"${object.company_id.website}\">${object."
|
|
||||||
#~ "company_id.website}</a>\n"
|
|
||||||
#~ " </div>\n"
|
|
||||||
#~ " %endif\n"
|
|
||||||
#~ " <p></p>\n"
|
|
||||||
#~ " </div>\n"
|
|
||||||
#~ " <p></p>\n"
|
|
||||||
#~ " <a href=\"${object.get_base_url()}/my/contracts/${object.id}?"
|
|
||||||
#~ "access_token=${object.access_token}\" target=\"_blank\" "
|
|
||||||
#~ "style=\"background-color:#875A7B;padding: 8px 16px 8px 16px; text-"
|
|
||||||
#~ "decoration: none; color: #fff; border-radius: 5px; font-size:13px;\">Ver "
|
|
||||||
#~ "contrato</a>\n"
|
|
||||||
#~ "</div>\n"
|
|
||||||
#~ " "
|
|
||||||
|
|
||||||
#~ msgid "${object.company_id.name} Contract (Ref ${object.name or 'n/a'})"
|
|
||||||
#~ msgstr "${object.company_id.name} Contrato (Ref ${object.name or 'n/a'})"
|
|
||||||
|
|
||||||
#~ msgid ""
|
|
||||||
#~ "${object.company_id.name} Contract (Ref ${object.name or 'n/a'}) - "
|
|
||||||
#~ "Modifications"
|
|
||||||
#~ msgstr ""
|
|
||||||
#~ "${object.company_id.name} Contrato (Ref ${object.name or 'n/a'}) - "
|
|
||||||
#~ "Modificaciones"
|
|
||||||
|
|
||||||
#~ msgid "Contract line Un-canceled: %s<br/>- "
|
|
||||||
#~ msgstr "Línea de contrato no cancelada: %s<br/>- "
|
|
||||||
|
|
||||||
#~ msgid "Contract line canceled: %s<br/>- "
|
|
||||||
#~ msgstr "Línea de contrato cancelada: %s<br/>- "
|
|
||||||
|
|
||||||
#~ msgid ""
|
|
||||||
#~ "Contract line for <strong>{product}</strong>\n"
|
|
||||||
#~ " stopped: <br/>\n"
|
|
||||||
#~ " - <strong>End</strong>: {old_end} -- "
|
|
||||||
#~ "{new_end}\n"
|
|
||||||
#~ " "
|
|
||||||
#~ msgstr ""
|
|
||||||
#~ "Línea de contrato para <strong>{product}</strong>\n"
|
|
||||||
#~ " detenida: <br/>\n"
|
|
||||||
#~ " - <strong>Fin</strong>: {old_end} -- "
|
|
||||||
#~ "{new_end}\n"
|
|
||||||
#~ " "
|
|
||||||
|
|
||||||
#~ msgid ""
|
|
||||||
#~ "Contract line for <strong>{product}</strong>\n"
|
|
||||||
#~ " planned a successor: <br/>\n"
|
|
||||||
#~ " - <strong>Start</strong>: {new_date_start}\n"
|
|
||||||
#~ " <br/>\n"
|
|
||||||
#~ " - <strong>End</strong>: {new_date_end}\n"
|
|
||||||
#~ " "
|
|
||||||
#~ msgstr ""
|
|
||||||
#~ "Línea de contrato para <strong>{product}</strong>\n"
|
|
||||||
#~ " planeó un sucesor: <br/>\n"
|
|
||||||
#~ " - <strong>Inicio</strong>: {new_date_start}\n"
|
|
||||||
#~ " <br/>\n"
|
|
||||||
#~ " - <strong>Fin</strong>: {new_date_end}\n"
|
|
||||||
#~ " "
|
|
||||||
|
|
||||||
#~ msgid ""
|
|
||||||
#~ "Contract line for <strong>{product}</strong>\n"
|
|
||||||
#~ " renewed: <br/>\n"
|
|
||||||
#~ " - <strong>Start</strong>: {new_date_start}\n"
|
|
||||||
#~ " <br/>\n"
|
|
||||||
#~ " - <strong>End</strong>: {new_date_end}\n"
|
|
||||||
#~ " "
|
|
||||||
#~ msgstr ""
|
|
||||||
#~ "Línea de contrato para <strong>{product}</strong>\n"
|
|
||||||
#~ " renovado: <br/>\n"
|
|
||||||
#~ " - <strong>Inicio</strong>: {new_date_start}\n"
|
|
||||||
#~ " <br/>\n"
|
|
||||||
#~ " - <strong>Fin</strong>: {new_date_end}\n"
|
|
||||||
#~ " "
|
|
||||||
|
|
||||||
#~ msgid ""
|
|
||||||
#~ "Contract line for <strong>{product}</strong>\n"
|
|
||||||
#~ " suspended: <br/>\n"
|
|
||||||
#~ " - <strong>Suspension Start</strong>: {new_date_start}\n"
|
|
||||||
#~ " <br/>\n"
|
|
||||||
#~ " - <strong>Suspension End</strong>: {new_date_end}\n"
|
|
||||||
#~ " "
|
|
||||||
#~ msgstr ""
|
|
||||||
#~ "Línea de contrato para <strong>{product}</strong>\n"
|
|
||||||
#~ " suspendida: <br/>\n"
|
|
||||||
#~ " - <strong>Inicio Suspensión</strong>: {new_date_start}\n"
|
|
||||||
#~ " <br/>\n"
|
|
||||||
#~ " - <strong>Fin Suspensión</strong>: {new_date_end}\n"
|
|
||||||
#~ " "
|
|
||||||
|
|
||||||
#~ msgid ""
|
|
||||||
#~ "Contract manually invoiced: <a href=\"#\" data-oe-model=\"%s\" data-oe-"
|
|
||||||
#~ "id=\"%s\">Invoice</a>"
|
|
||||||
#~ msgstr ""
|
|
||||||
#~ "Contratos facturados manualmente: <a href=\"#\" data-oe-model=\"%s\" data-"
|
|
||||||
#~ "oe-id=\"%s\">Factura</a>"
|
|
||||||
|
|
||||||
#~ msgid "Followers (Channels)"
|
|
||||||
#~ msgstr "Seguimiento (Canales)"
|
|
||||||
|
|
||||||
#~ msgid "Manual renew needed"
|
|
||||||
#~ msgstr "Renovación manual necesaria"
|
|
||||||
|
|
||||||
#~ msgid "Please define a %s journal for the company '%s'."
|
|
||||||
#~ msgstr "Por favor defina un diario de %s para la compañía '%s'."
|
|
||||||
|
|
||||||
#~ msgid "Termination notice date"
|
|
||||||
#~ msgstr "Fecha de aviso de terminación"
|
|
||||||
|
|
||||||
#~ msgid ""
|
|
||||||
#~ "<span attrs=\"{'invisible': [('contract_to_invoice_count', '>', "
|
|
||||||
#~ "1)]}\">\n"
|
|
||||||
#~ " contract to invoice\n"
|
|
||||||
#~ " </span>\n"
|
|
||||||
#~ " <span attrs=\"{'invisible': "
|
|
||||||
#~ "[('contract_to_invoice_count', '<', 1)]}\">\n"
|
|
||||||
#~ " contracts to invoice\n"
|
|
||||||
#~ " </span>"
|
|
||||||
#~ msgstr ""
|
|
||||||
#~ "<span attrs=\"{'invisible': [('contract_to_invoice_count', '>', "
|
|
||||||
#~ "1)]}\">\n"
|
|
||||||
#~ " contrato a facturar\n"
|
|
||||||
#~ " </span>\n"
|
|
||||||
#~ " <span attrs=\"{'invisible': "
|
|
||||||
#~ "[('contract_to_invoice_count', '<', 1)]}\">\n"
|
|
||||||
#~ " contracts to invoice\n"
|
|
||||||
#~ " </span>"
|
|
||||||
|
|
||||||
#~ msgid "Journal Entries"
|
|
||||||
#~ msgstr "Asientos contables"
|
|
||||||
|
|
||||||
#~ msgid "Last date invoice"
|
|
||||||
#~ msgstr "Última fecha de factura"
|
|
||||||
|
|
||||||
#~ msgid "Contract Order -"
|
|
||||||
#~ msgstr "Pedido de contrato -"
|
|
||||||
|
|||||||
@@ -8,6 +8,8 @@
|
|||||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
|
from markupsafe import Markup
|
||||||
|
|
||||||
from odoo import Command, api, fields, models
|
from odoo import Command, api, fields, models
|
||||||
from odoo.exceptions import UserError, ValidationError
|
from odoo.exceptions import UserError, ValidationError
|
||||||
from odoo.osv import expression
|
from odoo.osv import expression
|
||||||
@@ -587,20 +589,10 @@ class ContractContract(models.Model):
|
|||||||
"""
|
"""
|
||||||
invoices = self._recurring_create_invoice()
|
invoices = self._recurring_create_invoice()
|
||||||
for invoice in invoices:
|
for invoice in invoices:
|
||||||
self.message_post(
|
body = Markup(_("Contract manually invoiced: %(invoice_link)s")) % {
|
||||||
body=_(
|
"invoice_link": invoice._get_html_link(title=invoice.name)
|
||||||
"Contract manually invoiced: "
|
}
|
||||||
"<a"
|
self.message_post(body=body)
|
||||||
' href="#" data-oe-model="%(model_name)s" '
|
|
||||||
' data-oe-id="%(rec_id)s"'
|
|
||||||
">Invoice"
|
|
||||||
"</a>"
|
|
||||||
)
|
|
||||||
% {
|
|
||||||
"model_name": invoice._name,
|
|
||||||
"rec_id": invoice.id,
|
|
||||||
}
|
|
||||||
)
|
|
||||||
return invoices
|
return invoices
|
||||||
|
|
||||||
@api.model
|
@api.model
|
||||||
@@ -621,20 +613,11 @@ class ContractContract(models.Model):
|
|||||||
def _add_contract_origin(self, invoices):
|
def _add_contract_origin(self, invoices):
|
||||||
for item in self:
|
for item in self:
|
||||||
for move in invoices & item._get_related_invoices():
|
for move in invoices & item._get_related_invoices():
|
||||||
move.message_post(
|
body = Markup(_("%(msg)s by contract: %(contract_link)s")) % {
|
||||||
body=(
|
"msg": move._creation_message(),
|
||||||
_(
|
"contract_link": move._get_html_link(title=item.display_name),
|
||||||
(
|
}
|
||||||
"%(msg)s by contract <a href=#"
|
move.message_post(body=body)
|
||||||
" data-oe-model=contract.contract"
|
|
||||||
" data-oe-id=%(contract_id)d>%(contract)s</a>."
|
|
||||||
),
|
|
||||||
msg=move._creation_message(),
|
|
||||||
contract_id=item.id,
|
|
||||||
contract=item.display_name,
|
|
||||||
)
|
|
||||||
)
|
|
||||||
)
|
|
||||||
|
|
||||||
def _recurring_create_invoice(self, date_ref=False):
|
def _recurring_create_invoice(self, date_ref=False):
|
||||||
invoices_values = self._prepare_recurring_invoices_values(date_ref)
|
invoices_values = self._prepare_recurring_invoices_values(date_ref)
|
||||||
|
|||||||
Reference in New Issue
Block a user