Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
  • coopdevs/comunitats-energetiques/odoo-ce
1 result
Show changes
Commits on Source (177)
Showing
with 2052 additions and 512 deletions
{
"name": "Energy Community",
"version": "14.0.2.1.0",
"version": "14.0.3.2.0",
"depends": [
"account",
"cooperator_account_banking_mandate",
......@@ -12,6 +12,7 @@
"auth_api_key",
"auth_oauth",
"auth_oidc",
"auth_signup",
"base_rest",
"base_technical_features",
"base_user_role",
......@@ -78,6 +79,7 @@
"data/mail_template_update_data.xml",
"wizards/assign_crm_to_coordinator_company.xml",
"wizards/multicompany_easy_creation.xml",
"wizards/assign_admin_wizard.xml",
],
"installable": True,
"application": True,
......
class MapClientConfig:
# mapping between landings params and place params
MAPPING__INSTANCE_ID = 1
MAPPING__LANDING_ACTIVE_SERVICES__MAP_FILTER = {
"energy_communities.ce_tag_common_generation": "generacio-renovable-comunitaria",
"energy_communities.ce_tag_energy_efficiency": "eficiencia-energetica",
"energy_communities.ce_tag_sustainable_mobility": "mobilitat-sostenible",
"energy_communities.ce_tag_citizen_education": "formacio-ciutadana",
"energy_communities.ce_tag_thermal_energy": "energia-termica-i-climatitzacio",
"energy_communities.ce_tag_collective_purchases": "compres-col-lectives",
"energy_communities.ce_tag_renewable_energy": "subministrament-d-energia-100-renovable",
"energy_communities.ce_tag_aggregate_demand": "agregacio-i-flexibilitat-de-la-demanda",
}
MAPPING__MAP = "campanya"
MAPPING__LANDING_COMMUNITY_STATUS__MAP_FILTER = {"open": "oberta"}
MAPPING__LANDING_STATUS__MAP_PLACE_STATUS = {
"draft": "draft",
"publish": "published",
}
MAPPING__LANDING_COMMUNITY_TYPE__MAP_CATEGORY = {
"citizen": "ciutadania",
"industrial": "industrial",
}
MAPPING__LANDING_COMMUNITY_STATUS__MAP_PRESENTER = {"open": "CE Oberta"}
MAPPING__OPEN_PLACE_DESCRIPTION_META_KEY = "po2_description"
MAPPING__OPEN_PLACE_SOCIAL_HEADLINE_META_KEY = "po2_social_headline"
MAPPING__OPEN_PLACE_SOCIAL_HEADLINE_ORIGINAL = "<div class='flex justify-center align-center text-center'><p class='font-semibold text-white'>Comparteix i fem créixer la Comunitat Energètica</p></div>"
MAPPING__OPEN_PLACE_SOCIAL_HEADLINE_TRANSLATION = {
"es_ES": "<div class='flex justify-center align-center text-center'><p class='font-semibold text-white'>Comparte y hagamos crecer la Comunidad Energética</p></div>"
}
MAPPING__EXTERNAL_LINK__BECOME_COOPERATOR__LINK_LABEL = {
"ca_ES": "Fes-te'n soci/a",
"es_ES": "Hazte socio/a",
"eu_ES": "Bazkide bihurtu",
}
MAPPING__EXTERNAL_LINK__CONTACT__LINK_LABEL = {
"ca_ES": "Posa-t'hi en contacte",
"es_ES": "Ponte en contacto",
"eu_ES": "Jarri harremanetan",
}
MAPPING__EXTERNAL_LINK__LANDING__LINK_LABEL = {
"ca_ES": "Veure pàgina de la Comunitat",
"es_ES": "Ver página de la Comunidad",
"eu_ES": "Ikus Komunitatearen orria",
}
MAPPING__BUTTON_COLOR_CONFIG_NAME = {
"green": "Coorporate green dark button",
"yellow": "Coorporate yellow button",
}
from odoo import _
from odoo.exceptions import UserError
from ...pywordpress_client.resources.authenticate import Authenticate
from ...pywordpress_client.resources.landing_page import (
LandingPage as LandingPageResource,
)
from ..config import MapClientConfig
class LandingCmPlace:
_name = "landing_cmplace"
def __init__(self, landing):
self.landing = landing
self.wp_landing_data = self._get_wp_landing_data()
button_configs = self._get_button_color_configs()
if button_configs["errors"]:
raise UserError(error_msg)
else:
self.button_configs = button_configs["button_color_configs"]
def create(self):
"""
Creates a place from a landing instance.
"""
self._create_update_place("create")
def update(self):
"""
Updates a place from a landing instance.
"""
self._create_update_place("update")
def _create_update_place(self, mode):
validated_place_data = self._validate_and_prepare_place_data()
if validated_place_data["errors"]:
error_msg = ""
for error in validated_place_data["errors"]:
error_msg += error + "\n"
raise UserError(error_msg)
else:
if mode == "create":
place = self.landing.env["cm.place"].create(
validated_place_data["data"]
)
self.landing.write({"map_place_id": place.id})
if mode == "update":
place = self.landing.map_place_id
place.write(validated_place_data["data"])
self._place_extra_data_setup(place)
def _place_extra_data_setup(self, place):
place._get_slug_id()
place.build_presenter_metadata_ids()
# setup description
self._setup_place_description(place)
# setup external links
self._setup_external_links(place)
# apply translations
self._apply_place_metadatas_translations(place)
def _validate_and_prepare_place_data(self):
"""
Try to generate a place data dictionary and collect errors if they're
@returns: dictionary with 'data' key as the dict to be used for place creation or update and 'errors' key to collect errors if they're
"""
ret_dict = {
"data": {
"company_id": MapClientConfig.MAPPING__INSTANCE_ID,
"name": self.landing.name,
"type": "place",
"status": MapClientConfig.MAPPING__LANDING_STATUS__MAP_PLACE_STATUS[
self.landing.status
],
"interaction_method": "external_link",
"filter_mids": [(5, 0, 0)],
"address_txt": self._get_address_txt(),
},
"errors": [],
}
# Permissions
# TODO: Decide the permission level for this action
if self.landing.env.user.company_id.hierarchy_level not in [
"coordinator",
"instance",
]:
ret_dict["errors"].append(
_(
"Only users that belongs to the 'Coordinator' or 'Instance' company can create new Map Places."
)
)
# Map reference
map = self.landing.env["cm.map"].search(
[("slug_id", "=", MapClientConfig.MAPPING__MAP)]
)
if map:
ret_dict["data"]["map_id"] = map.id
else:
ret_dict["errors"].append(
_("Map not found slug_id: {}").format(self.MAPPING__MAP)
)
# Lat and Lng
if self.landing.lat:
ret_dict["data"]["lat"] = self.landing.lat
else:
ret_dict["errors"].append(
_("Landing lat param required for place creation")
)
if self.landing.lng:
ret_dict["data"]["lng"] = self.landing.lng
else:
ret_dict["errors"].append(
_("Landing lng param required for place creation")
)
# Place category
categories = self.landing.env["cm.place.category"].search([])
place_category_slug = (
MapClientConfig.MAPPING__LANDING_COMMUNITY_TYPE__MAP_CATEGORY[
self.landing.community_type
]
)
place_category = categories.filtered(lambda r: r.slug_id == place_category_slug)
if place_category:
ret_dict["data"]["place_category_id"] = place_category.id
else:
ret_dict["errors"].append(
_("Place category not found slug_id: {}").format(place_category_slug)
)
# Community status filter
filters = self.landing.env["cm.filter"].search([])
place_community_status_slug = (
MapClientConfig.MAPPING__LANDING_COMMUNITY_STATUS__MAP_FILTER[
self.landing.community_status
]
)
place_community_status = filters.filtered(
lambda r: r.slug_id == place_community_status_slug
)
if place_community_status:
ret_dict["data"]["marker_color"] = place_community_status.id
ret_dict["data"]["filter_mids"].append((4, place_community_status.id))
else:
ret_dict["errors"].append(
_("Place status filter not found slug_id: {}").format(
place_community_status_slug
)
)
# Community active services
for service in self.landing.community_active_services:
service_slug = MapClientConfig.MAPPING__LANDING_ACTIVE_SERVICES__MAP_FILTER[
service.tag_ext_id
]
place_service = filters.filtered(lambda r: r.slug_id == service_slug)
if place_service:
ret_dict["data"]["filter_mids"].append((4, place_service.id))
else:
ret_dict["errors"].append(
_("Place status filter not found slug_id: {}").format(service_slug)
)
# Presenter
presenter_name = (
MapClientConfig.MAPPING__LANDING_COMMUNITY_STATUS__MAP_PRESENTER[
self.landing.community_status
]
)
presenter = self.landing.env["cm.presenter.model"].search(
[("name", "=", presenter_name)]
)
if presenter:
ret_dict["data"]["presenter_model_id"] = presenter.id
else:
ret_dict["errors"].append(
_("Place presenter not found slug_id: {}").format(presenter_name)
)
return ret_dict
def _get_address_txt(self):
address_txt = ""
if self.landing.street:
address_txt = self.landing.street
if self.landing.postal_code:
if address_txt == "":
address_txt = self.landing.postal_code
else:
address_txt += ", " + self.landing.postal_code
if self.landing.city:
if address_txt == "":
address_txt = self.landing.city
else:
address_txt += ", " + self.landing.city
return address_txt
def _get_button_color_configs(self):
ret_dict = {"button_color_configs": {}, "errors": []}
button_color_configs = self.landing.env["cm.button.color.config"].search([])
ret_dict["button_color_configs"]["green"] = button_color_configs.filtered(
lambda r: r.name
== MapClientConfig.MAPPING__BUTTON_COLOR_CONFIG_NAME["green"]
)
ret_dict["button_color_configs"]["yellow"] = button_color_configs.filtered(
lambda r: r.name
== MapClientConfig.MAPPING__BUTTON_COLOR_CONFIG_NAME["yellow"]
)
if (
not ret_dict["button_color_configs"]["green"]
or not ret_dict["button_color_configs"]["yellow"]
):
ret_dict["errors"] = _("Button configs not found.")
return ret_dict
def _get_wp_landing_data(self):
instance_company = self.landing.env["res.company"].search(
[("hierarchy_level", "=", "instance")]
)
if instance_company:
baseurl = instance_company.wordpress_base_url
username = instance_company.wordpress_db_username
password = instance_company.wordpress_db_password
auth = Authenticate(baseurl, username, password).authenticate()
token = "Bearer %s" % auth["token"]
landing_page_wp_data = LandingPageResource(
token, baseurl, self.landing.wp_landing_page_id
).get()
return landing_page_wp_data
return False
def _setup_place_description(self, place):
desc_meta = self.landing.env["cm.place.presenter.metadata"].search(
[
("place_id", "=", place.id),
("key", "=", MapClientConfig.MAPPING__OPEN_PLACE_DESCRIPTION_META_KEY),
]
)
desc_meta.write({"value": self.landing.short_description})
def _setup_external_links(self, place):
new_external_links_ids = []
existing_external_links = self.landing.env["cm.place.external.link"].search(
[("place_id", "=", place.id)]
)
if self.landing.allow_new_members:
new_external_links_ids.append(
self._become_cooperator_external_link(place.id).id
)
else:
new_external_links_ids.append(self._contact_external_link(place.id).id)
new_external_links_ids.append(self._landing_external_link(place.id).id)
# remove old external_links if needed
for existing_external_link in existing_external_links:
if existing_external_link.id not in new_external_links_ids:
existing_external_link.unlink()
def _get_or_create_external_link(
self, place_id, name, url, target, button_color_config_id, sort_order
):
existing_external_links = self.landing.env["cm.place.external.link"].search(
[
("place_id", "=", place_id),
("name", "=", name),
("url", "=", url),
("target", "=", target),
("button_color_config_id", "=", button_color_config_id),
("sort_order", "=", sort_order),
]
)
if existing_external_links:
return existing_external_links[0]
else:
return self.landing.env["cm.place.external.link"].create(
{
"place_id": place_id,
"name": name,
"url": url,
"target": target,
"button_color_config_id": button_color_config_id,
"sort_order": sort_order,
}
)
def _become_cooperator_external_link(self, place_id):
external_link = self._get_or_create_external_link(
place_id,
MapClientConfig.MAPPING__EXTERNAL_LINK__BECOME_COOPERATOR__LINK_LABEL[
"ca_ES"
],
"{base_url}/become_cooperator?odoo_company_id={odoo_company_id}".format(
base_url=self.landing.env["ir.config_parameter"].get_param(
"web.base.url"
),
odoo_company_id=self.landing.company_id.id,
),
"_blank",
self.button_configs["yellow"].id,
0,
)
# es_ES Translation
self._update_translation(
"cm.place.external.link,name",
external_link.id,
MapClientConfig.MAPPING__EXTERNAL_LINK__BECOME_COOPERATOR__LINK_LABEL[
"ca_ES"
],
MapClientConfig.MAPPING__EXTERNAL_LINK__BECOME_COOPERATOR__LINK_LABEL[
"es_ES"
],
"es_ES",
)
self._update_translation(
"cm.place.external.link,url",
external_link.id,
"{base_url}/become_cooperator?odoo_company_id={odoo_company_id}".format(
base_url=self.landing.env["ir.config_parameter"].get_param(
"web.base.url"
),
odoo_company_id=self.landing.company_id.id,
),
"{base_url}/es/become_cooperator?odoo_company_id={odoo_company_id}".format(
base_url=self.landing.env["ir.config_parameter"].get_param(
"web.base.url"
),
odoo_company_id=self.landing.company_id.id,
),
"es_ES",
)
return external_link
def _contact_external_link(self, place_id):
external_link = self._get_or_create_external_link(
place_id,
MapClientConfig.MAPPING__EXTERNAL_LINK__CONTACT__LINK_LABEL["ca_ES"],
"{landing_link}/#contacte".format(
landing_link=self.wp_landing_data["link"]
),
"_top",
self.button_configs["yellow"].id,
0,
)
# es_ES Translation
self._update_translation(
"cm.place.external.link,name",
external_link.id,
MapClientConfig.MAPPING__EXTERNAL_LINK__CONTACT__LINK_LABEL["ca_ES"],
MapClientConfig.MAPPING__EXTERNAL_LINK__CONTACT__LINK_LABEL["es_ES"],
"es_ES",
)
if "es" in self.wp_landing_data["translations"].keys():
self._update_translation(
"cm.place.external.link,url",
external_link.id,
"{landing_link}/#contacte".format(
landing_link=self.wp_landing_data["link"]
),
"{landing_link}/#contacte".format(
landing_link=self.wp_landing_data["translations"]["es"]
),
"es_ES",
)
return external_link
def _landing_external_link(self, place_id):
external_link = self._get_or_create_external_link(
place_id,
MapClientConfig.MAPPING__EXTERNAL_LINK__LANDING__LINK_LABEL["ca_ES"],
self.wp_landing_data["link"],
"_top",
self.button_configs["green"].id,
1,
)
# es_ES Translation
self._update_translation(
"cm.place.external.link,name",
external_link.id,
MapClientConfig.MAPPING__EXTERNAL_LINK__LANDING__LINK_LABEL["ca_ES"],
MapClientConfig.MAPPING__EXTERNAL_LINK__LANDING__LINK_LABEL["es_ES"],
"es_ES",
)
if "es" in self.wp_landing_data["translations"].keys():
self._update_translation(
"cm.place.external.link,url",
external_link.id,
self.wp_landing_data["link"],
self.wp_landing_data["translations"]["es"],
"es_ES",
)
return external_link
def _apply_place_metadatas_translations(self, place):
for lang_code in self._get_active_languages():
# place description: applied from landing short_description already translated
landing_short_description_trans = self._get_translation(
"landing.page,short_description",
self.landing.id,
lang_code,
translated=True,
)
if landing_short_description_trans:
self._apply_place_metadata_translation(
place.id,
MapClientConfig.MAPPING__OPEN_PLACE_DESCRIPTION_META_KEY,
landing_short_description_trans.src,
landing_short_description_trans.value,
lang_code,
)
# place social headline: es_ES
self._apply_place_metadata_translation(
place.id,
MapClientConfig.MAPPING__OPEN_PLACE_SOCIAL_HEADLINE_META_KEY,
MapClientConfig.MAPPING__OPEN_PLACE_SOCIAL_HEADLINE_ORIGINAL,
MapClientConfig.MAPPING__OPEN_PLACE_SOCIAL_HEADLINE_TRANSLATION["es_ES"],
"es_ES",
)
def _apply_place_metadata_translation(
self, place_id, meta_key, original_value, trans_value, lang
):
related_meta = self.landing.env["cm.place.presenter.metadata"].search(
[("place_id", "=", place_id), ("key", "=", meta_key)]
)
if related_meta:
self._update_translation(
"cm.place.presenter.metadata,value",
related_meta.id,
original_value,
trans_value,
lang,
)
# TODO: Make all this translation block more compliant with ir.translation model
def _get_active_languages(self):
return self.landing.env["res.lang"].search([("active", "=", 1)]).mapped("code")
def _get_translation(self, translation_name, res_id, lang, translated=False):
query = [
("name", "=", translation_name),
("res_id", "=", res_id),
("lang", "=", lang),
]
if translated:
query.append(("state", "=", "translated"))
return self.landing.env["ir.translation"].search(query)
def _update_translation(
self, translation_name, res_id, original_value, trans_value, lang
):
translation = self._get_translation(translation_name, res_id, lang)
if translation:
translation.write(
{"src": original_value, "value": trans_value, "state": "translated"}
)
else:
self.landing.env["ir.translation"].create(
{
"name": translation_name,
"res_id": res_id,
"lang": lang,
"type": "model",
"src": original_value,
"value": trans_value,
"state": "translated",
}
)
......@@ -9,9 +9,10 @@
<field name="email_from">${object.company_id.email}</field>
<field
name="subject"
>[Somcomunitats.coop] Request for registration of the Energy Community on the platform</field>
>[Som Comunitats] Request for registration of the Energy Community on the platform</field>
<field name="email_to">${ctx.get('email_to')}</field>
<field name="model_id" ref="model_crm_lead" />
<field name="auto_delete" eval="False" />
<field name="lang">${object.company_id.partner_id.lang}</field>
<field name="body_html">
<![CDATA[
......@@ -21,7 +22,7 @@
<p>Go to Odoo to track this registration.</p><br/>
<p>Yours faithfully,</p>
<p>Somcomunitats.coop team</p>
<p><a href="https://web-test.somcomunitats.coop/recursos/">Resources and FAQs</a></p>
<p><a href="https://somcomunitats.coop/recursos/">Resources and FAQs</a></p>
</div>
]]>
</field>
......@@ -30,11 +31,16 @@
<record id="email_templ_lead_ce_creation_receipt_confirm_id" model="mail.template">
<field name="name">Confirmation Email for CE Creation Lead Receipt</field>
<field name="email_from">${object.company_id.email}</field>
<field name="subject">[Somcomunitats.coop] New Community Creation Request to the platform</field>
<field
name="subject"
>[Som Comunitats] New Community Creation Request</field>
<field name="email_to">${ctx.get('email_to')}</field>
<field name="model_id" ref="model_crm_lead" />
<field name="auto_delete" eval="False" />
<field name="lang">${ctx.get('lang')}</field>
<field name="body_html"><![CDATA[
<field
name="body_html"
><![CDATA[
<div style="font-family: 'Lucica Grande', Ubuntu, Arial, Verdana, sans-serif; font-size: 12px; color: rgb(34, 34, 34); background-color: #FFF; ">
<p>Hello,</p>
<p>Thank you for filling out the form and requesting the membership of your Energy Community on the Somcomunitats.coop platform.</p>
......@@ -43,69 +49,90 @@
<p>We keep in touch for any questions.</p>
<p>Yours faithfully,</p>
<p>Somcomunitats.coop team </p>
<p><a href="https://web-test.somcomunitats.coop/recursos/">Resources and FAQs</a></p>
<p><a href="https://somcomunitats.coop/recursos/">Resources and FAQs</a></p>
</div>
]]></field>
</record>
<record id="email_templ_lead_request_contact_confirm_id" model="mail.template">
<field name="name">Confirmation Email for CE Contact Request Lead Receipt</field>
<field
name="name"
>Confirmation Email for CE Contact Request Lead Receipt</field>
<field name="email_from">${object.company_id.email}</field>
<field name="subject">[Somcomunitats.coop] Community Contact Request</field>
<field name="subject">[Som Comunitats] Community Contact Request</field>
<field name="email_to">${object.email_from}</field>
<field name="email_cc">${object.company_id.email}</field>
<field name="reply_to">${object.company_id.email}</field>
<field name="model_id" ref="model_crm_lead" />
<field name="auto_delete" eval="True" />
<field name="auto_delete" eval="False" />
<field name="lang">${ctx.get('lang')}</field>
<field name="body_html"><![CDATA[
<field
name="body_html"
><![CDATA[
<div style="font-family: 'Lucica Grande', Ubuntu, Arial, Verdana, sans-serif; font-size: 12px; color: rgb(34, 34, 34); background-color: #FFF; ">
<p>Hello,</p>
<p>Thank you for contact.</p>
<p>We have received your email and we have we have forwarded it to the Community so that they can contact you as soon as possible.</p>
<br />
<p>We keep in touch for any questions.</p>
<p>Yours faithfully,</p>
<p>Somcomunitats.coop team </p>
<p><a href="https://web-test.somcomunitats.coop/recursos/">Resources and FAQs</a></p>
<p><a href="https://somcomunitats.coop/recursos/">Resources and FAQs</a></p>
</div>
]]></field>
</record>
<record id="email_templ_lead_request_ce_news_confirm_id" model="mail.template">
<field name="name">Confirmation Email for CE News Request Lead Receipt</field>
<field
name="name"
>Confirmation Email for CE News Request Lead Receipt</field>
<field name="email_from">${object.company_id.email}</field>
<field name="subject">[Somcomunitats.coop] Community Newsletter Subscription Request</field>
<field
name="subject"
>[Som Comunitats] Community Newsletter Subscription Request</field>
<field name="email_to">${object.email_from}</field>
<field name="email_cc">${object.company_id.email}</field>
<field name="reply_to">${object.company_id.email}</field>
<field name="model_id" ref="model_crm_lead" />
<field name="auto_delete" eval="True" />
<field name="auto_delete" eval="False" />
<field name="lang">${ctx.get('lang')}</field>
<field name="body_html"><![CDATA[
<field
name="body_html"
><![CDATA[
<div style="font-family: 'Lucica Grande', Ubuntu, Arial, Verdana, sans-serif; font-size: 12px; color: rgb(34, 34, 34); background-color: #FFF; ">
<p>Hello,</p>
<p>Thank you for filling out the form.</p>
<p>You have been subscribed correctly to the Community Newsletter.</p>
<p>We will notify you if there is anything new in this community.</p>
<br />
<p>We remain in contact for any questions.</p>
<br />
<p>Yours faithfully,</p>
<p>Somcomunitats.coop team </p>
<p><a href="https://web-test.somcomunitats.coop/recursos/">Resources and FAQs</a></p>
<p><a href="https://somcomunitats.coop/recursos/">Resources and FAQs</a></p>
</div>
]]></field>
</record>
<record id="email_templ_lead_request_advise_future_ce_confirm_id" model="mail.template">
<field name="name">Confirmation Email for furture CE Contact Request Lead Receipt</field>
<record
id="email_templ_lead_request_advise_future_ce_confirm_id"
model="mail.template"
>
<field
name="name"
>Confirmation Email for furture CE Contact Request Lead Receipt</field>
<field name="email_from">${object.company_id.email}</field>
<field name="subject">[Somcomunitats.coop] Interested in Communities in your area</field>
<field
name="subject"
>[Som Comunitats] Interested in Communities in your area</field>
<field name="email_to">${object.email_from}</field>
<field name="email_cc">${object.company_id.email}</field>
<field name="reply_to">${object.company_id.email}</field>
<field name="model_id" ref="model_crm_lead" />
<field name="auto_delete" eval="True" />
<field name="auto_delete" eval="False" />
<field name="lang">${ctx.get('lang')}</field>
<field name="body_html"><![CDATA[
<field
name="body_html"
><![CDATA[
<div style="font-family: 'Lucica Grande', Ubuntu, Arial, Verdana, sans-serif; font-size: 12px; color: rgb(34, 34, 34); background-color: #FFF; ">
<p>Hello,</p>
<p>Thank you for filling out the form.</p>
......@@ -114,22 +141,31 @@
<p>We keep in touch for any questions.</p>
<p>Yours faithfully,</p>
<p>Somcomunitats.coop team </p>
<p><a href="https://web-test.somcomunitats.coop/recursos/">Resources and FAQs</a></p>
<p><a href="https://somcomunitats.coop/recursos/">Resources and FAQs</a></p>
</div>
]]></field>
</record>
<record id="email_templ_lead_request_platform_news_confirm_id" model="mail.template">
<field name="name">Confirmation Email for Platform News Request Lead Receipt</field>
<record
id="email_templ_lead_request_platform_news_confirm_id"
model="mail.template"
>
<field
name="name"
>Confirmation Email for Platform News Request Lead Receipt</field>
<field name="email_from">${object.company_id.email}</field>
<field name="subject">[Somcomunitats.coop] Platform Newsletter Subscription Request</field>
<field
name="subject"
>[Som Comunitats] Newsletter Subscription Request</field>
<field name="email_to">${object.email_from}</field>
<field name="email_cc">${object.company_id.email}</field>
<field name="reply_to">${object.company_id.email}</field>
<field name="model_id" ref="model_crm_lead" />
<field name="auto_delete" eval="True" />
<field name="auto_delete" eval="False" />
<field name="lang">${ctx.get('lang')}</field>
<field name="body_html"><![CDATA[
<field
name="body_html"
><![CDATA[
<div style="font-family: 'Lucica Grande', Ubuntu, Arial, Verdana, sans-serif; font-size: 12px; color: rgb(34, 34, 34); background-color: #FFF; ">
<p>Hello,</p>
<p>Thank you for filling out the form.</p>
......@@ -138,7 +174,30 @@
<br />
<p>Yours faithfully,</p>
<p>Somcomunitats.coop team </p>
<p><a href="https://web-test.somcomunitats.coop/recursos/">Resources and FAQs</a></p>
<p><a href="https://somcomunitats.coop/recursos/">Resources and FAQs</a></p>
</div>
]]></field>
</record>
<record id="email_templ_contact_platform_confirm_id" model="mail.template">
<field name="name">Confirmation Email Contact Platform Receipt</field>
<field name="email_from">${object.company_id.email}</field>
<field name="subject">[Som Comunitats] Contact to the platform</field>
<field name="email_to">${ctx.get('email_to')}</field>
<field name="model_id" ref="model_crm_lead" />
<field name="auto_delete" eval="False" />
<field name="lang">${ctx.get('lang')}</field>
<field
name="body_html"
><![CDATA[
<div style="font-family: 'Lucica Grande', Ubuntu, Arial, Verdana, sans-serif; font-size: 12px; color: rgb(34, 34, 34); background-color: #FFF; ">
<p>Hello,</p>
<p>Thank you for getting in touch.</p>
<p>We have received your email. We will contact you as soon as possible.</p>
<br />
<p>Yours faithfully,</p>
<p>Somcomunitats.coop team </p>
<p><a href="https://somcomunitats.coop/recursos/">Resources and FAQs</a></p>
</div>
]]></field>
</record>
......
......@@ -20,7 +20,7 @@
>${(object.company_id.coop_email_contact or object.company_id.email)|safe}</field>
<field
name="subject"
>[Somcomunitats.coop] Application to become Community membership</field>
>[Som Comunitats] Application to become Community membership</field>
<field name="email_to">${object.email}</field>
<field name="email_cc">info+altausuari@somcomunitats.coop</field>
<field
......@@ -97,7 +97,7 @@
>${(object.company_id.coop_email_contact or object.company_id.email)|safe}</field>
<field
name="subject"
>[Somcomunitats.coop] Request to become member of Energy Community ${object.company_id.name}</field>
>[Som Comunitats] Request to become member of Energy Community ${object.company_id.name}</field>
<field name="partner_to">${object.partner_id.id}</field>
<field name="email_cc">info+altausuari@somcomunitats.coop</field>
<!--<field name="email_bcc">${object.company_id.email}</field>-->
......@@ -287,7 +287,7 @@
>${(object.company_id.coop_email_contact or object.company_id.email)|safe}</field>
<field
name="subject"
>[Somcomunitats.coop] Application to become Community membership</field>
>[Som Comunitats] Application to become Community membership</field>
<field name="email_to">${object.email}</field>
<field name="email_cc">info+altausuari@somcomunitats.coop</field>
<field
......
......@@ -13,6 +13,9 @@
<record model="utm.source" id="ce_source_existing_ce_contact">
<field name="name">Contact a existing CE</field>
</record>
<record model="utm.source" id="ce_source_general_contact">
<field name="name">Contact to the Platform</field>
</record>
<!-- CE Other Sources -->
<record model="utm.source" id="ce_source_creation_ce_proposal">
<field name="name">CE creation</field>
......
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * energy_communities
......@@ -32,7 +33,7 @@ msgid ""
"\n"
" <p>Yours faithfully,</p>\n"
" <p>Somcomunitats.coop team </p>\n"
" <p><a href=\"https://web-test.somcomunitats.coop/recursos/\">Resources and FAQs</a></p>\n"
" <p><a href=\"https://somcomunitats.coop/recursos/\">Resources and FAQs</a></p>\n"
"\n"
" </div>\n"
" \n"
......@@ -50,7 +51,7 @@ msgstr ""
"\n"
" <p>Atentament,</p>\n"
" <p>Equip de somcomunitats.coop</p>\n"
" <p><a href=\"https://web-test.somcomunitats.coop/recursos/\">Recursos i preguntes freqüents</a></p>\n"
" <p><a href=\"https://somcomunitats.coop/recursos/\">Recursos i preguntes freqüents</a></p>\n"
"\n"
" </div>\n"
" \n"
......@@ -271,10 +272,9 @@ msgid ""
" <p>Thank you for contact.</p>\n"
" <p>We have received your email and we have we have forwarded it to the Community so that they can contact you as soon as possible.</p>\n"
" <br />\n"
" <p>We keep in touch for any questions.</p>\n"
" <p>Yours faithfully,</p>\n"
" <p>Somcomunitats.coop team </p>\n"
" <p><a href=\"https://web-test.somcomunitats.coop/recursos/\">Resources and FAQs</a></p>\n"
" <p><a href=\"https://somcomunitats.coop/recursos/\">Resources and FAQs</a></p>\n"
" </div>\n"
" "
msgstr ""
......@@ -284,10 +284,9 @@ msgstr ""
" <p>Gràcies per contactar.</p>\n"
" <p>Hem rebut el teu correu electrònic i ho hem reenviat a la Comunitat perquè puguin contactar amb tu el més aviat possible.</p>\n"
" <br />\n"
" <p>WSeguim en contacte per a qualsevol consulta.</p>\n"
" <p>Atentament,</p>\n"
" <p>Equip de Somcomunitats.coop</p>\n"
" <p><a href=\"https://web-test.somcomunitats.coop/recursos/\">Recursos i preguntes freqüents</a></p>\n"
" <p><a href=\"https://somcomunitats.coop/recursos/\">Recursos i preguntes freqüents</a></p>\n"
" </div>\n"
" "
......@@ -307,7 +306,7 @@ msgid ""
" <p>We keep in touch for any questions.</p>\n"
" <p>Yours faithfully,</p>\n"
" <p>Somcomunitats.coop team </p>\n"
" <p><a href=\"https://web-test.somcomunitats.coop/recursos/\">Resources and FAQs</a></p>\n"
" <p><a href=\"https://somcomunitats.coop/recursos/\">Resources and FAQs</a></p>\n"
"\n"
" </div>\n"
" "
......@@ -317,15 +316,15 @@ msgstr ""
"\n"
" <p>Hola,</p>\n"
"\n"
" <p>Gràcies per emplenar el formulari i sol·licitar la membresía de la teva Comunitat Energètica a la plataforma Somcomunitats.coop.</p>\n"
" <p>Gràcies per omplir el formulari i sol·licitar l'adhesió de la vostra Comunitat Energètica a la plataforma Som Comunitats.</p>\n"
"\n"
" <p>En les properes setmanes estudiarem la sol·licitud i ens posarem en contacte amb tu per indicar-te els passos i la informació necessària per completar el procés de registre de la Comunitat i de les persones que en formen part.</p>\n"
" <p>Durant els propers dies estudiarem la sol·licitud i ens posarem en contacte amb vosaltres per indicar-vos els passos i la informació necessària per acabar el procés d'alta de la Comunitat i de les persones que en formeu part.</p>\n"
"\n"
" <br />\n"
" <p>Seguim en contacte per a qualsevol consulta.</p>\n"
" <p>Atentament,</p>\n"
" <p>Equip de Somcomunitats.coop</p>\n"
" <p><a href=\"https://web-test.somcomunitats.coop/recursos/\">Recursos i preguntes freqüents</a></p>\n"
" <p><a href=\"https://somcomunitats.coop/recursos/\">Recursos i preguntes freqüents</a></p>\n"
"\n"
" </div>\n"
" "
......@@ -342,7 +341,7 @@ msgid ""
" <p>We keep in touch for any questions.</p>\n"
" <p>Yours faithfully,</p>\n"
" <p>Somcomunitats.coop team </p>\n"
" <p><a href=\"https://web-test.somcomunitats.coop/recursos/\">Resources and FAQs</a></p>\n"
" <p><a href=\"https://somcomunitats.coop/recursos/\">Resources and FAQs</a></p>\n"
" </div>\n"
" "
msgstr ""
......@@ -355,7 +354,7 @@ msgstr ""
" <p>Seguim en contacte per qualsevol consulta.</p>\n"
" <p>Atentament,</p>\n"
" <p>Equip de Somcomunitats.coop</p>\n"
" <p><a href=\"https://web-test.somcomunitats.coop/recursos/\">Recursos i preguntes freqüents</a></p>\n"
" <p><a href=\"https://somcomunitats.coop/recursos/\">Recursos i preguntes freqüents</a></p>\n"
" </div>\n"
" "
......@@ -367,22 +366,28 @@ msgid ""
" <p>Hello,</p>\n"
" <p>Thank you for filling out the form.</p>\n"
" <p>You have been subscribed correctly to the Community Newsletter.</p>\n"
" <p>We will notify you if there is anything new in this community.</p>\n"
" <br />\n"
" <p>We remain in contact for any questions.</p>\n"
" <br />\n"
" <p>Yours faithfully,</p>\n"
" <p>Somcomunitats.coop team </p>\n"
" <p><a href=\"https://web-test.somcomunitats.coop/recursos/\">Resources and FAQs</a></p>\n"
" <p><a href=\"https://somcomunitats.coop/recursos/\">Resources and FAQs</a></p>\n"
" </div>\n"
" "
msgstr ""
"\n"
" <div style=\"font-family: 'Lucica Grande', Ubuntu, Arial, Verdana, sans-serif; font-size: 12px; color: rgb(34, 34, 34); background-color: #FFF; \">\n"
" <p>Hola,</p>\n"
" <p>Gràcies per omplir el formulari.</p>\n"
" <p>Et confirmem que t’has subscrit correctament al butlletí.</p>\n"
" <p>Gràcies per omplir el formulari.</p>
" <p>Et confirmem que t’has subscrit correctament al butlletí.</p>
" <p>T’avisarem en cas que hi hagi alguna novetat en aquesta comunitat.</p>
" <br />\n"
" <p>Seguim en contacte per qualsevol consulta.</p>\n"
" <br />\n"
" <p>Atentament,</p>\n"
" <p>Equip de Somcomunitats.coop</p>\n"
" <p><a href=\"https://web-test.somcomunitats.coop/recursos/\">Recursos i preguntes freqüents</a></p>\n"
" <p><a href=\"https://somcomunitats.coop/recursos/\">Recursos i preguntes freqüents</a></p>\n"
" </div>\n"
" "
......@@ -398,7 +403,7 @@ msgid ""
" <br />\n"
" <p>Yours faithfully,</p>\n"
" <p>Somcomunitats.coop team </p>\n"
" <p><a href=\"https://web-test.somcomunitats.coop/recursos/\">Resources and FAQs</a></p>\n"
" <p><a href=\"https://somcomunitats.coop/recursos/\">Resources and FAQs</a></p>\n"
" </div>\n"
" "
msgstr ""
......@@ -411,7 +416,34 @@ msgstr ""
" <br />\n"
" <p>Atentament,</p>\n"
" <p>Equip de Somcomunitats.coop</p>\n"
" <p><a href=\"https://web-test.somcomunitats.coop/recursos/\">Recursos i preguntes freqüents</a></p>\n"
" <p><a href=\"https://somcomunitats.coop/recursos/\">Recursos i preguntes freqüents</a></p>\n"
" </div>\n"
" "
#. module: energy_communities
#: model:mail.template,body_html:energy_communities.email_templ_contact_platform_confirm_id
msgid ""
"\n"
" <div style=\"font-family: 'Lucica Grande', Ubuntu, Arial, Verdana, sans-serif; font-size: 12px; color: rgb(34, 34, 34); background-color: #FFF; \">\n"
" <p>Hello,</p>\n"
" <p>Thank you for getting in touch.</p>\n"
" <p>We have received your email. We will contact you as soon as possible.</p>\n"
" <br />\n"
" <p>Yours faithfully,</p>\n"
" <p>Somcomunitats.coop team </p>\n"
" <p><a href=\"https://somcomunitats.coop/recursos/\">Resources and FAQs</a></p>\n"
" </div>\n"
" "
msgstr ""
"\n"
" <div style=\"font-family: 'Lucica Grande', Ubuntu, Arial, Verdana, sans-serif; font-size: 12px; color: rgb(34, 34, 34); background-color: #FFF; \">\n"
" <p>Hola,</p>\n"
" <p>Gràcies per posar-te en contacte.</p>\n"
" <p>Hem rebut el teu correu electrònic. Ens posarem en contacte amb tu tan aviat com ens sigui possible.</p>\n"
" <br />\n"
" <p>Atentament,</p>\n"
" <p>Equip de Somcomunitats.coop</p>\n"
" <p><a href=\"https://somcomunitats.coop/recursos/\">Recursos i preguntes freqüents</a></p>\n"
" </div>\n"
" "
......@@ -462,7 +494,7 @@ msgid ""
" <p>We keep in touch for any questions.</p>\n"
" <p>Yours faithfully,</p>\n"
" <p>Somcomunitats.coop team </p>\n"
" <p><a href=\"https://web-test.somcomunitats.coop/recursos/\">Resources "
" <p><a href=\"https://somcomunitats.coop/recursos/\">Resources "
"and FAQs</a></p>\n"
"</div>\n"
" "
......@@ -512,7 +544,7 @@ msgstr ""
" <p>Seguim en contacte per qualsevol dubte.</p>\n"
" <p>Atentament,</p>\n"
" <p>Equip Somcomunitats.coop</p>\n"
" <p><a href=\"https://web-test.somcomunitats.coop/recursos/\">Resources "
" <p><a href=\"https://somcomunitats.coop/recursos/\">Resources "
"and FAQs</a></p>\n"
"</div>\n"
" "
......@@ -536,7 +568,7 @@ msgstr "Plantilla de gràfic de comptes"
#: code:addons/energy_communities/controllers/website_subscription_voluntary_share.py:0
#, python-format
msgid "Address not found"
msgstr "Adreça no trobada"
msgstr "Adreça no encontrada"
#. module: energy_communities
#: model:ir.model.fields,field_description:energy_communities.field_auth_oauth_provider__is_admin_provider
......@@ -564,9 +596,9 @@ msgid "Allows new members"
msgstr "Autoritza nous membres"
#. module: energy_communities
#: model:ir.model.fields,field_description:energy_communities.field_landing_page__wp_lastupdate_datetime
msgid "Last wordpress update date"
msgstr "Data darrera actualització a wordpress"
#: model:ir.model.fields,field_description:energy_communities.field_landing_page__publicdata_lastupdate_datetime
msgid "Last wordpress/map update date"
msgstr "Data darrera actualització a wordpress/mapa"
#. module: energy_communities
#: code:addons/energy_communities/models/res_company.py:0
......@@ -588,7 +620,7 @@ msgstr "Assignar CRM a l'assistent de l'empresa coordinadora"
#: code:addons/energy_communities/models/crm_lead.py:0
#, python-format
msgid "Assign CRM to coordinator company"
msgstr "Assignar CRM a empresa coordinadora"
msgstr "Afegir CRM a l'empresa coordinadora"
#. module: energy_communities
#: model:ir.model,name:energy_communities.model_assign_crm_to_coordinator_company_wizard
......@@ -604,6 +636,19 @@ msgstr "Empresa assignada"
#: model_terms:ir.ui.view,arch_db:energy_communities.ce_crm_lead_view_form
msgid "Assing CRM to coordinator company"
msgstr "Afegir CRM a l'empresa coordinadora"
#: model_terms:ir.ui.view,arch_db:energy_communities.view_assign_admin_wizard_form
msgid "Assign Admin Wizard"
msgstr "Assistent per assignar una administradora"
#. module: energy_communities
#: model:ir.model,name:energy_communities.model_assign_admin_wizard
msgid "Assign admin Wizard"
msgstr "Assistent per assignar una administradora"
#. module: energy_communities
#: model_terms:ir.ui.view,arch_db:energy_communities.view_company_form_ce_inherited
msgid "Assing administrator"
msgstr "Assignar administradora"
#. module: energy_communities
#: code:addons/energy_communities/services/ce_community_service.py:0
......@@ -661,6 +706,7 @@ msgstr "Etiquetes de CE"
#. module: energy_communities
#: model:utm.source,name:energy_communities.ce_source_creation_ce_proposal
#: model_terms:ir.ui.view,arch_db:energy_communities.ce_view_crm_case_opportunities_filter
msgid "CE creation"
msgstr "Creació de CE"
......@@ -680,11 +726,9 @@ msgid "CRM Tag"
msgstr "Etiqueta CRM"
#. module: energy_communities
#: model_terms:ir.ui.view,arch_db:energy_communities.view_assign_crm_to_coordinator_wizard_form
msgid "Cancel"
msgstr ""
"Cancel\n"
"·lar"
#: model_terms:ir.ui.view,arch_db:energy_communities.view_assign_admin_wizard_form
msgid "Cancelar"
msgstr "Cancel·lar"
#. module: energy_communities
#: model:ir.model.fields,field_description:energy_communities.field_account_multicompany_easy_creation_wiz__chart_template_id
......@@ -743,6 +787,13 @@ msgstr "Comunitat"
msgid "Community active services"
msgstr "Serveis actius a la Comunitat"
#. module: energy_communities
#: code:addons/energy_communities/models/res_company.py:0
#: model:ir.model.fields,field_description:energy_communities.field_res_company__admins
#, python-format
msgid "Community admins"
msgstr ""
#. module: energy_communities
#: model:ir.model.fields,help:energy_communities.field_crm_lead__community_company_id
msgid "Community related to this Lead"
......@@ -774,6 +825,12 @@ msgstr "Empreses"
msgid "Company"
msgstr "Companyia"
#. module: energy_communities
#: code:addons/energy_communities/wizards/assign_admin_wizard.py:0
#, python-format
msgid "Company not found"
msgstr "No s'ha trobat la companyia"
#. module: energy_communities
#: model:crm.tag,name:energy_communities.ce_tag_collective_purchases
msgid "Compres col·lectives"
......@@ -816,11 +873,26 @@ msgstr ""
msgid "Contact"
msgstr "Contacte"
#. module: energy_communities
#: model_terms:ir.ui.view,arch_db:energy_communities.ce_view_crm_case_opportunities_filter
msgid "Contact CE"
msgstr "Contacte CE"
#. module: energy_communities
#: model_terms:ir.ui.view,arch_db:energy_communities.ce_view_crm_case_opportunities_filter_platform_admins
msgid "Contact SomComunitats"
msgstr "Contacte SomComunitats"
#. module: energy_communities
#: model:utm.source,name:energy_communities.ce_source_existing_ce_contact
msgid "Contact a existing CE"
msgstr "Contactar una CE existent"
#. module: energy_communities
#: model:utm.source,name:energy_communities.ce_source_general_contact
msgid "Contact to the Platform"
msgstr "Contactar amb la plataforma"
#. module: energy_communities
#: model:mail.template,subject:energy_communities.email_template_confirmation_voluntary_share
msgid "Contribute to ${object.company_id.name} Ref. ACSV${object.id}"
......@@ -861,9 +933,16 @@ msgstr "Compte sòcies"
msgid "Cooperator Journal"
msgstr "Diari Sòcies"
#. module: energy_communities
#: model:res.groups,name:energy_communities.role_coordination_res_groups
#: model:res.users.role,name:energy_communities.role_coordination
msgid "Coordination role"
msgstr "Rol de coordinadora"
#. module: energy_communities
#: code:addons/energy_communities/models/res_company.py:0
#: model:ir.model.fields.selection,name:energy_communities.selection__res_company__hierarchy_level__coordinator
#: model:res.groups,name:energy_communities.group_coordinator
#, python-format
msgid "Coordinator"
msgstr "Coordinadora"
......@@ -897,8 +976,8 @@ msgstr "Crear pàgina de Landing"
#. module: energy_communities
#: model_terms:ir.ui.view,arch_db:energy_communities.landing_page_form_view
msgid "Update wordpress data"
msgstr "Actualizar dades wordpress"
msgid "Update (wp landing / map place)"
msgstr "Actualizar dades wordpress/mapa"
#. module: energy_communities
#: model:ir.model.fields,field_description:energy_communities.field_account_multicompany_easy_creation_wiz__create_user
......@@ -911,13 +990,13 @@ msgid "Create user for keycloak"
msgstr "Crear usuari de keyCloak/SSO desde la sòcia"
#. module: energy_communities
#: model:ir.model.fields,field_description:energy_communities.field_assign_crm_to_coordinator_company_wizard__create_uid
#: model:ir.model.fields,field_description:energy_communities.field_assign_admin_wizard__create_uid
#: model:ir.model.fields,field_description:energy_communities.field_landing_page__create_uid
msgid "Created by"
msgstr "Creat per"
#. module: energy_communities
#: model:ir.model.fields,field_description:energy_communities.field_assign_crm_to_coordinator_company_wizard__create_date
#: model:ir.model.fields,field_description:energy_communities.field_assign_admin_wizard__create_date
#: model:ir.model.fields,field_description:energy_communities.field_landing_page__create_date
msgid "Created on"
msgstr "Creat el"
......@@ -936,7 +1015,7 @@ msgstr "DNI"
#: model:ir.model.fields,field_description:energy_communities.field_account_chart_template__display_name
#: model:ir.model.fields,field_description:energy_communities.field_account_move__display_name
#: model:ir.model.fields,field_description:energy_communities.field_account_multicompany_easy_creation_wiz__display_name
#: model:ir.model.fields,field_description:energy_communities.field_assign_crm_to_coordinator_company_wizard__display_name
#: model:ir.model.fields,field_description:energy_communities.field_assign_admin_wizard__display_name
#: model:ir.model.fields,field_description:energy_communities.field_auth_oauth_provider__display_name
#: model:ir.model.fields,field_description:energy_communities.field_crm_lead__display_name
#: model:ir.model.fields,field_description:energy_communities.field_crm_tag__display_name
......@@ -982,7 +1061,10 @@ msgid "Eficiencia energètica"
msgstr "Eficiència Energètica"
#. module: energy_communities
#: code:addons/energy_communities/wizards/assign_admin_wizard.py:0
#: model:ir.model.fields,field_description:energy_communities.field_assign_admin_wizard__email
#: model_terms:ir.ui.view,arch_db:energy_communities.voluntary_share
#, python-format
msgid "Email"
msgstr "Correu electrònic"
......@@ -1045,6 +1127,24 @@ msgstr "Serveis Comunitat Energètica"
msgid "Energy actions in progress"
msgstr "Accions energètiques en curs"
#. module: energy_communities
#: code:addons/energy_communities/models/res_company.py:0
#, python-format
msgid "Error: One role line can't have multiple users"
msgstr ""
#. module: energy_communities
#: code:addons/energy_communities/models/res_company.py:0
#, python-format
msgid "Error: This user have multiple roles for this company"
msgstr ""
#. module: energy_communities
#: code:addons/energy_communities/models/res_company.py:0
#, python-format
msgid "Error: You can't remove {} role"
msgstr ""
#. module: energy_communities
#: model:ir.model.fields,field_description:energy_communities.field_landing_page__external_website_link
msgid "External website link"
......@@ -1055,6 +1155,13 @@ msgstr "Enllaç al lloc web extern"
msgid "FREQUENTLY ASKED QUESTIONS"
msgstr "PREGUNTES FREQÜENTS"
#. module: energy_communities
#: code:addons/energy_communities/wizards/assign_admin_wizard.py:0
#: model:ir.model.fields,field_description:energy_communities.field_assign_admin_wizard__first_name
#, python-format
msgid "First name"
msgstr "Nom"
#. module: energy_communities
#: model:crm.tag,name:energy_communities.ce_tag_citizen_education
msgid "Formació ciutadana"
......@@ -1093,11 +1200,6 @@ msgstr "General"
msgid "General Information"
msgstr "Informació general"
#. module: energy_communities
#: model:ir.model.fields,field_description:energy_communities.field_landing_page__group_image_link
msgid "Group image link"
msgstr "Enllaç d'imatge del grup"
#. module: energy_communities
#: model_terms:ir.ui.view,arch_db:energy_communities.voluntary_share_text_template
msgid "Hello,"
......@@ -1126,7 +1228,7 @@ msgstr "Prefereixo no compartir-ho"
#: model:ir.model.fields,field_description:energy_communities.field_account_chart_template__id
#: model:ir.model.fields,field_description:energy_communities.field_account_move__id
#: model:ir.model.fields,field_description:energy_communities.field_account_multicompany_easy_creation_wiz__id
#: model:ir.model.fields,field_description:energy_communities.field_assign_crm_to_coordinator_company_wizard__id
#: model:ir.model.fields,field_description:energy_communities.field_assign_admin_wizard__id
#: model:ir.model.fields,field_description:energy_communities.field_auth_oauth_provider__id
#: model:ir.model.fields,field_description:energy_communities.field_crm_lead__id
#: model:ir.model.fields,field_description:energy_communities.field_crm_tag__id
......@@ -1221,6 +1323,13 @@ msgstr "Instància"
msgid "Internal User"
msgstr "Usuari intern"
#. module: energy_communities
#: code:addons/energy_communities/wizards/assign_admin_wizard.py:0
#: model:ir.model.fields,field_description:energy_communities.field_assign_admin_wizard__is_new_admin
#, python-format
msgid "Is a new admin?"
msgstr "És un administrador nou a la plataforma?"
#. module: energy_communities
#: model:ir.model.fields,field_description:energy_communities.field_subscription_request__is_voluntary
msgid "Is voluntary contribution"
......@@ -1229,7 +1338,7 @@ msgstr "És una aportació voluntària"
#. module: energy_communities
#: model:ir.model,name:energy_communities.model_account_move
msgid "Journal Entry"
msgstr "Assentament comptable"
msgstr "Assentament"
#. module: energy_communities
#: model:ir.model.fields,field_description:energy_communities.field_auth_oauth_provider__is_keycloak_provider
......@@ -1249,7 +1358,10 @@ msgid "Landing Page"
msgstr "Pàgina de destinació"
#. module: energy_communities
#: code:addons/energy_communities/wizards/assign_admin_wizard.py:0
#: model:ir.model.fields,field_description:energy_communities.field_assign_admin_wizard__lang
#: model:ir.model.fields,field_description:energy_communities.field_crm_lead__lang
#, python-format
msgid "Language"
msgstr "Idioma"
......@@ -1257,7 +1369,7 @@ msgstr "Idioma"
#: model:ir.model.fields,field_description:energy_communities.field_account_chart_template____last_update
#: model:ir.model.fields,field_description:energy_communities.field_account_move____last_update
#: model:ir.model.fields,field_description:energy_communities.field_account_multicompany_easy_creation_wiz____last_update
#: model:ir.model.fields,field_description:energy_communities.field_assign_crm_to_coordinator_company_wizard____last_update
#: model:ir.model.fields,field_description:energy_communities.field_assign_admin_wizard____last_update
#: model:ir.model.fields,field_description:energy_communities.field_auth_oauth_provider____last_update
#: model:ir.model.fields,field_description:energy_communities.field_crm_lead____last_update
#: model:ir.model.fields,field_description:energy_communities.field_crm_tag____last_update
......@@ -1275,17 +1387,24 @@ msgid "Last Modified on"
msgstr "Última modificació el "
#. module: energy_communities
#: model:ir.model.fields,field_description:energy_communities.field_assign_crm_to_coordinator_company_wizard__write_uid
#: model:ir.model.fields,field_description:energy_communities.field_assign_admin_wizard__write_uid
#: model:ir.model.fields,field_description:energy_communities.field_landing_page__write_uid
msgid "Last Updated by"
msgstr "Última actualització per"
#. module: energy_communities
#: model:ir.model.fields,field_description:energy_communities.field_assign_crm_to_coordinator_company_wizard__write_date
#: model:ir.model.fields,field_description:energy_communities.field_assign_admin_wizard__write_date
#: model:ir.model.fields,field_description:energy_communities.field_landing_page__write_date
msgid "Last Updated on"
msgstr "Última actualització el"
#. module: energy_communities
#: code:addons/energy_communities/wizards/assign_admin_wizard.py:0
#: model:ir.model.fields,field_description:energy_communities.field_assign_admin_wizard__last_name
#, python-format
msgid "Last name"
msgstr "Cognom"
#. module: energy_communities
#: model:ir.model,name:energy_communities.model_crm_lead
msgid "Lead/Opportunity"
......@@ -1307,11 +1426,6 @@ msgstr "Descripció llarga"
msgid "Mandatory Shares"
msgstr "Aportacions obligatòries"
#. module: energy_communities
#: model:ir.model.fields,field_description:energy_communities.field_landing_page__map_geolocation
msgid "Map geolocation"
msgstr "Mapa de geolocalització"
#. module: energy_communities
#: model:crm.tag,name:energy_communities.ce_tag_sustainable_mobility
msgid "Mobilitat sostenible"
......@@ -1338,6 +1452,16 @@ msgstr ""
"Energètiques\n"
" "
#. module: energy_communities
#: model_terms:ir.ui.view,arch_db:energy_communities.ce_view_crm_case_opportunities_filter
msgid "Newsletter CE"
msgstr "Butlletí CE"
#. module: energy_communities
#: model_terms:ir.ui.view,arch_db:energy_communities.ce_view_crm_case_opportunities_filter_platform_admins
msgid "Newsletter SomComunitats"
msgstr "Butlletí SomComunitats"
#. module: energy_communities
#: code:addons/energy_communities/services/ce_community_service.py:0
#, python-format
......@@ -1359,6 +1483,11 @@ msgstr "No s'ha trobat cap Contacte per al Usuari amb el login: %s"
msgid "No Odoo User found for KeyCloak user id %s"
msgstr "No s'ha trobat cap Usuari d'Odoo vinculat al Usuari de KeyCloak: %s"
#. module: energy_communities
#: model_terms:ir.ui.view,arch_db:energy_communities.ce_view_crm_case_opportunities_filter
msgid "No web form origin"
msgstr "Sense origen de formulari web"
#. module: energy_communities
#: model:ir.model.fields.selection,name:energy_communities.selection__res_partner__gender__not_binary
#: model:ir.model.fields.selection,name:energy_communities.selection__subscription_request__gender__not_binary
......@@ -1509,6 +1638,11 @@ msgstr "Codi Postal"
msgid "Primary Image"
msgstr "Imatge primària"
#. module: energy_communities
#: model_terms:ir.ui.view,arch_db:energy_communities.view_assign_admin_wizard_form
msgid "Procesar"
msgstr ""
#. module: energy_communities
#: model:ir.model.fields,field_description:energy_communities.field_account_multicompany_easy_creation_wiz__product_share_template
msgid "Product Share Template"
......@@ -1549,6 +1683,11 @@ msgstr "Enviar usuari al KeyCloak"
msgid "Realm name"
msgstr "Nom REALM"
#. module: energy_communities
#: model:ir.model.fields,field_description:energy_communities.field_auth_oauth_provider__redirect_admin_url
msgid "Redirect Link after update password"
msgstr "Enllaç de redirecció un cop actualitzada la contrasenya"
#. module: energy_communities
#: model:ir.model.fields,field_description:energy_communities.field_crm_lead__community_company_id
msgid "Related Community"
......@@ -1559,6 +1698,17 @@ msgstr "Comunitat relacionada"
msgid "Requests"
msgstr "Sol·licituds"
#. module: energy_communities
#: model:ir.model.fields,field_description:energy_communities.field_auth_oauth_provider__reset_password_endpoint
msgid "Reset password URL"
msgstr "URL per escriure la contasenya"
#. module: energy_communities
#: code:addons/energy_communities/models/res_users.py:0
#, python-format
msgid "Reset password url is not set."
msgstr "La URL per restablir la contrasenya no està configurada."
#. module: energy_communities
#: model:ir.model.fields,field_description:energy_communities.field_auth_oauth_provider__root_endpoint
msgid "Root URL"
......@@ -1601,6 +1751,12 @@ msgstr "Descripció breu"
msgid "Some mandatory fields have not been filled."
msgstr "Alguns camps obligatoris no s'han omplert."
#. module: energy_communities
#: code:addons/energy_communities/models/res_users.py:0
#, python-format
msgid "Something went wrong. Mail can not be sended. More details: {}"
msgstr ""
#. module: energy_communities
#: code:addons/energy_communities/models/res_users.py:0
#, python-format
......@@ -1942,7 +2098,10 @@ msgstr ""
"KeyCloak"
#. module: energy_communities
#: code:addons/energy_communities/wizards/assign_admin_wizard.py:0
#: model:ir.model.fields,field_description:energy_communities.field_assign_admin_wizard__vat
#: model_terms:ir.ui.view,arch_db:energy_communities.voluntary_share
#, python-format
msgid "VAT"
msgstr "NIF"
......@@ -2098,48 +2257,83 @@ msgstr ""
msgid "ZIP code not found"
msgstr "Codi postal no trobat"
#. module: energy_communities
#: code:addons/energy_communities/services/crm_lead_service.py:0
#, python-format
msgid "[Contact CE]"
msgstr "[Contacte CE]"
#. module: energy_communities
#: code:addons/energy_communities/services/crm_lead_service.py:0
#, python-format
msgid "[Contact SomComunitats]"
msgstr "[Contacte SomComunitats]"
#. module: energy_communities
#: code:addons/energy_communities/services/crm_lead_service.py:0
#, python-format
msgid "[Newsletter CE]"
msgstr "[Butlletí CE]"
#. module: energy_communities
#: code:addons/energy_communities/services/crm_lead_service.py:0
#, python-format
msgid "[Newsletter SomComunitats]"
msgstr "[Butlletí SomComunitats]"
#. module: energy_communities
#: model:mail.template,subject:energy_communities.email_template_confirmation_company
msgid "[Somcomunitats.coop] Application to become Community membership"
msgstr "[Somcomunitats.coop] Sol·licitud d'adhesió a Comunitat Energètica"
msgid "[Som Comunitats] Application to become Community membership"
msgstr "[Som Comunitats] Sol·licitud d'adhesió a Comunitat Energètica"
#. module: energy_communities
#: model:mail.template,subject:energy_communities.email_templ_lead_request_contact_confirm_id
msgid "[Somcomunitats.coop] Community Contact Request"
msgstr "[Somcomunitats.coop] Contacte Comunitat Energètica"
msgid "[Som Comunitats] Community Contact Request"
msgstr "[Som Comunitats] Contacte Comunitat Energètica"
#. module: energy_communities
#: model:mail.template,subject:energy_communities.email_templ_lead_request_ce_news_confirm_id
msgid "[Somcomunitats.coop] Community Newsletter Subscription Request"
msgid "[Som Comunitats] Community Newsletter Subscription Request"
msgstr ""
"[Somcomunitats.coop] Subscripció al butlletí d’una Comunitat Energètica"
"[Som Comunitats] Subscripció al butlletí d’una Comunitat Energètica"
#. module: energy_communities
#: model:mail.template,subject:energy_communities.email_templ_contact_platform_confirm_id
msgid "[Som Comunitats] Contact to the platform"
msgstr "[Som Comunitats] Formulari de contacte"
#. module: energy_communities
#: model:mail.template,subject:energy_communities.email_templ_lead_request_advise_future_ce_confirm_id
msgid "[Somcomunitats.coop] Interested in Communities in your area"
msgstr "[Somcomunitats.coop] Mostra d’interès rebuda"
msgid "[Som Comunitats] Interested in Communities in your area"
msgstr "[Som Comunitats] Mostra d’interès rebuda"
#. module: energy_communities
#: model:mail.template,subject:energy_communities.email_templ_lead_ce_creation_receipt_confirm_id
msgid "[Somcomunitats.coop] New Community Creation Request to the platform"
msgid "[Som Comunitats] New Community Creation Request to the platform"
msgstr ""
"[Somcomunitats.coop] Sol·licitud d’Alta de Comunitat Energètica a la "
"[Som Comunitats] Sol·licitud d’Alta de Comunitat Energètica a la "
"plataforma"
#. module: energy_communities
#: model:mail.template,subject:energy_communities.email_templ_lead_request_platform_news_confirm_id
msgid "[Somcomunitats.coop] Platform Newsletter Subscription Request"
msgstr "[Somcomunitats.coop] Subscripció al butlletí"
msgid "[Som Comunitats] Platform Newsletter Subscription Request"
msgstr "[Som Comunitats] Subscripció al butlletí"
#. module: energy_communities
#: model:mail.template,subject:energy_communities.email_templ_lead_assigned_to_coordinator_id
msgid ""
"[Somcomunitats.coop] Request for registration of the Energy Community on the"
"[Som Comunitats] Request for registration of the Energy Community on the"
" platform"
msgstr ""
"[Somcomunitats.coop] Sol·licitud d’Alta de Comunitat Energètica a la "
"[Som Comunitats] Sol·licitud d’Alta de Comunitat Energètica a la "
"plataforma"
#. module: energy_communities
#: code:addons/energy_communities/services/crm_lead_service.py:0
#, python-format
msgid "[Subscription CE]"
msgstr "[Alta CE]"
#. module: energy_communities
#: model_terms:ir.ui.view,arch_db:energy_communities.voluntary_share_text_template
msgid "and"
......@@ -2162,3 +2356,46 @@ msgid "€ by follow the steps you will receive by email."
msgstr ""
"€ seguint els passos que t'indicarem per correu electrònic un cop rebem la "
"teva petició."
#. module: energy_communities
#: code:addons/energy_communities/client_map/resources/landing_cmplace.py:0
#, python-format
msgid "Only users that belongs to the 'Coordinator' or 'Instance' company can create new Map Places."
msgstr "Només els usuaris coordinadors de Comunitat o d'instancia poden crear punts de mapa"
#. module: energy_communities
#: code:addons/energy_communities/client_map/resources/landing_cmplace.py:0
#, python-format
msgid "Map not found slug_id: {}"
msgstr "No s'ha trobat mapa per slug_id: {}"
#. module: energy_communities
#: code:addons/energy_communities/client_map/resources/landing_cmplace.py:0
#, python-format
msgid "Landing lat param required for place creation"
msgstr "La latitud de la landing és requerit per la creació del punt de mapa"
#. module: energy_communities
#: code:addons/energy_communities/client_map/resources/landing_cmplace.py:0
#, python-format
msgid "Landing lng param required for place creation"
msgstr "La longitud de la landing és requerida per la creació del punt de mapa"
#. module: energy_communities
#: code:addons/energy_communities/client_map/resources/landing_cmplace.py:0
#, python-format
msgid "Place category not found slug_id: {}"
msgstr "No s'ha trobat categoria de mapa per slug_id: {}"
#. module: energy_communities
#: code:addons/energy_communities/client_map/resources/landing_cmplace.py:0
#, python-format
msgid "Place status filter not found slug_id: {}"
msgstr "No s'ha trobat filtre de mapa per slug_id: {}"
#. module: energy_communities
#: code:addons/energy_communities/client_map/resources/landing_cmplace.py:0
#, python-format
msgid "Button configs not found."
msgstr "No s'ha trobat configuració de botons"
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * energy_communities
......@@ -30,7 +31,7 @@ msgid ""
"\n"
" <p>Yours faithfully,</p>\n"
" <p>Somcomunitats.coop team </p>\n"
" <p><a href=\"https://web-test.somcomunitats.coop/recursos/\">Resources and FAQs</a></p>\n"
" <p><a href=\"https://somcomunitats.coop/recursos/\">Resources and FAQs</a></p>\n"
"\n"
" </div>\n"
" \n"
......@@ -140,10 +141,9 @@ msgid ""
" <p>Thank you for contact.</p>\n"
" <p>We have received your email and we have we have forwarded it to the Community so that they can contact you as soon as possible.</p>\n"
" <br />\n"
" <p>We keep in touch for any questions.</p>\n"
" <p>Yours faithfully,</p>\n"
" <p>Somcomunitats.coop team </p>\n"
" <p><a href=\"https://web-test.somcomunitats.coop/recursos/\">Resources and FAQs</a></p>\n"
" <p><a href=\"https://somcomunitats.coop/recursos/\">Resources and FAQs</a></p>\n"
" </div>\n"
" "
msgstr ""
......@@ -164,7 +164,7 @@ msgid ""
" <p>We keep in touch for any questions.</p>\n"
" <p>Yours faithfully,</p>\n"
" <p>Somcomunitats.coop team </p>\n"
" <p><a href=\"https://web-test.somcomunitats.coop/recursos/\">Resources and FAQs</a></p>\n"
" <p><a href=\"https://somcomunitats.coop/recursos/\">Resources and FAQs</a></p>\n"
"\n"
" </div>\n"
" "
......@@ -182,7 +182,7 @@ msgid ""
" <p>We keep in touch for any questions.</p>\n"
" <p>Yours faithfully,</p>\n"
" <p>Somcomunitats.coop team </p>\n"
" <p><a href=\"https://web-test.somcomunitats.coop/recursos/\">Resources and FAQs</a></p>\n"
" <p><a href=\"https://somcomunitats.coop/recursos/\">Resources and FAQs</a></p>\n"
" </div>\n"
" "
msgstr ""
......@@ -195,10 +195,13 @@ msgid ""
" <p>Hello,</p>\n"
" <p>Thank you for filling out the form.</p>\n"
" <p>You have been subscribed correctly to the Community Newsletter.</p>\n"
" <p>We will notify you if there is anything new in this community.</p>\n"
" <br />\n"
" <p>We remain in contact for any questions.</p>\n"
" <br />\n"
" <p>Yours faithfully,</p>\n"
" <p>Somcomunitats.coop team </p>\n"
" <p><a href=\"https://web-test.somcomunitats.coop/recursos/\">Resources and FAQs</a></p>\n"
" <p><a href=\"https://somcomunitats.coop/recursos/\">Resources and FAQs</a></p>\n"
" </div>\n"
" "
msgstr ""
......@@ -215,7 +218,23 @@ msgid ""
" <br />\n"
" <p>Yours faithfully,</p>\n"
" <p>Somcomunitats.coop team </p>\n"
" <p><a href=\"https://web-test.somcomunitats.coop/recursos/\">Resources and FAQs</a></p>\n"
" <p><a href=\"https://somcomunitats.coop/recursos/\">Resources and FAQs</a></p>\n"
" </div>\n"
" "
msgstr ""
#. module: energy_communities
#: model:mail.template,body_html:energy_communities.email_templ_contact_platform_confirm_id
msgid ""
"\n"
" <div style=\"font-family: 'Lucica Grande', Ubuntu, Arial, Verdana, sans-serif; font-size: 12px; color: rgb(34, 34, 34); background-color: #FFF; \">\n"
" <p>Hello,</p>\n"
" <p>Thank you for getting in touch.</p>\n"
" <p>We have received your email. We will contact you as soon as possible.</p>\n"
" <br />\n"
" <p>Yours faithfully,</p>\n"
" <p>Somcomunitats.coop team </p>\n"
" <p><a href=\"https://somcomunitats.coop/recursos/\">Resources and FAQs</a></p>\n"
" </div>\n"
" "
msgstr ""
......@@ -224,13 +243,19 @@ msgstr ""
#: model:mail.template,body_html:energy_communities.email_template_confirmation_company
msgid ""
"\n"
"<div style=\"font-family: 'Lucica Grande', Ubuntu, Arial, Verdana, sans-serif; font-size: 12px; color: rgb(34, 34, 34); background-color: #FFF; \">\n"
"<div style=\"font-family: 'Lucica Grande', Ubuntu, Arial, Verdana, sans-"
"serif; font-size: 12px; color: rgb(34, 34, 34); background-color: #FFF; "
"\">\n"
"\n"
" <p>Hello,</p>\n"
" <p>Thank you for filling out the form and request to join the Community.</p>\n"
" <p>In the coming weeks we will contact you to indicate the next steps</p>\n"
" <p>Thank you for filling out the form and request to join the Community."
"</p>\n"
" <p>In the coming weeks we will contact you to indicate the next steps</"
"p>\n"
" <p>Here is a copy of the data we received:</p>\n"
" <div id=\"field_list_div\" style=\"font-family: 'Lucica Grande', Ubuntu, Arial, Verdana, sans-serif; font-size: 10px; color: rgb(34, 34, 34); background-color: #FFF; \">\n"
" <div id=\"field_list_div\" style=\"font-family: 'Lucica Grande', "
"Ubuntu, Arial, Verdana, sans-serif; font-size: 10px; color: rgb(34, 34, "
"34); background-color: #FFF; \">\n"
" <p> - Request to join: ${object.company_id.name}</p>\n"
" <p> - Company Name: ${object.company_name}</p>\n"
" <p> - Company Email: ${object.company_email}</p>\n"
......@@ -244,20 +269,25 @@ msgid ""
" <p> - Function: ${object.contact_person_function}</p>\n"
" <p> - Email: ${object.email}</p>\n"
" <p> - Phone: ${(object.phone or '')}</p>\n"
" <p> - Gender: ${dict(object.fields_get(allfields=['gender'])['gender']['selection'])[object.gender]}</p>\n"
" <p> - Gender: ${dict(object.fields_get(allfields=['gender'])"
"['gender']['selection'])[object.gender]}</p>\n"
" <p> - Birthdate: ${object.birthdate}</p>\n"
" <p> - Language: ${dict(object.fields_get(allfields=['lang'])['lang']['selection'])[object.lang]}</p>\n"
" <p> - Language: ${dict(object.fields_get(allfields=['lang'])['lang']"
"['selection'])[object.lang]}</p>\n"
" <p> - Initial share amount: ${object.subscription_amount}</p>\n"
" % if object.payment_mode_id.payment_method_id.code == 'sepa_direct_debit': \n"
" % if object.payment_mode_id.payment_method_id.code == "
"'sepa_direct_debit': \n"
" <p> - Bank account: ${object.iban}</p>\n"
" <p> - I authorize bank receipts to be sent to this account: ${object.mandate_approved and 'SI' or 'NO'}</p> \n"
" <p> - I authorize bank receipts to be sent to this account: "
"${object.mandate_approved and 'SI' or 'NO'}</p> \n"
" % endif\n"
" </div>\n"
" <br />\n"
" <p>We keep in touch for any questions.</p>\n"
" <p>Yours faithfully,</p>\n"
" <p>Somcomunitats.coop team </p>\n"
" <p><a href=\"https://web-test.somcomunitats.coop/recursos/\">Resources and FAQs</a></p>\n"
" <p><a href=\"https://somcomunitats.coop/recursos/\">Resources "
"and FAQs</a></p>\n"
"</div>\n"
" "
msgstr ""
......@@ -335,7 +365,33 @@ msgid "Assign CRM to coordinator company"
msgstr ""
#. module: energy_communities
#: code:addons/energy_communities/services/ce_community_service.py:0
#: model:ir.model,name:energy_communities.model_assign_crm_to_coordinator_company_wizard
msgid "Assign CRM to coordinator company wizard"
msgstr ""
#. module: energy_communities
#: model:ir.model.fields,field_description:energy_communities.field_assign_crm_to_coordinator_company_wizard__assigned_company_id
msgid "Assigned company"
msgstr ""
#. module: energy_communities
#: model_terms:ir.ui.view,arch_db:energy_communities.ce_crm_lead_view_form
msgid "Assing CRM to coordinator company"
#: model_terms:ir.ui.view,arch_db:energy_communities.view_assign_admin_wizard_form
msgid "Assign Admin Wizard"
msgstr ""
#. module: energy_communities
#: model:ir.model,name:energy_communities.model_assign_admin_wizard
msgid "Assign admin Wizard"
msgstr ""
#. module: energy_communities
#: model_terms:ir.ui.view,arch_db:energy_communities.view_company_form_ce_inherited
msgid "Assing administrator"
msgstr ""
#. module: energy_communities
#: code:addons/energy_communities/services/ce_community_service.py:0
#: code:addons/energy_communities/services/ce_member_profile_service.py:0
#: code:addons/energy_communities/services/ce_member_profile_service.py:0
......@@ -399,6 +455,7 @@ msgstr ""
#. module: energy_communities
#: model:utm.source,name:energy_communities.ce_source_creation_ce_proposal
#: model_terms:ir.ui.view,arch_db:energy_communities.ce_view_crm_case_opportunities_filter
msgid "CE creation"
msgstr ""
......@@ -417,6 +474,11 @@ msgstr ""
msgid "CRM Tag"
msgstr ""
#. module: energy_communities
#: model_terms:ir.ui.view,arch_db:energy_communities.view_assign_admin_wizard_form
msgid "Cancelar"
msgstr ""
#. module: energy_communities
#: model:ir.model.fields,field_description:energy_communities.field_account_multicompany_easy_creation_wiz__chart_template_id
msgid "Chart Template"
......@@ -482,6 +544,13 @@ msgstr ""
msgid "Community active services"
msgstr ""
#. module: energy_communities
#: code:addons/energy_communities/models/res_company.py:0
#: model:ir.model.fields,field_description:energy_communities.field_res_company__admins
#, python-format
msgid "Community admins"
msgstr ""
#. module: energy_communities
#: model:ir.model.fields,help:energy_communities.field_crm_lead__community_company_id
msgid "Community related to this Lead"
......@@ -513,6 +582,12 @@ msgstr ""
msgid "Company"
msgstr ""
#. module: energy_communities
#: code:addons/energy_communities/wizards/assign_admin_wizard.py:0
#, python-format
msgid "Company not found"
msgstr ""
#. module: energy_communities
#: model:crm.tag,name:energy_communities.ce_tag_collective_purchases
msgid "Compres col·lectives"
......@@ -554,11 +629,26 @@ msgstr ""
msgid "Contact"
msgstr ""
#. module: energy_communities
#: model_terms:ir.ui.view,arch_db:energy_communities.ce_view_crm_case_opportunities_filter
msgid "Contact CE"
msgstr ""
#. module: energy_communities
#: model_terms:ir.ui.view,arch_db:energy_communities.ce_view_crm_case_opportunities_filter_platform_admins
msgid "Contact SomComunitats"
msgstr ""
#. module: energy_communities
#: model:utm.source,name:energy_communities.ce_source_existing_ce_contact
msgid "Contact a existing CE"
msgstr ""
#. module: energy_communities
#: model:utm.source,name:energy_communities.ce_source_general_contact
msgid "Contact to the Platform"
msgstr ""
#. module: energy_communities
#: model:mail.template,subject:energy_communities.email_template_confirmation_voluntary_share
msgid "Contribute to ${object.company_id.name} Ref. ACSV${object.id}"
......@@ -601,11 +691,18 @@ msgstr ""
msgid "Cooperator Journal"
msgstr ""
#. module: energy_communities
#: model:res.groups,name:energy_communities.role_coordination_res_groups
#: model:res.users.role,name:energy_communities.role_coordination
msgid "Coordination role"
msgstr ""
#. module: energy_communities
#: code:addons/energy_communities/models/res_company.py:0
#: code:addons/energy_communities/models/res_company.py:0
#: code:addons/setup/energy_communities/odoo/addons/energy_communities/models/res_company.py:0
#: model:ir.model.fields.selection,name:energy_communities.selection__res_company__hierarchy_level__coordinator
#: model:res.groups,name:energy_communities.group_coordinator
#, python-format
msgid "Coordinator"
msgstr ""
......@@ -653,11 +750,13 @@ msgid "Create user for keycloak"
msgstr ""
#. module: energy_communities
#: model:ir.model.fields,field_description:energy_communities.field_assign_admin_wizard__create_uid
#: model:ir.model.fields,field_description:energy_communities.field_landing_page__create_uid
msgid "Created by"
msgstr ""
#. module: energy_communities
#: model:ir.model.fields,field_description:energy_communities.field_assign_admin_wizard__create_date
#: model:ir.model.fields,field_description:energy_communities.field_landing_page__create_date
msgid "Created on"
msgstr ""
......@@ -671,6 +770,7 @@ msgstr ""
#: model:ir.model.fields,field_description:energy_communities.field_account_chart_template__display_name
#: model:ir.model.fields,field_description:energy_communities.field_account_move__display_name
#: model:ir.model.fields,field_description:energy_communities.field_account_multicompany_easy_creation_wiz__display_name
#: model:ir.model.fields,field_description:energy_communities.field_assign_admin_wizard__display_name
#: model:ir.model.fields,field_description:energy_communities.field_auth_oauth_provider__display_name
#: model:ir.model.fields,field_description:energy_communities.field_crm_lead__display_name
#: model:ir.model.fields,field_description:energy_communities.field_crm_tag__display_name
......@@ -718,7 +818,10 @@ msgid "Eficiencia energètica"
msgstr ""
#. module: energy_communities
#: code:addons/energy_communities/wizards/assign_admin_wizard.py:0
#: model:ir.model.fields,field_description:energy_communities.field_assign_admin_wizard__email
#: model_terms:ir.ui.view,arch_db:energy_communities.voluntary_share
#, python-format
msgid "Email"
msgstr ""
......@@ -787,6 +890,24 @@ msgstr ""
msgid "Energy actions in progress"
msgstr ""
#. module: energy_communities
#: code:addons/energy_communities/models/res_company.py:0
#, python-format
msgid "Error: One role line can't have multiple users"
msgstr ""
#. module: energy_communities
#: code:addons/energy_communities/models/res_company.py:0
#, python-format
msgid "Error: This user have multiple roles for this company"
msgstr ""
#. module: energy_communities
#: code:addons/energy_communities/models/res_company.py:0
#, python-format
msgid "Error: You can't remove {} role"
msgstr ""
#. module: energy_communities
#: model:ir.model.fields,field_description:energy_communities.field_landing_page__external_website_link
msgid "External website link"
......@@ -797,6 +918,13 @@ msgstr ""
msgid "FREQUENTLY ASKED QUESTIONS"
msgstr ""
#. module: energy_communities
#: code:addons/energy_communities/wizards/assign_admin_wizard.py:0
#: model:ir.model.fields,field_description:energy_communities.field_assign_admin_wizard__first_name
#, python-format
msgid "First name"
msgstr ""
#. module: energy_communities
#: model:crm.tag,name:energy_communities.ce_tag_citizen_education
msgid "Formació ciutadana"
......@@ -866,6 +994,7 @@ msgstr ""
#: model:ir.model.fields,field_description:energy_communities.field_account_chart_template__id
#: model:ir.model.fields,field_description:energy_communities.field_account_move__id
#: model:ir.model.fields,field_description:energy_communities.field_account_multicompany_easy_creation_wiz__id
#: model:ir.model.fields,field_description:energy_communities.field_assign_admin_wizard__id
#: model:ir.model.fields,field_description:energy_communities.field_auth_oauth_provider__id
#: model:ir.model.fields,field_description:energy_communities.field_crm_lead__id
#: model:ir.model.fields,field_description:energy_communities.field_crm_tag__id
......@@ -964,6 +1093,13 @@ msgstr ""
msgid "Internal User"
msgstr ""
#. module: energy_communities
#: code:addons/energy_communities/wizards/assign_admin_wizard.py:0
#: model:ir.model.fields,field_description:energy_communities.field_assign_admin_wizard__is_new_admin
#, python-format
msgid "Is a new admin?"
msgstr ""
#. module: energy_communities
#: model:ir.model.fields,field_description:energy_communities.field_subscription_request__is_voluntary
msgid "Is voluntary contribution"
......@@ -994,7 +1130,10 @@ msgid "Landing Page"
msgstr ""
#. module: energy_communities
#: code:addons/energy_communities/wizards/assign_admin_wizard.py:0
#: model:ir.model.fields,field_description:energy_communities.field_assign_admin_wizard__lang
#: model:ir.model.fields,field_description:energy_communities.field_crm_lead__lang
#, python-format
msgid "Language"
msgstr ""
......@@ -1002,6 +1141,7 @@ msgstr ""
#: model:ir.model.fields,field_description:energy_communities.field_account_chart_template____last_update
#: model:ir.model.fields,field_description:energy_communities.field_account_move____last_update
#: model:ir.model.fields,field_description:energy_communities.field_account_multicompany_easy_creation_wiz____last_update
#: model:ir.model.fields,field_description:energy_communities.field_assign_admin_wizard____last_update
#: model:ir.model.fields,field_description:energy_communities.field_auth_oauth_provider____last_update
#: model:ir.model.fields,field_description:energy_communities.field_crm_lead____last_update
#: model:ir.model.fields,field_description:energy_communities.field_crm_tag____last_update
......@@ -1019,15 +1159,24 @@ msgid "Last Modified on"
msgstr ""
#. module: energy_communities
#: model:ir.model.fields,field_description:energy_communities.field_assign_admin_wizard__write_uid
#: model:ir.model.fields,field_description:energy_communities.field_landing_page__write_uid
msgid "Last Updated by"
msgstr ""
#. module: energy_communities
#: model:ir.model.fields,field_description:energy_communities.field_assign_admin_wizard__write_date
#: model:ir.model.fields,field_description:energy_communities.field_landing_page__write_date
msgid "Last Updated on"
msgstr ""
#. module: energy_communities
#: code:addons/energy_communities/wizards/assign_admin_wizard.py:0
#: model:ir.model.fields,field_description:energy_communities.field_assign_admin_wizard__last_name
#, python-format
msgid "Last name"
msgstr ""
#. module: energy_communities
#: model:ir.model,name:energy_communities.model_crm_lead
msgid "Lead/Opportunity"
......@@ -1076,6 +1225,16 @@ msgid ""
" "
msgstr ""
#. module: energy_communities
#: model_terms:ir.ui.view,arch_db:energy_communities.ce_view_crm_case_opportunities_filter
msgid "Newsletter CE"
msgstr ""
#. module: energy_communities
#: model_terms:ir.ui.view,arch_db:energy_communities.ce_view_crm_case_opportunities_filter_platform_admins
msgid "Newsletter SomComunitats"
msgstr ""
#. module: energy_communities
#: code:addons/energy_communities/services/ce_community_service.py:0
#: code:addons/energy_communities/services/ce_community_service.py:0
......@@ -1106,6 +1265,11 @@ msgstr ""
msgid "No Odoo User found for KeyCloak user id %s"
msgstr ""
#. module: energy_communities
#: model_terms:ir.ui.view,arch_db:energy_communities.ce_view_crm_case_opportunities_filter
msgid "No web form origin"
msgstr ""
#. module: energy_communities
#: model:ir.model.fields.selection,name:energy_communities.selection__res_partner__gender__not_binary
#: model:ir.model.fields.selection,name:energy_communities.selection__subscription_request__gender__not_binary
......@@ -1285,8 +1449,8 @@ msgid "Postal code"
msgstr ""
#. module: energy_communities
#: model:ir.model.fields,field_description:energy_communities.field_landing_page__primary_image_file
msgid "Primary Image"
#: model_terms:ir.ui.view,arch_db:energy_communities.view_assign_admin_wizard_form
msgid "Procesar"
msgstr ""
#. module: energy_communities
......@@ -1335,6 +1499,11 @@ msgstr ""
msgid "Realm name"
msgstr ""
#. module: energy_communities
#: model:ir.model.fields,field_description:energy_communities.field_auth_oauth_provider__redirect_admin_url
msgid "Redirect Link after update password"
msgstr ""
#. module: energy_communities
#: model:ir.model.fields,field_description:energy_communities.field_crm_lead__community_company_id
msgid "Related Community"
......@@ -1345,6 +1514,17 @@ msgstr ""
msgid "Requests"
msgstr ""
#. module: energy_communities
#: model:ir.model.fields,field_description:energy_communities.field_auth_oauth_provider__reset_password_endpoint
msgid "Reset password URL"
msgstr ""
#. module: energy_communities
#: code:addons/energy_communities/models/res_users.py:0
#, python-format
msgid "Reset password url is not set."
msgstr ""
#. module: energy_communities
#: model:ir.model.fields,field_description:energy_communities.field_auth_oauth_provider__root_endpoint
msgid "Root URL"
......@@ -1396,6 +1576,12 @@ msgstr ""
#: code:addons/energy_communities/models/res_users.py:0
#: code:addons/setup/energy_communities/odoo/addons/energy_communities/models/res_users.py:0
#, python-format
msgid "Something went wrong. Mail can not be sended. More details: {}"
msgstr ""
#. module: energy_communities
#: code:addons/energy_communities/models/res_users.py:0
#, python-format
msgid "Something went wrong. Please check logs."
msgstr ""
......@@ -1744,7 +1930,10 @@ msgid "Users created by cooperator are pushed automatically to keycloak"
msgstr ""
#. module: energy_communities
#: code:addons/energy_communities/wizards/assign_admin_wizard.py:0
#: model:ir.model.fields,field_description:energy_communities.field_assign_admin_wizard__vat
#: model_terms:ir.ui.view,arch_db:energy_communities.voluntary_share
#, python-format
msgid "VAT"
msgstr ""
......@@ -1924,43 +2113,78 @@ msgstr ""
msgid "ZIP code not found"
msgstr ""
#. module: energy_communities
#: code:addons/energy_communities/services/crm_lead_service.py:0
#, python-format
msgid "[Contact CE]"
msgstr ""
#. module: energy_communities
#: code:addons/energy_communities/services/crm_lead_service.py:0
#, python-format
msgid "[Contact SomComunitats]"
msgstr ""
#. module: energy_communities
#: code:addons/energy_communities/services/crm_lead_service.py:0
#, python-format
msgid "[Newsletter CE]"
msgstr ""
#. module: energy_communities
#: code:addons/energy_communities/services/crm_lead_service.py:0
#, python-format
msgid "[Newsletter SomComunitats]"
msgstr ""
#. module: energy_communities
#: model:mail.template,subject:energy_communities.email_template_confirmation_company
msgid "[Somcomunitats.coop] Application to become Community membership"
msgid "[Som Comunitats] Application to become Community membership"
msgstr ""
#. module: energy_communities
#: model:mail.template,subject:energy_communities.email_templ_lead_request_contact_confirm_id
msgid "[Somcomunitats.coop] Community Contact Request"
msgid "[Som Comunitats] Community Contact Request"
msgstr ""
#. module: energy_communities
#: model:mail.template,subject:energy_communities.email_templ_lead_request_ce_news_confirm_id
msgid "[Somcomunitats.coop] Community Newsletter Subscription Request"
msgid "[Som Comunitats] Community Newsletter Subscription Request"
msgstr ""
#. module: energy_communities
#: model:mail.template,subject:energy_communities.email_templ_contact_platform_confirm_id
msgid "[Som Comunitats] Contact to the platform"
msgstr ""
#. module: energy_communities
#: model:mail.template,subject:energy_communities.email_templ_lead_request_advise_future_ce_confirm_id
msgid "[Somcomunitats.coop] Interested in Communities in your area"
msgid "[Som Comunitats] Interested in Communities in your area"
msgstr ""
#. module: energy_communities
#: model:mail.template,subject:energy_communities.email_templ_lead_ce_creation_receipt_confirm_id
msgid "[Somcomunitats.coop] New Community Creation Request to the platform"
msgid "[Som Comunitats] New Community Creation Request to the platform"
msgstr ""
#. module: energy_communities
#: model:mail.template,subject:energy_communities.email_templ_lead_request_platform_news_confirm_id
msgid "[Somcomunitats.coop] Platform Newsletter Subscription Request"
msgid "[Som Comunitats] Platform Newsletter Subscription Request"
msgstr ""
#. module: energy_communities
#: model:mail.template,subject:energy_communities.email_templ_lead_assigned_to_coordinator_id
msgid ""
"[Somcomunitats.coop] Request for registration of the Energy Community on the"
"[Som Comunitats] Request for registration of the Energy Community on the"
" platform"
msgstr ""
#. module: energy_communities
#: code:addons/energy_communities/services/crm_lead_service.py:0
#, python-format
msgid "[Subscription CE]"
msgstr ""
#. module: energy_communities
#: model_terms:ir.ui.view,arch_db:energy_communities.voluntary_share_text_template
msgid "and"
......@@ -1981,3 +2205,4 @@ msgstr ""
#: model_terms:ir.ui.view,arch_db:energy_communities.becomecooperator_ccee
msgid "€ by follow the steps you will receive by email."
msgstr ""
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * energy_communities
......@@ -6,8 +7,8 @@ msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 14.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2023-05-30 20:04+0000\n"
"PO-Revision-Date: 2023-05-30 22:44+0200\n"
"POT-Creation-Date: 2023-07-05 07:12+0000\n"
"PO-Revision-Date: 2023-07-07 08:53+0200\n"
"Last-Translator: \n"
"Language-Team: \n"
"Language: es\n"
......@@ -32,7 +33,7 @@ msgid ""
"\n"
" <p>Yours faithfully,</p>\n"
" <p>Somcomunitats.coop team </p>\n"
" <p><a href=\"https://web-test.somcomunitats.coop/recursos/\">Resources and FAQs</a></p>\n"
" <p><a href=\"https://somcomunitats.coop/recursos/\">Resources and FAQs</a></p>\n"
"\n"
" </div>\n"
" \n"
......@@ -50,7 +51,7 @@ msgstr ""
"\n"
" <p>Atentamente,</p>\n"
" <p>Equipo de Somcomunitats.coop</p>\n"
" <p><a href=\"https://web-test.somcomunitats.coop/recursos/\">Recursos y preguntas frecuentes</a></p>\n"
" <p><a href=\"https://somcomunitats.coop/es/recursos/\">Recursos y preguntas frecuentes</a></p>\n"
"\n"
" </div>\n"
" \n"
......@@ -135,9 +136,9 @@ msgstr ""
"Una vez verificada la validez del pago realizado recibirás una nueva notificación confirmando la aportación realizada y detallando las condiciones particulares de tu aportación.\n"
" </p>\n"
" <p>\n"
"Agradecer tu implicación con la cooperativa y informarte que para cualquier duda o aclaración puedes consultar nuestra web \n"
"Agradecer tu implicación con la cooperativa y informarte que para cualquier duda o aclaración puedes consultar nuestra web \n"
" <a href=\"${object.company_id.website}\"> ${object.company_id.website}</a>\n"
" o enviarnos un correo electrónico \n"
" o enviarnos un correo electrónico \n"
" <a href=\"${object.company_id.email}\">${object.company_id.email}</a>\n"
" </p>\n"
" <p>\n"
......@@ -229,10 +230,9 @@ msgid ""
" <p>Thank you for contact.</p>\n"
" <p>We have received your email and we have we have forwarded it to the Community so that they can contact you as soon as possible.</p>\n"
" <br />\n"
" <p>We keep in touch for any questions.</p>\n"
" <p>Yours faithfully,</p>\n"
" <p>Somcomunitats.coop team </p>\n"
" <p><a href=\"https://web-test.somcomunitats.coop/recursos/\">Resources and FAQs</a></p>\n"
" <p><a href=\"https://somcomunitats.coop/recursos/\">Resources and FAQs</a></p>\n"
" </div>\n"
" "
msgstr ""
......@@ -242,10 +242,9 @@ msgstr ""
" <p>Gracias por contactar.</p>\n"
" <p>Hemos recibido tu correo electrónico y lo hemos reenviado a la Comunidad para que puedan contactar contigo lo antes posible.</p>\n"
" <br />\n"
" <p>Seguimos en contacto para cualquier consulta.</p>\n"
" <p>Atentamente,</p>\n"
" <p>Equipo de Somcomunitats.coop</p>\n"
" <p><a href=\"https://web-test.somcomunitats.coop/recursos/\">Recursos y preguntas frecuentes</a></p>\n"
" <p><a href=\"https://somcomunitats.coop/es/recursos/\">Recursos y preguntas frecuentes</a></p>\n"
" </div>\n"
" "
......@@ -265,7 +264,7 @@ msgid ""
" <p>We keep in touch for any questions.</p>\n"
" <p>Yours faithfully,</p>\n"
" <p>Somcomunitats.coop team </p>\n"
" <p><a href=\"https://web-test.somcomunitats.coop/recursos/\">Resources and FAQs</a></p>\n"
" <p><a href=\"https://somcomunitats.coop/recursos/\">Resources and FAQs</a></p>\n"
"\n"
" </div>\n"
" "
......@@ -275,15 +274,15 @@ msgstr ""
"\n"
" <p>Hola,</p>\n"
"\n"
" <p>Gracias por rellenar el formulario y solicitar la membresía de tu Comunidad Energética en la plataforma Somcomunitats.coop.</p>\n"
" <p>Gracias por rellenar el formulario y solicitar la adhesión de vuestra Comunidad Energética a la plataforma Som Comunitats.</p>\n"
"\n"
" <p>En las próximas semanas estudiaremos la solicitud y nos pondremos en contacto contigo para indicarte los pasos y la información necesaria para completar el proceso de registro de la Comunidad y de las personas que forman parte de ella.</p>\n"
" <p>Durante los próximos as estudiaremos la solicitud y nos pondremos en contacto con vosotros para indicaros los pasos y la información necesaria para acabar el proceso de alta de la Comunidad y de las personas que forman parte de ella.</p>\n"
"\n"
" <br />\n"
" <p>Seguimos en contacto para cualquier consulta.</p>\n"
" <p>Atentamente,</p>\n"
" <p>Equipo de Somcomunitats.coop</p>\n"
" <p><a href=\"https://web-test.somcomunitats.coop/recursos/\">Recursos y preguntas frecuentes</a></p>\n"
" <p><a href=\"https://somcomunitats.coop/es/recursos/\">Recursos y preguntas frecuentes</a></p>\n"
"\n"
" </div>\n"
" "
......@@ -300,7 +299,7 @@ msgid ""
" <p>We keep in touch for any questions.</p>\n"
" <p>Yours faithfully,</p>\n"
" <p>Somcomunitats.coop team </p>\n"
" <p><a href=\"https://web-test.somcomunitats.coop/recursos/\">Resources and FAQs</a></p>\n"
" <p><a href=\"https://somcomunitats.coop/recursos/\">Resources and FAQs</a></p>\n"
" </div>\n"
" "
msgstr ""
......@@ -313,7 +312,7 @@ msgstr ""
" <p>Seguimos en contacto para cualquier consulta.</p>\n"
" <p>Atentamente,</p>\n"
" <p>Equipo de Somcomunitats.coop</p>\n"
" <p><a href=\"https://web-test.somcomunitats.coop/recursos/\">Recursos y preguntas frecuentes</a></p>\n"
" <p><a href=\"https://somcomunitats.coop/es/recursos/\">Recursos y preguntas frecuentes</a></p>\n"
" </div>\n"
" "
......@@ -325,10 +324,13 @@ msgid ""
" <p>Hello,</p>\n"
" <p>Thank you for filling out the form.</p>\n"
" <p>You have been subscribed correctly to the Community Newsletter.</p>\n"
" <p>We will notify you if there is anything new in this community.</p>\n"
" <br />\n"
" <p>We remain in contact for any questions.</p>\n"
" <br />\n"
" <p>Yours faithfully,</p>\n"
" <p>Somcomunitats.coop team </p>\n"
" <p><a href=\"https://web-test.somcomunitats.coop/recursos/\">Resources and FAQs</a></p>\n"
" <p><a href=\"https://somcomunitats.coop/recursos/\">Resources and FAQs</a></p>\n"
" </div>\n"
" "
msgstr ""
......@@ -336,11 +338,14 @@ msgstr ""
" <div style=\"font-family: 'Lucica Grande', Ubuntu, Arial, Verdana, sans-serif; font-size: 12px; color: rgb(34, 34, 34); background-color: #FFF; \">\n"
" <p>Hola,</p>\n"
" <p>Gracias por rellenar el formulario.</p>\n"
" <p>Te has suscrito correctamente al boletín de la Comunidad.</p>\n"
" <p>Te confirmamos que te has suscrito correctamente en el boletín.</p>\n"
" <p>Te avisaremos en caso de que haya alguna novedad en el proyecto.</p>
" <br />\n"
" <p>Seguimos en contacto por cualquier consulta.</p>\n"
" <br />\n"
" <p>Atentamente,</p>\n"
" <p>Equipo de Somcomunitats.coop</p>\n"
" <p><a href=\"https://web-test.somcomunitats.coop/recursos/\">Recursos y preguntas frecuentes</a></p>\n"
" <p><a href=\"https://somcomunitats.coop/es/recursos/\">Recursos y preguntas frecuentes</a></p>\n"
" </div>\n"
" "
......@@ -356,7 +361,7 @@ msgid ""
" <br />\n"
" <p>Yours faithfully,</p>\n"
" <p>Somcomunitats.coop team </p>\n"
" <p><a href=\"https://web-test.somcomunitats.coop/recursos/\">Resources and FAQs</a></p>\n"
" <p><a href=\"https://somcomunitats.coop/recursos/\">Resources and FAQs</a></p>\n"
" </div>\n"
" "
msgstr ""
......@@ -369,7 +374,34 @@ msgstr ""
" <br />\n"
" <p>Atentamente,</p>\n"
" <p>Equipo de Somcomunitats.coop</p>\n"
" <p><a href=\"https://web-test.somcomunitats.coop/recursos/\">Recursos y preguntas frecuentes</a></p>\n"
" <p><a href=\"https://somcomunitats.coop/es/recursos/\">Recursos y preguntas frecuentes</a></p>\n"
" </div>\n"
" "
#. module: energy_communities
#: model:mail.template,body_html:energy_communities.email_templ_contact_platform_confirm_id
msgid ""
"\n"
" <div style=\"font-family: 'Lucica Grande', Ubuntu, Arial, Verdana, sans-serif; font-size: 12px; color: rgb(34, 34, 34); background-color: #FFF; \">\n"
" <p>Hello,</p>\n"
" <p>Thank you for getting in touch.</p>\n"
" <p>We have received your email. We will contact you as soon as possible.</p>\n"
" <br />\n"
" <p>Yours faithfully,</p>\n"
" <p>Somcomunitats.coop team </p>\n"
" <p><a href=\"https://somcomunitats.coop/recursos/\">Resources and FAQs</a></p>\n"
" </div>\n"
" "
msgstr ""
"\n"
" <div style=\"font-family: 'Lucica Grande', Ubuntu, Arial, Verdana, sans-serif; font-size: 12px; color: rgb(34, 34, 34); background-color: #FFF; \">\n"
" <p>Hola,</p>\n"
" <p>Gracias por ponerte en contacto.</p>\n"
" <p>Hemos recibido su correo electrónico. Nos pondremos en contacto contigo lo antes possible.</p>\n"
" <br />\n"
" <p>Atentamente,</p>\n"
" <p>Equipo de Somcomunitats.coop</p>\n"
" <p><a href=\"https://somcomunitats.coop/es/recursos/\">Recursos y preguntas frecuentes</a></p>\n"
" </div>\n"
" "
......@@ -410,7 +442,7 @@ msgid ""
" <p>We keep in touch for any questions.</p>\n"
" <p>Yours faithfully,</p>\n"
" <p>Somcomunitats.coop team </p>\n"
" <p><a href=\"https://web-test.somcomunitats.coop/recursos/\">Resources and FAQs</a></p>\n"
" <p><a href=\"https://somcomunitats.coop/recursos/\">Resources and FAQs</a></p>\n"
"</div>\n"
" "
msgstr ""
......@@ -448,7 +480,7 @@ msgstr ""
" <p>Seguimos en contacto para cualquier duda.</p>\n"
" <p>Atentamente,</p>\n"
" <p>Equipo Somcomunitats.coop</p>\n"
" <p><a href=\"https://web-test.somcomunitats.coop/recursos/\">Resources and FAQs</a></p>\n"
" <p><a href=\"https://somcomunitats.coop/es/recursos/\">Recursos y preguntas frecuentes</a></p>\n"
"</div>\n"
" "
......@@ -499,9 +531,9 @@ msgid "Allows new members"
msgstr ""
#. module: energy_communities
#: model:ir.model.fields,field_description:energy_communities.field_landing_page__wp_lastupdate_datetime
msgid "Last wordpress update date"
msgstr "Fecha última actualización de wordpress"
#: model:ir.model.fields,field_description:energy_communities.field_landing_page__publicdata_lastupdate_datetime
msgid "Last wordpress/map update date"
msgstr "Fecha última actualización de wordpress/mapa"
#. module: energy_communities
#: code:addons/energy_communities/models/res_company.py:0
......@@ -539,6 +571,19 @@ msgstr "Compañía asignada"
#: model_terms:ir.ui.view,arch_db:energy_communities.ce_crm_lead_view_form
msgid "Assing CRM to coordinator company"
msgstr "Asignar CRM a compañía coordinadora"
#: model_terms:ir.ui.view,arch_db:energy_communities.view_assign_admin_wizard_form
msgid "Assign Admin Wizard"
msgstr "Asistente de creación de administradoras"
#. module: energy_communities
#: model:ir.model,name:energy_communities.model_assign_admin_wizard
msgid "Assign admin Wizard"
msgstr "Asistente de creación de administradoras"
#. module: energy_communities
#: model_terms:ir.ui.view,arch_db:energy_communities.view_company_form_ce_inherited
msgid "Assing administrator"
msgstr "Asignar administradora"
#. module: energy_communities
#: code:addons/energy_communities/services/ce_community_service.py:0
......@@ -596,6 +641,7 @@ msgstr "Etiquetas de CE"
#. module: energy_communities
#: model:utm.source,name:energy_communities.ce_source_creation_ce_proposal
#: model_terms:ir.ui.view,arch_db:energy_communities.ce_view_crm_case_opportunities_filter
msgid "CE creation"
msgstr "Creación de CE"
......@@ -614,6 +660,11 @@ msgstr "Iniciativa CRM"
msgid "CRM Tag"
msgstr "Etiqueta CRM"
#. module: energy_communities
#: model_terms:ir.ui.view,arch_db:energy_communities.view_assign_admin_wizard_form
msgid "Cancelar"
msgstr "Cancelar"
#. module: energy_communities
#: model:ir.model.fields,field_description:energy_communities.field_account_multicompany_easy_creation_wiz__chart_template_id
msgid "Chart Template"
......@@ -657,6 +708,13 @@ msgstr "Comunidad"
msgid "Community active services"
msgstr "Servicios activos en la Comunidad"
#. module: energy_communities
#: code:addons/energy_communities/models/res_company.py:0
#: model:ir.model.fields,field_description:energy_communities.field_res_company__admins
#, python-format
msgid "Community admins"
msgstr "Administradoras de comunidad"
#. module: energy_communities
#: model:ir.model.fields,help:energy_communities.field_crm_lead__community_company_id
msgid "Community related to this Lead"
......@@ -665,7 +723,7 @@ msgstr "Comunitad relacionada"
#. module: energy_communities
#: model:ir.model,name:energy_communities.model_res_company
msgid "Companies"
msgstr "Empreses"
msgstr "Compañías"
#. module: energy_communities
#: model:ir.model.fields,field_description:energy_communities.field_landing_page__company_id
......@@ -673,6 +731,12 @@ msgstr "Empreses"
msgid "Company"
msgstr "Compañía"
#. module: energy_communities
#: code:addons/energy_communities/wizards/assign_admin_wizard.py:0
#, python-format
msgid "Company not found"
msgstr "No se ha encontrado la comunidad"
#. module: energy_communities
#: model:crm.tag,name:energy_communities.ce_tag_collective_purchases
msgid "Compres col·lectives"
......@@ -713,13 +777,28 @@ msgstr ""
#. module: energy_communities
#: model:ir.model,name:energy_communities.model_res_partner
msgid "Contact"
msgstr "Contacte"
msgstr "Contacto"
#. module: energy_communities
#: model_terms:ir.ui.view,arch_db:energy_communities.ce_view_crm_case_opportunities_filter
msgid "Contact CE"
msgstr "Contacto CE"
#. module: energy_communities
#: model_terms:ir.ui.view,arch_db:energy_communities.ce_view_crm_case_opportunities_filter_platform_admins
msgid "Contact SomComunitats"
msgstr "Contacto SomComunitats"
#. module: energy_communities
#: model:utm.source,name:energy_communities.ce_source_existing_ce_contact
msgid "Contact a existing CE"
msgstr "Contactar una CE existente"
#. module: energy_communities
#: model:utm.source,name:energy_communities.ce_source_general_contact
msgid "Contact to the Platform"
msgstr "Contactar con la plataforma"
#. module: energy_communities
#: model:mail.template,subject:energy_communities.email_template_confirmation_voluntary_share
msgid "Contribute to ${object.company_id.name} Ref. ACSV${object.id}"
......@@ -751,9 +830,16 @@ msgstr "Cuenta socias"
msgid "Cooperator Journal"
msgstr "Diario Socias"
#. module: energy_communities
#: model:res.groups,name:energy_communities.role_coordination_res_groups
#: model:res.users.role,name:energy_communities.role_coordination
msgid "Coordination role"
msgstr "Rol de coordinadora"
#. module: energy_communities
#: code:addons/energy_communities/models/res_company.py:0
#: model:ir.model.fields.selection,name:energy_communities.selection__res_company__hierarchy_level__coordinator
#: model:res.groups,name:energy_communities.group_coordinator
#, python-format
msgid "Coordinator"
msgstr "Coordinadora"
......@@ -775,8 +861,8 @@ msgstr "Crear página de Landing"
#. module: energy_communities
#: model_terms:ir.ui.view,arch_db:energy_communities.landing_page_form_view
msgid "Update wordpress data"
msgstr "Actualizar datos wordpress"
msgid "Update (wp landing / map place)"
msgstr "Actualizar datos wordpress/mapa"
#. module: energy_communities
#: model:ir.model.fields,field_description:energy_communities.field_account_multicompany_easy_creation_wiz__create_user
......@@ -789,11 +875,13 @@ msgid "Create user for keycloak"
msgstr "Crear usuario de KeyCloak/SSO desde la socia"
#. module: energy_communities
#: model:ir.model.fields,field_description:energy_communities.field_assign_admin_wizard__create_uid
#: model:ir.model.fields,field_description:energy_communities.field_landing_page__create_uid
msgid "Created by"
msgstr ""
#. module: energy_communities
#: model:ir.model.fields,field_description:energy_communities.field_assign_admin_wizard__create_date
#: model:ir.model.fields,field_description:energy_communities.field_landing_page__create_date
msgid "Created on"
msgstr ""
......@@ -807,6 +895,7 @@ msgstr ""
#: model:ir.model.fields,field_description:energy_communities.field_account_chart_template__display_name
#: model:ir.model.fields,field_description:energy_communities.field_account_move__display_name
#: model:ir.model.fields,field_description:energy_communities.field_account_multicompany_easy_creation_wiz__display_name
#: model:ir.model.fields,field_description:energy_communities.field_assign_admin_wizard__display_name
#: model:ir.model.fields,field_description:energy_communities.field_auth_oauth_provider__display_name
#: model:ir.model.fields,field_description:energy_communities.field_crm_lead__display_name
#: model:ir.model.fields,field_description:energy_communities.field_crm_tag__display_name
......@@ -852,7 +941,10 @@ msgid "Eficiencia energètica"
msgstr "Eficiencia Energética"
#. module: energy_communities
#: code:addons/energy_communities/wizards/assign_admin_wizard.py:0
#: model:ir.model.fields,field_description:energy_communities.field_assign_admin_wizard__email
#: model_terms:ir.ui.view,arch_db:energy_communities.voluntary_share
#, python-format
msgid "Email"
msgstr "Correo electrónico"
......@@ -909,16 +1001,41 @@ msgstr "Servicios Comunidad Energética"
msgid "Energy actions in progress"
msgstr "Acciones energéticas en curso"
#. module: energy_communities
#: code:addons/energy_communities/models/res_company.py:0
#, python-format
msgid "Error: One role line can't have multiple users"
msgstr ""
#. module: energy_communities
#: code:addons/energy_communities/models/res_company.py:0
#, python-format
msgid "Error: This user have multiple roles for this company"
msgstr ""
#. module: energy_communities
#: code:addons/energy_communities/models/res_company.py:0
#, python-format
msgid "Error: You can't remove {} role"
msgstr ""
#. module: energy_communities
#: model:ir.model.fields,field_description:energy_communities.field_landing_page__external_website_link
msgid "External website link"
msgstr ""
msgstr "Enlace del sitio web"
#. module: energy_communities
#: model_terms:ir.ui.view,arch_db:energy_communities.voluntary_share_text_template
msgid "FREQUENTLY ASKED QUESTIONS"
msgstr "PREGUNTAS FRECUENTES"
#. module: energy_communities
#: code:addons/energy_communities/wizards/assign_admin_wizard.py:0
#: model:ir.model.fields,field_description:energy_communities.field_assign_admin_wizard__first_name
#, python-format
msgid "First name"
msgstr "Nombre"
#. module: energy_communities
#: model:crm.tag,name:energy_communities.ce_tag_citizen_education
msgid "Formació ciutadana"
......@@ -971,7 +1088,9 @@ msgstr "Nivel jerárquico"
#: model_terms:ir.ui.view,arch_db:energy_communities.iban_template_es_ccee
#: model_terms:ir.ui.view,arch_db:energy_communities.voluntary_shares_template
msgid "I accept that the entity issues direct debit receipts to this account."
msgstr "Confirmo que la persona titular de la cuenta bancaria, sea yo misma u otra persona, autoritza la domiciliación de los recibos."
msgstr ""
"Confirmo que la persona titular de la cuenta bancaria, sea yo misma u otra "
"persona, autoritza la domiciliación de los recibos."
#. module: energy_communities
#: model:ir.model.fields.selection,name:energy_communities.selection__res_partner__gender__not_share
......@@ -983,6 +1102,7 @@ msgstr "Prefiero no compartirlo"
#: model:ir.model.fields,field_description:energy_communities.field_account_chart_template__id
#: model:ir.model.fields,field_description:energy_communities.field_account_move__id
#: model:ir.model.fields,field_description:energy_communities.field_account_multicompany_easy_creation_wiz__id
#: model:ir.model.fields,field_description:energy_communities.field_assign_admin_wizard__id
#: model:ir.model.fields,field_description:energy_communities.field_auth_oauth_provider__id
#: model:ir.model.fields,field_description:energy_communities.field_crm_lead__id
#: model:ir.model.fields,field_description:energy_communities.field_crm_tag__id
......@@ -1059,6 +1179,19 @@ msgstr "Cuota inicial alta sòcia"
msgid "Instance"
msgstr "Instancia"
#. module: energy_communities
#: model:res.groups,name:energy_communities.role_internal_user_res_groups
#: model:res.users.role,name:energy_communities.role_internal_user
msgid "Internal User"
msgstr "Usuaria de la plataforma"
#. module: energy_communities
#: code:addons/energy_communities/wizards/assign_admin_wizard.py:0
#: model:ir.model.fields,field_description:energy_communities.field_assign_admin_wizard__is_new_admin
#, python-format
msgid "Is a new admin?"
msgstr "Es una administradora nueva?"
#. module: energy_communities
#: model:ir.model.fields,field_description:energy_communities.field_subscription_request__is_voluntary
msgid "Is voluntary contribution"
......@@ -1087,7 +1220,10 @@ msgid "Landing Page"
msgstr ""
#. module: energy_communities
#: code:addons/energy_communities/wizards/assign_admin_wizard.py:0
#: model:ir.model.fields,field_description:energy_communities.field_assign_admin_wizard__lang
#: model:ir.model.fields,field_description:energy_communities.field_crm_lead__lang
#, python-format
msgid "Language"
msgstr "Idioma"
......@@ -1095,6 +1231,7 @@ msgstr "Idioma"
#: model:ir.model.fields,field_description:energy_communities.field_account_chart_template____last_update
#: model:ir.model.fields,field_description:energy_communities.field_account_move____last_update
#: model:ir.model.fields,field_description:energy_communities.field_account_multicompany_easy_creation_wiz____last_update
#: model:ir.model.fields,field_description:energy_communities.field_assign_admin_wizard____last_update
#: model:ir.model.fields,field_description:energy_communities.field_auth_oauth_provider____last_update
#: model:ir.model.fields,field_description:energy_communities.field_crm_lead____last_update
#: model:ir.model.fields,field_description:energy_communities.field_crm_tag____last_update
......@@ -1112,15 +1249,24 @@ msgid "Last Modified on"
msgstr "Última modificación el"
#. module: energy_communities
#: model:ir.model.fields,field_description:energy_communities.field_assign_admin_wizard__write_uid
#: model:ir.model.fields,field_description:energy_communities.field_landing_page__write_uid
msgid "Last Updated by"
msgstr ""
#. module: energy_communities
#: model:ir.model.fields,field_description:energy_communities.field_assign_admin_wizard__write_date
#: model:ir.model.fields,field_description:energy_communities.field_landing_page__write_date
msgid "Last Updated on"
msgstr ""
#. module: energy_communities
#: code:addons/energy_communities/wizards/assign_admin_wizard.py:0
#: model:ir.model.fields,field_description:energy_communities.field_assign_admin_wizard__last_name
#, python-format
msgid "Last name"
msgstr "Apellido"
#. module: energy_communities
#: model:ir.model,name:energy_communities.model_crm_lead
msgid "Lead/Opportunity"
......@@ -1142,11 +1288,6 @@ msgstr ""
msgid "Mandatory Shares"
msgstr "Aportaciones obligatorias"
#. module: energy_communities
#: model:ir.model.fields,field_description:energy_communities.field_landing_page__map_geolocation
msgid "Map geolocation"
msgstr ""
#. module: energy_communities
#: model:crm.tag,name:energy_communities.ce_tag_sustainable_mobility
msgid "Mobilitat sostenible"
......@@ -1171,6 +1312,16 @@ msgstr ""
"Nivel de acceso de los usuarios a la plataforma Odoo de las Comunidades Energéticas\n"
" "
#. module: energy_communities
#: model_terms:ir.ui.view,arch_db:energy_communities.ce_view_crm_case_opportunities_filter
msgid "Newsletter CE"
msgstr "Boletín CE"
#. module: energy_communities
#: model_terms:ir.ui.view,arch_db:energy_communities.ce_view_crm_case_opportunities_filter_platform_admins
msgid "Newsletter SomComunitats"
msgstr "Boletín SomComunitats"
#. module: energy_communities
#: code:addons/energy_communities/services/ce_community_service.py:0
#, python-format
......@@ -1195,6 +1346,11 @@ msgstr ""
"No se ha encontrado ningún Usuario de Odoo vinculado al Usuario de KeyCloak:"
" %s"
#. module: energy_communities
#: model_terms:ir.ui.view,arch_db:energy_communities.ce_view_crm_case_opportunities_filter
msgid "No web form origin"
msgstr "Sin origen del formulario web"
#. module: energy_communities
#: model:ir.model.fields.selection,name:energy_communities.selection__res_partner__gender__not_binary
#: model:ir.model.fields.selection,name:energy_communities.selection__subscription_request__gender__not_binary
......@@ -1329,6 +1485,11 @@ msgstr ""
msgid "Postal code"
msgstr ""
#. module: energy_communities
#: model_terms:ir.ui.view,arch_db:energy_communities.view_assign_admin_wizard_form
msgid "Procesar"
msgstr "Procesar"
#. module: energy_communities
#: model:ir.model.fields,field_description:energy_communities.field_account_multicompany_easy_creation_wiz__product_share_template
msgid "Product Share Template"
......@@ -1337,7 +1498,7 @@ msgstr "Plantilla de producto aportación"
#. module: energy_communities
#: model:ir.model,name:energy_communities.model_product_template
msgid "Product Template"
msgstr "Plantilla de producte"
msgstr "Plantilla de producto"
#. module: energy_communities
#: code:addons/energy_communities/controllers/website_subscription_main.py:0
......@@ -1369,6 +1530,11 @@ msgstr "Enviar usuario al KeyCloak"
msgid "Realm name"
msgstr "Nombre REALM"
#. module: energy_communities
#: model:ir.model.fields,field_description:energy_communities.field_auth_oauth_provider__redirect_admin_url
msgid "Redirect Link after update password"
msgstr "Enlace de redirección después de haber introducido la contraseña"
#. module: energy_communities
#: model:ir.model.fields,field_description:energy_communities.field_crm_lead__community_company_id
msgid "Related Community"
......@@ -1379,6 +1545,17 @@ msgstr "Comunidad relacionada"
msgid "Requests"
msgstr "Solicitudes"
#. module: energy_communities
#: model:ir.model.fields,field_description:energy_communities.field_auth_oauth_provider__reset_password_endpoint
msgid "Reset password URL"
msgstr "Enlace de reseteo de contraseña"
#. module: energy_communities
#: code:addons/energy_communities/models/res_users.py:0
#, python-format
msgid "Reset password url is not set."
msgstr "La URL para restablecer la contraseña no está configurada."
#. module: energy_communities
#: model:ir.model.fields,field_description:energy_communities.field_auth_oauth_provider__root_endpoint
msgid "Root URL"
......@@ -1416,6 +1593,12 @@ msgstr ""
msgid "Some mandatory fields have not been filled."
msgstr ""
#. module: energy_communities
#: code:addons/energy_communities/models/res_users.py:0
#, python-format
msgid "Something went wrong. Mail can not be sended. More details: {}"
msgstr ""
#. module: energy_communities
#: code:addons/energy_communities/models/res_users.py:0
#, python-format
......@@ -1759,7 +1942,10 @@ msgstr ""
" en KeyCloak"
#. module: energy_communities
#: code:addons/energy_communities/wizards/assign_admin_wizard.py:0
#: model:ir.model.fields,field_description:energy_communities.field_assign_admin_wizard__vat
#: model_terms:ir.ui.view,arch_db:energy_communities.voluntary_share
#, python-format
msgid "VAT"
msgstr "NIF"
......@@ -1932,47 +2118,82 @@ msgstr "Debe seleccionarse un Diario específico para Socias en esta compañía.
msgid "ZIP code not found"
msgstr "Código postal no encontrado"
#. module: energy_communities
#: code:addons/energy_communities/services/crm_lead_service.py:0
#, python-format
msgid "[Contact CE]"
msgstr "[Contacto CE]"
#. module: energy_communities
#: code:addons/energy_communities/services/crm_lead_service.py:0
#, python-format
msgid "[Contact SomComunitats]"
msgstr "[Contacto SomComunitats]"
#. module: energy_communities
#: code:addons/energy_communities/services/crm_lead_service.py:0
#, python-format
msgid "[Newsletter CE]"
msgstr "[Boletín CE]"
#. module: energy_communities
#: code:addons/energy_communities/services/crm_lead_service.py:0
#, python-format
msgid "[Newsletter SomComunitats]"
msgstr "[Boletín SomComunitats]"
#. module: energy_communities
#: model:mail.template,subject:energy_communities.email_template_confirmation_company
msgid "[Somcomunitats.coop] Application to become Community membership"
msgstr "[Somcomunitats.coop] Solicitud adhesión a Comunidad Energética"
msgid "[Som Comunitats] Application to become Community membership"
msgstr "[Somos Comunidades] Solicitud adhesión a Comunidad Energética"
#. module: energy_communities
#: model:mail.template,subject:energy_communities.email_templ_lead_request_contact_confirm_id
msgid "[Somcomunitats.coop] Community Contact Request"
msgstr "[Somcomunitats.coop] Contacto Comunidad Energética"
msgid "[Som Comunitats] Community Contact Request"
msgstr "[Somos Comunidades] Contacto Comunidad Energética"
#. module: energy_communities
#: model:mail.template,subject:energy_communities.email_templ_lead_request_ce_news_confirm_id
msgid "[Somcomunitats.coop] Community Newsletter Subscription Request"
msgstr "[Somcomunitats.coop] Suscripción boletín Comunidad Energética"
msgid "[Som Comunitats] Community Newsletter Subscription Request"
msgstr "[Somos Comunidades] Suscripción boletín Comunidad Energética"
#. module: energy_communities
#: model:mail.template,subject:energy_communities.email_templ_contact_platform_confirm_id
msgid "[Som Comunitats] Contact to the platform"
msgstr "[Somos Comunidades] Formulario de contacto"
#. module: energy_communities
#: model:mail.template,subject:energy_communities.email_templ_lead_request_advise_future_ce_confirm_id
msgid "[Somcomunitats.coop] Interested in Communities in your area"
msgstr "[Somcomunitats.coop] Muestra de interés recibida"
msgid "[Som Comunitats] Interested in Communities in your area"
msgstr "[Somos Comunidades] Muestra de interés recibida"
#. module: energy_communities
#: model:mail.template,subject:energy_communities.email_templ_lead_ce_creation_receipt_confirm_id
msgid "[Somcomunitats.coop] New Community Creation Request to the platform"
msgid "[Som Comunitats] New Community Creation Request to the platform"
msgstr ""
"[Somcomunitats.coop] Solicitud de alta de Comunidad Energética en la "
"[Somos Comunidades] Solicitud de alta de Comunidad Energética en la "
"plataforma"
#. module: energy_communities
#: model:mail.template,subject:energy_communities.email_templ_lead_request_platform_news_confirm_id
msgid "[Somcomunitats.coop] Platform Newsletter Subscription Request"
msgstr "[Somcomunitats.coop] Suscripción boletín plataforma"
msgid "[Som Comunitats] Platform Newsletter Subscription Request"
msgstr "[Somos Comunidades] Suscripción boletín plataforma"
#. module: energy_communities
#: model:mail.template,subject:energy_communities.email_templ_lead_assigned_to_coordinator_id
msgid ""
"[Somcomunitats.coop] Request for registration of the Energy Community on the"
"[Som Comunitats] Request for registration of the Energy Community on the"
" platform"
msgstr ""
"[Somcomunitats.coop] Solicitud de alta de Comunidad Energética en la "
"[Somos Comunidades] Solicitud de alta de Comunidad Energética en la "
"plataforma"
#. module: energy_communities
#: code:addons/energy_communities/services/crm_lead_service.py:0
#, python-format
msgid "[Subscription CE]"
msgstr "[Alta CE]"
#. module: energy_communities
#: model_terms:ir.ui.view,arch_db:energy_communities.voluntary_share_text_template
msgid "and"
......@@ -2056,11 +2277,6 @@ msgstr "Coordinador Trabajador"
msgid "Energy Community Manager"
msgstr "Gerente de la Comunidad de Energía"
#. module: energy_communities
#: model:ir.model.fields,field_description:energy_communities.field_landing_page__group_image_link
msgid "Group image link"
msgstr "Enlace de imagen de grupo"
#. module: energy_communities
#: code:addons/energy_communities/models/landing_page.py:0
#: code:addons/energy_communities/models/landing_page.py:0
......@@ -2075,12 +2291,6 @@ msgstr "Industrial"
msgid "Instagram link"
msgstr "Enlace de Instagram"
#. module: energy_communities
#: model:res.groups,name:energy_communities.role_internal_user_res_groups
#: model:res.users.role,name:energy_communities.role_internal_user
msgid "Internal User"
msgstr "Usuario interno"
#. module: energy_communities
#: code:addons/energy_communities/models/landing_page.py:0
#: code:addons/energy_communities/models/landing_page.py:0
......@@ -2114,3 +2324,46 @@ msgstr "Enlace de Telegram"
#: model:ir.model.fields,field_description:energy_communities.field_landing_page__twitter_link
msgid "Twitter link"
msgstr "Enlace de Twitter"
#. module: energy_communities
#: code:addons/energy_communities/client_map/resources/landing_cmplace.py:0
#, python-format
msgid "Only users that belongs to the 'Coordinator' or 'Instance' company can create new Map Places."
msgstr "Solo usuarios de tipo coordinador de Comunidad o de instancia pueden crear puntos de mapa."
#. module: energy_communities
#: code:addons/energy_communities/client_map/resources/landing_cmplace.py:0
#, python-format
msgid "Map not found slug_id: {}"
msgstr "No se ha encontrado mapa para slug_id: {}"
#. module: energy_communities
#: code:addons/energy_communities/client_map/resources/landing_cmplace.py:0
#, python-format
msgid "Landing lat param required for place creation"
msgstr "La Latitud de la landing es requerida para la creación del punto de mapa."
#. module: energy_communities
#: code:addons/energy_communities/client_map/resources/landing_cmplace.py:0
#, python-format
msgid "Landing lng param required for place creation"
msgstr "La Longitud de la landing es requerida para la creación del punto de mapa."
#. module: energy_communities
#: code:addons/energy_communities/client_map/resources/landing_cmplace.py:0
#, python-format
msgid "Place category not found slug_id: {}"
msgstr "No se ha encontrado categoria de mapa para slug_id: {}"
#. module: energy_communities
#: code:addons/energy_communities/client_map/resources/landing_cmplace.py:0
#, python-format
msgid "Place status filter not found slug_id: {}"
msgstr "No se ha encontrado filtro de mapa para slug_id: {}"
#. module: energy_communities
#: code:addons/energy_communities/client_map/resources/landing_cmplace.py:0
#, python-format
msgid "Button configs not found."
msgstr "Configuración de botones no encontrada."
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * energy_communities
......@@ -32,7 +33,7 @@ msgid ""
"\n"
" <p>Yours faithfully,</p>\n"
" <p>Somcomunitats.coop team </p>\n"
" <p><a href=\"https://web-test.somcomunitats.coop/recursos/\">Resources and FAQs</a></p>\n"
" <p><a href=\"https://somcomunitats.coop/recursos/\">Resources and FAQs</a></p>\n"
"\n"
" </div>\n"
" \n"
......@@ -50,7 +51,7 @@ msgstr ""
"\n"
" <p>Zinez,</p>\n"
" <p>Taldea Somcomunitats.coop</p>\n"
" <p><a href=\"https://web-test.somcomunitats.coop/recursos/\">Baliabideak eta ohiko galderak</a></p>\n"
" <p><a href=\"https://somcomunitats.coop/es/recursos/\">Baliabideak eta ohiko galderak</a></p>\n"
"\n"
" </div>\n"
" \n"
......@@ -275,10 +276,9 @@ msgid ""
" <p>Thank you for contact.</p>\n"
" <p>We have received your email and we have we have forwarded it to the Community so that they can contact you as soon as possible.</p>\n"
" <br />\n"
" <p>We keep in touch for any questions.</p>\n"
" <p>Yours faithfully,</p>\n"
" <p>Somcomunitats.coop team </p>\n"
" <p><a href=\"https://web-test.somcomunitats.coop/recursos/\">Resources and FAQs</a></p>\n"
" <p><a href=\"https://somcomunitats.coop/recursos/\">Resources and FAQs</a></p>\n"
" </div>\n"
" "
msgstr ""
......@@ -288,10 +288,9 @@ msgstr ""
" <p>Eskerrik asko harremanetan jartzeagatik.</p>\n"
" <p>Zure e-posta jaso dugu eta Komunitateari birbidali diogu, ahalik eta azkarren zurekin harremanetan jartzeko.</p>\n"
" <br />\n"
" <p>Edozein zalantza argitzeko harremanetan jartzen gara.</p>\n"
" <p>Zinez,</p>\n"
" <p>Taldea Somcomunitats.coop</p>\n"
" <p><a href=\"https://web-test.somcomunitats.coop/recursos/\">Baliabideak eta ohiko galderak</a></p>\n"
" <p><a href=\"https://somcomunitats.coop/es/recursos/\">Baliabideak eta ohiko galderak</a></p>\n"
" </div>\n"
" "
......@@ -311,7 +310,7 @@ msgid ""
" <p>We keep in touch for any questions.</p>\n"
" <p>Yours faithfully,</p>\n"
" <p>Somcomunitats.coop team </p>\n"
" <p><a href=\"https://web-test.somcomunitats.coop/recursos/\">Resources and FAQs</a></p>\n"
" <p><a href=\"https://somcomunitats.coop/recursos/\">Resources and FAQs</a></p>\n"
"\n"
" </div>\n"
" "
......@@ -329,7 +328,7 @@ msgstr ""
" <p>Edozein zalantza argitzeko harremanetan jartzen gara.</p>\n"
" <p>Zinez,</p>\n"
" <p>Taldea Somcomunitats.coop</p>\n"
" <p><a href=\"https://web-test.somcomunitats.coop/recursos/\">Baliabideak eta ohiko galderak</a></p>\n"
" <p><a href=\"https://somcomunitats.coop/es/recursos/\">Baliabideak eta ohiko galderak</a></p>\n"
"\n"
" </div>\n"
" "
......@@ -346,7 +345,7 @@ msgid ""
" <p>We keep in touch for any questions.</p>\n"
" <p>Yours faithfully,</p>\n"
" <p>Somcomunitats.coop team </p>\n"
" <p><a href=\"https://web-test.somcomunitats.coop/recursos/\">Resources and FAQs</a></p>\n"
" <p><a href=\"https://somcomunitats.coop/recursos/\">Resources and FAQs</a></p>\n"
" </div>\n"
" "
msgstr ""
......@@ -359,7 +358,7 @@ msgstr ""
" <p>Edozein zalantza argitzeko harremanetan jartzen gara.</p>\n"
" <p>Zinez,</p>\n"
" <p>Taldea Somcomunitats.coop</p>\n"
" <p><a href=\"https://web-test.somcomunitats.coop/recursos/\">Baliabideak eta ohiko galderak</a></p>\n"
" <p><a href=\"https://somcomunitats.coop/es/recursos/\">Baliabideak eta ohiko galderak</a></p>\n"
" </div>\n"
" "
......@@ -371,10 +370,13 @@ msgid ""
" <p>Hello,</p>\n"
" <p>Thank you for filling out the form.</p>\n"
" <p>You have been subscribed correctly to the Community Newsletter.</p>\n"
" <p>We will notify you if there is anything new in this community.</p>\n"
" <br />\n"
" <p>We remain in contact for any questions.</p>\n"
" <br />\n"
" <p>Yours faithfully,</p>\n"
" <p>Somcomunitats.coop team </p>\n"
" <p><a href=\"https://web-test.somcomunitats.coop/recursos/\">Resources and FAQs</a></p>\n"
" <p><a href=\"https://somcomunitats.coop/recursos/\">Resources and FAQs</a></p>\n"
" </div>\n"
" "
msgstr ""
......@@ -383,10 +385,13 @@ msgstr ""
" <p>Kaixo,</p>\n"
" <p>Eskerrik asko formularioa betetzeagatik.</p>\n"
" <p>Behar bezala harpidetu zara Komunitatearen buletinera.</p>\n"
" <p>Komunitate honetan berririk dagoenean jakinaraziko dizugu.</p>
" <br />\n"
" <p>Edozein zalantza argitzeko harremanetan jarraitzen dugu.</p>\n"
" <br />\n"
" <p>Zinez,</p>\n"
" <p>Taldea Somcomunitats.coop</p>\n"
" <p><a href=\"https://web-test.somcomunitats.coop/recursos/\">Baliabideak eta ohiko galderak</a></p>\n"
" <p><a href=\"https://somcomunitats.coop/es/recursos/\">Baliabideak eta ohiko galderak</a></p>\n"
" </div>\n"
" "
......@@ -403,7 +408,7 @@ msgid ""
" <br />\n"
" <p>Yours faithfully,</p>\n"
" <p>Somcomunitats.coop team </p>\n"
" <p><a href=\"https://web-test.somcomunitats.coop/recursos/\">Resources and FAQs</a></p>\n"
" <p><a href=\"https://somcomunitats.coop/recursos/\">Resources and FAQs</a></p>\n"
" </div>\n"
" "
msgstr ""
......@@ -416,7 +421,34 @@ msgstr ""
" <br />\n"
" <p>Zinez,</p>\n"
" <p>Taldea Somcomunitats.coop</p>\n"
" <p><a href=\"https://web-test.somcomunitats.coop/recursos/\">Baliabideak eta ohiko galderak</a></p>\n"
" <p><a href=\"https://somcomunitats.coop/es/recursos/\">Baliabideak eta ohiko galderak</a></p>\n"
" </div>\n"
" "
#. module: energy_communities
#: model:mail.template,body_html:energy_communities.email_templ_contact_platform_confirm_id
msgid ""
"\n"
" <div style=\"font-family: 'Lucica Grande', Ubuntu, Arial, Verdana, sans-serif; font-size: 12px; color: rgb(34, 34, 34); background-color: #FFF; \">\n"
" <p>Hello,</p>\n"
" <p>Thank you for getting in touch.</p>\n"
" <p>We have received your email. We will contact you as soon as possible.</p>\n"
" <br />\n"
" <p>Yours faithfully,</p>\n"
" <p>Somcomunitats.coop team </p>\n"
" <p><a href=\"https://somcomunitats.coop/recursos/\">Resources and FAQs</a></p>\n"
" </div>\n"
" "
msgstr ""
"\n"
" <div style=\"font-family: 'Lucica Grande', Ubuntu, Arial, Verdana, sans-serif; font-size: 12px; color: rgb(34, 34, 34); background-color: #FFF; \">\n"
" <p>Kaixo,</p>\n"
" <p>Eskerrik asko harremanetan jartzeagatik.</p>\n"
" <p>Zure emaila jaso dugu. Ahalik eta azkarren zurekin harremanetan jarriko gara.</p>\n"
" <br />\n"
" <p>Zinez,</p>\n"
" <p>Taldea Somcomunitats.coop</p>\n"
" <p><a href=\"https://somcomunitats.coop/es/recursos/\">Baliabideak eta ohiko galderak</a></p>\n"
" </div>\n"
" "
......@@ -467,7 +499,7 @@ msgid ""
" <p>We keep in touch for any questions.</p>\n"
" <p>Yours faithfully,</p>\n"
" <p>Somcomunitats.coop team </p>\n"
" <p><a href=\"https://web-test.somcomunitats.coop/recursos/\">Resources "
" <p><a href=\"https://somcomunitats.coop/recursos/\">Resources "
"and FAQs</a></p>\n"
"</div>\n"
" "
......@@ -518,7 +550,7 @@ msgstr ""
" <p>Seguimos en contacto para cualquier duda.</p>\n"
" <p>Atentamente,</p>\n"
" <p>Equipo Somcomunitats.coop</p>\n"
" <p><a href=\"https://web-test.somcomunitats.coop/recursos/\">Resources "
" <p><a href=\"https://somcomunitats.coop/es/recursos/\">Resources "
"and FAQs</a></p>\n"
"</div>\n"
" "
......@@ -571,9 +603,9 @@ msgid "Allows new members"
msgstr "Kide berriei baimena ematea"
#. module: energy_communities
#: model:ir.model.fields,field_description:energy_communities.field_landing_page__wp_lastupdate_datetime
msgid "Last wordpress update date"
msgstr "Wordpress eguneratzearen azken data"
#: model:ir.model.fields,field_description:energy_communities.field_landing_page__publicdata_lastupdate_datetime
msgid "Last wordpress/map update date"
msgstr "Wordpress/Mapa eguneratzearen azken data"
#. module: energy_communities
#: code:addons/energy_communities/models/res_company.py:0
......@@ -612,6 +644,20 @@ msgstr "Esleitutako enpresa"
msgid "Assing CRM to coordinator company"
msgstr "Enpresa koordinatzaileari CRM gehitzea"
#: model_terms:ir.ui.view,arch_db:energy_communities.view_assign_admin_wizard_form
msgid "Assign Admin Wizard"
msgstr "Administratzailea sortzeko morroia"
#. module: energy_communities
#: model:ir.model,name:energy_communities.model_assign_admin_wizard
msgid "Assign admin Wizard"
msgstr "Administratzailea sortzeko morroia"
#. module: energy_communities
#: model_terms:ir.ui.view,arch_db:energy_communities.view_company_form_ce_inherited
msgid "Assing administrator"
msgstr "Esleitu administratzailea"
#. module: energy_communities
#: code:addons/energy_communities/services/ce_community_service.py:0
#: code:addons/energy_communities/services/ce_member_profile_service.py:0
......@@ -668,6 +714,7 @@ msgstr "CE Etiketak"
#. module: energy_communities
#: model:utm.source,name:energy_communities.ce_source_creation_ce_proposal
#: model_terms:ir.ui.view,arch_db:energy_communities.ce_view_crm_case_opportunities_filter
msgid "CE creation"
msgstr "CE sorrera"
......@@ -691,6 +738,11 @@ msgstr "CRM etiketa"
msgid "Cancel"
msgstr "Utzi"
#. module: energy_communities
#: model_terms:ir.ui.view,arch_db:energy_communities.view_assign_admin_wizard_form
msgid "Cancelar"
msgstr ""
#. module: energy_communities
#: model:ir.model.fields,field_description:energy_communities.field_account_multicompany_easy_creation_wiz__chart_template_id
msgid "Chart Template"
......@@ -748,6 +800,13 @@ msgstr "Komunitatea"
msgid "Community active services"
msgstr "Komunitate-zerbitzu aktibo"
#. module: energy_communities
#: code:addons/energy_communities/models/res_company.py:0
#: model:ir.model.fields,field_description:energy_communities.field_res_company__admins
#, python-format
msgid "Community admins"
msgstr "komunitateko administratzaileak"
#. module: energy_communities
#: model:ir.model.fields,help:energy_communities.field_crm_lead__community_company_id
msgid "Community related to this Lead"
......@@ -779,6 +838,12 @@ msgstr "Enpresak"
msgid "Company"
msgstr "Konpainia"
#. module: energy_communities
#: code:addons/energy_communities/wizards/assign_admin_wizard.py:0
#, python-format
msgid "Company not found"
msgstr "Enpresa ez da aurkitu"
#. module: energy_communities
#: model:crm.tag,name:energy_communities.ce_tag_collective_purchases
msgid "Compres col·lectives"
......@@ -822,11 +887,26 @@ msgstr ""
msgid "Contact"
msgstr "Kontaktua"
#. module: energy_communities
#: model_terms:ir.ui.view,arch_db:energy_communities.ce_view_crm_case_opportunities_filter
msgid "Contact CE"
msgstr "Kontactua CE"
#. module: energy_communities
#: model_terms:ir.ui.view,arch_db:energy_communities.ce_view_crm_case_opportunities_filter_platform_admins
msgid "Contact SomComunitats"
msgstr "Kontactua SomComunitats"
#. module: energy_communities
#: model:utm.source,name:energy_communities.ce_source_existing_ce_contact
msgid "Contact a existing CE"
msgstr "Jarri harremanetan lehendik dagoen CE batekin"
#. module: energy_communities
#: model:utm.source,name:energy_communities.ce_source_general_contact
msgid "Contact to the Platform"
msgstr "Jarri harremanetan plataformarekin"
#. module: energy_communities
#: model:mail.template,subject:energy_communities.email_template_confirmation_voluntary_share
msgid "Contribute to ${object.company_id.name} Ref. ACSV${object.id}"
......@@ -866,9 +946,16 @@ msgstr "Kooperatzaileen Kontua"
msgid "Cooperator Journal"
msgstr "Kooperatzaileen Aldizkaria"
#. module: energy_communities
#: model:res.groups,name:energy_communities.role_coordination_res_groups
#: model:res.users.role,name:energy_communities.role_coordination
msgid "Coordination role"
msgstr "Koordinazio-eginkizuna"
#. module: energy_communities
#: code:addons/energy_communities/models/res_company.py:0
#: model:ir.model.fields.selection,name:energy_communities.selection__res_company__hierarchy_level__coordinator
#: model:res.groups,name:energy_communities.group_coordinator
#, python-format
msgid "Coordinator"
msgstr "Koordinatzailea"
......@@ -902,8 +989,8 @@ msgstr "Sortu helmuga orria"
#. module: energy_communities
#: model_terms:ir.ui.view,arch_db:energy_communities.landing_page_form_view
msgid "Update wordpress data"
msgstr "Eguneratu wordpress datuak"
msgid "Update (wp landing / map place)"
msgstr "Eguneratu wordpress/mapa datuak"
#. module: energy_communities
#: model:ir.model.fields,field_description:energy_communities.field_account_multicompany_easy_creation_wiz__create_user
......@@ -916,13 +1003,13 @@ msgid "Create user for keycloak"
msgstr "Sortu erabiltzailea keycloak-erako"
#. module: energy_communities
#: model:ir.model.fields,field_description:energy_communities.field_assign_crm_to_coordinator_company_wizard__create_uid
#: model:ir.model.fields,field_description:energy_communities.field_assign_admin_wizard__create_uid
#: model:ir.model.fields,field_description:energy_communities.field_landing_page__create_uid
msgid "Created by"
msgstr "Sortua"
#. module: energy_communities
#: model:ir.model.fields,field_description:energy_communities.field_assign_crm_to_coordinator_company_wizard__create_date
#: model:ir.model.fields,field_description:energy_communities.field_assign_admin_wizard__create_date
#: model:ir.model.fields,field_description:energy_communities.field_landing_page__create_date
msgid "Created on"
msgstr "Urtean sortua"
......@@ -941,7 +1028,7 @@ msgstr "DNI"
#: model:ir.model.fields,field_description:energy_communities.field_account_chart_template__display_name
#: model:ir.model.fields,field_description:energy_communities.field_account_move__display_name
#: model:ir.model.fields,field_description:energy_communities.field_account_multicompany_easy_creation_wiz__display_name
#: model:ir.model.fields,field_description:energy_communities.field_assign_crm_to_coordinator_company_wizard__display_name
#: model:ir.model.fields,field_description:energy_communities.field_assign_admin_wizard__display_name
#: model:ir.model.fields,field_description:energy_communities.field_auth_oauth_provider__display_name
#: model:ir.model.fields,field_description:energy_communities.field_crm_lead__display_name
#: model:ir.model.fields,field_description:energy_communities.field_crm_tag__display_name
......@@ -987,7 +1074,10 @@ msgid "Eficiencia energètica"
msgstr "Eraginkortasun energetikoa"
#. module: energy_communities
#: code:addons/energy_communities/wizards/assign_admin_wizard.py:0
#: model:ir.model.fields,field_description:energy_communities.field_assign_admin_wizard__email
#: model_terms:ir.ui.view,arch_db:energy_communities.voluntary_share
#, python-format
msgid "Email"
msgstr "Posta elektronikoa"
......@@ -1050,6 +1140,24 @@ msgstr "Energia Komunitatearen Zerbitzuak"
msgid "Energy actions in progress"
msgstr "Energy actions in progress"
#. module: energy_communities
#: code:addons/energy_communities/models/res_company.py:0
#, python-format
msgid "Error: One role line can't have multiple users"
msgstr ""
#. module: energy_communities
#: code:addons/energy_communities/models/res_company.py:0
#, python-format
msgid "Error: This user have multiple roles for this company"
msgstr ""
#. module: energy_communities
#: code:addons/energy_communities/models/res_company.py:0
#, python-format
msgid "Error: You can't remove {} role"
msgstr ""
#. module: energy_communities
#: model:ir.model.fields,field_description:energy_communities.field_landing_page__external_website_link
msgid "External website link"
......@@ -1060,6 +1168,13 @@ msgstr "Kanpoko webgunearen esteka"
msgid "FREQUENTLY ASKED QUESTIONS"
msgstr "OHIKO GALDERAK"
#. module: energy_communities
#: code:addons/energy_communities/wizards/assign_admin_wizard.py:0
#: model:ir.model.fields,field_description:energy_communities.field_assign_admin_wizard__first_name
#, python-format
msgid "First name"
msgstr "Izena"
#. module: energy_communities
#: model:crm.tag,name:energy_communities.ce_tag_citizen_education
msgid "Formació ciutadana"
......@@ -1098,11 +1213,6 @@ msgstr "Orokorra"
msgid "General Information"
msgstr "Informazio orokorra"
#. module: energy_communities
#: model:ir.model.fields,field_description:energy_communities.field_landing_page__group_image_link
msgid "Group image link"
msgstr "Taldeko irudiaren esteka"
#. module: energy_communities
#: model_terms:ir.ui.view,arch_db:energy_communities.voluntary_share_text_template
msgid "Hello,"
......@@ -1131,7 +1241,7 @@ msgstr "Nahiago dut ez partekatzea"
#: model:ir.model.fields,field_description:energy_communities.field_account_chart_template__id
#: model:ir.model.fields,field_description:energy_communities.field_account_move__id
#: model:ir.model.fields,field_description:energy_communities.field_account_multicompany_easy_creation_wiz__id
#: model:ir.model.fields,field_description:energy_communities.field_assign_crm_to_coordinator_company_wizard__id
#: model:ir.model.fields,field_description:energy_communities.field_assign_admin_wizard__id
#: model:ir.model.fields,field_description:energy_communities.field_auth_oauth_provider__id
#: model:ir.model.fields,field_description:energy_communities.field_crm_lead__id
#: model:ir.model.fields,field_description:energy_communities.field_crm_tag__id
......@@ -1226,6 +1336,13 @@ msgstr "Instantzia"
msgid "Internal User"
msgstr "Barne Erabiltzailea"
#. module: energy_communities
#: code:addons/energy_communities/wizards/assign_admin_wizard.py:0
#: model:ir.model.fields,field_description:energy_communities.field_assign_admin_wizard__is_new_admin
#, python-format
msgid "Is a new admin?"
msgstr "Administratzaile berria al zara?"
#. module: energy_communities
#: model:ir.model.fields,field_description:energy_communities.field_subscription_request__is_voluntary
msgid "Is voluntary contribution"
......@@ -1254,7 +1371,10 @@ msgid "Landing Page"
msgstr "Helmuga orria"
#. module: energy_communities
#: code:addons/energy_communities/wizards/assign_admin_wizard.py:0
#: model:ir.model.fields,field_description:energy_communities.field_assign_admin_wizard__lang
#: model:ir.model.fields,field_description:energy_communities.field_crm_lead__lang
#, python-format
msgid "Language"
msgstr "Hizkuntza"
......@@ -1262,7 +1382,7 @@ msgstr "Hizkuntza"
#: model:ir.model.fields,field_description:energy_communities.field_account_chart_template____last_update
#: model:ir.model.fields,field_description:energy_communities.field_account_move____last_update
#: model:ir.model.fields,field_description:energy_communities.field_account_multicompany_easy_creation_wiz____last_update
#: model:ir.model.fields,field_description:energy_communities.field_assign_crm_to_coordinator_company_wizard____last_update
#: model:ir.model.fields,field_description:energy_communities.field_assign_admin_wizard____last_update
#: model:ir.model.fields,field_description:energy_communities.field_auth_oauth_provider____last_update
#: model:ir.model.fields,field_description:energy_communities.field_crm_lead____last_update
#: model:ir.model.fields,field_description:energy_communities.field_crm_tag____last_update
......@@ -1280,17 +1400,24 @@ msgid "Last Modified on"
msgstr "Azken aldaketa"
#. module: energy_communities
#: model:ir.model.fields,field_description:energy_communities.field_assign_crm_to_coordinator_company_wizard__write_uid
#: model:ir.model.fields,field_description:energy_communities.field_assign_admin_wizard__write_uid
#: model:ir.model.fields,field_description:energy_communities.field_landing_page__write_uid
msgid "Last Updated by"
msgstr "Azken eguneratua"
#. module: energy_communities
#: model:ir.model.fields,field_description:energy_communities.field_assign_crm_to_coordinator_company_wizard__write_date
#: model:ir.model.fields,field_description:energy_communities.field_assign_admin_wizard__write_date
#: model:ir.model.fields,field_description:energy_communities.field_landing_page__write_date
msgid "Last Updated on"
msgstr "Azken eguneratzea egunean"
#. module: energy_communities
#: code:addons/energy_communities/wizards/assign_admin_wizard.py:0
#: model:ir.model.fields,field_description:energy_communities.field_assign_admin_wizard__last_name
#, python-format
msgid "Last name"
msgstr "Abizenak"
#. module: energy_communities
#: model:ir.model,name:energy_communities.model_crm_lead
msgid "Lead/Opportunity"
......@@ -1312,11 +1439,6 @@ msgstr "Deskribapen luzea"
msgid "Mandatory Shares"
msgstr "Nahitaezko akzioak"
#. module: energy_communities
#: model:ir.model.fields,field_description:energy_communities.field_landing_page__map_geolocation
msgid "Map geolocation"
msgstr "Maparen geokokapena"
#. module: energy_communities
#: model:crm.tag,name:energy_communities.ce_tag_sustainable_mobility
msgid "Mobilitat sostenible"
......@@ -1340,6 +1462,16 @@ msgid ""
" "
msgstr "Erabiltzaileen sarbide maila Energia Komunitateen Odoo plataformara"
#. module: energy_communities
#: model_terms:ir.ui.view,arch_db:energy_communities.ce_view_crm_case_opportunities_filter
msgid "Newsletter CE"
msgstr "Buletinera CE"
#. module: energy_communities
#: model_terms:ir.ui.view,arch_db:energy_communities.ce_view_crm_case_opportunities_filter_platform_admins
msgid "Newsletter SomComunitats"
msgstr "Buletinera SomComunitats"
#. module: energy_communities
#: code:addons/energy_communities/services/ce_community_service.py:0
#, python-format
......@@ -1363,6 +1495,11 @@ msgid "No Odoo User found for KeyCloak user id %s"
msgstr ""
"Ez da aurkitu Odoo erabiltzailerik KeyCloak %s erabiltzailearen IDarentzat"
#. module: energy_communities
#: model_terms:ir.ui.view,arch_db:energy_communities.ce_view_crm_case_opportunities_filter
msgid "No web form origin"
msgstr "Web-inprimakiaren jatorririk ez"
#. module: energy_communities
#: model:ir.model.fields.selection,name:energy_communities.selection__res_partner__gender__not_binary
#: model:ir.model.fields.selection,name:energy_communities.selection__subscription_request__gender__not_binary
......@@ -1514,6 +1651,10 @@ msgstr "Posta kodea"
msgid "Primary Image"
msgstr "Lehen irudia"
#: model_terms:ir.ui.view,arch_db:energy_communities.view_assign_admin_wizard_form
msgid "Procesar"
msgstr "Prozesua"
#. module: energy_communities
#: model:ir.model.fields,field_description:energy_communities.field_account_multicompany_easy_creation_wiz__product_share_template
msgid "Product Share Template"
......@@ -1554,6 +1695,11 @@ msgstr "Bultza ezazu erabiltzailea Keycloakera"
msgid "Realm name"
msgstr "Erreinuaren izena"
#. module: energy_communities
#: model:ir.model.fields,field_description:energy_communities.field_auth_oauth_provider__redirect_admin_url
msgid "Redirect Link after update password"
msgstr "Birbideratu esteka pasahitza eguneratu ondoren"
#. module: energy_communities
#: model:ir.model.fields,field_description:energy_communities.field_crm_lead__community_company_id
msgid "Related Community"
......@@ -1564,6 +1710,17 @@ msgstr "Erlazionatutako komunitatea"
msgid "Requests"
msgstr "Eskaerak"
#. module: energy_communities
#: model:ir.model.fields,field_description:energy_communities.field_auth_oauth_provider__reset_password_endpoint
msgid "Reset password URL"
msgstr "Pasahitza berrezartzeko esteka"
#. module: energy_communities
#: code:addons/energy_communities/models/res_users.py:0
#, python-format
msgid "Reset password url is not set."
msgstr "Pasahitza berrezartzeko URLa ez dago konfiguratuta."
#. module: energy_communities
#: model:ir.model.fields,field_description:energy_communities.field_auth_oauth_provider__root_endpoint
msgid "Root URL"
......@@ -1606,6 +1763,12 @@ msgstr "Deskribapen laburra"
msgid "Some mandatory fields have not been filled."
msgstr "Derrigorrezko eremuak betetzeko zain daude"
#. module: energy_communities
#: code:addons/energy_communities/models/res_users.py:0
#, python-format
msgid "Something went wrong. Mail can not be sended. More details: {}"
msgstr ""
#. module: energy_communities
#: code:addons/energy_communities/models/res_users.py:0
#, python-format
......@@ -1940,7 +2103,10 @@ msgstr ""
"gailara"
#. module: energy_communities
#: code:addons/energy_communities/wizards/assign_admin_wizard.py:0
#: model:ir.model.fields,field_description:energy_communities.field_assign_admin_wizard__vat
#: model_terms:ir.ui.view,arch_db:energy_communities.voluntary_share
#, python-format
msgid "VAT"
msgstr "IFZ"
......@@ -2099,37 +2265,72 @@ msgstr "Kolaboratzaileen aldizkari bat ezarri behar duzu zure enpresan."
msgid "ZIP code not found"
msgstr "Ez da posta kodea aurkitu"
#. module: energy_communities
#: code:addons/energy_communities/services/crm_lead_service.py:0
#, python-format
msgid "[Contact CE]"
msgstr "[Kontaktua CE]"
#. module: energy_communities
#: code:addons/energy_communities/services/crm_lead_service.py:0
#, python-format
msgid "[Contact SomComunitats]"
msgstr "[Kontaktua SomComunitats]"
#. module: energy_communities
#: code:addons/energy_communities/services/crm_lead_service.py:0
#, python-format
msgid "[Newsletter CE]"
msgstr "[Buletinerako CE]"
#. module: energy_communities
#: code:addons/energy_communities/services/crm_lead_service.py:0
#, python-format
msgid "[Newsletter SomComunitats]"
msgstr "[Buletinerako SomComunitats]"
#. module: energy_communities
#: model:mail.template,subject:energy_communities.email_template_confirmation_company
msgid "[Somcomunitats.coop] Application to become Community membership"
msgstr "[Somcomunitats.coop] Erkidegoko kide izateko eskaera"
msgid "[Som Comunitats] Application to become Community membership"
msgstr "[Komunitateak Gara] Erkidegoko kide izateko eskaera"
#. module: energy_communities
#: model:mail.template,subject:energy_communities.email_templ_lead_request_contact_confirm_id
msgid "[Somcomunitats.coop] Community Contact Request"
msgstr "[Somcomunitats.coop] Jarri harremanetan Energia Komunitatearekin"
msgid "[Som Comunitats] Community Contact Request"
msgstr "[Komunitateak Gara] Jarri harremanetan Energia Komunitatearekin"
#. module: energy_communities
#: model:mail.template,subject:energy_communities.email_templ_lead_request_ce_news_confirm_id
msgid "[Somcomunitats.coop] Community Newsletter Subscription Request"
msgstr "[Somcomunitats.coop] Buletinerako harpidetza Energia Komunitatearekin"
msgid "[Som Comunitats] Community Newsletter Subscription Request"
msgstr "[Komunitateak Gara] Buletinerako harpidetza Energia Komunitatearekin"
#. module: energy_communities
#: model:mail.template,subject:energy_communities.email_templ_contact_platform_confirm_id
msgid "[Som Comunitats] Contact to the platform"
msgstr "[Komunitateak Gara] Harremanetarako formularioa"
#. module: energy_communities
#: model:mail.template,subject:energy_communities.email_templ_lead_request_advise_future_ce_confirm_id
msgid "[Somcomunitats.coop] Interested in Communities in your area"
msgstr "[Somcomunitats.coop] Zure inguruko komunitateetan interesatzen zaizu"
msgid "[Som Comunitats] Interested in Communities in your area"
msgstr "[Komunitateak Gara] Zure inguruko komunitateetan interesatzen zaizu"
#. module: energy_communities
#: model:mail.template,subject:energy_communities.email_templ_lead_ce_creation_receipt_confirm_id
msgid "[Somcomunitats.coop] New Community Creation Request to the platform"
msgid "[Som Comunitats] New Community Creation Request to the platform"
msgstr ""
"[Somcomunitats.coop] Energia Erkidegoa inskribatzeko eskaera "
"[Komunitateak Gara] Energia Erkidegoa inskribatzeko eskaera "
"plataforma"
#. module: energy_communities
#: model:mail.template,subject:energy_communities.email_templ_lead_request_platform_news_confirm_id
msgid "[Somcomunitats.coop] Platform Newsletter Subscription Request"
msgstr "[Somcomunitats.coop] Plataformako buletinen harpidetza"
msgid "[Som Comunitats] Platform Newsletter Subscription Request"
msgstr "[Komunitateak Gara] Plataformako buletinen harpidetza"
#. module: energy_communities
#: code:addons/energy_communities/services/crm_lead_service.py:0
#, python-format
msgid "[Subscription CE]"
msgstr "[Harpidetza CE]"
#. module: energy_communities
#: model_terms:ir.ui.view,arch_db:energy_communities.voluntary_share_text_template
......@@ -2151,3 +2352,46 @@ msgstr " Borondatezko Ekarpenen."
#: model_terms:ir.ui.view,arch_db:energy_communities.becomecooperator_ccee
msgid "€ by follow the steps you will receive by email."
msgstr "€ posta elektronikoz jasoko dituzun urratsak jarraituz."
#. module: energy_communities
#: code:addons/energy_communities/client_map/resources/landing_cmplace.py:0
#, python-format
msgid "Only users that belongs to the 'Coordinator' or 'Instance' company can create new Map Places."
msgstr "Komunitate edo Instantzia Koordinatzaile motako erabiltzaileek soilik sor ditzakete mapa-puntuak."
#. module: energy_communities
#: code:addons/energy_communities/client_map/resources/landing_cmplace.py:0
#, python-format
msgid "Map not found slug_id: {}"
msgstr "Ez da maparik aurkitu slug_id-rako: {}"
#. module: energy_communities
#: code:addons/energy_communities/client_map/resources/landing_cmplace.py:0
#, python-format
msgid "Landing lat param required for place creation"
msgstr "Lurreratzearen latitudea behar da mapa-puntua sortzeko."
#. module: energy_communities
#: code:addons/energy_communities/client_map/resources/landing_cmplace.py:0
#, python-format
msgid "Landing lng param required for place creation"
msgstr "Lurreratze-luzera beharrezkoa da mapa-puntua sortzeko."
#. module: energy_communities
#: code:addons/energy_communities/client_map/resources/landing_cmplace.py:0
#, python-format
msgid "Place category not found slug_id: {}"
msgstr "Ez da aurkitu maparen kategoriarik slug_id-erako: {}"
#. module: energy_communities
#: code:addons/energy_communities/client_map/resources/landing_cmplace.py:0
#, python-format
msgid "Place status filter not found slug_id: {}"
msgstr "Ez da aurkitu mapa-iragazkirik slug_id-rako: {}"
#. module: energy_communities
#: code:addons/energy_communities/client_map/resources/landing_cmplace.py:0
#, python-format
msgid "Button configs not found."
msgstr "Ez da aurkitu botoiaren konfigurazioa."
......@@ -2985,16 +2985,16 @@ msgstr "Codi postal"
#. module: cooperator
#: model:mail.template,subject:cooperator.email_template_confirmation
msgid "[Somcomunitats.coop] Application to become Community membership"
msgstr "[Somcomunitats.coop] Sol·licitud d'adhesió a Comunitat Energètica"
msgid "[Som Comunitats] Application to become Community membership"
msgstr "[Som Comunitats] Sol·licitud d'adhesió a Comunitat Energètica"
#. module: cooperator
#: model:mail.template,subject:cooperator.email_template_release_capital
msgid ""
"[Somcomunitats.coop] Request to become member of Energy Community "
"[Som Comunitats] Request to become member of Energy Community "
"${object.company_id.name}"
msgstr ""
"[Somcomunitats.coop] Sol·licitud d'adhesió a la Comunitat Energètica "
"[Som Comunitats] Sol·licitud d'adhesió a la Comunitat Energètica "
"${object.company_id.name}"
#. module: cooperator
......
......@@ -2989,16 +2989,16 @@ msgstr "Código Postal"
#. module: cooperator
#: model:mail.template,subject:cooperator.email_template_confirmation
msgid "[Somcomunitats.coop] Application to become Community membership"
msgstr "[Somcomunitats.coop] Solicitud adhesión a Comunidad Energética"
msgid "[Som Comunitats] Application to become Community membership"
msgstr "[Somos Comunidades] Solicitud adhesión a Comunidad Energética"
#. module: cooperator
#: model:mail.template,subject:cooperator.email_template_release_capital
msgid ""
"[Somcomunitats.coop] Request to become member of Energy Community "
"[Som Comunitats] Request to become member of Energy Community "
"${object.company_id.name}"
msgstr ""
"[Somcomunitats.coop] Solicitud adhesión a Comunidad Energética "
"[Somos Comunidades] Solicitud adhesión a Comunidad Energética "
"${object.company_id.name}"
#. module: cooperator
......
......@@ -2942,16 +2942,16 @@ msgstr "Código Postal"
#. module: cooperator
#: model:mail.template,subject:cooperator.email_template_confirmation
msgid "[Somcomunitats.coop] Application to become Community membership"
msgstr "[Somcomunitats.coop] Solicitud adhesión a Comunidad Energética"
msgid "[Som Comunitats] Application to become Community membership"
msgstr "[Komunitateak Gara] Solicitud adhesión a Comunidad Energética"
#. module: cooperator
#: model:mail.template,subject:cooperator.email_template_release_capital
msgid ""
"[Somcomunitats.coop] Request to become member of Energy Community "
"[Som Comunitats] Request to become member of Energy Community "
"${object.company_id.name}"
msgstr ""
"[Somcomunitats.coop] Solicitud adhesión a Comunidad Energética "
"[Komunitateak Gara] Solicitud adhesión a Comunidad Energética "
"${object.company_id.name}"
#. module: cooperator
......
from . import cm_coordinates_mixin
from . import auth_oauth_provider
from . import account_chart_template
from . import landing_page
from . import res_company
from . import res_config_settings
from . import res_partner
from . import res_partner_bank
from . import res_users
from . import res_users_role
from . import subscription_request
......
......@@ -10,6 +10,7 @@ URL_AUTH = "{root_endpoint}realms/{realm_name}/protocol/openid-connect/auth"
URL_VALIDATION = "{root_endpoint}realms/{realm_name}/protocol/openid-connect/userinfo"
URL_TOKEN = "{root_endpoint}realms/{realm_name}/protocol/openid-connect/token"
URL_JWKS = "{root_endpoint}realms/{realm_name}/protocol/openid-connect/certs"
URL_RESET_PASSWORD = "{root_endpoint}admin/realms/{realm_name}/users/{kc_uid}/execute-actions-email?redirect_uri={odoo_url}&client_id={cliend_id}"
class OAuthProvider(models.Model):
......@@ -29,13 +30,15 @@ class OAuthProvider(models.Model):
placeholder='I hope is not "admin"',
required=False,
)
admin_user_endpoint = fields.Char(string="User admin URL", required=True)
admin_user_endpoint = fields.Char(string="User admin URL")
root_endpoint = fields.Char(
string="Root URL",
required=True,
default="http://keycloak-ccee.local:8080/auth/",
)
realm_name = fields.Char(string="Realm name", required=True, default="0")
reset_password_endpoint = fields.Char(string="Reset password URL")
redirect_admin_url = fields.Char(string="Redirect Link after update password")
def validate_admin_provider(self):
if not self.client_secret:
......@@ -43,8 +46,8 @@ class OAuthProvider(models.Model):
if not self.superuser_pwd:
raise UserError("Admin provider doesn't have a valid superuser password")
@api.onchange("root_endpoint")
def _onchange_root_endpoint(self):
@api.onchange("root_endpoint", "realm_name", "redirect_admin_url")
def _onchange_update_endpoints(self):
if self.is_keycloak_provider and self.root_endpoint and self.realm_name:
self.admin_user_endpoint = URL_ADMIN_USERS.format(
**{"root_endpoint": self.root_endpoint, "realm_name": self.realm_name}
......@@ -61,24 +64,12 @@ class OAuthProvider(models.Model):
self.jwks_uri = URL_JWKS.format(
**{"root_endpoint": self.root_endpoint, "realm_name": self.realm_name}
)
@api.onchange("realm_name")
def _onchange_realm_name(self):
if self.is_keycloak_provider and self.root_endpoint and self.realm_name:
self.admin_user_endpoint = URL_ADMIN_USERS.format(
**{"root_endpoint": self.root_endpoint, "realm_name": self.realm_name}
)
self.auth_endpoint = URL_AUTH.format(
**{"root_endpoint": self.root_endpoint, "realm_name": self.realm_name}
)
self.validation_endpoint = URL_VALIDATION.format(
**{"root_endpoint": self.root_endpoint, "realm_name": self.realm_name}
)
self.token_endpoint = URL_TOKEN.format(
**{"root_endpoint": self.root_endpoint, "realm_name": self.realm_name}
)
self.jwks_uri = URL_JWKS.format(
**{"root_endpoint": self.root_endpoint, "realm_name": self.realm_name}
self.reset_password_endpoint = URL_RESET_PASSWORD.format(
root_endpoint=self.root_endpoint,
realm_name=self.realm_name,
kc_uid="{kc_uid}",
odoo_url=self.redirect_admin_url,
cliend_id=self.client_id,
)
def get_auth_link(self):
......
from odoo import fields, models
class CmCoordinatesMixin(models.AbstractModel):
_name = "cm.coordinates.mixin"
_description = "Add map coordinates to any model"
lat = fields.Char(string="Latitude")
lng = fields.Char(string="Longitude")
......@@ -7,18 +7,6 @@ from odoo.exceptions import UserError
class CrmLead(models.Model):
_inherit = "crm.lead"
# mapping between the xml_ids related to crm.lead.tag_ids and cm.filter xmlids
_XMLID_MAPPING_LEADTAGS_CMFILTERS = [
("ce_tag_common_generation", "ce_cm_filter_community_renewal_generation"),
("ce_tag_energy_efficiency", "ce_cm_filter_energetic_eficiency"),
("ce_tag_sustainable_mobility", "ce_cm_filter_sustainable_mobility"),
("ce_tag_citizen_education", "ce_cm_filter_citizen_education"),
("ce_tag_thermal_energy", "ce_cm_filter_thermical_energy"),
("ce_tag_collective_purchases", "ce_cm_filter_collective_purchase"),
("ce_tag_renewable_energy", "ce_cm_filter_renewal_energy_supply"),
("ce_tag_aggregate_demand", "ce_cm_filter_demand_flexibility_and_aggregation"),
]
lang = fields.Char(string="Language")
ce_tag_ids = fields.Many2many(
"crm.tag",
......@@ -28,179 +16,38 @@ class CrmLead(models.Model):
string="CE Tags",
help="CE Classify and analyze categories",
)
community_company_id = fields.Many2one(
string="Related Community",
comodel_name="res.company",
domain="[('coordinator','!=',True)]",
help="Community related to this Lead",
)
finished = fields.Boolean(
related="stage_id.is_won",
readonly=True,
)
company_hierarchy_level = fields.Selection(
related="company_id.hierarchy_level",
readonly=True,
)
can_be_assigned_to_coordinator = fields.Boolean(
string="Can be assigned to coordinator",
compute="_get_can_be_assigned_to_coordinator",
store=False,
)
is_instance_company = fields.Boolean(
string="Is instance company", compute="_is_instance_company"
)
def _create_map_place_proposal(self):
if not self.env.user.company_id.coordinator:
raise UserError(
_(
"Only users that belongs to the 'Coordinator' company can create new Map Places from Leads."
)
)
active_categ_id = self.env["ir.model.data"].get_object_reference(
"ce", "ce_cm_place_category_active"
)[1]
building_categ_id = self.env["ir.model.data"].get_object_reference(
"ce", "ce_cm_place_category_building"
)[1]
default_ce_map_id = self.env["ir.model.data"].get_object_reference(
"ce", "ce_default_cm_map"
)[1]
creation_ce_source_id = self.env["ir.model.data"].get_object_reference(
"ce", "ce_source_creation_ce_proposal"
)[1]
for lead in self:
if self.env["crm.team"].search(
[
("proposal_form_submission_id", "=", lead.id),
("map_id", "=", default_ce_map_id),
]
):
raise UserError(
_(
"There is an allready existing Map Place related to this Lead: {}."
).format(lead.name)
)
if not lead.source_id or lead.source_id.id != creation_ce_source_id:
raise UserError(
_(
"The Source {} of Lead {} do not allow the creation of Map Proposals"
).format(lead.source_id.name, lead.name)
)
place_creation_data = {
"name": lead.name,
"map_id": default_ce_map_id,
"team_type": "map_place_proposal",
"user_id": self.env.user.id,
"proposal_form_submission_id": lead.id,
"interaction_method": "external_link",
"external_link_target": "_top",
}
# read metadata key/value pairs
m_dict = {m.key: m.value for m in lead.form_submission_metadata_ids}
if (
m_dict.get("partner_legal_state", False)
and m_dict["partner_legal_state"]
):
if m_dict["partner_legal_state"] == "active":
place_creation_data["place_category_id"] = active_categ_id
else:
place_creation_data["place_category_id"] = building_categ_id
else:
raise UserError(
_(
"Unable to get the Category (mandatory map place field) from Lead: {}"
).format(lead.name)
)
if m_dict.get("partner_latitude", False) and m_dict["partner_latitude"]:
place_creation_data["lat"] = m_dict["partner_latitude"]
else:
raise UserError(
_(
"Unable to get the Latitude (mandatory map place field) from Lead: {}"
).format(lead.name)
)
if m_dict.get("partner_longitude", False) and m_dict["partner_longitude"]:
place_creation_data["lng"] = m_dict["partner_longitude"]
else:
raise UserError(
_(
"Unable to get the Longitude (mandatory map place field) from Lead: {}"
).format(lead.name)
)
if (
m_dict.get("partner_map_place_form_url", False)
and m_dict["partner_map_place_form_url"]
):
place_creation_data["external_link_url"] = m_dict[
"partner_map_place_form_url"
]
place_creation_data["address_txt"] = lead._get_address_txt() or None
place_creation_data["filter_mids"] = [(6, 0, lead._get_cmfilter_ids())]
place = self.env["crm.team"].create(place_creation_data)
# we need to do call those next 2 functions because the @api.onchange('map_id') defined on community_maps module
# is not being called on crm_team.create(). TODO: review why it happens and fix it.
place._get_slug_id()
place._get_config_relations_attrs()
place._build_presenter_metadata_ids()
place.place_category_id = place_creation_data["place_category_id"]
place.message_subscribe([self.env.user.partner_id.id])
pmnd_ids = [
m
for m in place.place_presenter_metadata_ids
if m.key == "p_description"
]
description_pmnd_id = pmnd_ids and pmnd_ids[0] or None
if description_pmnd_id and lead.description:
description_pmnd_id.value = "<p class='m-2'>{}</p>".format(
lead.description
)
# lead update
lead.write(
{
"team_id": place.id,
"submission_type": "place_proposal_submission",
}
)
def _get_cmfilter_ids(self):
self.ensure_one()
md = self.env["ir.model.data"]
id_pairs = {}
for pair in self._XMLID_MAPPING_LEADTAGS_CMFILTERS:
id_pairs[
md.get_object_reference("ce", pair[0])[1]
] = md.get_object_reference("ce", pair[1])[1]
return [id_pairs[t.id] for t in self.tag_ids if t.id in id_pairs]
def _get_address_txt(self):
self.ensure_one()
ret = ""
meta_address_txt = [
meta.value
for meta in self.form_submission_metadata_ids
if meta.key == "partner_full_address"
]
if self.street and (self.city or self.zip):
ret = "{}{}. {}{}".format(
self.street,
(self.street2 and " " + self.street2) or "",
self.zip or "",
(self.city and " " + self.city) or "",
)
if self.state_id:
ret += ", {}".format(self.state_id.name)
if self.country_id:
ret += ". {}".format(self.country_id.name)
elif meta_address_txt and meta_address_txt[0]:
ret = meta_address_txt[0]
return ret
def _is_instance_company(self):
company = self.env.company
instance_companies = self.env["res.company"].search(
[("hierarchy_level", "=", "instance")]
)
if company in instance_companies:
self.is_instance_company = True
else:
self.is_instance_company = False
def _build_community_company(self):
if not self.env.user.company_id.coordinator:
......@@ -226,7 +73,7 @@ class CrmLead(models.Model):
if not lead.community_company_id:
# Create the new company using very basic starting Data
company = self.env["res.company"].create(
lead._get_company_create_vals()
lead._get_default_community_wizard()
)
# Update Lead & Map Place (if exist) fields accordingly
......@@ -244,20 +91,17 @@ class CrmLead(models.Model):
lead.community_company_id._create_keycloak_realm()
lead.community_company_id._community_post_keycloak_creation_tasks()
def _get_company_create_vals(self):
def _get_default_community_wizard(self):
self.ensure_one()
m_dict = {m.key: m.value for m in self.form_submission_metadata_ids}
metadata = {m.key: m.value for m in self.metadata_line_ids}
foundation_date = None
if (
m_dict.get("partner_foundation_date", False)
and m_dict["partner_foundation_date"]
):
if metadata.get("ce_creation_date", False) and metadata["ce_creation_date"]:
date_formats = ["%Y-%m-%d", "%d-%m-%Y", "%Y/%m/%d", "%d/%m/%Y"]
for date_format in date_formats:
try:
foundation_date = datetime.strptime(
m_dict["partner_foundation_date"], date_format
metadata["ce_creation_date"], date_format
)
except:
pass
......@@ -265,60 +109,52 @@ class CrmLead(models.Model):
raise UserError(
_(
"The Foundation Date value {} have a non valid format. It must be: yyyy-mm-dd or dd-mm-yyyy or yyyy/mm/dd or dd/mm/yyyy"
).format(m_dict["partner_foundation_date"])
).format(metadata["partner_foundation_date"])
)
initial_share_amount = 0.00
if (
m_dict.get("partner_initial_share_amount", False)
and m_dict["partner_initial_share_amount"]
or None
):
try:
initial_share_amount = float(m_dict["partner_initial_share_amount"])
except:
pass
lang_id = None
if m_dict.get("partner_language", False) and m_dict["partner_language"] or None:
if metadata.get("current_lang", False) and metadata["current_lang"] or None:
lang_id = self.env["res.lang"].search(
[("code", "=", m_dict["partner_language"])], limit=1
[("code", "=", metadata["current_lang"])], limit=1
)
create_vals = {
users = [user.id for user in self.company_id.get_users()]
return {
"name": self.name,
"street": self.street,
"street2": self.street2,
"city": self.city,
"zip": self.zip,
"state_id": self.state_id.id,
"country_id": self.country_id.id,
"website": self.website,
"phone": self.phone,
"email": self.email_from
or (m_dict.get("contact_email", False) and m_dict["contact_email"])
or None,
"vat": m_dict.get("partner_vat", False) and m_dict["partner_vat"] or None,
"social_twitter": m_dict.get("partner_twitter", False)
and m_dict["partner_twitter"]
or None,
"social_facebook": m_dict.get("partner_facebook", False)
and m_dict["partner_facebook"]
"parent_id": self.company_id.id,
"crm_lead_id": self.id,
"user_ids": users,
"street": metadata.get("ce_address", False)
and metadata["ce_address"]
or None,
"social_instagram": m_dict.get("partner_instagram", False)
and m_dict["partner_instagram"]
"city": metadata.get("ce_city", False) and metadata["ce_city"] or None,
"zip_code": metadata.get("ce_zip", False) and metadata["ce_zip"] or None,
"phone": metadata.get("contact_phone", False)
and metadata["contact_phone"]
or None,
"social_telegram": m_dict.get("partner_telegram", False)
and m_dict["partner_telegram"]
"email": metadata.get("email_from", False)
and metadata["email_from"]
or None,
"create_user": True,
"vat": metadata.get("ce_vat", False) and metadata["ce_vat"] or None,
"foundation_date": foundation_date,
"initial_subscription_share_amount": initial_share_amount,
"default_lang_id": lang_id and lang_id.id or None,
"chart_template_id": self.env.ref(
"l10n_es.account_chart_template_pymes"
).id,
"update_default_taxes": True,
"default_sale_tax_id": self.env.ref(
"l10n_es.account_tax_template_s_iva21s"
).id,
"default_purchase_tax_id": self.env.ref(
"l10n_es.account_tax_template_p_iva21_bc"
).id,
"property_cooperator_account": self.env["account.account"]
.search([("code", "like", "44000%")], limit=1)
.id,
"create_user": False,
}
return create_vals
def _create_keycloak_realm(self):
for lead in self:
if not lead.community_company_id:
......@@ -329,9 +165,6 @@ class CrmLead(models.Model):
)
lead.community_company_id._create_keycloak_realm()
def post_template_to_chatter(self, template_id):
self.message_post_with_template(template_id)
def _create_community_initial_users(self):
for lead in self:
pass
......@@ -345,6 +178,34 @@ class CrmLead(models.Model):
"target": "new",
}
def action_create_community(self):
data = self._get_default_community_wizard()
wizard = self.env["account.multicompany.easy.creation.wiz"].create(data)
return {
"type": "ir.actions.act_window",
"name": _("Create community"),
"res_model": "account.multicompany.easy.creation.wiz",
"view_type": "form",
"view_mode": "form",
"target": "new",
"res_id": wizard.id,
}
@api.depends("source_id")
def _get_can_be_assigned_to_coordinator(self):
for record in self:
record.can_be_assigned_to_coordinator = (
record.source_id.id
in [
self.env.ref("energy_communities.ce_source_general_info").id,
self.env.ref("energy_communities.ce_source_existing_ce_contact").id,
self.env.ref(
"energy_communities.ce_source_creation_ce_proposal"
).id,
]
and self.company_id.hierarchy_level == "instance"
)
def add_follower(self):
instance_admin = self.env.ref("energy_communities.role_ce_manager").id
company_id = self.company_id.id
......
......@@ -2,6 +2,9 @@ from datetime import datetime
from odoo import _, api, fields, models
from ..client_map.resources.landing_cmplace import (
LandingCmPlace as LandingCmPlaceResource,
)
from ..pywordpress_client.resources.authenticate import Authenticate
from ..pywordpress_client.resources.landing_page import (
LandingPage as LandingPageResource,
......@@ -12,6 +15,8 @@ from .res_config_settings import ResConfigSettings
class LandingPage(models.Model):
_name = "landing.page"
_inherit = ["cm.coordinates.mixin"]
name = fields.Char(string="Name", translate=True)
company_id = fields.Many2one("res.company", string="Company")
wp_landing_page_id = fields.Integer(string="WP Landing Page")
......@@ -35,8 +40,6 @@ class LandingPage(models.Model):
instagram_link = fields.Char(
string="Instagram link", related="company_id.social_instagram"
)
# TODO: group_image_link Left for backward compatibility. To be removed
group_image_link = fields.Char(string="Group image link")
primary_image_file = fields.Image("Primary Image")
secondary_image_file = fields.Image("Secondary Image")
short_description = fields.Text(string="Short description", translate=True)
......@@ -45,8 +48,6 @@ class LandingPage(models.Model):
become_cooperator_process = fields.Html(
string="Become cooperator process", translate=True
)
# TODO: remove this one
map_geolocation = fields.Char(string="Map geolocation")
map_place_id = fields.Many2one("cm.place", "Place reference")
street = fields.Char(string="Street")
postal_code = fields.Char(string="Postal code")
......@@ -72,7 +73,9 @@ class LandingPage(models.Model):
required=True,
string="Community status",
)
wp_lastupdate_datetime = fields.Datetime(string="Last wordpress update date")
publicdata_lastupdate_datetime = fields.Datetime(
string="Last wordpress/map update date"
)
def _get_image_attachment(self, field_name):
file_attachment = self.env["ir.attachment"].search(
......@@ -159,8 +162,6 @@ class LandingPage(models.Model):
"instagram_link": self.instagram_link or "",
"telegram_link": self.telegram_link or "",
"community_active_services": self.company_id.get_active_services(),
# TODO: group_image_link Left for backward compatibility. To be removed
"group_image_link": self.group_image_link or "",
"primary_image_file": primary_image_file,
"primary_image_file_write_date": primary_image_file_write_date,
"secondary_image_file": secondary_image_file,
......@@ -169,7 +170,6 @@ class LandingPage(models.Model):
"long_description": self.long_description or "",
"why_become_cooperator": self.why_become_cooperator,
"become_cooperator_process": self.become_cooperator_process,
"map_geolocation": self.map_geolocation or "",
"map_reference": map_reference,
"street": self.street or "",
"postal_code": self.postal_code or "",
......@@ -182,9 +182,27 @@ class LandingPage(models.Model):
new_status = "draft" if record.status == "publish" else "publish"
record.write({"status": new_status})
def action_update_wp(self):
def action_create_landing_place(self):
for record in self:
record._create_landing_place()
def action_update_public_data(self):
for record in self:
record._update_wordpress()
record._update_landing_place()
self.write({"publicdata_lastupdate_datetime": datetime.now()})
return {
"type": "ir.actions.client",
"tag": "display_notification",
"params": {
"type": "success",
"title": _("Public data update successful"),
"message": _(
"Wordpress landing and map place has been successfully updated."
),
"sticky": False,
},
}
def _update_wordpress(self):
instance_company = self.env["res.company"].search(
......@@ -200,4 +218,9 @@ class LandingPage(models.Model):
LandingPageResource(token, baseurl, self.wp_landing_page_id).update(
landing_page_data
)
self.write({"wp_lastupdate_datetime": datetime.now()})
def _create_landing_place(self):
LandingCmPlaceResource(self).create()
def _update_landing_place(self):
LandingCmPlaceResource(self).update()
......@@ -14,9 +14,26 @@ _HIERARCHY_LEVEL_VALUES = [
("community", _("Community")),
]
_LEGAL_FROM_VALUES = [
("Societat Cooperativa", _("Societat Cooperativa")),
("Associació sense ànim de lucre", _("Associació sense ànim de lucre")),
("Societat Limitada", _("Societat Limitada")),
("Societat Col·lectiva", _("Societat Col·lectiva")),
("Comunitat de Bens", _("Comunitat de Bens")),
("Societat Comanditària", _("Societat Comanditària")),
("Societat Anónima", _("Societat Anónima")),
("Empresari Individual", _("Empresari Individual")),
]
_CE_STATUS_VALUES = [
("active", _("active")),
("building", _("building")),
]
class ResCompany(models.Model):
_inherit = "res.company"
_name = "res.company"
_inherit = ["res.company", "mail.thread", "mail.activity.mixin"]
@api.onchange("hierarchy_level")
def onchange_hierarchy_level(self):
......@@ -75,6 +92,25 @@ class ResCompany(models.Model):
domain=[("is_share", "=", True)],
string="Voluntary share to show on website",
)
wordpress_base_url = fields.Char(string=_("Wordpress Base URL (JWT auth)"))
admins = fields.One2many(
"res.users",
string="Community admins",
compute="_get_admins",
readonly=True,
store=False,
)
legal_form = fields.Selection(
selection=_LEGAL_FROM_VALUES,
string="Legal form",
)
legal_name = fields.Char(string="Legal name")
ce_status = fields.Selection(
selection=_CE_STATUS_VALUES,
string="Energy Community state",
)
landing_page_id = fields.Many2one("landing.page", string=_("Landing Page"))
wordpress_db_username = fields.Char(string=_("Wordpress DB Admin Username"))
wordpress_db_password = fields.Char(string=_("Wordpress DB Admin Password"))
......@@ -155,6 +191,26 @@ class ResCompany(models.Model):
admins_user_ids.append(role_line.user_id.id)
return any([user in admins_user_ids for user in company_user_ids])
def _get_admin_role_name(self):
if self.hierarchy_level == "community":
return "role_ce_admin"
elif self.hierarchy_level == "coordinator":
return "role_coord_admin"
elif self.hierarchy_level == "instance":
return "role_platform_admin"
def _get_admins(self):
role_name = self._get_admin_role_name()
for rec in self:
role_lines = self.env["res.users.role.line"].search(
[
("company_id.id", "=", self.id),
("active", "=", True),
("role_id.code", "=", role_name),
]
)
rec.admins = role_lines.mapped("user_id")
def get_ce_members(self, domain_key="in_kc_and_active"):
domains_dict = {
"in_kc_and_active": [
......@@ -163,16 +219,65 @@ class ResCompany(models.Model):
("active", "=", True),
]
}
members = self.env["res.users"].sudo().search(domains_dict["in_kc_and_active"])
return members
return self.env["res.users"].sudo().search(domains_dict["in_kc_and_active"])
def get_users(self, role_codes=False):
role_codes = role_codes or []
if role_codes:
users = (
self.env["res.users.role.line"]
.sudo()
.search(
[
("company_id", "=", self.id),
("role_id.code", "in", role_codes),
]
)
.user_id
)
else:
users = (
self.env["res.users.role.line"]
.sudo()
.search(
[
("company_id", "=", self.id),
]
)
.user_id
)
wants_platform_admins = (
self.env.ref("energy_communities.role_platform_admin").code in role_codes
or not role_codes
)
if wants_platform_admins:
users += (
self.env["res.users.role.line"]
.sudo()
.search(
[
(
"role_id",
"=",
self.env.ref("energy_communities.role_platform_admin").id,
),
]
)
.user_id
)
return users
# return lines.user_id # TODO: Si?
@api.model
def _is_not_unique(self, vals):
# check for VAT
if vals.get("vat", False) and vals.get("vat"):
sanit_vat = re.sub(r"[^a-zA-Z0-9]", "", vals["vat"]).lower()
sanit_vat = re.sub(r"[^a-zA-Z0-9]", "", vals["vat"]).upper()
if sanit_vat in [
re.sub(r"[^a-zA-Z0-9]", "", c.vat).lower()
re.sub(r"[^a-zA-Z0-9]", "", c.vat).upper()
for c in self.search([])
if c.vat
]:
......@@ -211,6 +316,21 @@ class ResCompany(models.Model):
res.append({"id": tag.id, "name": tag.name, "ext_id": tag.tag_ext_id})
return res
def get_lower_hierarchy_level(self):
if self.hierarchy_level == "instance":
return "coordinator"
elif self.hierarchy_level == "coordinator":
return "community"
return ""
def get_child_companies(self):
return self.env["res.company"].search(
[
("hierarchy_level", "=", self.get_lower_hierarchy_level()),
("parent_id", "=", self.id),
]
)
def get_public_web_landing_url(self):
# TODO: Get from landing page or company, for now we don't need
return ""
......