Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 10 additions & 12 deletions github_connector_odoo/i18n/es.po
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,16 @@ msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 15.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2023-08-18 08:49+0000\n"
"POT-Creation-Date: 2024-03-13 11:14+0000\n"
"PO-Revision-Date: 2024-03-13 12:14+0100\n"
"Last-Translator: Víctor Martínez <victor.martinez@tecnativa.com>\n"
"Language-Team: none\n"
"Language: es\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Generator: Weblate 4.17\n"
"X-Generator: Poedit 3.0.1\n"

#. module: github_connector_odoo
#: model:ir.model.fields,field_description:github_connector_odoo.field_odoo_module_version_rule_info__code_count
Expand Down Expand Up @@ -388,6 +389,12 @@ msgstr "Licencia (Manifiesto)"
msgid "Localization"
msgstr "Localización"

#. module: github_connector_odoo
#: model:ir.model.fields,field_description:github_connector_odoo.field_odoo_module__maintainers
#: model:ir.model.fields,field_description:github_connector_odoo.field_odoo_module_version__maintainers
msgid "Maintainers (Manifest)"
msgstr "Mantenedores (Manifiesto)"

#. module: github_connector_odoo
#: model:ir.model.fields,field_description:github_connector_odoo.field_github_analysis_rule__manifest_key_ids
#: model:ir.model.fields,field_description:github_connector_odoo.field_github_repository_branch_rule_info_report__manifest_key_ids
Expand Down Expand Up @@ -822,12 +829,3 @@ msgstr "Sitio web (Manifiesto)"
#: model_terms:ir.ui.view,arch_db:github_connector_odoo.view_odoo_module_search
msgid "With Version"
msgstr "Con versión"

#~ msgid "# String"
#~ msgstr "# Cadena"

#~ msgid "String Count"
#~ msgstr "Total de cadenas"

#~ msgid "Total string"
#~ msgstr "Total cadena"
8 changes: 8 additions & 0 deletions github_connector_odoo/i18n/github_connector_odoo.pot
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-03-13 11:14+0000\n"
"PO-Revision-Date: 2024-03-13 11:14+0000\n"
"Last-Translator: \n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
Expand Down Expand Up @@ -385,6 +387,12 @@ msgstr ""
msgid "Localization"
msgstr ""

#. module: github_connector_odoo
#: model:ir.model.fields,field_description:github_connector_odoo.field_odoo_module__maintainers
#: model:ir.model.fields,field_description:github_connector_odoo.field_odoo_module_version__maintainers
msgid "Maintainers (Manifest)"
msgstr ""

#. module: github_connector_odoo
#: model:ir.model.fields,field_description:github_connector_odoo.field_github_analysis_rule__manifest_key_ids
#: model:ir.model.fields,field_description:github_connector_odoo.field_github_repository_branch_rule_info_report__manifest_key_ids
Expand Down
14 changes: 14 additions & 0 deletions github_connector_odoo/models/odoo_module.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@ class OdooModule(models.Model):
string="Authors (Text)", compute="_compute_author", store=True
)

maintainers = fields.Char(
string="Maintainers (Manifest)", compute="_compute_maintainers", store=True
)

organization_serie_ids = fields.Many2many(
string="Series",
comodel_name="github.organization.serie",
Expand Down Expand Up @@ -155,6 +159,16 @@ def _compute_author(self):
module.author_ids = [x.id for x in authors]
module.author_ids_description = ", ".join(sorted(x.name for x in authors))

@api.depends("module_version_ids.maintainers")
def _compute_maintainers(self):
for module in self:
maintainers = []
for version in module.module_version_ids.filtered("maintainers"):
for maintainer in version.maintainers.split(","):
if maintainer not in maintainers:
maintainers.append(maintainer)
module.maintainers = ", ".join(maintainers)

@api.depends("module_version_ids.organization_serie_id")
def _compute_organization_serie(self):
for module in self:
Expand Down
3 changes: 3 additions & 0 deletions github_connector_odoo/models/odoo_module_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,8 @@ class OdooModuleVersion(models.Model):
string="Authors (Text)", compute="_compute_author", store=True
)

maintainers = fields.Char(string="Maintainers (Manifest)", readonly=True)

lib_python_ids = fields.Many2many(
comodel_name="odoo.lib.python",
string="Python Lib Dependencies",
Expand Down Expand Up @@ -439,6 +441,7 @@ def manifest_2_odoo(self, info, repository_branch, module):
"description_rst": info["description"],
"external_dependencies": info.get("external_dependencies", {}),
"author": ",".join([x.strip() for x in sorted(author_list) if x.strip()]),
"maintainers": ",".join(info.get("maintainers", [])),
"depends": ",".join([x for x in sorted(info["depends"]) if x]),
"manifest_keys": ",".join([x for x in sorted(manifest_keys) if x]),
"repository_branch_id": repository_branch.id,
Expand Down
3 changes: 3 additions & 0 deletions github_connector_odoo/views/view_odoo_module.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
<field name="name" />
<field name="technical_name" />
<field name="author_ids" />
<field name="maintainers" />
<field name="organization_serie_ids" />
<field name="description_rst" />
<filter
Expand All @@ -30,6 +31,7 @@ License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
<field name="name" />
<field name="organization_serie_ids_description" />
<field name="author_ids_description" />
<field name="maintainers" />
<field name="module_version_qty" />
</tree>
</field>
Expand Down Expand Up @@ -85,6 +87,7 @@ License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
string="Available for"
/>
<field name="author_ids" widget="many2many_tags" />
<field name="maintainers" />
</group>
<notebook>
<page string="Descriptions">
Expand Down
3 changes: 3 additions & 0 deletions github_connector_odoo/views/view_odoo_module_version.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
<field name="repository_id" />
<field name="license_id" />
<field name="author_ids" />
<field name="maintainers" />
<field name="organization_serie_id" />
<group expand="0" string="Group By">
<filter
Expand Down Expand Up @@ -54,6 +55,7 @@ License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
<field name="technical_name" />
<field name="name" />
<field name="author_ids_description" />
<field name="maintainers" />
<field name="lib_python_ids_description" string="Python Lib" />
<field name="lib_bin_ids_description" string="Bin Lib" />
<field name="license_id" />
Expand Down Expand Up @@ -115,6 +117,7 @@ License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
<page string="Technical information (Manifest)">
<group col="4">
<field name="author" />
<field name="maintainers" />
<field name="license" />
<field name="website" />
<field name="manifest_keys" />
Expand Down