Merge PR #954 into 14.0

Signed-off-by pedrobaeza
This commit is contained in:
OCA-git-bot
2023-05-24 07:14:37 +00:00
2 changed files with 34 additions and 27 deletions

View File

@@ -10,7 +10,7 @@ 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: 2020-12-31 14:54+0000\n"
"PO-Revision-Date: 2022-11-09 10:45+0000\n" "PO-Revision-Date: 2023-05-17 14:00-0400\n"
"Last-Translator: JHernandezConinpe <jhernandez@coninpe.es>\n" "Last-Translator: JHernandezConinpe <jhernandez@coninpe.es>\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"
@@ -18,7 +18,7 @@ msgstr ""
"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 4.14.1\n" "X-Generator: Poedit 3.1.1\n"
#. module: contract #. module: contract
#: model:mail.template,body_html:contract.mail_template_contract_modification #: model:mail.template,body_html:contract.mail_template_contract_modification
@@ -233,6 +233,10 @@ msgid ""
" the\n" " the\n"
" invoiced period" " invoiced period"
msgstr "" msgstr ""
"<strong>#INVOICEMONTHNAME#</strong>\n"
" : Nombre del mes\n"
" del\n"
" periodo facturado"
#. module: contract #. module: contract
#: model_terms:ir.ui.view,arch_db:contract.contract_template_form_view #: model_terms:ir.ui.view,arch_db:contract.contract_template_form_view
@@ -240,6 +244,7 @@ msgid ""
"<strong>#INVOICEMONTHNAME#</strong>: Invoice month name of the invoiced " "<strong>#INVOICEMONTHNAME#</strong>: Invoice month name of the invoiced "
"period" "period"
msgstr "" msgstr ""
"<strong>#INVOICEMONTHNAME#</strong>: Nombre del mes del periodo facturado"
#. module: contract #. module: contract
#: model_terms:ir.ui.view,arch_db:contract.contract_contract_form_view #: model_terms:ir.ui.view,arch_db:contract.contract_contract_form_view
@@ -448,7 +453,7 @@ msgstr "Cuenta analítica"
#: code:addons/contract/models/contract_line.py:0 #: code:addons/contract/models/contract_line.py:0
#, python-format #, python-format
msgid "April" msgid "April"
msgstr "" msgstr "Abril"
#. module: contract #. module: contract
#: model_terms:ir.ui.view,arch_db:contract.contract_contract_search_view #: model_terms:ir.ui.view,arch_db:contract.contract_contract_search_view
@@ -485,7 +490,7 @@ msgstr "Nº de archivos adjuntos"
#: code:addons/contract/models/contract_line.py:0 #: code:addons/contract/models/contract_line.py:0
#, python-format #, python-format
msgid "August" msgid "August"
msgstr "" msgstr "Agosto"
#. module: contract #. module: contract
#: model:ir.model.fields,field_description:contract.field_contract_abstract_contract_line__is_auto_renew #: model:ir.model.fields,field_description:contract.field_contract_abstract_contract_line__is_auto_renew
@@ -1093,7 +1098,7 @@ msgstr "Día(s)"
#: code:addons/contract/models/contract_line.py:0 #: code:addons/contract/models/contract_line.py:0
#, python-format #, python-format
msgid "December" msgid "December"
msgstr "" msgstr "Diciembre"
#. module: contract #. module: contract
#: model:ir.model.fields,help:contract.field_contract_abstract_contract_line__note_invoicing_mode #: model:ir.model.fields,help:contract.field_contract_abstract_contract_line__note_invoicing_mode
@@ -1189,7 +1194,7 @@ msgstr ""
#: code:addons/contract/models/contract_line.py:0 #: code:addons/contract/models/contract_line.py:0
#, python-format #, python-format
msgid "February" msgid "February"
msgstr "" msgstr "Febrero"
#. module: contract #. module: contract
#: model_terms:ir.ui.view,arch_db:contract.contract_contract_search_view #: model_terms:ir.ui.view,arch_db:contract.contract_contract_search_view
@@ -1431,7 +1436,7 @@ msgstr "Es suspensión sin fecha de finalización"
#: code:addons/contract/models/contract_line.py:0 #: code:addons/contract/models/contract_line.py:0
#, python-format #, python-format
msgid "January" msgid "January"
msgstr "" msgstr "Enero"
#. module: contract #. module: contract
#: model:ir.model.fields,field_description:contract.field_contract_abstract_contract__journal_id #: model:ir.model.fields,field_description:contract.field_contract_abstract_contract__journal_id
@@ -1455,13 +1460,13 @@ msgstr "Apunte contable"
#: code:addons/contract/models/contract_line.py:0 #: code:addons/contract/models/contract_line.py:0
#, python-format #, python-format
msgid "July" msgid "July"
msgstr "" msgstr "Julio"
#. module: contract #. module: contract
#: code:addons/contract/models/contract_line.py:0 #: code:addons/contract/models/contract_line.py:0
#, python-format #, python-format
msgid "June" msgid "June"
msgstr "" msgstr "Junio"
#. module: contract #. module: contract
#: model:ir.model.fields,field_description:contract.field_contract_abstract_contract_line__last_date_invoiced #: model:ir.model.fields,field_description:contract.field_contract_abstract_contract_line__last_date_invoiced
@@ -1562,7 +1567,7 @@ msgstr "Facturar manualmente contratos de venta"
#: code:addons/contract/models/contract_line.py:0 #: code:addons/contract/models/contract_line.py:0
#, python-format #, python-format
msgid "March" msgid "March"
msgstr "" msgstr "Marzo"
#. module: contract #. module: contract
#: model:ir.model.fields,help:contract.field_contract_abstract_contract__line_recurrence #: model:ir.model.fields,help:contract.field_contract_abstract_contract__line_recurrence
@@ -1579,7 +1584,7 @@ msgstr ""
#: code:addons/contract/models/contract_line.py:0 #: code:addons/contract/models/contract_line.py:0
#, python-format #, python-format
msgid "May" msgid "May"
msgstr "" msgstr "Mayo"
#. module: contract #. module: contract
#: model:ir.model.fields,field_description:contract.field_contract_contract__message_has_error #: model:ir.model.fields,field_description:contract.field_contract_contract__message_has_error
@@ -1707,7 +1712,7 @@ msgstr "Notas"
#: code:addons/contract/models/contract_line.py:0 #: code:addons/contract/models/contract_line.py:0
#, python-format #, python-format
msgid "November" msgid "November"
msgstr "" msgstr "Noviembre"
#. module: contract #. module: contract
#: model:ir.model.fields,field_description:contract.field_contract_contract__message_needaction_counter #: model:ir.model.fields,field_description:contract.field_contract_contract__message_needaction_counter
@@ -1754,7 +1759,7 @@ msgstr "Número de mensajes no leídos"
#: code:addons/contract/models/contract_line.py:0 #: code:addons/contract/models/contract_line.py:0
#, python-format #, python-format
msgid "October" msgid "October"
msgstr "" msgstr "Octubre"
#. module: contract #. module: contract
#: model:ir.model.fields,field_description:contract.field_account_bank_statement_line__old_contract_id #: model:ir.model.fields,field_description:contract.field_account_bank_statement_line__old_contract_id
@@ -2037,7 +2042,7 @@ msgstr "Enviado"
#: code:addons/contract/models/contract_line.py:0 #: code:addons/contract/models/contract_line.py:0
#, python-format #, python-format
msgid "September" msgid "September"
msgstr "" msgstr "Septiembre"
#. module: contract #. module: contract
#: model:ir.model.fields,field_description:contract.field_contract_abstract_contract_line__sequence #: model:ir.model.fields,field_description:contract.field_contract_abstract_contract_line__sequence

View File

@@ -618,18 +618,18 @@ class ContractLine(models.Model):
def _translate_marker_month_name(self, month_name): def _translate_marker_month_name(self, month_name):
months = { months = {
"January": _("January"), "01": _("January"),
"February": _("February"), "02": _("February"),
"March": _("March"), "03": _("March"),
"April": _("April"), "04": _("April"),
"May": _("May"), "05": _("May"),
"June": _("June"), "06": _("June"),
"July": _("July"), "07": _("July"),
"August": _("August"), "08": _("August"),
"September": _("September"), "09": _("September"),
"October": _("October"), "10": _("October"),
"November": _("November"), "11": _("November"),
"December": _("December"), "12": _("December"),
} }
return months[month_name] return months[month_name]
@@ -641,10 +641,12 @@ class ContractLine(models.Model):
name = self.name name = self.name
name = name.replace("#START#", first_date_invoiced.strftime(date_format)) name = name.replace("#START#", first_date_invoiced.strftime(date_format))
name = name.replace("#END#", last_date_invoiced.strftime(date_format)) name = name.replace("#END#", last_date_invoiced.strftime(date_format))
name = name.replace("#INVOICEMONTHNUMBER#", first_date_invoiced.strftime("%m"))
name = name.replace("#INVOICEYEAR#", first_date_invoiced.strftime("%Y"))
name = name.replace( name = name.replace(
"#INVOICEMONTHNAME#", "#INVOICEMONTHNAME#",
self.with_context(lang=lang.code)._translate_marker_month_name( self.with_context(lang=lang.code)._translate_marker_month_name(
first_date_invoiced.strftime("%B") first_date_invoiced.strftime("%m")
), ),
) )
return name return name