Skip to content

Commit

Permalink
Run pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
ecino committed May 23, 2024
1 parent 8906a7d commit 793c3d3
Show file tree
Hide file tree
Showing 4 changed files with 84 additions and 42 deletions.
38 changes: 27 additions & 11 deletions sponsorship_compassion/i18n/de.po
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Compassion Odoo 14\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-05-23 11:06+0000\n"
"POT-Creation-Date: 2024-05-23 11:56+0000\n"
"PO-Revision-Date: \n"
"Last-Translator: \n"
"Language-Team: \n"
Expand Down Expand Up @@ -38,6 +38,11 @@ msgstr "Aktive Patenschaften"
msgid "Additional comments"
msgstr "Zusätzliche Kommentare"

#. module: sponsorship_compassion
#: model:ir.model.fields,field_description:sponsorship_compassion.field_recurring_contract__child_age
msgid "Age"
msgstr "Alter"

#. module: sponsorship_compassion
#: model:ir.model.fields.selection,name:sponsorship_compassion.selection__res_partner__portal_sponsorships__all
msgid "All (partner is the correspondent and/or the payer)"
Expand Down Expand Up @@ -156,11 +161,21 @@ msgstr "Kinderbild-Download-Assistent"
msgid "Child Sponsorship"
msgstr "Patenschaft"

#. module: sponsorship_compassion
#: model:ir.model.fields,field_description:sponsorship_compassion.field_recurring_contract__child_code
msgid "Child code"
msgstr "Kinder Ref."

#. module: sponsorship_compassion
#: model:recurring.contract.end.reason,name:sponsorship_compassion.end_reason_release
msgid "Child hold expired"
msgstr "Kindersicherung ist abgelaufen"

#. module: sponsorship_compassion
#: model:ir.model.fields,field_description:sponsorship_compassion.field_recurring_contract__child_name
msgid "Child name"
msgstr "Kinder Name"

#. module: sponsorship_compassion
#: model:ir.model.fields,help:sponsorship_compassion.field_recurring_contract__child_code
msgid "Child reference"
Expand Down Expand Up @@ -516,6 +531,11 @@ msgstr "Fonds-Spende"
msgid "GMC returned an error :"
msgstr "GMC hat einen Fehler zurückgegeben:"

#. module: sponsorship_compassion
#: model:ir.model.fields,field_description:sponsorship_compassion.field_recurring_contract__child_gender
msgid "Gender"
msgstr "Geschlecht"

#. module: sponsorship_compassion
#: model:ir.model.fields.selection,name:sponsorship_compassion.selection__recurring_contract__type__o
msgid "General"
Expand Down Expand Up @@ -1288,16 +1308,6 @@ msgstr "Patenkind"
msgid "Sponsored child :"
msgstr "Patenkind:"

#. module: sponsorship_compassion
#: model:ir.model.fields,field_description:sponsorship_compassion.field_recurring_contract__child_code
msgid "Sponsored child code"
msgstr "Code für gesponsertes Kind"

#. module: sponsorship_compassion
#: model:ir.model.fields,field_description:sponsorship_compassion.field_recurring_contract__child_name
msgid "Sponsored child name"
msgstr "Name des Patenkindes"

#. module: sponsorship_compassion
#: model:ir.model.fields,field_description:sponsorship_compassion.field_res_partner__sponsored_child_ids
#: model:ir.model.fields,field_description:sponsorship_compassion.field_res_users__sponsored_child_ids
Expand Down Expand Up @@ -1662,3 +1672,9 @@ msgstr "jede"
#: model:ir.model.fields,field_description:sponsorship_compassion.field_recurring_contract__sub_sponsorship_id
msgid "sub sponsorship"
msgstr "SUB-Patenschaft"

#~ msgid "Sponsored child code"
#~ msgstr "Code für gesponsertes Kind"

#~ msgid "Sponsored child name"
#~ msgstr "Name des Patenkindes"
38 changes: 27 additions & 11 deletions sponsorship_compassion/i18n/fr_CH.po
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Compassion Odoo 14\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-05-23 11:06+0000\n"
"POT-Creation-Date: 2024-05-23 11:56+0000\n"
"PO-Revision-Date: \n"
"Last-Translator: \n"
"Language-Team: \n"
Expand Down Expand Up @@ -38,6 +38,11 @@ msgstr "Parrainages actifs"
msgid "Additional comments"
msgstr "Commentaires additionnels"

#. module: sponsorship_compassion
#: model:ir.model.fields,field_description:sponsorship_compassion.field_recurring_contract__child_age
msgid "Age"
msgstr "Age"

#. module: sponsorship_compassion
#: model:ir.model.fields.selection,name:sponsorship_compassion.selection__res_partner__portal_sponsorships__all
msgid "All (partner is the correspondent and/or the payer)"
Expand Down Expand Up @@ -158,11 +163,21 @@ msgstr "Child Picture Download Wizard"
msgid "Child Sponsorship"
msgstr "Parrainage"

#. module: sponsorship_compassion
#: model:ir.model.fields,field_description:sponsorship_compassion.field_recurring_contract__child_code
msgid "Child code"
msgstr "Réf. Enfant"

#. module: sponsorship_compassion
#: model:recurring.contract.end.reason,name:sponsorship_compassion.end_reason_release
msgid "Child hold expired"
msgstr "Le Hold de l'enfant a expiré"

#. module: sponsorship_compassion
#: model:ir.model.fields,field_description:sponsorship_compassion.field_recurring_contract__child_name
msgid "Child name"
msgstr "Nom Enfant"

#. module: sponsorship_compassion
#: model:ir.model.fields,help:sponsorship_compassion.field_recurring_contract__child_code
msgid "Child reference"
Expand Down Expand Up @@ -518,6 +533,11 @@ msgstr "Don au fond"
msgid "GMC returned an error :"
msgstr "GMC a renvoyé une erreur :"

#. module: sponsorship_compassion
#: model:ir.model.fields,field_description:sponsorship_compassion.field_recurring_contract__child_gender
msgid "Gender"
msgstr "Genre"

#. module: sponsorship_compassion
#: model:ir.model.fields.selection,name:sponsorship_compassion.selection__recurring_contract__type__o
msgid "General"
Expand Down Expand Up @@ -1290,16 +1310,6 @@ msgstr "Enfant parrainé"
msgid "Sponsored child :"
msgstr "Enfant parrainé :"

#. module: sponsorship_compassion
#: model:ir.model.fields,field_description:sponsorship_compassion.field_recurring_contract__child_code
msgid "Sponsored child code"
msgstr "Code de l'enfant parrainé"

#. module: sponsorship_compassion
#: model:ir.model.fields,field_description:sponsorship_compassion.field_recurring_contract__child_name
msgid "Sponsored child name"
msgstr "Nom de l'enfant parrainé :"

#. module: sponsorship_compassion
#: model:ir.model.fields,field_description:sponsorship_compassion.field_res_partner__sponsored_child_ids
#: model:ir.model.fields,field_description:sponsorship_compassion.field_res_users__sponsored_child_ids
Expand Down Expand Up @@ -1662,3 +1672,9 @@ msgstr "chaque"
#: model:ir.model.fields,field_description:sponsorship_compassion.field_recurring_contract__sub_sponsorship_id
msgid "sub sponsorship"
msgstr "reprise"

#~ msgid "Sponsored child code"
#~ msgstr "Code de l'enfant parrainé"

#~ msgid "Sponsored child name"
#~ msgstr "Nom de l'enfant parrainé :"
38 changes: 27 additions & 11 deletions sponsorship_compassion/i18n/it.po
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Compassion Odoo 14\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-05-23 11:06+0000\n"
"POT-Creation-Date: 2024-05-23 11:56+0000\n"
"PO-Revision-Date: \n"
"Last-Translator: \n"
"Language-Team: \n"
Expand Down Expand Up @@ -38,6 +38,11 @@ msgstr "Sponsorizzazioni attive"
msgid "Additional comments"
msgstr "Commenti aggiuntivi"

#. module: sponsorship_compassion
#: model:ir.model.fields,field_description:sponsorship_compassion.field_recurring_contract__child_age
msgid "Age"
msgstr "Età"

#. module: sponsorship_compassion
#: model:ir.model.fields.selection,name:sponsorship_compassion.selection__res_partner__portal_sponsorships__all
msgid "All (partner is the correspondent and/or the payer)"
Expand Down Expand Up @@ -157,11 +162,21 @@ msgstr "Scaricamento guidato di immagini per bambini"
msgid "Child Sponsorship"
msgstr "Sostegno"

#. module: sponsorship_compassion
#: model:ir.model.fields,field_description:sponsorship_compassion.field_recurring_contract__child_code
msgid "Child code"
msgstr "Codice Bambino"

#. module: sponsorship_compassion
#: model:recurring.contract.end.reason,name:sponsorship_compassion.end_reason_release
msgid "Child hold expired"
msgstr "La presa in carico del bambino è scaduta"

#. module: sponsorship_compassion
#: model:ir.model.fields,field_description:sponsorship_compassion.field_recurring_contract__child_name
msgid "Child name"
msgstr "Bambino nome"

#. module: sponsorship_compassion
#: model:ir.model.fields,help:sponsorship_compassion.field_recurring_contract__child_code
msgid "Child reference"
Expand Down Expand Up @@ -517,6 +532,11 @@ msgstr "Donazione di fondi"
msgid "GMC returned an error :"
msgstr "GMC ha restituito un errore :"

#. module: sponsorship_compassion
#: model:ir.model.fields,field_description:sponsorship_compassion.field_recurring_contract__child_gender
msgid "Gender"
msgstr "Genere"

#. module: sponsorship_compassion
#: model:ir.model.fields.selection,name:sponsorship_compassion.selection__recurring_contract__type__o
msgid "General"
Expand Down Expand Up @@ -1290,16 +1310,6 @@ msgstr "Bambino"
msgid "Sponsored child :"
msgstr "Bambino sponsorizzato :"

#. module: sponsorship_compassion
#: model:ir.model.fields,field_description:sponsorship_compassion.field_recurring_contract__child_code
msgid "Sponsored child code"
msgstr "Codice bambino sponsorizzato"

#. module: sponsorship_compassion
#: model:ir.model.fields,field_description:sponsorship_compassion.field_recurring_contract__child_name
msgid "Sponsored child name"
msgstr "Nome del bambino sponsorizzato"

#. module: sponsorship_compassion
#: model:ir.model.fields,field_description:sponsorship_compassion.field_res_partner__sponsored_child_ids
#: model:ir.model.fields,field_description:sponsorship_compassion.field_res_users__sponsored_child_ids
Expand Down Expand Up @@ -1665,3 +1675,9 @@ msgstr "ogni"
#: model:ir.model.fields,field_description:sponsorship_compassion.field_recurring_contract__sub_sponsorship_id
msgid "sub sponsorship"
msgstr "Sostegno SUB"

#~ msgid "Sponsored child code"
#~ msgstr "Codice bambino sponsorizzato"

#~ msgid "Sponsored child name"
#~ msgstr "Nome del bambino sponsorizzato"
12 changes: 3 additions & 9 deletions sponsorship_compassion/models/contracts.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,18 +110,12 @@ class SponsorshipContract(models.Model):
project_id = fields.Many2one(
"compassion.project", "Project", related="child_id.project_id", readonly=False
)
child_name = fields.Char(
"Child name", related="child_id.name", readonly=True
)
child_name = fields.Char("Child name", related="child_id.name", readonly=True)
child_code = fields.Char(
"Child code", related="child_id.local_id", readonly=True, store=True
)
child_age = fields.Integer(
"Age", related="child_id.age", readonly=True
)
child_gender = fields.Selection(
"Gender", related="child_id.gender", readonly=True
)
child_age = fields.Integer("Age", related="child_id.age", readonly=True)
child_gender = fields.Selection("Gender", related="child_id.gender", readonly=True)
is_active = fields.Boolean(
"Contract Active",
compute="_compute_active",
Expand Down

0 comments on commit 793c3d3

Please sign in to comment.