Skip to content

Commit

Permalink
Merge branch 'OCA:16.0' into 16.0-t3822-helpdesk_mgmt_activity-add_mo…
Browse files Browse the repository at this point in the history
…dule
  • Loading branch information
Bearnard21 authored Dec 20, 2024
2 parents 1ef073b + 9afb9ec commit 41edd6a
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 4 deletions.
8 changes: 5 additions & 3 deletions helpdesk_mgmt/i18n/pt_BR.po
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,16 @@ msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 11.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2024-07-05 20:47+0000\n"
"Last-Translator: rodrigosottomaiormacedo "
"PO-Revision-Date: 2024-12-19 16:06+0000\n"
"Last-Translator: Rodrigo Sottomaior Macedo "
"<sottomaiormacedotec@sottomaiormacedo.tech>\n"
"Language-Team: none\n"
"Language: pt_BR\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=n > 1;\n"
"X-Generator: Weblate 4.17\n"
"X-Generator: Weblate 5.6.2\n"

#. module: helpdesk_mgmt
#. odoo-javascript
Expand Down Expand Up @@ -74,6 +74,8 @@ msgid ""
"<strong>Attachments:</strong>\n"
" <br/>"
msgstr ""
"<strong>Anexos:</strong>\n"
" <br/>"

#. module: helpdesk_mgmt
#: model_terms:ir.ui.view,arch_db:helpdesk_mgmt.portal_helpdesk_ticket_page
Expand Down
28 changes: 28 additions & 0 deletions helpdesk_mgmt_portal_follower/i18n/pt_BR.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * helpdesk_mgmt_portal_follower
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2024-12-19 16:06+0000\n"
"Last-Translator: Rodrigo Sottomaior Macedo "
"<sottomaiormacedotec@sottomaiormacedo.tech>\n"
"Language-Team: none\n"
"Language: pt_BR\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=n > 1;\n"
"X-Generator: Weblate 5.6.2\n"

#. module: helpdesk_mgmt_portal_follower
#: model_terms:ir.ui.view,arch_db:helpdesk_mgmt_portal_follower.helpdesk_portal_add_followers
msgid "Emails in Copy"
msgstr "E-mails em cópia"

#. module: helpdesk_mgmt_portal_follower
#: model_terms:ir.ui.view,arch_db:helpdesk_mgmt_portal_follower.helpdesk_portal_add_followers
msgid "example@example.com, ..."
msgstr "exemplo@exemplo.com, ..."
4 changes: 4 additions & 0 deletions helpdesk_mgmt_project/migrations/16.0.2.2.0/post-migration.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,14 @@

from openupgradelib import openupgrade

from odoo.tools.sql import column_exists


@openupgrade.migrate()
def migrate(env, version):
"""Set the default_project_id value in the project company."""
if not column_exists(env.cr, "helpdesk_ticket_team", "old_default_project_id"):
return
env.cr.execute(
"""
SELECT htt.id, htt.old_default_project_id, pp.company_id
Expand Down
5 changes: 4 additions & 1 deletion helpdesk_mgmt_project/migrations/16.0.2.2.0/pre-migration.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@

from openupgradelib import openupgrade

from odoo.tools.sql import column_exists

column_renames = {
"helpdesk_ticket_team": [("default_project_id", "old_default_project_id")],
}
Expand All @@ -11,4 +13,5 @@
@openupgrade.migrate()
def migrate(env, version):
"""Rename the column to keep the old value."""
openupgrade.rename_columns(env.cr, column_renames)
if column_exists(env.cr, "helpdesk_ticket_team", "default_project_id"):
openupgrade.rename_columns(env.cr, column_renames)

0 comments on commit 41edd6a

Please sign in to comment.