Skip to content

Commit

Permalink
[MIG] project_funding: migrate to v16.
Browse files Browse the repository at this point in the history
  • Loading branch information
blaskurain committed Aug 2, 2024
1 parent 4c6b7a9 commit a1c023f
Show file tree
Hide file tree
Showing 5 changed files with 134 additions and 53 deletions.
2 changes: 1 addition & 1 deletion project_funding/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

{
"name": "Project Funding",
"version": "11.0.3.0.0",
"version": "16.0.1.0.0",
"license": "AGPL-3",
"depends": [
"project",
Expand Down
174 changes: 130 additions & 44 deletions project_funding/i18n/es.po
Original file line number Diff line number Diff line change
@@ -1,85 +1,110 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * project_funding
# * project_funding
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 11.0\n"
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2022-07-06 08:46+0000\n"
"PO-Revision-Date: 2022-07-06 08:46+0000\n"
"Last-Translator: <>\n"
"POT-Creation-Date: 2024-08-02 11:46+0000\n"
"PO-Revision-Date: 2024-08-02 13:47+0200\n"
"Last-Translator: \n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"

#. module: project_funding
#: model:ir.model.fields,field_description:project_funding.field_funding_source_project_active
#: model:ir.model.fields,field_description:project_funding.field_funding_source_project__message_needaction
msgid "Action Needed"
msgstr "Se requiere acción"

#. module: project_funding
#: model:ir.model.fields,field_description:project_funding.field_funding_source_project__active
msgid "Active"
msgstr "Activo"

#. module: project_funding
#: model:ir.model.fields,field_description:project_funding.field_funding_source_project_budget_approved
#: model:ir.model.fields,field_description:project_funding.field_funding_source_project__budget_approved
msgid "Approved Budget"
msgstr "P. Aprobado"

#. module: project_funding
#: model:ir.ui.view,arch_db:project_funding.funding_source_project_search_view
#: model_terms:ir.ui.view,arch_db:project_funding.funding_source_project_search_view
msgid "Archived"
msgstr "Archivado"

#. module: project_funding
#: model:ir.model.fields,help:project_funding.field_funding_source_project_budget_approved
#: model:ir.model.fields,field_description:project_funding.field_funding_source_project__message_attachment_count
msgid "Attachment Count"
msgstr "Número de adjuntos"

#. module: project_funding
#: model:ir.model.fields,help:project_funding.field_funding_source_project__budget_approved
msgid "Budget amount approved"
msgstr "Presupuesto aprobado"

#. module: project_funding
#: model:ir.model.fields,help:project_funding.field_funding_source_project_budget_submitted
#: model:ir.model.fields,help:project_funding.field_funding_source_project__budget_submitted
msgid "Budget amount proposed"
msgstr "Importe de presupuesto presentado"

#. module: project_funding
#: model:ir.model.fields,field_description:project_funding.field_funding_source_project_create_uid
#: model:ir.model,name:project_funding.model_res_config_settings
msgid "Config Settings"
msgstr "Ajustes de configuración"

#. module: project_funding
#: model:ir.model.fields,field_description:project_funding.field_funding_source_project__create_uid
msgid "Created by"
msgstr "Creado por"

#. module: project_funding
#: model:ir.model.fields,field_description:project_funding.field_funding_source_project_create_date
#: model:ir.model.fields,field_description:project_funding.field_funding_source_project__create_date
msgid "Created on"
msgstr "Creado en"

#. module: project_funding
#: model:ir.model.fields,field_description:project_funding.field_funding_source_project_display_name
#: model:ir.model.fields,field_description:project_funding.field_funding_source_project__display_name
msgid "Display Name"
msgstr "Nombre mostrado"

#. module: project_funding
#: model:ir.ui.view,arch_db:project_funding.project_project_form_view
#: model:ir.model.fields,field_description:project_funding.field_funding_source_project__message_follower_ids
msgid "Followers"
msgstr "Seguidores"

#. module: project_funding
#: model:ir.model.fields,field_description:project_funding.field_funding_source_project__message_partner_ids
msgid "Followers (Partners)"
msgstr "Seguidores (contactos)"

#. module: project_funding
#: model_terms:ir.ui.view,arch_db:project_funding.project_project_form_view
msgid "Funding"
msgstr "Financiación"

#. module: project_funding
#: model:ir.model.fields,field_description:project_funding.field_res_config_settings_group_funding_account
#: model:ir.model.fields,field_description:project_funding.field_res_config_settings__group_funding_account
msgid "Funding Account Visible"
msgstr "Cuenta contable de financiación visible"

#. module: project_funding
#: model:ir.model.fields,field_description:project_funding.field_funding_source_project_funding_date
#: model:ir.model.fields,field_description:project_funding.field_funding_source_project__funding_date
msgid "Funding Date"
msgstr "Fecha de financiación"

#. module: project_funding
#: model:ir.model.fields,field_description:project_funding.field_funding_source_project_source_id
#: model:ir.model.fields,field_description:project_funding.field_funding_source_project__source_id
#: model:ir.ui.menu,name:project_funding.funding_source_config_menuitem
#: model:ir.ui.menu,name:project_funding.funding_source_menuitem
#: model:ir.ui.view,arch_db:project_funding.funding_source_project_search_view
#: model_terms:ir.ui.view,arch_db:project_funding.funding_source_project_search_view
msgid "Funding Source"
msgstr "Programa de financiación"

#. module: project_funding
#: model:ir.model.fields,field_description:project_funding.field_funding_source_project_account_id
#: model:ir.model.fields,field_description:project_funding.field_funding_source_project__account_id
msgid "Funding Source Account"
msgstr "Cuenta contable"

Expand All @@ -88,7 +113,7 @@ msgstr "Cuenta contable"
#: model:ir.model,name:project_funding.model_funding_source_project
#: model:ir.ui.menu,name:project_funding.funding_source_project_config_menuitem
#: model:ir.ui.menu,name:project_funding.funding_source_project_menuitem
#: model:ir.ui.view,arch_db:project_funding.funding_source_project_tree_view
#: model_terms:ir.ui.view,arch_db:project_funding.funding_source_project_tree_view
msgid "Funding Source Project"
msgstr "Financiación de proyecto"

Expand All @@ -98,71 +123,128 @@ msgid "Funding Source Type"
msgstr "Tipo de programa de financiación"

#. module: project_funding
#: model:ir.model.fields,field_description:project_funding.field_project_project_funding_ids
#: model:ir.model.fields,field_description:project_funding.field_project_project__funding_ids
msgid "Funding Sources"
msgstr "Programas de financiación"

#. module: project_funding
#: model:ir.ui.view,arch_db:project_funding.funding_source_project_search_view
#: model_terms:ir.ui.view,arch_db:project_funding.funding_source_project_search_view
msgid "Group By"
msgstr "Agrupar por"

#. module: project_funding
#: model:ir.model.fields,field_description:project_funding.field_funding_source_project_id
#: model:ir.model.fields,field_description:project_funding.field_funding_source_project__has_message
msgid "Has Message"
msgstr "Tiene mensaje"

#. module: project_funding
#: model:ir.model.fields,field_description:project_funding.field_funding_source_project__id
msgid "ID"
msgstr "ID (identificación)"

#. module: project_funding
#: model:ir.model.fields,field_description:project_funding.field_funding_source_project___last_update
#: model:ir.model.fields,help:project_funding.field_funding_source_project__message_needaction
msgid "If checked, new messages require your attention."
msgstr "Si está seleccionado los mensajes requieren su atención"

#. module: project_funding
#: model:ir.model.fields,help:project_funding.field_funding_source_project__message_has_error
msgid "If checked, some messages have a delivery error."
msgstr "Si está seleccionado, algunos mensajes son errores de entrega"

#. module: project_funding
#: model:ir.model.fields,field_description:project_funding.field_funding_source_project__message_is_follower
msgid "Is Follower"
msgstr "Es seguidor"

#. module: project_funding
#: model:ir.model.fields,field_description:project_funding.field_funding_source_project____last_update
msgid "Last Modified on"
msgstr "Última modificación en"

#. module: project_funding
#: model:ir.model.fields,field_description:project_funding.field_funding_source_project_write_uid
#: model:ir.model.fields,field_description:project_funding.field_funding_source_project__write_uid
msgid "Last Updated by"
msgstr "Última actualización de"

#. module: project_funding
#: model:ir.model.fields,field_description:project_funding.field_funding_source_project_write_date
#: model:ir.model.fields,field_description:project_funding.field_funding_source_project__write_date
msgid "Last Updated on"
msgstr "Última actualización en"

#. module: project_funding
#: model:ir.model.fields,field_description:project_funding.field_funding_source_project_percentage
#: model:ir.model.fields,field_description:project_funding.field_funding_source_project__message_main_attachment_id
msgid "Main Attachment"
msgstr "Adjunto principal"

#. module: project_funding
#: model:ir.model.fields,field_description:project_funding.field_funding_source_project__message_has_error
msgid "Message Delivery error"
msgstr "Error de entrega de mensaje"

#. module: project_funding
#: model:ir.model.fields,field_description:project_funding.field_funding_source_project__message_ids
msgid "Messages"
msgstr "Mensajes"

#. module: project_funding
#: model:ir.model.fields,field_description:project_funding.field_funding_source_project__message_needaction_counter
msgid "Number of Actions"
msgstr "Número de acciones"

#. module: project_funding
#: model:ir.model.fields,field_description:project_funding.field_funding_source_project__message_has_error_counter
msgid "Number of errors"
msgstr "Número de errores"

#. module: project_funding
#: model:ir.model.fields,help:project_funding.field_funding_source_project__message_needaction_counter
msgid "Number of messages requiring action"
msgstr "Númeor de mensajes que requieren alguna acción"

#. module: project_funding
#: model:ir.model.fields,help:project_funding.field_funding_source_project__message_has_error_counter
msgid "Number of messages with delivery error"
msgstr "Número de mensajes con errores de entrega"

#. module: project_funding
#: model:ir.model.fields,field_description:project_funding.field_funding_source_project__percentage
msgid "Percentage (%)"
msgstr "Porcentaje (%)"

#. module: project_funding
#: code:addons/project_funding/models/funding_source_project.py:43
#. odoo-python
#: code:addons/project_funding/models/funding_source_project.py:0
#, python-format
msgid "Percentage must be bigger than 0"
msgstr "El porcentaje debe ser mayor que 0"

#. module: project_funding
#: code:addons/project_funding/models/funding_source_project.py:46
#. odoo-python
#: code:addons/project_funding/models/funding_source_project.py:0
#, python-format
msgid "Percentage should be less or equal to 100"
msgstr "El porcentaje debe ser menor o igual a 100"

#. module: project_funding
#: model:ir.model,name:project_funding.model_project_project
#: model:ir.model.fields,field_description:project_funding.field_funding_source_project_project_id
#: model:ir.ui.view,arch_db:project_funding.funding_source_project_search_view
#: model:ir.model.fields,field_description:project_funding.field_funding_source_project__project_id
#: model_terms:ir.ui.view,arch_db:project_funding.funding_source_project_search_view
msgid "Project"
msgstr "Proyecto"

#. module: project_funding
#: model:ir.ui.view,arch_db:project_funding.project_config_settings_form_view
#: model_terms:ir.ui.view,arch_db:project_funding.project_config_settings_form_view
msgid "Project Funding"
msgstr "Financiación de proyecto"

#. module: project_funding
#: model:ir.model.fields,field_description:project_funding.field_funding_source_project_budget_submitted
#: model:ir.model.fields,field_description:project_funding.field_funding_source_project__budget_submitted
msgid "Proposed Budget"
msgstr "P. Presentado"

#. module: project_funding
#: model:ir.ui.view,arch_db:project_funding.funding_source_project_search_view
#: model_terms:ir.ui.view,arch_db:project_funding.funding_source_project_search_view
msgid "Search Funding Source Project"
msgstr "Buscar financiación de proyecto"

Expand All @@ -172,27 +254,31 @@ msgid "Show Project Funding Account"
msgstr "Mostrar cuenta contable"

#. module: project_funding
#: model:ir.ui.view,arch_db:project_funding.project_config_settings_form_view
#: model_terms:ir.ui.view,arch_db:project_funding.project_config_settings_form_view
msgid "Show related funding account on project funding."
msgstr "Muestra la cuenta contable asociada a la financiación de proyecto."

#. module: project_funding
#: model:ir.ui.view,arch_db:project_funding.project_config_settings_form_view
#: model_terms:ir.ui.view,arch_db:project_funding.project_config_settings_form_view
msgid "Specific Settings For Project Funding"
msgstr "Ajustes de la financiación de proyecto"

#. module: project_funding
#: model:ir.model.fields,field_description:project_funding.field_funding_source_project_year
#: model:ir.model.fields,field_description:project_funding.field_funding_source_project__website_message_ids
msgid "Website Messages"
msgstr "Mensajes del sitio web"

#. module: project_funding
#: model:ir.model.fields,help:project_funding.field_funding_source_project__website_message_ids
msgid "Website communication history"
msgstr "Histórico de comunicación del sitio web"

#. module: project_funding
#: model:ir.model.fields,field_description:project_funding.field_funding_source_project__year
msgid "Year"
msgstr "Año"

#. module: project_funding
#: model:ir.model.fields,field_description:project_funding.field_funding_source_project_yearly_amount
#: model:ir.model.fields,field_description:project_funding.field_funding_source_project__yearly_amount
msgid "Yearly Amount"
msgstr "Importe anual"

#. module: project_funding
#: model:ir.model,name:project_funding.model_res_config_settings
msgid "res.config.settings"
msgstr "res.config.settings"

2 changes: 0 additions & 2 deletions project_funding/models/funding_source_project.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ class FundingSourceProject(models.Model):
string='Approved Budget', digits=dp.get_precision('Funding'),
help='Budget amount approved', track_visibility='onchange')

@api.multi
@api.constrains('percentage')
def _check_discount(self):
for line in self:
Expand All @@ -45,7 +44,6 @@ def _check_discount(self):
raise ValidationError(
_("Percentage should be less or equal to 100"))

@api.multi
def name_get(self):
""" name_get() -> [(id, name), ...]
Expand Down
3 changes: 1 addition & 2 deletions project_funding/models/project_project.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Copyright 2018 Oihane Crucelaegui - AvanzOSC
# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html

from odoo import api, fields, models
from odoo import fields, models


class ProjectProject(models.Model):
Expand All @@ -11,7 +11,6 @@ class ProjectProject(models.Model):
comodel_name='funding.source.project', inverse_name='project_id',
string='Funding Sources', copy=True, context={'active_test': False})

@api.multi
def write(self, vals):
res = super(ProjectProject, self).write(vals) if vals else True
if 'active' in vals:
Expand Down
6 changes: 2 additions & 4 deletions project_funding/views/project_project_view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,8 @@
<field name="arch" type="xml">
<notebook position="inside">
<page name="funding_sources" string="Funding">
<group name="funding_sources" string="Funding">
<field name="funding_ids" context="{'default_project_id':active_id, 'active_test': False}"
nolabel="1" />
</group>
<field name="funding_ids" context="{'default_project_id':active_id, 'active_test': False}"
nolabel="1"/>
</page>
</notebook>
</field>
Expand Down

0 comments on commit a1c023f

Please sign in to comment.