diff --git a/energy_communities/__manifest__.py b/energy_communities/__manifest__.py index d5099e94e34ccdd0440e25491941359c1ae4ede6..118b55ed88e4da1095a9a187e681e0caa3bf6986 100644 --- a/energy_communities/__manifest__.py +++ b/energy_communities/__manifest__.py @@ -1,6 +1,6 @@ { "name": "Energy Community", - "version": "16.0.0.1.7", + "version": "16.0.0.2.2", "depends": [ "account", "account_banking_mandate", @@ -16,6 +16,7 @@ "base_technical_features", "base_user_role", "base_user_role_company", + "calendar", "community_maps", "contacts", "event", diff --git a/energy_communities/components/__init__.py b/energy_communities/components/__init__.py index 9cd2ec1898226dc0543c9417c7e0314afbc56917..66da3f6fc9c44a5df60f1d89f393c9f0f93e3f11 100644 --- a/energy_communities/components/__init__.py +++ b/energy_communities/components/__init__.py @@ -1,2 +1,4 @@ from . import collections from .user_creator import UserCreator +from .contract_utils import ContractUtils +from .sale_order_utils import SaleOrderUtils diff --git a/energy_communities/components/contract_utils.py b/energy_communities/components/contract_utils.py new file mode 100644 index 0000000000000000000000000000000000000000..eb4a3d3b7f25f2c9cbbb40472f04a8f36f1a271b --- /dev/null +++ b/energy_communities/components/contract_utils.py @@ -0,0 +1,8 @@ +from odoo.addons.component.core import Component + + +class ContractUtils(Component): + _name = "contract.utils" + _usage = "contract.utils" + _apply_on = "contract.contract" + _collection = "utils.backend" diff --git a/energy_communities/components/sale_order_utils.py b/energy_communities/components/sale_order_utils.py new file mode 100644 index 0000000000000000000000000000000000000000..f5d109ec5168882c79bf4630623b12a673d87a86 --- /dev/null +++ b/energy_communities/components/sale_order_utils.py @@ -0,0 +1,8 @@ +from odoo.addons.component.core import Component + + +class SaleOrderUtils(Component): + _name = "sale.order.utils" + _usage = "sale.order.utils" + _apply_on = "sale.order" + _collection = "utils.backend" diff --git a/energy_communities/models/landing_page.py b/energy_communities/models/landing_page.py index 74a01ebbacb8ec476082e82383de64e77a500ca0..7b6a34031bb1347ed8bd6cdfc1e3579959b3d999 100644 --- a/energy_communities/models/landing_page.py +++ b/energy_communities/models/landing_page.py @@ -12,6 +12,7 @@ from ..pywordpress_client.resources.authenticate import Authenticate from ..pywordpress_client.resources.landing_page import ( LandingPage as LandingPageResource, ) +from ..utils import get_successful_popup_message from .res_company import _CE_MEMBER_STATUS_VALUES, _CE_TYPE, _LEGAL_FORM_VALUES @@ -154,6 +155,9 @@ class LandingPage(models.Model): ) def to_dict(self): + # TODO: Refactor this image processing. Build it into a method + # images + # company logo if self.company_logo: attachment_query = [ ("res_id", "=", self.company_id.id), @@ -164,10 +168,10 @@ class LandingPage(models.Model): company_logo_write_date = self._get_image_write_date( "company_logo", attachment_query ) - else: company_logo = "" company_logo_write_date = "" + # primary image if self.primary_image_file: primary_image_file = self._get_image_payload("primary_image_file") primary_image_file_write_date = self._get_image_write_date( @@ -176,6 +180,7 @@ class LandingPage(models.Model): else: primary_image_file = "" primary_image_file_write_date = "" + # secondary image if self.secondary_image_file: secondary_image_file = self._get_image_payload("secondary_image_file") secondary_image_file_write_date = self._get_image_write_date( @@ -184,15 +189,7 @@ class LandingPage(models.Model): else: secondary_image_file = "" secondary_image_file_write_date = "" - if self.map_place_id: - map_reference = self.map_place_id.slug_id - else: - map_reference = "" - if self.why_become_cooperator == "<p><br></p>": - self.why_become_cooperator = "" - if self.become_cooperator_process == "<p><br></p>": - self.become_cooperator_process = "" - legal_form_dict = dict(_LEGAL_FORM_VALUES) + # returned dict return { "landing": { "id": self.id, @@ -205,7 +202,7 @@ class LandingPage(models.Model): "community_type": self.community_type, "community_secondary_type": self.community_secondary_type, "legal_form": get_translation( - source=legal_form_dict[self.community_secondary_type], + source=dict(_LEGAL_FORM_VALUES)[self.community_secondary_type], lang=self.env.context["lang"], mods="energy_communities", ), @@ -227,9 +224,15 @@ class LandingPage(models.Model): "company_logo_write_date": company_logo_write_date, "short_description": self.short_description or "", "long_description": self.long_description or "", - "why_become_cooperator": self.why_become_cooperator, - "become_cooperator_process": self.become_cooperator_process, - "map_reference": map_reference, + "why_become_cooperator": "" + if self.why_become_cooperator == "<p><br></p>" + or not self.why_become_cooperator + else self.why_become_cooperator, + "become_cooperator_process": "" + if self.become_cooperator_process == "<p><br></p>" + or not self.become_cooperator_process + else self.become_cooperator_process, + "map_reference": self.map_place_id.slug_id if self.map_place_id else "", "street": self.street or "", "postal_code": self.postal_code or "", "city": self.city or "", @@ -270,18 +273,10 @@ class LandingPage(models.Model): else: self.sudo().remove_coordinator_filter_to_existing_communities() 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, - }, - } + return get_successful_popup_message( + _("Public data update successful"), + _("Wordpress landing and map place has been successfully updated."), + ) def _update_wordpress(self): instance_company = self.env["res.company"].search( diff --git a/energy_communities/models/res_partner.py b/energy_communities/models/res_partner.py index 77e3db740c0cc4cc08a464acbadff3b8e660409d..d83b6bad6018c0b4dcbe80867cd88fce03dddf82 100644 --- a/energy_communities/models/res_partner.py +++ b/energy_communities/models/res_partner.py @@ -30,6 +30,12 @@ class ResPartner(models.Model): compute="compute_company_hierarchy_level", store=True, ) + related_company_id = fields.Many2one( + "res.company", + string="Represented company", + compute="compute_related_company_id", + store=False, + ) company_ids_info = fields.Many2many( string="Companies", comodel_name="res.company", @@ -53,11 +59,22 @@ class ResPartner(models.Model): def compute_company_hierarchy_level(self): for record in self: - rel_company = self.env["res.company"].search( - [("partner_id", "=", record.id)] + record.company_hierarchy_level = "none" + if record.related_company_id: + record.company_hierarchy_level = ( + record.related_company_id.hierarchy_level + ) + + def compute_related_company_id(self): + for record in self: + record.related_company_id = False + related_company_id = ( + self.env["res.company"] + .sudo() + .search([("partner_id", "=", record.id)], limit=1) ) - if rel_company: - record.company_hierarchy_level = rel_company.hierarchy_level + if related_company_id: + record.related_company_id = related_company_id[0].id @api.constrains("company_ids") def _constrains_partner_company_ids(self): diff --git a/energy_communities/security/ir_rule_data.xml b/energy_communities/security/ir_rule_data.xml index 461acbedcfb53d003e347bbb130dc1caf266a846..6557e2c651af09d5224331e0b3a193810c5d06c9 100644 --- a/energy_communities/security/ir_rule_data.xml +++ b/energy_communities/security/ir_rule_data.xml @@ -1,36 +1,37 @@ -<?xml version="1.0" ?> <odoo> <record model="ir.rule" id="landing_page_company_rule"> <field name="name">Landing Page multi-company</field> <field name="model_id" ref="energy_communities.model_landing_page" /> <field name="global" eval="True" /> - <field - name="domain_force" - >['|', ('company_id', '=', False), ('company_id', 'in', company_ids)]</field> + <field name="domain_force"> +['|',('company_id', '=', False),('company_id', 'in', company_ids)] + </field> </record> <record model="ir.rule" id="mail_message_company_rule"> <field name="name">mail.message multi-company</field> <field name="model_id" ref="mail.model_mail_message" /> <field name="global" eval="True" /> - <field name="domain_force">['|', ('author_id.company_ids', '=', False), - ('author_id.company_ids', 'in', company_ids)]</field> + <field name="domain_force"> +['|',('author_id.company_ids', '=', False),('author_id.company_ids', 'in', company_ids)] + </field> </record> <record model="ir.rule" id="mail_followers_company_rule"> <field name="name">mail.followers multi-company</field> <field name="model_id" ref="mail.model_mail_followers" /> <field name="global" eval="True" /> - <field name="domain_force">['|', ('partner_id.company_ids', '=', False), - ('partner_id.company_ids', 'in', company_ids)]</field> + <field name="domain_force"> +['|',('partner_id.company_ids', '=', False),('partner_id.company_ids', 'in', company_ids)] + </field> </record> <record model="ir.rule" id="mail_activity_company_rule"> <field name="name">mail.activity multi-company</field> <field name="model_id" ref="mail.model_mail_activity" /> <field name="global" eval="True" /> - <field name="domain_force">['|', ('user_id.partner_id.company_ids', '=', False), - ('user_id.partner_id.company_ids', 'in', company_ids)] + <field name="domain_force"> +['|',('user_id.partner_id.company_ids', '=', False),('user_id.partner_id.company_ids', 'in', company_ids)] </field> </record> @@ -45,9 +46,9 @@ <field name="perm_write" eval="False" /> <field name="perm_create" eval="False" /> <field name="perm_unlink" eval="False" /> - <field - name="domain_force" - >['|', ('company_ids', '=', False), ('company_ids', 'in', company_ids)]</field> + <field name="domain_force"> +['|',('company_ids', '=', False),('company_ids', 'in', company_ids)] + </field> </record> <function name="write" model="ir.model.data"> <function name="search" model="ir.model.data"> @@ -58,9 +59,7 @@ <function name="write" model="ir.model.data"> <function name="search" model="ir.model.data"> - <value - eval="[('module', '=', 'base'),('name', '=', 'res_partner_rule_private_employee')]" - /> + <value eval="[('module', '=', 'base'),('name', '=', 'res_partner_rule_private_employee')]"/> </function> <value eval="{'noupdate': False}" /> </function> @@ -69,9 +68,7 @@ </record> <function name="write" model="ir.model.data"> <function name="search" model="ir.model.data"> - <value - eval="[('module', '=', 'base'),('name', '=', 'res_partner_rule_private_employee')]" - /> + <value eval="[('module', '=', 'base'),('name', '=', 'res_partner_rule_private_employee')]"/> </function> <value eval="{'noupdate': True}" /> </function> @@ -80,9 +77,16 @@ <field name="name">res.partner multi-company</field> <field name="model_id" ref="base.model_res_partner" /> <field name="groups" eval="[(4, ref('base.group_user'))]" /> - <field - name="domain_force" - >["&","|",('company_ids', '=', False),('company_ids', 'in', company_ids),"|",('type', '!=', 'private'), ('type', '=', False)]</field> + <field name="domain_force"> +[ +'&','|', +('company_ids', '=', False), +('company_ids', 'in', company_ids), +'|', +('type', '!=', 'private'), +('type', '=', False) +] + </field> <field name="perm_read" eval="True" /> <field name="perm_write" eval="False" /> <field name="perm_create" eval="False" /> @@ -93,9 +97,15 @@ <field name="name">res.partner Platform-admin multi-company</field> <field name="model_id" ref="base.model_res_partner" /> <field name="groups" eval="[(4, ref('base.group_user'))]" /> - <field - name="domain_force" - >['&',('user_current_role', '=', 'role_platform_admin'),'|', ('type', '!=', 'private'), ('type', '=', False)]</field> + <field name="domain_force"> +[ +'&', +('user_current_role', '=', 'role_platform_admin'), +'|', +('type', '!=', 'private'), +('type', '=', False) +] + </field> <field name="perm_read" eval="False" /> <field name="perm_write" eval="True" /> <field name="perm_create" eval="True" /> @@ -106,9 +116,16 @@ <field name="name">res.partner Coordinator-admin-worker multi-company</field> <field name="model_id" ref="base.model_res_partner" /> <field name="groups" eval="[(4, ref('base.group_user'))]" /> - <field - name="domain_force" - >['&','&',('user_current_role', 'in', ['role_coord_admin','role_coord_worker']),('company_hierarchy_level','!=','instance'),'|', ('type', '!=', 'private'), ('type', '=', False)]</field> + <field name="domain_force"> +[ +'&','&', +('user_current_role', 'in', ['role_coord_admin','role_coord_worker']), +('company_hierarchy_level','!=','instance'), +'|', +('type', '!=', 'private'), +('type', '=', False) +] + </field> <field name="perm_read" eval="False" /> <field name="perm_write" eval="True" /> <field name="perm_create" eval="True" /> @@ -119,9 +136,16 @@ <field name="name">res.partner Community-manager-admin multi-company</field> <field name="model_id" ref="base.model_res_partner" /> <field name="groups" eval="[(4, ref('base.group_user'))]" /> - <field - name="domain_force" - >['&','&',('user_current_role', 'in', ['role_ce_manager','role_ce_admin']),('company_hierarchy_level','not in',['instance','coordinator']),'|', ('type', '!=', 'private'), ('type', '=', False)]</field> + <field name="domain_force"> +[ +'&','&', +('user_current_role', 'in', ['role_ce_manager','role_ce_admin']), +('company_hierarchy_level','not in',['instance','coordinator']), +'|', +('type', '!=', 'private'), +('type', '=', False) +] + </field> <field name="perm_read" eval="False" /> <field name="perm_write" eval="True" /> <field name="perm_create" eval="True" /> @@ -133,11 +157,12 @@ <field name="model_id" ref="account_reconcile_oca.model_account_account_reconcile"/> <field name="groups" eval="[(4, ref('base.group_user'))]" /> <field name="domain_force"> - [('company_id', 'in', company_ids)] +[('company_id', 'in', company_ids)] </field> <field name="perm_read" eval="True" /> <field name="perm_write" eval="True" /> <field name="perm_create" eval="True" /> <field name="perm_unlink" eval="False" /> </record> + </odoo> diff --git a/energy_communities/utils.py b/energy_communities/utils.py index ad0831504a2136fb4ceca048089927d2ffa40e71..f430ddd23f62d4d98ca1eb1ead15e619eb15e9da 100644 --- a/energy_communities/utils.py +++ b/energy_communities/utils.py @@ -1,24 +1,57 @@ from contextlib import contextmanager +from typing import Any from odoo.api import Environment from odoo.tools.translate import code_translations from odoo.addons.component.core import Component, WorkContext +from odoo.addons.contract.models.contract import ContractContract + + +def _get_component( + env: Environment, model_name: str, usage: str, record: Any = None +) -> Component: + backend = env["utils.backend"].browse(1) + work = WorkContext(model_name=model_name, collection=backend, record=record) + return work.component(usage=usage) @contextmanager def user_creator( env: Environment, ) -> Component: - backend = env["utils.backend"].browse(1) - work = WorkContext( - model_name="res.users", - collection=backend, - ) - yield work.component(usage="user.create") + yield _get_component(env, "res.users", "user.create") + + +@contextmanager +def contract_utils( + env: Environment, + contract_id: ContractContract, +) -> Component: + yield _get_component(env, "contract.contract", "contract.utils", contract_id) + + +@contextmanager +def sale_order_utils( + env: Environment, +) -> Component: + yield _get_component(env, "sale.order", "sale.order.utils") def get_translation(source, lang, mods): translation = code_translations.get_web_translations(mods, lang) translation.update(code_translations.get_python_translations(mods, lang)) return translation.get(source, source) + + +def get_successful_popup_message(title, message): + return { + "type": "ir.actions.client", + "tag": "display_notification", + "params": { + "type": "success", + "title": title, + "message": message, + "sticky": False, + }, + } diff --git a/energy_communities/views/menus.xml b/energy_communities/views/menus.xml index e51ce0a40d586b1538a4168b29a0111b7fc619c9..9bd2af50f9c3917bfc7090450f9020b088c2bae4 100644 --- a/energy_communities/views/menus.xml +++ b/energy_communities/views/menus.xml @@ -4,31 +4,69 @@ License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). --> <odoo> - <menuitem + + <record + id="view_ec_formulas_window" + model="ir.actions.act_window" + > + <field name="name">Formulas (quantity)</field> + <field name="res_model">contract.line.qty.formula</field> + <field name="view_mode">tree,form</field> + </record> + + <menuitem id="ce_root_menu" - name="Energy Communities" + name="Community Management" sequence="10" - groups="group_platform_manager" + groups="role_platform_admin_res_groups,role_coord_admin_res_groups,role_coord_worker_res_groups,role_ce_admin,role_ce_manager" web_icon="energy_communities,static/description/icon.png" /> - <menuitem id="ce_config_menu" name="Configuration" parent="ce_root_menu" /> - - <menuitem - id="ce_config_sources_menu" - name="Source types" - parent="ce_config_menu" - action="ce_utm_sources_action" - /> - - <menuitem - id="energy_actions_menu" - name="Energy actions" - parent="ce_config_menu" - action="energy_action_views" - groups="group_platform_manager" - /> + <menuitem + id="ce_config_menu" + name="Configuration" + parent="ce_root_menu" + groups="role_platform_admin_res_groups" + sequence="999" + > + <menuitem + id="ce_config_sources_menu" + name="Source types" + action="ce_utm_sources_action" + groups="group_platform_manager" + /> + <menuitem + id="energy_actions_menu" + name="Energy actions" + action="energy_action_views" + groups="group_platform_manager" + /> + <menuitem + id="ec_formulas_menu" + name="Formulas" + action="view_ec_formulas_window" + groups="group_platform_manager" + /> + <menuitem + name="Tariffs" + id="view_service_tariffs_menu" + action="product.product_pricelist_action2" + groups="role_platform_admin_res_groups" + /> + </menuitem> <!-- Hide menu items unless platform manager --> + <record model="ir.ui.menu" id="mail.menu_root_discuss"> + <field name="groups_id" eval="[(6,0,[ref('group_platform_manager')])]" /> + </record> + <record model="ir.ui.menu" id="calendar.mail_menu_calendar"> + <field name="groups_id" eval="[(6,0,[ref('group_platform_manager')])]" /> + </record> + <record model="ir.ui.menu" id="base.menu_board_root"> + <field name="groups_id" eval="[(6,0,[ref('group_platform_manager')])]" /> + </record> + <record model="ir.ui.menu" id="spreadsheet_dashboard.spreadsheet_dashboard_menu_root"> + <field name="groups_id" eval="[(6,0,[ref('group_platform_manager')])]" /> + </record> <record model="ir.ui.menu" id="community_maps.menu_root"> <field name="groups_id" eval="[(6,0,[ref('group_platform_manager')])]" /> </record> diff --git a/energy_communities/views/res_partner_views.xml b/energy_communities/views/res_partner_views.xml index e0a56e92aebfa38eef3f4a6be40fbbc932ae6e3c..ccc795602bd693c0c3443c6c419707bb0324cce5 100644 --- a/energy_communities/views/res_partner_views.xml +++ b/energy_communities/views/res_partner_views.xml @@ -46,20 +46,21 @@ <xpath expr="//field[@name='vat']" position="after"> <field name="company_hierarchy_level" invisible="1" /> <field name="user_current_role" /> + <field name="related_company_id" options="{'no_open': True}" readonly="1" attrs="{'invisible': [('company_hierarchy_level', '=', 'none')]}" /> </xpath> <xpath expr="//field[@name='name']" position="before"> <h4 - style="color:green;" - attrs="{'invisible': [('company_hierarchy_level', '!=', 'instance')]}" - >Platform company</h4> + style="color:green;" + attrs="{'invisible': [('company_hierarchy_level', '!=', 'instance')]}" + >Platform company</h4> <h4 - style="color:green;" - attrs="{'invisible': [('company_hierarchy_level', '!=', 'coordinator')]}" - >Coordinator company</h4> + style="color:green;" + attrs="{'invisible': [('company_hierarchy_level', '!=', 'coordinator')]}" + >Coordinator company</h4> <h4 - style="color:green;" - attrs="{'invisible': [('company_hierarchy_level', '!=', 'community')]}" - >Community company</h4> + style="color:green;" + attrs="{'invisible': [('company_hierarchy_level', '!=', 'community')]}" + >Community company</h4> </xpath> <xpath expr="//field[@name='child_ids']" position="after"> <label diff --git a/energy_communities/views/res_users_view.xml b/energy_communities/views/res_users_view.xml index 9eaba37a830718d139b753bb0339c5d8cbf6ab2f..7cb910ae951bf40c64c9126971d631c5453c8752 100644 --- a/energy_communities/views/res_users_view.xml +++ b/energy_communities/views/res_users_view.xml @@ -1,40 +1,28 @@ <?xml version="1.0" encoding="utf-8" ?> <odoo> <data noupdate="1"> - <record model="ir.actions.server" id="print_instance"> - <field name="name">Push user to Keycloak</field> - <field name="model_id" ref="model_res_users" /> - <field name="binding_model_id" ref="model_res_users" /> - <field name="binding_type">action</field> - <field name="groups_id" eval="[(4,ref('group_platform_manager'))]" /> - <field name="state">code</field> - <field name="code"> - record.create_users_on_keycloak() - </field> - </record> - - <record id="view_res_users_form_inherit" model="ir.ui.view"> - <field name="name">res.users.form.inherit</field> - <field name="model">res.users</field> - <field name="inherit_id" ref="base.view_users_form" /> - <field name="arch" type="xml"> + <record id="view_res_users_form_inherit" model="ir.ui.view"> + <field name="name">res.users.form.inherit</field> + <field name="model">res.users</field> + <field name="inherit_id" ref="base.view_users_form" /> + <field name="arch" type="xml"> <xpath - expr="//notebook//field[@name='role_line_ids']/tree//field[@name='role_id']" - position="attributes" - > - <attribute name="domain" /> + expr="//notebook//field[@name='role_line_ids']/tree//field[@name='role_id']" + position="attributes" + > + <attribute name="domain" /> </xpath> - </field> - </record> - <record id="view_res_users_form_inherit_oauth" model="ir.ui.view"> - <field name="name">res.users.form.inherit.oauth</field> - <field name="model">res.users</field> - <field name="inherit_id" ref="auth_oauth.view_users_form" /> - <field name="arch" type="xml"> + </field> + </record> + <record id="view_res_users_form_inherit_oauth" model="ir.ui.view"> + <field name="name">res.users.form.inherit.oauth</field> + <field name="model">res.users</field> + <field name="inherit_id" ref="auth_oauth.view_users_form" /> + <field name="arch" type="xml"> <field name="oauth_access_token" position="after"> - <field name="last_user_invitation_through_kc" /> + <field name="last_user_invitation_through_kc" /> </field> - </field> - </record> + </field> + </record> </data> </odoo> diff --git a/energy_communities/wizards/change_coordinator_wizard.py b/energy_communities/wizards/change_coordinator_wizard.py index ffbfff40c4ed94bbcf7594a8e2debef2a3ee58b8..c6cd88dd8f47d5b5a1169d4b5f88c18af7bb8ade 100644 --- a/energy_communities/wizards/change_coordinator_wizard.py +++ b/energy_communities/wizards/change_coordinator_wizard.py @@ -2,6 +2,8 @@ from odoo import api, fields, models from odoo.exceptions import ValidationError from odoo.tools.translate import _ +from ..utils import get_successful_popup_message + class ChangeCoordinatorWizard(models.TransientModel): _name = "change.coordinator.wizard" @@ -19,14 +21,7 @@ class ChangeCoordinatorWizard(models.TransientModel): company.with_delay().change_coordinator( self.incoming_coordinator, self.change_reason ) - return { - "type": "ir.actions.client", - "tag": "display_notification", - "params": { - "type": "success", - "title": _("Coordinator change successful"), - "message": _("This community has been moved to a new coordinator"), - "sticky": False, - "next": {"type": "ir.actions.act_window_close"}, - }, - } + return get_successful_popup_message( + _("Coordinator change successful"), + _("This community has been moved to a new coordinator"), + ) diff --git a/energy_communities/wizards/create_users_wizard.py b/energy_communities/wizards/create_users_wizard.py index ce2824d6e911b94ca37f99f4134d55646ee5eb9f..6d743f4dfa5a49aa4ee274828424c45a323aa4fa 100644 --- a/energy_communities/wizards/create_users_wizard.py +++ b/energy_communities/wizards/create_users_wizard.py @@ -1,7 +1,7 @@ from odoo import fields, models from odoo.tools.translate import _ -from ..utils import user_creator +from ..utils import get_successful_popup_message, user_creator class CreateUsersWizard(models.TransientModel): @@ -38,13 +38,6 @@ class CreateUsersWizard(models.TransientModel): component.create_users_from_communities_cooperator_partners( impacted_records, role_id, self.action, self.force_invite ) - return { - "type": "ir.actions.client", - "tag": "display_notification", - "params": { - "type": "success", - "message": _("Process has been started."), - "sticky": False, - "next": {"type": "ir.actions.act_window_close"}, - }, - } + return get_successful_popup_message( + _("User creation"), _("Process has been started.") + ) diff --git a/energy_communities_cooperator/__manifest__.py b/energy_communities_cooperator/__manifest__.py index 3de22f911de64ba6c746d4bafdefc3746a87e976..35367bca1633f590c633d2ba61c92c08160b5136 100644 --- a/energy_communities_cooperator/__manifest__.py +++ b/energy_communities_cooperator/__manifest__.py @@ -12,7 +12,7 @@ # Check https://github.com/odoo/odoo/blob/14.0/odoo/addons/base/data/ir_module_category_data.xml # for the full list "category": "Cooperative management", - "version": "16.0.0.1.7", + "version": "16.0.0.1.9", "license": "AGPL-3", # any module necessary for this one to work correctly "depends": [ diff --git a/energy_communities_cooperator/models/crm_lead.py b/energy_communities_cooperator/models/crm_lead.py index f0f0017f1d091346f6e3fbe26d9ca8efcc2ff8f7..78cf6827b9dce0947eca44e196c7e8132f683727 100644 --- a/energy_communities_cooperator/models/crm_lead.py +++ b/energy_communities_cooperator/models/crm_lead.py @@ -5,6 +5,15 @@ class CrmLead(models.Model): _name = "crm.lead" _inherit = "crm.lead" + def _get_metadata_values(self): + metadata = super()._get_metadata_values() + capital_share_meta_entry = self.metadata_line_ids.filtered( + lambda meta: meta.key == "ce_member_mandatory_contribution" + ) + if capital_share_meta_entry: + metadata["capital_share"] = capital_share_meta_entry.value + return metadata + def _get_default_community_wizard(self): creation_dict = super()._get_default_community_wizard() diff --git a/energy_communities_cooperator/models/voluntary_share_interest_return.py b/energy_communities_cooperator/models/voluntary_share_interest_return.py index d73b436a0f8226a5fe3f773959e4bbe1335710d4..1da0cfa99450e5671f0b743e593c3eb5ec42b204 100644 --- a/energy_communities_cooperator/models/voluntary_share_interest_return.py +++ b/energy_communities_cooperator/models/voluntary_share_interest_return.py @@ -2,6 +2,8 @@ from odoo import api, fields, models from odoo.exceptions import ValidationError from odoo.tools.translate import _ +from odoo.addons.energy_communities.utils import get_successful_popup_message + class VoluntaryShareInterestReturn(models.Model): _name = "voluntary.share.interest.return" @@ -90,14 +92,4 @@ class VoluntaryShareInterestReturn(models.Model): subject=subject, body=body, ) - return { - "type": "ir.actions.client", - "tag": "display_notification", - "params": { - "type": "success", - "title": subject, - "message": body, - "sticky": False, - "next": {"type": "ir.actions.act_window_close"}, - }, - } + return get_successful_popup_message(subject, body) diff --git a/energy_communities_cooperator/views/account_move_views.xml b/energy_communities_cooperator/views/account_move_views.xml index de9feb1fd893a4aa6f508b298ae4c2e8985149ca..eedd053f7291c387dc5e7c3e5491989ba69a9dbd 100644 --- a/energy_communities_cooperator/views/account_move_views.xml +++ b/energy_communities_cooperator/views/account_move_views.xml @@ -1,22 +1,16 @@ <odoo> <record id="account_move_form" model="ir.ui.view"> - <field name="name">account.move.form.inherit</field> - <field name="model">account.move</field> - <field name="inherit_id" ref="account.view_move_form" /> - <field name="arch" type="xml"> - <xpath expr="//notebook" position="before"> - <group> - <field name="user_current_role" invisible="True" /> - <field - name="membership_id" - attrs="{'invisible': [('user_current_role', '!=', 'role_platform_admin')],'readonly': 0}" - /> - <field - name="voluntary_share_total_contribution" - attrs="{'invisible': [('user_current_role', '!=', 'role_platform_admin')]}" - /> - </group> - </xpath> - </field> + <field name="name">account.move.form.inherit</field> + <field name="model">account.move</field> + <field name="inherit_id" ref="account.view_move_form" /> + <field name="arch" type="xml"> + <xpath expr="//notebook" position="before"> + <field name="user_current_role" invisible="True" /> + <group attrs="{'invisible': [('user_current_role', '!=', 'role_platform_admin')]}"> + <field name="membership_id" readonly="False" /> + <field name="voluntary_share_total_contribution" /> + </group> + </xpath> + </field> </record> </odoo> diff --git a/energy_communities_crm/__manifest__.py b/energy_communities_crm/__manifest__.py index 1dee8ef87e585a33d9d5fb22f80094d51a1357e0..57454cacbe13f8c854ca884db7dea758a21aea0c 100644 --- a/energy_communities_crm/__manifest__.py +++ b/energy_communities_crm/__manifest__.py @@ -12,7 +12,7 @@ # Check https://github.com/odoo/odoo/blob/14.0/odoo/addons/base/data/ir_module_category_data.xml # for the full list "category": "Sales/CRM", - "version": "16.0.0.1.4", + "version": "16.0.0.1.5", "license": "AGPL-3", # any module necessary for this one to work correctly "depends": [ diff --git a/energy_communities_crm/views/crm_lead_views.xml b/energy_communities_crm/views/crm_lead_views.xml index 188dae3d8c408e8e6019e5013397ee61e22a9a49..8f9311b37d5eca3e367c0311e9785ebaa0b1466d 100644 --- a/energy_communities_crm/views/crm_lead_views.xml +++ b/energy_communities_crm/views/crm_lead_views.xml @@ -30,12 +30,12 @@ string="Other COORD" domain="[('source_id','=', %(energy_communities.ce_source_coord_web_other)d)]" /> - <filter + <filter name="ce_source_existing_coord_contact" string="Contact COORD" domain="[('source_id','=', %(energy_communities.ce_source_existing_coord_contact)d)]" /> - <filter + <filter name="ce_source_existing_coord_info" string="Info COORD" domain="[('source_id','=', %(energy_communities.ce_source_existing_coord_info)d)]" @@ -50,7 +50,7 @@ string="Newsletter SomComunitats" domain="[('source_id','=', %(energy_communities.ce_source_general_info)d)]" /> - <filter + <filter name="ce_source_general_contact" string="Contact SomComunitats" domain="[('source_id','=', %(energy_communities.ce_source_general_contact)d)]" diff --git a/energy_communities_crm/views/website_community_data_template.xml b/energy_communities_crm/views/website_community_data_template.xml index 5a51f7d6638c39986842da4b03b120fd8554274c..1c52af05797410d3bbd6a65152e626688ca0c64c 100644 --- a/energy_communities_crm/views/website_community_data_template.xml +++ b/energy_communities_crm/views/website_community_data_template.xml @@ -249,7 +249,6 @@ <t t-set="value" t-value="ce_member_mandatory_contribution" /> <t t-set="key" t-value="ce_member_mandatory_contribution_key" /> <t t-set="label" t-value="ce_member_mandatory_contribution_label" /> - <t t-set="required" t-value="True" /> </t> </div> <div class="col-md-12"> @@ -258,7 +257,6 @@ <t t-set="key" t-value="ce_registration_tool_key" /> <t t-set="label" t-value="ce_registration_tool_label" /> <t t-set="rows" t-value="5" /> - <t t-set="required" t-value="True" /> <t t-set="description" >Non-computer support, Excels, computer program (which one?)</t> @@ -270,7 +268,6 @@ <t t-set="key" t-value="ce_account_management_key" /> <t t-set="label" t-value="ce_account_management_label" /> <t t-set="options" t-value="community_management_options" /> - <t t-set="required" t-value="True" /> <t t-set="trigger">ce_management_can_enter_platform</t> </t> </div> @@ -280,7 +277,6 @@ <t t-set="key" t-value="ce_tax_management_key" /> <t t-set="label" t-value="ce_tax_management_label" /> <t t-set="options" t-value="community_management_options" /> - <t t-set="required" t-value="True" /> <t t-set="trigger">ce_management_can_enter_platform</t> </t> </div> @@ -303,7 +299,6 @@ <t t-set="key" t-value="ce_manager_key" /> <t t-set="label" t-value="ce_manager_label" /> <t t-set="options" t-value="community_manager_options" /> - <t t-set="required" t-value="True" /> <t t-set="trigger" >ce_manager_headline,ce_manager_firstname,ce_manager_surname,ce_manager_email,ce_manager_phone</t> @@ -365,7 +360,6 @@ <t t-set="key" t-value="ce_payment_method_key" /> <t t-set="label" t-value="ce_payment_method_label" /> <t t-set="options" t-value="community_payment_method_options" /> - <t t-set="required" t-value="True" /> </t> </div> <div class="col-md-12"> @@ -388,7 +382,6 @@ <t t-set="key" t-value="ce_extra_charges_key" /> <t t-set="label" t-value="ce_extra_charges_label" /> <t t-set="rows" t-value="5" /> - <t t-set="required" t-value="True" /> </t> </div> <div class="col-md-12"> @@ -397,7 +390,6 @@ <t t-set="key" t-value="ce_voluntary_contributions_key" /> <t t-set="label" t-value="ce_voluntary_contributions_label" /> <t t-set="rows" t-value="5" /> - <t t-set="required" t-value="True" /> </t> </div> <div class="col-md-12"> diff --git a/energy_communities_service_invoicing/__init__.py b/energy_communities_service_invoicing/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..d750a11adfefa6e17241da58dc95fcfc2fdd2225 --- /dev/null +++ b/energy_communities_service_invoicing/__init__.py @@ -0,0 +1,19 @@ +from . import components +from . import models +from . import wizards + +import logging +from odoo import SUPERUSER_ID, api + +logger = logging.getLogger(__name__) + + +def post_setup_intercompany_invoicing_config(cr, registry): + logger.info("Running Inter company setup") + env = api.Environment(cr, SUPERUSER_ID, {}) + companies = env["res.company"].search([]) + for company in companies: + company.write({"invoice_auto_validation": False}) + logger.info( + "Inter company invoice auto validation disabled by default on all companies." + ) diff --git a/energy_communities_service_invoicing/__manifest__.py b/energy_communities_service_invoicing/__manifest__.py new file mode 100644 index 0000000000000000000000000000000000000000..0133e4e504e5366e6cce03ca64f3e1b25cc90c21 --- /dev/null +++ b/energy_communities_service_invoicing/__manifest__.py @@ -0,0 +1,51 @@ +{ + "name": "energy_communities_service_invoicing", + "summary": """ + Short (1 phrase/line) summary of the module's purpose, used as + subtitle on modules listing or apps.openerp.com""", + "description": """ + Long description of module's purpose + """, + "author": "Som comunitats", + "website": "https://coopdevs.org", + "category": "Contract Management", + "version": "16.0.0.1.2", + # any module necessary for this one to work correctly + "depends": [ + "base", + "contract", + "sale", + "sale_order_metadata", + "sales_team", + "purchase", + "product", + "product_contract", + "contract_variable_quantity", + "energy_communities", + "energy_communities_cooperator", # TODO: This dependency is needed for active members formula. Need to refactor this. + "account_invoice_inter_company", + ], + # always loaded + "data": [ + "security/ir.model.access.csv", + "security/ir_rule_data.xml", + "data/contract_cron.xml", + "data/contract_line_qty_formula_data.xml", + "data/product_data.xml", + "report/report_invoice.xml", + "views/account_move_views.xml", + "views/contract_line_formula_views.xml", + "views/contract_template_views.xml", + "views/contract_views.xml", + "views/res_company_views.xml", + "views/res_partner_views.xml", + "views/sale_order_views.xml", + "views/service_invoicing_views.xml", + "wizards/service_invoicing_action.xml", + "wizards/service_invoicing_action_create.xml", + "views/menus.xml", + ], + "post_init_hook": "post_setup_intercompany_invoicing_config", + # only loaded in demonstration mode + "demo": [], +} diff --git a/energy_communities_service_invoicing/components/__init__.py b/energy_communities_service_invoicing/components/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..f24c5e551e13a2c9e1b8420521ea74f30e3a1c3a --- /dev/null +++ b/energy_communities_service_invoicing/components/__init__.py @@ -0,0 +1,2 @@ +from . import contract_utils +from . import sale_order_utils diff --git a/energy_communities_service_invoicing/components/contract_utils.py b/energy_communities_service_invoicing/components/contract_utils.py new file mode 100644 index 0000000000000000000000000000000000000000..181c635081eda5cd5733d92fd510195398db7cc2 --- /dev/null +++ b/energy_communities_service_invoicing/components/contract_utils.py @@ -0,0 +1,192 @@ +from odoo.addons.component.core import Component + + +class ContractUtils(Component): + _inherit = "contract.utils" + + def setup_initial_data(self): + self._set_configuration_journal_if_defined() + self._set_start_date(self.work.record.sale_order_id.commitment_date) + if "discount" in self.work.record.sale_order_id.metadata_line_ids.mapped("key"): + self._set_discount( + self.work.record.sale_order_id.get_metadata_value("discount") + ) + contract_update_dict = {"status": "paused"} + for contract_update_data in self.work.record.sale_order_id.metadata_line_ids: + if contract_update_data.key not in ["discount"]: + value = contract_update_data.value + # TODO: Not a very robust condition. Assuming all Many2one fields are defined with _id at the end + if "_id" in contract_update_data.key: + value = int(contract_update_data.value) + contract_update_dict[contract_update_data.key] = value + for line in self.work.record.contract_line_ids: + line.write( + { + "ordered_qty_type": line.qty_type, + "ordered_quantity": line.quantity, + "ordered_qty_formula_id": line.qty_formula_id.id, + "qty_type": "fixed", + "quantity": 0, + } + ) + self.work.record.write(contract_update_dict) + + def _set_start_date(self, date_start): + self.work.record.write({"date_start": date_start}) + for line in self.work.record.contract_line_ids: + line.write({"date_start": date_start}) + line._compute_state() + + def _set_discount(self, discount): + for line in self.work.record.contract_line_ids: + line.write({"discount": discount}) + + # method to be extended if using component for another pack_type + def _set_configuration_journal_if_defined(self): + if self.work.record.pack_type == "platform_pack": + journal_id = self.work.record.company_id.service_invoicing_sale_journal_id + if journal_id: + self.work.record.write({"journal_id": journal_id.id}) + + def _activate_contract_lines(self, execution_date): + for line in self.work.record.contract_line_ids: + line.write( + { + "date_start": execution_date, + "next_period_date_start": execution_date, + "recurring_next_date": execution_date, + "last_date_invoiced": None, + "qty_type": line.ordered_qty_type, + "quantity": line.ordered_quantity, + "qty_formula_id": line.ordered_qty_formula_id.id, + } + ) + line._compute_state() + + def set_contract_status_active(self, execution_date): + self._activate_contract_lines(execution_date) + self._set_start_date(execution_date) + self.work.record.write({"status": "in_progress"}) + + def set_contract_status_closed(self, execution_date): + for line in self.work.record.contract_line_ids: + if self.work.record.status == "paused" or self.work.record.is_free_pack: + self._activate_contract_lines(execution_date) + line.write({"date_end": execution_date}) + line._compute_state() + self.work.record.set_close_status_type_by_date() + + def clean_non_service_lines(self): + for line in self.work.record.contract_line_ids: + if not self._is_service_line(line): + line.cancel() + line.unlink() + + def modify( + self, + execution_date, + executed_modification_action, + pricelist_id=None, + pack_id=None, + discount=None, + payment_mode_id=None, + ): + initial_status = self.work.record.status + # TODO: control closing date in order to being able modify contract with previous date. + # on contract line: + # skip last_date_invoice validation for modification action if contract is ready to start or active on free plan. + self.set_contract_status_closed(execution_date) + sale_order_utils = self.component( + usage="sale.order.utils", model_name="sale.order" + ) + new_service_invoicing_id = sale_order_utils.create_service_invoicing_initial( + **self._build_service_invoicing_params( + "modification", + executed_modification_action, + execution_date, + pricelist_id, + pack_id, + discount, + payment_mode_id, + ) + ) + # TODO: + # Do we really want new contract to be in_progress on a modification?? + # if initial_status == "in_progress" and not self.work.record.is_free_pack: + # self.set_contract_status_active() + self._setup_successors_and_predecessors(new_service_invoicing_id) + return new_service_invoicing_id + + def reopen( + self, + execution_date, + pricelist_id=None, + pack_id=None, + discount=None, + payment_mode_id=None, + ): + self.set_contract_status_closed(execution_date) + new_service_invoicing_id = self.component( + usage="sale.order.utils", model_name="sale.order" + ).create_service_invoicing_initial( + **self._build_service_invoicing_params( + "reopen", + "modify_pack,modify_pricelist,modify_discount,modify_payment_mode", + execution_date, + pricelist_id, + pack_id, + discount, + payment_mode_id, + ) + ) + self._setup_successors_and_predecessors(new_service_invoicing_id) + return new_service_invoicing_id + + def _build_service_invoicing_params( + self, + executed_action, + executed_action_description, + execution_date, + pricelist_id=None, + pack_id=None, + discount=None, + payment_mode_id=None, + ): + executed_action_description_list = executed_action_description.split(",") + return { + "company_id": self.work.record.partner_id.related_company_id, + "pack_id": pack_id + if "modify_pack" in executed_action_description_list + else self.work.record.pack_id, + "pricelist_id": pricelist_id + if "modify_pricelist" in executed_action_description_list + else self.work.record.pricelist_id, + "payment_mode_id": payment_mode_id + if "modify_payment_mode" in executed_action_description_list + else self.work.record.payment_mode_id, + "start_date": execution_date, + "executed_action": executed_action, + "executed_action_description": executed_action_description, + "metadata": { + "community_company_id": self.work.record.community_company_id.id + if self.work.record.community_company_id + else False, + "discount": discount + if "modify_discount" in executed_action_description_list + else self.work.record.discount, + }, + } + + def _is_service_line(self, contract_line): + if self.work.record.contract_template_id: + contract_template_services = ( + self.work.record.contract_template_id.contract_line_ids.mapped( + "product_id" + ) + ) + return contract_line.product_id in contract_template_services + return False + + def _setup_successors_and_predecessors(self, new_service_invoicing_id): + self.work.record.write({"successor_contract_id": new_service_invoicing_id.id}) + new_service_invoicing_id.write({"predecessor_contract_id": self.work.record.id}) diff --git a/energy_communities_service_invoicing/components/sale_order_utils.py b/energy_communities_service_invoicing/components/sale_order_utils.py new file mode 100644 index 0000000000000000000000000000000000000000..460a084b1604a3e76e5f84ca8d7d6c6946f6a078 --- /dev/null +++ b/energy_communities_service_invoicing/components/sale_order_utils.py @@ -0,0 +1,94 @@ +from odoo.addons.component.core import Component +from odoo.addons.energy_communities.utils import contract_utils + + +class SaleOrderUtils(Component): + _inherit = "sale.order.utils" + + def _create_service_invoicing_sale_order( + self, + company_id, + pack_id, + pricelist_id, + payment_mode_id, + start_date, + executed_action, + executed_action_description, + metadata, + ): + so_creation_dict = { + "partner_id": company_id.partner_id.id, + "company_id": self.env.company.id, + "commitment_date": start_date, + "pricelist_id": pricelist_id.id, + "service_invoicing_action": executed_action, + "service_invoicing_action_description": executed_action_description, + "order_line": [ + ( + 0, + 0, + { + "product_id": pack_id.id, + "date_start": start_date, + "date_end": start_date, + }, + ) + ], + } + if payment_mode_id: + so_creation_dict["payment_mode_id"] = payment_mode_id.id + # Apply configuration sales team to service invoicing sales order + if self.env.company.service_invoicing_sale_team_id: + so_creation_dict[ + "team_id" + ] = self.env.company.service_invoicing_sale_team_id.id + if metadata: + metadata_list = [] + for meta_key in metadata.keys(): + metadata_list.append( + (0, 0, {"key": meta_key, "value": metadata[meta_key]}) + ) + so_creation_dict["metadata_line_ids"] = metadata_list + sale_order = self.env["sale.order"].create(so_creation_dict) + # Trigger name computattion in oder to include product's description_sale + for order_line in sale_order.order_line: + order_line._compute_name() + return sale_order + + def create_service_invoicing_initial( + self, + company_id, + pack_id, + pricelist_id, + start_date, + executed_action, + executed_action_description="none", + payment_mode_id=False, + metadata=False, + ): + so = self._create_service_invoicing_sale_order( + company_id, + pack_id, + pricelist_id, + payment_mode_id, + start_date, + executed_action, + executed_action_description, + metadata, + ) + so.action_confirm() + service_invoicing_id = self._get_related_contracts(so) + # TODO: We must call contract_utils with a better component and workcontext modification approach + with contract_utils(self.env, service_invoicing_id) as component: + component.setup_initial_data() + component.clean_non_service_lines() + if service_invoicing_id.is_free_pack: + component.set_contract_status_active(start_date) + return service_invoicing_id + + def _get_related_contracts(self, sale_order): + return ( + self.env["contract.line"] + .search([("sale_order_line_id", "in", sale_order.order_line.ids)]) + .mapped("contract_id") + ) diff --git a/energy_communities_service_invoicing/data/contract_cron.xml b/energy_communities_service_invoicing/data/contract_cron.xml new file mode 100644 index 0000000000000000000000000000000000000000..876cfdfc3c11bf49d1789fadbe5663596673c9cf --- /dev/null +++ b/energy_communities_service_invoicing/data/contract_cron.xml @@ -0,0 +1,13 @@ +<odoo noupdate="1"> + <record model="ir.cron" id="contract_cron_for_invoice_closure"> + <field name="name">Close today's (closed planned) Contracts </field> + <field name="model_id" ref="model_contract_contract" /> + <field name="state">code</field> + <field name="code">model.cron_close_todays_closed_planned_contacts()</field> + <field name="user_id" ref="base.user_root" /> + <field name="interval_number">1</field> + <field name="interval_type">days</field> + <field name="numbercall">-1</field> + <field eval="False" name="doall" /> + </record> +</odoo> diff --git a/energy_communities_service_invoicing/data/contract_line_qty_formula_data.xml b/energy_communities_service_invoicing/data/contract_line_qty_formula_data.xml new file mode 100644 index 0000000000000000000000000000000000000000..edef781e276dc68c96d19806d5e1f66636e8d9ee --- /dev/null +++ b/energy_communities_service_invoicing/data/contract_line_qty_formula_data.xml @@ -0,0 +1,27 @@ +<odoo> + <data> + <record + id="active_community_members_formula" + model="contract.line.qty.formula" + > + <field name="name">Active community members</field> + <field name="code"> +result = env['cooperative.membership'].sudo().search_count([ +('company_id','=',contract.community_company_id.id), +('member','=',True) +]) + </field> + <field name="company_id" eval="ref('base.main_company')" /> + </record> + <record + id="active_monitoring_members_formula" + model="contract.line.qty.formula" + > + <field name="name">Active monitoring members</field> + <field name="code"> +result = contract.get_active_monitoring_members() + </field> + <field name="company_id" eval="ref('base.main_company')" /> + </record> + </data> +</odoo> diff --git a/energy_communities_service_invoicing/data/product_data.xml b/energy_communities_service_invoicing/data/product_data.xml new file mode 100644 index 0000000000000000000000000000000000000000..bb69508a54130a54ccfee34b82b761be394969fe --- /dev/null +++ b/energy_communities_service_invoicing/data/product_data.xml @@ -0,0 +1,8 @@ +<odoo> + <record id="product_category_platform_pack" model="product.category"> + <field name="name">Platform Service Pack</field> + </record> + <record id="product_category_platform_service" model="product.category"> + <field name="name">Platform Service</field> + </record> +</odoo> diff --git a/energy_communities_service_invoicing/models/__init__.py b/energy_communities_service_invoicing/models/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..8d39612f6697b9ab190a26858de73839f714a189 --- /dev/null +++ b/energy_communities_service_invoicing/models/__init__.py @@ -0,0 +1,11 @@ +from . import pack_type_mixin +from . import abstract_contract +from . import account_move +from . import contract +from . import contract_line +from . import contract_line_formula +from . import contract_template +from . import product_template +from . import res_company +from . import res_partner +from . import sale_order diff --git a/energy_communities_service_invoicing/models/abstract_contract.py b/energy_communities_service_invoicing/models/abstract_contract.py new file mode 100644 index 0000000000000000000000000000000000000000..22120a175b55a228be91c3c9a4349d5189ebb777 --- /dev/null +++ b/energy_communities_service_invoicing/models/abstract_contract.py @@ -0,0 +1,25 @@ +from odoo import fields, models + + +class ContractAbstractContract(models.AbstractModel): + _inherit = "contract.abstract.contract" + _check_company_auto = False + + company_id = fields.Many2one( + required=False, + default=None, + ) + + +class ContractAbstractContractLine(models.AbstractModel): + _inherit = "contract.abstract.contract.line" + + price_unit = fields.Float( + string="Unit Price", + compute="_compute_price_unit", + inverse="_inverse_price_unit", + digits="Product Price", + ) + price_subtotal = fields.Float( + compute="_compute_price_subtotal", string="Sub Total", digits="Product Price" + ) diff --git a/energy_communities_service_invoicing/models/account_move.py b/energy_communities_service_invoicing/models/account_move.py new file mode 100644 index 0000000000000000000000000000000000000000..2fff56b99316b373cb28fd525c86ebf1e193c86a --- /dev/null +++ b/energy_communities_service_invoicing/models/account_move.py @@ -0,0 +1,78 @@ +from odoo import api, fields, models + +from ..utils import PACK_VALUES + + +class AccountMove(models.Model): + _name = "account.move" + _inherit = ["account.move", "pack.type.mixin"] + + related_contract_id = fields.Many2one( + comodel_name="contract.contract", + compute="_compute_related_contract_id_is_contract", + compute_sudo=True, + store=True, + ) + is_contract = fields.Boolean( + compute="_compute_related_contract_id_is_contract", + compute_sudo=True, + store=True, + ) + related_community_company_id = fields.Many2one( + comodel_name="res.company", + string="Related community", + related="related_contract_id.community_company_id", + domain="[('hierarchy_level','=','community')]", + store=True, + ) + + @api.depends("invoice_line_ids", "auto_invoice_id") + def _compute_related_contract_id_is_contract(self): + for record in self: + record.related_contract_id = False + record.is_contract = False + if record.auto_invoice_id: + record.is_contract = record.auto_invoice_id.is_contract + if record.auto_invoice_id.related_contract_id: + record.related_contract_id = ( + record.auto_invoice_id.related_contract_id.id + ) + else: + if record.invoice_line_ids: + first_move_line = record.invoice_line_ids[0] + if first_move_line.contract_line_id: + rel_contract = first_move_line.contract_line_id.contract_id + record.related_contract_id = rel_contract.id + record.is_contract = True + + @api.depends("invoice_line_ids", "auto_invoice_id") + def _compute_pack_type(self): + super()._compute_pack_type() + + def custom_compute_pack_type(self): + self._set_custom_pack_type_on_invoice() + + # Inter Company: + # define configuration journal + def _prepare_invoice_data(self, dest_company): + inv_data = super()._prepare_invoice_data(dest_company) + if ( + self.pack_type == "platform_pack" + and dest_company.sudo().service_invoicing_purchase_journal_id + ): + inv_data[ + "journal_id" + ] = dest_company.sudo().service_invoicing_purchase_journal_id.id + return inv_data + + +class AccountMoveLine(models.Model): + _inherit = "account.move.line" + + # Inter Company: + # propagate name from origin invoice + @api.model + def _prepare_account_move_line(self, dest_move, dest_company): + vals = super()._prepare_account_move_line(dest_move, dest_company) + vals["name"] = self.name + return vals diff --git a/energy_communities_service_invoicing/models/contract.py b/energy_communities_service_invoicing/models/contract.py new file mode 100644 index 0000000000000000000000000000000000000000..bea8d71d3799d25d426dde821e879717425fdcb5 --- /dev/null +++ b/energy_communities_service_invoicing/models/contract.py @@ -0,0 +1,322 @@ +from collections import namedtuple +from datetime import datetime + +from odoo import _, api, fields, models + +from ..utils import ( + _CONTRACT_STATUS_VALUES, + _SALE_ORDER_SERVICE_INVOICING_ACTION_VALUES, + get_existing_open_pack_contract, + raise_existing_same_open_platform_pack_contract_error, +) + +_CLOSING_ACTION_VALUES = _SALE_ORDER_SERVICE_INVOICING_ACTION_VALUES + [ + ("close", _("Close")) +] + + +class ContractContract(models.Model): + _inherit = "contract.contract" + _order = "id desc" + + community_company_id = fields.Many2one( + "res.company", + string="Related community", + domain="[('hierarchy_level','=','community')]", + ) + predecessor_contract_id = fields.Many2one( + "contract.contract", string="Predecessor contract" + ) + successor_contract_id = fields.Many2one( + "contract.contract", string="Successor contract" + ) + status = fields.Selection( + selection=_CONTRACT_STATUS_VALUES, + required=True, + string="Status", + default="in_progress", + ) + discount = fields.Float( + string="Discount (%)", + digits="Discount", + compute="_compute_discount", + store=False, + ) + last_date_invoiced = fields.Date( + string="Last Date Invoiced", compute="_compute_last_date_invoiced", store=False + ) + pack_type = fields.Selection(related="contract_template_id.pack_type") + is_free_pack = fields.Boolean(related="contract_template_id.is_free_pack") + closing_action = fields.Selection( + selection=_CLOSING_ACTION_VALUES, + compute="_compute_closing_action", + string="Closing reason", + default="none", + store=True, + ) + closing_action_description = fields.Char( + string="Closing reason description", + compute="_compute_closing_action_description", + store=True, + ) + related_contract_product_ids = fields.One2many( + "product.product", + string="Related services", + compute="_compute_related_contract_product_ids", + store=False, + ) + pack_id = fields.Many2one( + "product.product", + string="Service Pack", + compute="_compute_pack_id", + store=False, + ) + sale_order_id = fields.Many2one( + "sale.order", + string="Sale Order (activation)", + ) + received_invoices_count = fields.Integer(compute="_compute_received_invoices_count") + # On energy_communities all contracts have skip_zero_qty marked by default + skip_zero_qty = fields.Boolean(default=True) + # On energy communities all contracts have company_id + company_id = fields.Many2one(required=True) + + @api.depends("status", "successor_contract_id") + def _compute_closing_action(self): + for record in self: + record.closing_action = "none" + if record.status in ["closed", "closed_planned"]: + if record.successor_contract_id: + record.closing_action = ( + record.successor_contract_id.sale_order_id.service_invoicing_action + ) + else: + record.closing_action = "close" + + @api.depends("status", "successor_contract_id") + def _compute_closing_action_description(self): + for record in self: + record.closing_action_description = "" + if record.status in ["closed", "closed_planned"]: + if record.successor_contract_id: + record.closing_action_description = ( + record.successor_contract_id.sale_order_id.service_invoicing_action_description + ) + + @api.constrains("partner_id", "community_company_id") + def _constrain_unique_contract(self): + for record in self: + if record.community_company_id: + existing_contract = ( + record._get_existing_same_open_platform_pack_contract() + ) + if existing_contract: + raise_existing_same_open_platform_pack_contract_error( + existing_contract + ) + + def _compute_received_invoices_count(self): + for record in self: + record.received_invoices_count = len(record._get_received_invoices_ids()) + + @api.depends("contract_template_id") + def _compute_related_contract_product_ids(self): + for record in self: + rel_products = [(5, 0, 0)] + record.related_contract_product_ids = rel_products + if record.contract_template_id: + for line in record.contract_template_id.contract_line_ids: + rel_products.append((4, line.product_id.id)) + record.related_contract_product_ids = rel_products + + @api.depends("contract_line_ids") + def _compute_discount(self): + for record in self: + record.discount = 0 + if record.contract_line_ids: + record.discount = record.contract_line_ids[0].discount + + @api.depends("contract_line_ids") + def _compute_last_date_invoiced(self): + for record in self: + record.last_date_invoiced = None + if record.contract_line_ids: + record.last_date_invoiced = record.contract_line_ids[ + 0 + ].last_date_invoiced + + @api.depends("contract_template_id") + def _compute_pack_id(self): + for record in self: + record.pack_id = False + if record.contract_template_id: + rel_product = self.env["product.product"].search( + [ + ( + "property_contract_template_id", + "=", + record.contract_template_id.id, + ) + ], + limit=1, + ) + if rel_product: + record.pack_id = rel_product.id + + def _recurring_create_invoice(self, date_ref=False): + moves = super()._recurring_create_invoice(date_ref) + for move in moves: + if not move.line_ids: + move.unlink() + return moves + + def action_activate_contract(self): + return self._action_contract("activate", {"execution_date": self.date_start}) + + def action_close_contract(self): + return self._action_contract( + "close", + { + "execution_date": self.last_date_invoiced + if self.last_date_invoiced + else self.date_start + }, + ) + + def action_modify_contract(self): + return self._action_contract( + "modification", + { + "execution_date": self.last_date_invoiced + if self.last_date_invoiced + else self.date_start + }, + ) + + def action_reopen_contract(self): + return self._action_contract( + "reopen", + { + "execution_date": self.date_end, + "pack_id": self.pack_id.id if self.pack_id else False, + "pricelist_id": self.pricelist_id.id if self.pricelist_id else False, + "payment_mode_id": self.payment_mode_id.id + if self.payment_mode_id + else False, + }, + ) + + def _action_contract(self, action, wizard_defaults_extra): + self.ensure_one() + # wizard params + wizard_defaults = { + "service_invoicing_id": self.id, + "executed_action": action, + "discount": self.discount, + } | wizard_defaults_extra + # wizard creation and display + wizard = self.env["service.invoicing.action.wizard"].create(wizard_defaults) + return { + "type": "ir.actions.act_window", + "name": _("Executing: {}").format(action), + "res_model": "service.invoicing.action.wizard", + "view_type": "form", + "view_mode": "form", + "target": "new", + "res_id": wizard.id, + } + + def action_show_received_invoices(self): + self.ensure_one() + tree_view = self.env.ref("account.view_invoice_tree", raise_if_not_found=False) + form_view = self.env.ref("account.view_move_form", raise_if_not_found=False) + ctx = dict(self.env.context) + ctx["default_move_type"] = "in_invoice" + action = { + "type": "ir.actions.act_window", + "name": "Invoices", + "res_model": "account.move", + "view_mode": "tree,form", + "domain": [("id", "in", self._get_received_invoices_ids())], + "context": ctx, + } + if tree_view and form_view: + action["views"] = [(tree_view.id, "tree"), (form_view.id, "form")] + return action + + @api.model + def cron_close_todays_closed_planned_contacts(self): + impacted_contracts = self.env["contract.contract"].search( + [("status", "=", "closed_planned")] + ) + for contract in impacted_contracts: + contract.set_close_status_type_by_date() + return True + + # TODO: It would be very cool being able to use this methods on service_invoicing xml act_window definition + @api.model + def get_service_invoicing_views_domain(self): + return [("community_company_id", "!=", False)] + + @api.model + def get_service_invoicing_views_context(self): + return {"search_default_not_finished": 1, "search_default_paused": 1} + + # TODO: Not working. Lack of access rules + def _get_received_invoices_ids(self): + received_invoices = [] + issued_invoices = self.sudo()._get_related_invoices().ids + # related_partner = self.env["res.partner"].sudo. + all_received_invoices = self.env["account.move"].search( + [ + ("partner_id", "=", self.sudo().company_id.partner_id.id), + ("move_type", "=", "in_invoice"), + ] + ) + for invoice in all_received_invoices: + if invoice.sudo().auto_invoice_id: + if invoice.sudo().auto_invoice_id.id in issued_invoices: + received_invoices.append(invoice.id) + return received_invoices + + def _get_existing_same_open_platform_pack_contract(self): + return get_existing_open_pack_contract( + self.env, + self.partner_id, + "platform_pack", + contract_id=self, + custom_query=[("community_company_id", "=", self.community_company_id.id)], + ) + + def get_active_monitoring_members(self): + QueryResult = namedtuple("QueryResult", ["total"]) + QUERY = """ + select count(energy_selfconsumption_supply_point.code) from energy_project_project + inner join energy_selfconsumption_selfconsumption on + energy_selfconsumption_selfconsumption.project_id = energy_project_project.id + inner join energy_selfconsumption_distribution_table on + energy_selfconsumption_distribution_table.selfconsumption_project_id = energy_selfconsumption_selfconsumption.id + inner join energy_selfconsumption_supply_point_assignation on + energy_selfconsumption_supply_point_assignation.distribution_table_id = energy_selfconsumption_distribution_table.id + inner join energy_selfconsumption_supply_point on + energy_selfconsumption_supply_point.id = energy_selfconsumption_supply_point_assignation.supply_point_id + inner join energy_project_service_contract on + energy_project_service_contract.project_id= energy_project_project.id + inner join energy_project_provider on energy_project_service_contract.provider_id=energy_project_provider.id + where + energy_project_project.company_id={current_company_id} and + energy_selfconsumption_distribution_table.state = 'active' and + energy_project_provider.name LIKE '{arkenova_like}'; + """.format( + current_company_id=int(self.community_company_id.id), + arkenova_like="%Arkenova%", + ) + self.env.cr.execute(QUERY) + members = QueryResult._make(self.env.cr.fetchone()) + return members.total + + def set_close_status_type_by_date(self): + if self.date_end.strftime("%Y-%m-%d") <= datetime.now().strftime("%Y-%m-%d"): + self.write({"status": "closed"}) + else: + self.write({"status": "closed_planned"}) diff --git a/energy_communities_service_invoicing/models/contract_line.py b/energy_communities_service_invoicing/models/contract_line.py new file mode 100644 index 0000000000000000000000000000000000000000..3ec81ca6ac2dc7f3b610e31b948907942370656e --- /dev/null +++ b/energy_communities_service_invoicing/models/contract_line.py @@ -0,0 +1,24 @@ +from odoo import api, fields, models + + +class ContractLine(models.Model): + _inherit = "contract.line" + + ordered_qty_type = fields.Char() + ordered_quantity = fields.Float() + ordered_qty_formula_id = fields.Many2one("contract.line.qty.formula") + + def _compute_allowed(self): + super()._compute_allowed() + for record in self: + record.is_cancel_allowed = True + + # skip last_date_invoice update for modification action if contract is ready to start or on free plan. + def _update_recurring_next_date(self): + # TODO: Pay attention to original code in order to detect if method has been renamed: + # FIXME: Change method name according to real updated field + # e.g.: _update_last_date_invoiced() + for record in self: + if record.contract_id.status == "paused" or record.contract_id.is_free_pack: + return + super()._update_recurring_next_date() diff --git a/energy_communities_service_invoicing/models/contract_line_formula.py b/energy_communities_service_invoicing/models/contract_line_formula.py new file mode 100644 index 0000000000000000000000000000000000000000..f39384a85176c69cbddc19b52b965e04d06ac320 --- /dev/null +++ b/energy_communities_service_invoicing/models/contract_line_formula.py @@ -0,0 +1,10 @@ +from odoo import api, fields, models + + +class ContractLineFormula(models.Model): + _name = "contract.line.qty.formula" + _inherit = "contract.line.qty.formula" + + company_id = fields.Many2one( + "res.company", default=lambda self: self.env.company, required=True + ) diff --git a/energy_communities_service_invoicing/models/contract_template.py b/energy_communities_service_invoicing/models/contract_template.py new file mode 100644 index 0000000000000000000000000000000000000000..e39c381630f0b64315f688f9cd4cf8905f43e456 --- /dev/null +++ b/energy_communities_service_invoicing/models/contract_template.py @@ -0,0 +1,14 @@ +from odoo import _, api, fields, models + + +class ContractTemplate(models.Model): + _name = "contract.template" + _inherit = ["contract.template", "pack.type.mixin"] + + is_free_pack = fields.Boolean(string="Is a free pack") + + def custom_compute_pack_type(self): + self._set_custom_pack_type_on_contract_template( + "platform_pack", + "energy_communities_service_invoicing.product_category_platform_pack", + ) diff --git a/energy_communities_service_invoicing/models/pack_type_mixin.py b/energy_communities_service_invoicing/models/pack_type_mixin.py new file mode 100644 index 0000000000000000000000000000000000000000..786ec95612bf4c22bf72463e272eb1dc81a68ba3 --- /dev/null +++ b/energy_communities_service_invoicing/models/pack_type_mixin.py @@ -0,0 +1,66 @@ +from odoo import fields, models + +from ..utils import PACK_VALUES + + +class PackTypeMixin(models.AbstractModel): + _name = "pack.type.mixin" + _description = "Add pack_type to any model" + + pack_type = fields.Selection( + PACK_VALUES, + compute="_compute_pack_type", + compute_sudo=True, + string="Pack Type", + store=True, + default="none", + ) + + def _get_pack_type_from_product_category(self, pack_type, category_id): + return ( + pack_type + if bool( + self.env["product.template"].search( + [ + ("property_contract_template_id", "=", self.id), + ("categ_id", "=", category_id), + ] + ) + ) + else "none" + ) + + def _set_custom_pack_type_on_contract_template(self, pack_type, ref_category): + try: + categ_id = self.env.ref(ref_category).id + except: + categ_id = False + if categ_id: + self.pack_type = self._get_pack_type_from_product_category( + pack_type, categ_id + ) + + def _set_custom_pack_type_on_invoice(self): + if self.ref: + rel_inv = ( + self.env["account.move"] + .sudo() + .search([("name", "=", self.ref)], limit=1) + ) + if rel_inv: + self.pack_type = rel_inv.pack_type + else: + if self.invoice_line_ids: + first_move_line = self.invoice_line_ids[0] + if first_move_line.contract_line_id: + rel_contract = first_move_line.contract_line_id.contract_id + self.pack_type = rel_contract.pack_type + + # method to be overwriten on implementations + def custom_compute_pack_type(self): + pass + + def _compute_pack_type(self): + for record in self: + record.pack_type = "none" + record.custom_compute_pack_type() diff --git a/energy_communities_service_invoicing/models/product_template.py b/energy_communities_service_invoicing/models/product_template.py new file mode 100644 index 0000000000000000000000000000000000000000..6b56c94eedb2c6bef40648ff597c9de2b9a547a3 --- /dev/null +++ b/energy_communities_service_invoicing/models/product_template.py @@ -0,0 +1,45 @@ +from odoo import api, fields, models + + +class ProductTemplate(models.Model): + _inherit = "product.template" + + property_contract_template_id = fields.Many2one( + company_dependent=False, + ) + related_contract_product_ids = fields.One2many( + "product.product", + string="Related services", + compute="_compute_related_contract_product_ids", + store=False, + ) + pack_type = fields.Selection(related="property_contract_template_id.pack_type") + + @api.depends("property_contract_template_id") + def _compute_related_contract_product_ids(self): + for record in self: + rel_products = [(5, 0, 0)] + record.related_contract_product_ids = rel_products + if record.property_contract_template_id: + for line in record.property_contract_template_id.contract_line_ids: + rel_products.append((4, line.product_id.id)) + record.related_contract_product_ids = rel_products + + @api.constrains("property_contract_template_id") + def _constraint_contract_template_pack_type(self): + ctemplates = self.env["contract.template"].search([]) + for ctemplate in ctemplates: + ctemplate._compute_pack_type() + + @api.constrains("description_sale") + def _constraint_contract_template_line_name(self): + for record in self: + ctemplatelines = self.env["contract.template.line"].search( + [("product_id", "=", record.product_variant_id.id)] + ) + for ctemplateline in ctemplatelines: + ctemplateline.write( + { + "name": ctemplateline.product_id.get_product_multiline_description_sale() + } + ) diff --git a/energy_communities_service_invoicing/models/res_company.py b/energy_communities_service_invoicing/models/res_company.py new file mode 100644 index 0000000000000000000000000000000000000000..7ce76cc08ea34dcff81b4011fb0c6645797442a4 --- /dev/null +++ b/energy_communities_service_invoicing/models/res_company.py @@ -0,0 +1,20 @@ +from odoo import fields, models +from odoo.tools.translate import _ + + +class ResCompany(models.Model): + _name = "res.company" + _inherit = ["res.company"] + + service_invoicing_sale_journal_id = fields.Many2one( + comodel_name="account.journal", + string="Service invoicing sale journal", + ) + service_invoicing_purchase_journal_id = fields.Many2one( + comodel_name="account.journal", + string="Service invoicing purchase journal", + ) + service_invoicing_sale_team_id = fields.Many2one( + comodel_name="crm.team", + string="Service invoicing sales team", + ) diff --git a/energy_communities_service_invoicing/models/res_partner.py b/energy_communities_service_invoicing/models/res_partner.py new file mode 100644 index 0000000000000000000000000000000000000000..f71e7fe798387eae40b526612534079b2e30f340 --- /dev/null +++ b/energy_communities_service_invoicing/models/res_partner.py @@ -0,0 +1,47 @@ +from odoo import _, api, fields, models + +from ..utils import _CONTRACT_STATUS_VALUES + +_PACK_CONTRACT_STATUS_VALUES = _CONTRACT_STATUS_VALUES + [("none", _("None"))] + + +class ResPartner(models.Model): + _name = "res.partner" + _inherit = ["res.partner"] + + platform_pack_id = fields.Many2one( + "product.product", + string="Platform Service Pack", + compute="_compute_platform_pack_id", + store=False, + ) + platform_pack_contract_status = fields.Selection( + selection=_PACK_CONTRACT_STATUS_VALUES, + string="Platform Service Pack Status", + compute="_compute_platform_pack_status", + store=False, + ) + + def _compute_platform_pack_status(self): + for record in self: + record.platform_pack_contract_status = "none" + rel_contract = record._get_related_platform_pack_contract() + if rel_contract: + record.platform_pack_contract_status = rel_contract.status + + def _compute_platform_pack_id(self): + for record in self: + record.platform_pack_id = False + rel_contract = record._get_related_platform_pack_contract() + if rel_contract: + if rel_contract.pack_id: + record.platform_pack_id = rel_contract.pack_id.id + + def _get_related_platform_pack_contract(self): + return self.env["contract.contract"].search( + [ + ("community_company_id", "=", self.related_company_id.id), + ("pack_type", "=", "platform_pack"), + ], + limit=1, + ) diff --git a/energy_communities_service_invoicing/models/sale_order.py b/energy_communities_service_invoicing/models/sale_order.py new file mode 100644 index 0000000000000000000000000000000000000000..67447ae360d39467c8dbeb78a84cfe83e9215a16 --- /dev/null +++ b/energy_communities_service_invoicing/models/sale_order.py @@ -0,0 +1,51 @@ +from odoo import _, api, fields, models + +from ..utils import _SALE_ORDER_SERVICE_INVOICING_ACTION_VALUES + + +class SaleOrder(models.Model): + _name = "sale.order" + _inherit = "sale.order" + + service_invoicing_action = fields.Selection( + selection=_SALE_ORDER_SERVICE_INVOICING_ACTION_VALUES, + required=True, + string="Service invoicing action", + default="none", + ) + service_invoicing_action_description = fields.Char( + string="Service invoicing action description", + default="none", + ) + + def action_create_contract(self): + contracts = super().action_create_contract() + for contract in contracts: + contract.write( + { + "pricelist_id": self.pricelist_id.id, + "payment_mode_id": self.payment_mode_id.id, + "sale_order_id": self.id, + } + ) + return contracts + + def action_show_contracts(self): + self.ensure_one() + action = self.env["ir.actions.act_window"]._for_xml_id( + "contract.action_customer_contract" + ) + + contracts = self.env["contract.contract"].search( + [("sale_order_id", "=", self.id)] + ) + if len(contracts) == 1: + # If there is only one contract, open it directly + action.update( + { + "res_id": contracts.id, + "view_mode": "form", + "views": filter(lambda view: view[1] == "form", action["views"]), + } + ) + return action diff --git a/energy_communities_service_invoicing/report/report_invoice.xml b/energy_communities_service_invoicing/report/report_invoice.xml new file mode 100644 index 0000000000000000000000000000000000000000..e1ce48ee5d1d2d8f64ae2d59ca2c5f53ec02e2af --- /dev/null +++ b/energy_communities_service_invoicing/report/report_invoice.xml @@ -0,0 +1,16 @@ +<odoo> + <template id="report_invoice_document" inherit_id="account.report_invoice_document"> + <xpath expr="//div[@id='informations']" position="inside"> + <div class="col-auto col-3 mw-100 mb-2" t-if="o.pack_type == 'platform_pack'"> + <strong>Community:</strong> + <t t-if="o.related_community_company_id.comercial_name"> + <p class="m-0" t-field="o.related_community_company_id.comercial_name"/> + </t> + <t t-else=""> + <p class="m-0" t-field="o.related_community_company_id.name"/> + </t> + </div> + </xpath> + </template> +</odoo> + diff --git a/energy_communities_service_invoicing/security/ir.model.access.csv b/energy_communities_service_invoicing/security/ir.model.access.csv new file mode 100644 index 0000000000000000000000000000000000000000..087389c372b01ca0ff6e7704e49d48b7fb18bef8 --- /dev/null +++ b/energy_communities_service_invoicing/security/ir.model.access.csv @@ -0,0 +1,8 @@ +id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink +access_service_invoicing_action_wizard,service_invoicing_action_wizard,model_service_invoicing_action_wizard,base.group_user,1,1,1,1 +access_service_invoicing_action_create_wizard,service_invoicing_action_create_wizard,model_service_invoicing_action_create_wizard,base.group_user,1,1,1,1 +contract.contract_manager,contract_manager,model_contract_contract,account.group_account_manager,1,0,0,0 +contract_platform_admin,contract_platform_admin,model_contract_contract,energy_communities.role_platform_admin_res_groups,1,1,1,1 +contract_coord_admin,contract_coord_admin,model_contract_contract,energy_communities.role_coord_admin_res_groups,1,1,0,0 +sale.access_product_category_sale_manager,product.category salemanager,product.model_product_category,sales_team.group_sale_manager,1,0,0,0 +purchase.access_product_category_purchase_manager,product.category purchase_manager,product.model_product_category,purchase.group_purchase_manager,1,0,0,0 diff --git a/energy_communities_service_invoicing/security/ir_rule_data.xml b/energy_communities_service_invoicing/security/ir_rule_data.xml new file mode 100644 index 0000000000000000000000000000000000000000..b0580adc433c412d18b01e967bfb6caa274e034a --- /dev/null +++ b/energy_communities_service_invoicing/security/ir_rule_data.xml @@ -0,0 +1,276 @@ +<odoo> + <!-- CONTRACT --> + <record model="ir.rule" id="energy_communities_service_invoicing.rule_contract_contract_admin"> + <field name="name">Contract admins</field> + <field name="model_id" ref="contract.model_contract_contract"/> + <field name="groups" eval="[(4, ref('energy_communities.role_platform_admin_res_groups')),(4, ref('energy_communities.role_coord_admin_res_groups'))]"/> + <field name="domain_force">[('company_id', 'in', company_ids)]</field> + <field name="perm_read" eval="False" /> + <field name="perm_write" eval="True" /> + <field name="perm_create" eval="True" /> + <field name="perm_unlink" eval="True" /> + </record> + + <function name="write" model="ir.model.data"> + <function name="search" model="ir.model.data"> + <value eval="[('module', '=', 'contract'),('name', '=', 'rule_contract_contract_multi_company')]"/> + </function> + <value eval="{'noupdate': False}" /> + </function> + <record model="ir.rule" id="contract.rule_contract_contract_multi_company"> + + <field name="domain_force"> +[ +'|','|', +('partner_id','=',user.user_current_company.partner_id.id), +('company_id','=',False), +('company_id','in',company_ids) +] + </field> + <field name="perm_read" eval="True"/> + <field name="perm_write" eval="False"/> + <field name="perm_create" eval="False"/> + <field name="perm_unlink" eval="False"/> + </record> + <function name="write" model="ir.model.data"> + <function name="search" model="ir.model.data"> + <value eval="[('module', '=', 'contract'),('name', '=', 'rule_contract_contract_multi_company')]"/> + </function> + <value eval="{'noupdate': True}" /> + </function> + + <function name="write" model="ir.model.data"> + <function name="search" model="ir.model.data"> + <value eval="[('module', '=', 'contract'),('name', '=', 'contract_contract_see_all')]"/> + </function> + <value eval="{'noupdate': False}" /> + </function> + <record model="ir.rule" id="contract.contract_contract_see_all"> + <field name="active">False</field> + </record> + <function name="write" model="ir.model.data"> + <function name="search" model="ir.model.data"> + <value eval="[('module', '=', 'contract'),('name', '=', 'contract_contract_see_all')]"/> + </function> + <value eval="{'noupdate': True}" /> + </function> + + <function name="write" model="ir.model.data"> + <function name="search" model="ir.model.data"> + <value eval="[('module', '=', 'contract'),('name', '=', 'rule_contract_contract_portal')]"/> + </function> + <value eval="{'noupdate': False}" /> + </function> + <record model="ir.rule" id="contract.rule_contract_contract_portal"> + <field name="active">False</field> + </record> + <function name="write" model="ir.model.data"> + <function name="search" model="ir.model.data"> + <value eval="[('module', '=', 'contract'),('name', '=', 'rule_contract_contract_portal')]"/> + </function> + <value eval="{'noupdate': True}" /> + </function> + + <!-- CONTRACT LINE --> + <function name="write" model="ir.model.data"> + <function name="search" model="ir.model.data"> + <value eval="[('module', '=', 'contract'),('name', '=', 'rule_contract_line_multi_company')]"/> + </function> + <value eval="{'noupdate': False}" /> + </function> + <record model="ir.rule" id="contract.rule_contract_line_multi_company"> + + <field name="domain_force"> +[ +'|','|', +('partner_id','=',user.user_current_company.partner_id.id), +('company_id','=',False), +('company_id','in',company_ids) +] + </field> + </record> + <function name="write" model="ir.model.data"> + <function name="search" model="ir.model.data"> + <value eval="[('module', '=', 'contract'),('name', '=', 'rule_contract_line_multi_company')]"/> + </function> + <value eval="{'noupdate': True}" /> + </function> + + <!-- PRODUCT TEMPLATE --> + <function name="write" model="ir.model.data"> + <function name="search" model="ir.model.data"> + <value eval="[('module', '=', 'product'),('name', '=', 'product_comp_rule')]"/> + </function> + <value eval="{'noupdate': False}" /> + </function> + <record model="ir.rule" id="product.product_comp_rule"> + <field name="perm_read" eval="True"/> + <field name="perm_write" eval="False"/> + <field name="perm_create" eval="False"/> + <field name="perm_unlink" eval="False"/> + </record> + <function name="write" model="ir.model.data"> + <function name="search" model="ir.model.data"> + <value eval="[('module', '=', 'product'),('name', '=', 'product_comp_rule')]"/> + </function> + <value eval="{'noupdate': True}" /> + </function> + + <record model="ir.rule" id="energy_communities_service_invoicing.rule_product_template_coord_admin"> + <field name="name">Product - Coordinator admin</field> + <field name="model_id" ref="product.model_product_template"/> + <field name="groups" eval="[(4, ref('energy_communities.role_coord_admin_res_groups'))]"/> + <field name="domain_force">[('company_id', 'in', company_ids)]</field> + <field name="perm_read" eval="False" /> + <field name="perm_write" eval="True" /> + <field name="perm_create" eval="False" /> + <field name="perm_unlink" eval="False" /> + </record> + + <record model="ir.rule" id="energy_communities_service_invoicing.rule_product_template_platform_admin"> + <field name="name">Product - Platform admin</field> + <field name="model_id" ref="product.model_product_template"/> + <field name="groups" eval="[(4, ref('energy_communities.role_platform_admin_res_groups'))]"/> + <field name="domain_force">[(1, '=', 1)]</field> + <field name="perm_read" eval="False" /> + <field name="perm_write" eval="True" /> + <field name="perm_create" eval="True" /> + <field name="perm_unlink" eval="True" /> + </record> + + <!-- CONTRACT TEMPLATE --> + <function name="write" model="ir.model.data"> + <function name="search" model="ir.model.data"> + <value eval="[('module', '=', 'contract'),('name', '=', 'rule_contract_template_line_multi_company')]"/> + </function> + <value eval="{'noupdate': False}" /> + </function> + <record model="ir.rule" id="contract.rule_contract_template_line_multi_company"> + <field name="perm_read" eval="True"/> + <field name="perm_write" eval="False"/> + <field name="perm_create" eval="False"/> + <field name="perm_unlink" eval="False"/> + </record> + <function name="write" model="ir.model.data"> + <function name="search" model="ir.model.data"> + <value eval="[('module', '=', 'contract'),('name', '=', 'rule_contract_template_line_multi_company')]"/> + </function> + <value eval="{'noupdate': True}" /> + </function> + <function name="write" model="ir.model.data"> + <function name="search" model="ir.model.data"> + <value eval="[('module', '=', 'contract'),('name', '=', 'rule_contract_template_multi_company')]"/> + </function> + <value eval="{'noupdate': False}" /> + </function> + <record model="ir.rule" id="contract.rule_contract_template_multi_company"> + <field name="perm_read" eval="True"/> + <field name="perm_write" eval="False"/> + <field name="perm_create" eval="False"/> + <field name="perm_unlink" eval="False"/> + </record> + <function name="write" model="ir.model.data"> + <function name="search" model="ir.model.data"> + <value eval="[('module', '=', 'contract'),('name', '=', 'rule_contract_template_multi_company')]"/> + </function> + <value eval="{'noupdate': True}" /> + </function> + + <record model="ir.rule" id="energy_communities_service_invoicing.rule_contract_template_platform_admin"> + <field name="name">Contract template platform admins</field> + <field name="model_id" ref="contract.model_contract_template"/> + <field name="groups" eval="[(4, ref('energy_communities.role_platform_admin_res_groups'))]"/> + <field name="domain_force">[(1, '=', 1)]</field> + <field name="perm_read" eval="False" /> + <field name="perm_write" eval="True" /> + <field name="perm_create" eval="True" /> + <field name="perm_unlink" eval="True" /> + </record> + + <record model="ir.rule" id="energy_communities_service_invoicing.rule_contract_template_coord_admin"> + <field name="name">Contract template coordinator admins</field> + <field name="model_id" ref="contract.model_contract_template"/> + <field name="groups" eval="[(4, ref('energy_communities.role_coord_admin_res_groups'))]"/> + <field name="domain_force">[('company_id', 'in', company_ids)]</field> + <field name="perm_read" eval="False" /> + <field name="perm_write" eval="True" /> + <field name="perm_create" eval="True" /> + <field name="perm_unlink" eval="True" /> + </record> + + <record model="ir.rule" id="energy_communities_service_invoicing.rule_contract_template_line_platform_admin"> + <field name="name">Contract template line platform admins</field> + <field name="model_id" ref="contract.model_contract_template_line"/> + <field name="groups" eval="[(4, ref('energy_communities.role_platform_admin_res_groups'))]"/> + <field name="domain_force">[(1, '=', 1)]</field> + <field name="perm_read" eval="False" /> + <field name="perm_write" eval="True" /> + <field name="perm_create" eval="True" /> + <field name="perm_unlink" eval="True" /> + </record> + + <record model="ir.rule" id="energy_communities_service_invoicing.rule_contract_template_line_coord_admin"> + <field name="name">Contract template line coordinator admins</field> + <field name="model_id" ref="contract.model_contract_template_line"/> + <field name="groups" eval="[(4, ref('energy_communities.role_coord_admin_res_groups'))]"/> + <field name="domain_force">[('company_id', 'in', company_ids)]</field> + <field name="perm_read" eval="False" /> + <field name="perm_write" eval="True" /> + <field name="perm_create" eval="True" /> + <field name="perm_unlink" eval="True" /> + </record> + + <!-- CONTRACT LINE QUANTITY FORMULA --> + <record model="ir.rule" id="energy_communities_service_invoicing.rule_contract_line_qty_formula_multi_company"> + <field name="name">Contract Line Formula Multicompany</field> + <field name="model_id" ref="model_contract_line_qty_formula"/> + <field name="domain_force">[('company_id', 'in', company_ids)]</field> + <field name="perm_read" eval="True" /> + <field name="perm_write" eval="True" /> + <field name="perm_create" eval="True" /> + <field name="perm_unlink" eval="True" /> + </record> + + <!-- PRODUCT PRICELIST --> + <function name="write" model="ir.model.data"> + <function name="search" model="ir.model.data"> + <value eval="[('module', '=', 'product'),('name', '=', 'product_pricelist_comp_rule')]"/> + </function> + <value eval="{'noupdate': False}" /> + </function> + <record model="ir.rule" id="product.product_pricelist_comp_rule"> + <field name="perm_read" eval="True"/> + <field name="perm_write" eval="False"/> + <field name="perm_create" eval="False"/> + <field name="perm_unlink" eval="False"/> + </record> + <function name="write" model="ir.model.data"> + <function name="search" model="ir.model.data"> + <value eval="[('module', '=', 'product'),('name', '=', 'product_pricelist_comp_rule')]"/> + </function> + <value eval="{'noupdate': True}" /> + </function> + + <record model="ir.rule" id="energy_communities_service_invoicing.rule_product_pricelist_coord_admin"> + <field name="name">Pricelist - Coordinator admin</field> + <field name="model_id" ref="product.model_product_pricelist"/> + <field name="groups" eval="[(4, ref('energy_communities.role_coord_admin_res_groups'))]"/> + <field name="domain_force">[('company_id', 'in', company_ids)]</field> + <field name="perm_read" eval="False" /> + <field name="perm_write" eval="True" /> + <field name="perm_create" eval="False" /> + <field name="perm_unlink" eval="True" /> + </record> + + <record model="ir.rule" id="energy_communities_service_invoicing.rule_product_pricelist_platform_admin"> + <field name="name">Pricelist - Platform admin</field> + <field name="model_id" ref="product.model_product_pricelist"/> + <field name="groups" eval="[(4, ref('energy_communities.role_platform_admin_res_groups'))]"/> + <field name="domain_force">[(1, '=', 1)]</field> + <field name="perm_read" eval="False" /> + <field name="perm_write" eval="True" /> + <field name="perm_create" eval="True" /> + <field name="perm_unlink" eval="True" /> + </record> + +</odoo> diff --git a/energy_communities_service_invoicing/utils.py b/energy_communities_service_invoicing/utils.py new file mode 100644 index 0000000000000000000000000000000000000000..a99e7c972c24489b726ee248f2610dbf43c4175c --- /dev/null +++ b/energy_communities_service_invoicing/utils.py @@ -0,0 +1,112 @@ +from odoo import _ +from odoo.api import Environment +from odoo.exceptions import ValidationError + +from odoo.addons.contract.models.contract import ContractContract + +PACK_VALUES = [ + ("platform_pack", _("Platform Pack")), + ("none", _("None")), +] + +_CONTRACT_STATUS_VALUES = [ + ("paused", _("Paused")), + ("in_progress", _("In progress")), + ("closed_planned", _("Planned closure")), + ("closed", _("Closed")), +] +_SERVICE_INVOICING_EXECUTED_ACTION_VALUES = [ + ("activate", _("Activate")), + ("modification", _("Modification")), + ("reopen", _("Reopen")), + ("close", _("Close")), +] +_SALE_ORDER_SERVICE_INVOICING_ACTION_VALUES = [ + ("none", _("None")) +] + _SERVICE_INVOICING_EXECUTED_ACTION_VALUES[:-1] + + +def service_invoicing_tree_view(env: Environment): + return { + "name": _("Service Contracts"), + "view_type": "tree", + "view_mode": "tree,form", + "views": [ + ( + env.ref( + "energy_communities_service_invoicing.view_service_invoicing_tree" + ).id, + "tree", + ), + ( + env.ref( + "energy_communities_service_invoicing.view_contract_contract_customer_form_platform_admin" + ).id, + "form", + ), + ], + "res_model": "contract.contract", + "context": env["contract.contract"].get_service_invoicing_views_context(), + "domain": env["contract.contract"].get_service_invoicing_views_domain(), + "type": "ir.actions.act_window", + "target": "current", + } + + +def service_invoicing_form_view_for_platform_admins( + env: Environment, service_invoicing_id: ContractContract +): + return { + "type": "ir.actions.act_window", + "res_model": "contract.contract", + "views": [ + ( + env.ref( + "energy_communities_service_invoicing.view_contract_contract_customer_form_platform_admin" + ).id, + "form", + ), + ], + "target": "current", + "res_id": service_invoicing_id.id, + } + + +# TODO: Think a bit more about more about if this 3 methods must go to contract utils component +def raise_existing_same_open_platform_pack_contract_error(existing_contract): + raise ValidationError( + _( + "It already exists an open contract ({}) with same company and community." + ).format(existing_contract.name) + ) + + +def get_existing_open_pack_contract( + env, partner_id, pack_type, contract_id=False, custom_query=False +): + # ("community_company_id", "=", community_company_id.id), + query = [ + ("partner_id", "=", partner_id.id), + ("pack_type", "=", pack_type), + ("status", "in", ["paused", "in_progress"]), + ] + if contract_id: + query.append(("id", "!=", contract_id.id)) + if custom_query: + query = custom_query + query + return env["contract.contract"].search(query, limit=1) + + +def get_existing_last_closed_pack_contract( + env, partner_id, community_company_id, contract_id=False +): + query = [ + ("partner_id", "=", partner_id.id), + ("community_company_id", "=", community_company_id.id), + ("pack_type", "=", "platform_pack"), + ("status", "in", ["closed_planned", "closed"]), + ("successor_contract_id", "=", False), + ] + if contract_id: + query.append(("id", "!=", contract_id.id)) + return env["contract.contract"].search(query, limit=1) diff --git a/energy_communities_service_invoicing/views/account_move_views.xml b/energy_communities_service_invoicing/views/account_move_views.xml new file mode 100644 index 0000000000000000000000000000000000000000..c50ce50f3e4336e39d699703dd33ce763aa74ac5 --- /dev/null +++ b/energy_communities_service_invoicing/views/account_move_views.xml @@ -0,0 +1,32 @@ +<odoo> + <record id="account_move_search" model="ir.ui.view"> + <field name="name">account.move search view (in service invoicing)</field> + <field name="model">account.move</field> + <field name="inherit_id" ref="account.view_account_invoice_filter" /> + <field name="arch" type="xml"> + <filter name="groupy_by_partner" position="after"> + <filter + string="Related community" + name="group_by_related_community" + domain="[]" + context="{'group_by':'related_community_company_id'}" + /> + </filter> + </field> + </record> + <record id="account_move_form" model="ir.ui.view"> + <field name="name">account.move.form.inherit</field> + <field name="model">account.move</field> + <field name="inherit_id" ref="account.view_move_form" /> + <field name="arch" type="xml"> + <xpath expr="//field[@name='partner_id']" position="after"> + <field name="pack_type" /> + <field name="is_contract" invisible="True" /> + <field name="invoice_origin" attrs="{'invisible': [('is_contract','=',False)]}" /> + <field name="related_contract_id" attrs="{'invisible': [('is_contract','=',False)]}" /> + <field name="related_community_company_id" attrs="{'invisible': [('pack_type' ,'!=', 'platform_pack')]}" /> + </xpath> + </field> + </record> +</odoo> + diff --git a/energy_communities_service_invoicing/views/contract_line_formula_views.xml b/energy_communities_service_invoicing/views/contract_line_formula_views.xml new file mode 100644 index 0000000000000000000000000000000000000000..10fcf10c7bc62d4f8e1ce832e486d0a14d3b926f --- /dev/null +++ b/energy_communities_service_invoicing/views/contract_line_formula_views.xml @@ -0,0 +1,12 @@ +<odoo> + <record id="view_contract_line_qty_formula_form" model="ir.ui.view"> + <field name="name">contract.line.qty.formula form(in energy_communities service_invoicing)</field> + <field name="model">contract.line.qty.formula</field> + <field name="inherit_id" ref="contract_variable_quantity.view_contract_line_qty_formula_form" /> + <field name="arch" type="xml"> + <xpath expr="//field[@name='code']" position="before"> + <field name="company_id" /> + </xpath> + </field> + </record> +</odoo> diff --git a/energy_communities_service_invoicing/views/contract_template_views.xml b/energy_communities_service_invoicing/views/contract_template_views.xml new file mode 100644 index 0000000000000000000000000000000000000000..6a8ec84f798879c2e79138d39234a9c7b9734a7d --- /dev/null +++ b/energy_communities_service_invoicing/views/contract_template_views.xml @@ -0,0 +1,13 @@ +<odoo> +<record id="contract_template_form_view" model="ir.ui.view"> + <field name="name">contract.template form view (in energy_communities service_invoicing)</field> + <field name="model">contract.template</field> + <field name="inherit_id" ref="contract.contract_template_form_view" /> + <field name="arch" type="xml"> + <xpath expr="//field[@name='contract_type']" position="after"> + <field name="pack_type" /> + <field name="is_free_pack" /> + </xpath> + </field> +</record> +</odoo> diff --git a/energy_communities_service_invoicing/views/contract_views.xml b/energy_communities_service_invoicing/views/contract_views.xml new file mode 100644 index 0000000000000000000000000000000000000000..fc0b5473de38e062ce488584d6167b9e11ad9599 --- /dev/null +++ b/energy_communities_service_invoicing/views/contract_views.xml @@ -0,0 +1,171 @@ +<odoo> + + <record id="contract_contract_search_view" model="ir.ui.view"> + <field name="name">contract.contract search view (in service invoicing)</field> + <field name="model">contract.contract</field> + <field name="inherit_id" ref="contract.contract_contract_search_view" /> + <field name="arch" type="xml"> + <filter name="not_finished" position="before"> + <filter + name="paused" + string="Paused" + domain="[('status','=','paused')]" + /> + <!--<separator />--> + </filter> + <filter name="not_finished" position="attributes"> + <attribute name="domain">[('status','=','in_progress')]</attribute> + </filter> + <filter name="finished" position="before"> + <filter + name="closed_planned" + string="Planned closure" + domain="[('status','=','closed_planned')]" + /> + <!--<separator />--> + </filter> + <filter name="finished" position="attributes"> + <attribute name="string">Closed</attribute> + <attribute name="domain">[('status','=','closed')]</attribute> + </filter> + </field> + </record> + + <record id="view_service_invoicing_tree" model="ir.ui.view"> + <field name="name">service.invoicing.tree</field> + <field name="model">contract.contract</field> + <field name="type">tree</field> + <field name="arch" type="xml"> + <tree> + <field name="name" /> + <field + name="status" + widget="badge" + decoration-info="status == 'paused'" + decoration-danger="status == 'closed'" + decoration-warning="status == 'closed_planned'" + decoration-success="status == 'in_progress'" + /> + <field name="partner_id" /> + <field name="community_company_id" attrs="{'invisible': [('pack_type', '!=', 'platform_pack')]}" /> + <field name="pack_id" /> + <field name="pack_type" /> + </tree> + </field> + </record> + + <record id="view_contract_contract_customer_form_platform_admin" model="ir.ui.view"> + <field name="name">contract.contract.form (in energy_communities service_invoicing platform admin)</field> + <field name="model">contract.contract</field> + <field name="inherit_id" ref="product_contract.contract_contract_customer_form_view" /> + <field name="arch" type="xml"> + <xpath expr="//header" position="inside"> + <field name="status" widget="statusbar" /> + </xpath> + <xpath expr="//button[@name='action_preview']" position="after"> + <button + name="action_activate_contract" + type="object" + string="Activate" + attrs="{'invisible':['|',('status','not in',['paused']),('pack_type','!=','platform_pack')]}" + /> + <button + name="action_modify_contract" + type="object" + string="Modify" + attrs="{'invisible':['|',('status','not in',['paused','in_progress']),('pack_type','!=','platform_pack')]}" + /> + <button + name="action_close_contract" + type="object" + string="Close" + attrs="{'invisible':['|',('status','not in',['paused','in_progress']),('pack_type','!=','platform_pack')]}" + /> + <button + name="action_reopen_contract" + type="object" + string="Reopen" + attrs="{'invisible':['|','|',('status','not in',['closed','closed_planned']),('successor_contract_id','!=',False),('pack_type','!=','platform_pack')]}" + /> + </xpath> + <xpath expr="//field[@name='partner_id']" position="after"> + <field name="community_company_id" attrs="{'invisible': [('pack_type','!=','platform_pack')]}"/> + </xpath> + <xpath expr="//field[@name='pricelist_id']" position="after"> + <field name="pack_id" attrs="{'invisible': [('pack_type','!=','platform_pack')]}" /> + <field name="pack_type" attrs="{'invisible': [('pack_type','!=','platform_pack')]}" /> + </xpath> + <xpath expr="//field[@name='user_id']" position="after"> + <field name="date_start" /> + <field name="last_date_invoiced" /> + <field name="recurring_next_date" /> + <field name="date_end" /> + <field name="discount" /> + <field name="predecessor_contract_id" attrs="{'invisible': [('pack_type','!=','platform_pack')]}" /> + <field name="successor_contract_id" attrs="{'invisible': [('pack_type','!=','platform_pack')]}" /> + <field name="closing_action" attrs="{'invisible':['|',('status','not in',['closed','closed_planned']),('pack_type','!=','platform_pack')]}" /> + <field name="closing_action_description" attrs="{'invisible':['|',('status','not in',['closed','closed_planned']),('pack_type','!=','platform_pack')]}" /> + <field name="sale_order_id" attrs="{'invisible': [('pack_type','!=','platform_pack')]}" /> + </xpath> + </field> + </record> + + <record id="view_contract_contract_customer_form_coord_admin" model="ir.ui.view"> + <field name="name">contract.contract.form (in energy_communities service_invoicing coordinator)</field> + <field name="model">contract.contract</field> + <field name="arch" type="xml"> + <form edit="false" create="false" delete="false"> + <header> + <field name="status" widget="statusbar" /> + </header> + <sheet> + <!--TODO: Not working: redirect to invoices issued menu --> + <!--<div class="oe_button_box" name="button_box">--> + <!-- <button--> + <!-- name="action_show_received_invoices"--> + <!-- type="object"--> + <!-- icon="fa-list"--> + <!-- class="oe_stat_button"--> + <!-- >--> + <!-- <field--> + <!-- string="Invoices"--> + <!-- name="received_invoices_count"--> + <!-- widget="statinfo"--> + <!-- />--> + <!-- </button>--> + <!--</div>--> + <group> + <field name="name" /> + <field name="pack_id" options="{'no_open': True}" /> + <field name="pack_type" /> + <field name="related_contract_product_ids" widget="one2many" > + <tree editable="bottom"> + <field name="name" readonly="1"/> + </tree> + <form> + <field name="name" readonly="1"/> + </form> + </field> + <field name="pricelist_id" /> + <field name="discount" /> + <!--TODO: Instead of contract template id we must show related service products --> + </group> + <group> + <field name="date_start" /> + <field name="last_date_invoiced" /> + <field name="recurring_next_date" /> + <field name="date_end" attrs="{'invisible': [('status','!=','closed')]}" /> + </group> + <group> + <field name="predecessor_contract_id" /> + <field name="successor_contract_id" attrs="{'invisible':['|',('status','not in',['closed','closed_planned']),('successor_contract_id','!=',False)]}" /> + <field name="closing_action" attrs="{'invisible':[('status','not in',['closed','closed_planned'])]}" /> + <field name="closing_action_description" attrs="{'invisible':[('status','not in',['closed','closed_planned'])]}" /> + </group> + </sheet> + </form> + </field> + </record> + + +</odoo> diff --git a/energy_communities_service_invoicing/views/menus.xml b/energy_communities_service_invoicing/views/menus.xml new file mode 100644 index 0000000000000000000000000000000000000000..644a24b102fafce967ba56f555371cf9dad7e8ff --- /dev/null +++ b/energy_communities_service_invoicing/views/menus.xml @@ -0,0 +1,100 @@ +<odoo> + <menuitem + id="ce_service_invoicing_menu" + name="Services" + parent="energy_communities.ce_root_menu" + sequence="1" + groups="energy_communities.role_platform_admin_res_groups,energy_communities.role_coord_admin_res_groups" + /> + + + <menuitem + name="Activity" + id="view_service_invoicing_activity_menu" + parent="ce_service_invoicing_menu" + sequence="100" + > + <menuitem + name="Service Contracts" + id="view_service_invoicing_menu_platform_manager" + action="view_service_invoicing_window_platform_manager" + groups="energy_communities.role_platform_admin_res_groups" + sequence="100" + /> + <menuitem + name="Service Contracts" + id="view_service_invoicing_menu_coord_admin" + action="view_service_invoicing_window_coord_admin" + groups="energy_communities.role_coord_admin_res_groups" + sequence="100" + /> + + <menuitem + name="Service invoices issued" + id="view_service_invoices_issued_menu" + action="view_service_invoices_issued_act_window" + groups="energy_communities.role_platform_admin_res_groups" + sequence="500" + /> + <menuitem + name="Service invoices received" + id="view_service_invoices_received_menu" + action="view_service_invoices_received_act_window" + groups="energy_communities.role_platform_admin_res_groups,energy_communities.role_coord_admin_res_groups,energy_communities.role_coord_worker_res_groups" + sequence="500" + /> + <menuitem + name="Service actions (sale orders)" + id="view_service_sale_orders_menu" + action="view_service_sale_orders_window" + groups="energy_communities.role_platform_admin_res_groups" + sequence="550" + /> + + </menuitem> + + <menuitem + name="Configuration" + id="view_service_invoicing_configuration_menu" + parent="ce_service_invoicing_menu" + sequence="200" + > + <menuitem + name="Platform Services" + id="view_services_menu" + action="view_services_window" + groups="energy_communities.role_platform_admin_res_groups,energy_communities.role_coord_admin_res_groups" + sequence="200" + /> + <menuitem + name="Service Packs" + id="view_service_packs_menu" + action="view_service_packs_window" + groups="energy_communities.role_platform_admin_res_groups,energy_communities.role_coord_admin_res_groups" + sequence="300" + /> + <menuitem + name="Service Packs templates" + id="view_service_contract_templates_menu" + action="view_service_contract_templates_window" + groups="energy_communities.role_platform_admin_res_groups" + sequence="400" + /> + </menuitem> + + <menuitem + name="Assistants" + id="view_service_invoicing_assistants_menu" + parent="ce_service_invoicing_menu" + groups="energy_communities.role_platform_admin_res_groups" + sequence="300" + > + <menuitem + id="service_invoicing_action_create_wizard_menu" + name="Assign pack to community" + action="service_invoicing_action_create_wizard_action" + groups="energy_communities.role_platform_admin_res_groups" + sequence="100" + /> + </menuitem> +</odoo> diff --git a/energy_communities_service_invoicing/views/res_company_views.xml b/energy_communities_service_invoicing/views/res_company_views.xml new file mode 100644 index 0000000000000000000000000000000000000000..97e3c0b2c0fda756f446d2a3a7f0ff34e30f677e --- /dev/null +++ b/energy_communities_service_invoicing/views/res_company_views.xml @@ -0,0 +1,30 @@ +<odoo> + <record id="service_invoicing_action_create_wizard_from_company_action" model="ir.actions.server"> + <field name="name">Assign pack to community</field> + <field name="binding_model_id" ref="model_res_company" /> + <field name="model_id" ref="model_service_invoicing_action_create_wizard" /> + <field name="binding_type">action</field> + <field name="state">code</field> + <field name="groups_id" eval="[(4,ref('energy_communities.group_platform_manager'))]" /> + <field name="code"> + action = model.get_multiple_service_invoicing_action_create_wizard_form_view() + </field> + </record> + <record id="view_service_invocing_company_form" model="ir.ui.view"> + <field name="name">service.invoicing.res.company.form.inherit</field> + <field name="model">res.company</field> + <field name="inherit_id" ref="base.view_company_form" /> + <field name="arch" type="xml"> + <xpath expr="//notebook" position="inside"> + <page string="Services Invoicing"> + <group> + <field name="id" invisible="1"/> + <field name="service_invoicing_sale_journal_id" domain="[('company_id', '=', id)]" /> + <field name="service_invoicing_purchase_journal_id" domain="[('company_id', '=', id)]" /> + <field name="service_invoicing_sale_team_id" domain="[('company_id', '=', id)]" /> + </group> + </page> + </xpath> + </field> + </record> +</odoo> diff --git a/energy_communities_service_invoicing/views/res_partner_views.xml b/energy_communities_service_invoicing/views/res_partner_views.xml new file mode 100644 index 0000000000000000000000000000000000000000..3054185395e839c82d80c7035d22eb7dc6c0aed6 --- /dev/null +++ b/energy_communities_service_invoicing/views/res_partner_views.xml @@ -0,0 +1,14 @@ +<odoo> + <record id="view_partner_form" model="ir.ui.view"> + <field name="name">view_partner_form</field> + <field name="model">res.partner</field> + <field name="inherit_id" ref="base.view_partner_form" /> + <field name="arch" type="xml"> + <xpath expr="//field[@name='vat']" position="after"> + <field name="company_hierarchy_level" invisible="1" /> + <field name="platform_pack_id" attrs="{'invisible': [('company_hierarchy_level', '!=', 'community')]}" options="{'no_open': True}" /> + <field name="platform_pack_contract_status" attrs="{'invisible': [('company_hierarchy_level', '!=', 'community')]}" /> + </xpath> + </field> + </record> +</odoo> diff --git a/energy_communities_service_invoicing/views/sale_order_views.xml b/energy_communities_service_invoicing/views/sale_order_views.xml new file mode 100644 index 0000000000000000000000000000000000000000..632add91bb61e7063e4589a315c338469a90ea80 --- /dev/null +++ b/energy_communities_service_invoicing/views/sale_order_views.xml @@ -0,0 +1,19 @@ +<odoo> + <record id="ec_view_order_form" model="ir.ui.view"> + <field name="name">sale.order.form (in energy_communities service_invoicing)</field> + <field name="model">sale.order</field> + <field name="inherit_id" ref="sale.view_order_form" /> + <field name="arch" type="xml"> + <xpath expr="//field[@name='partner_id']" position="before"> + <field name="service_invoicing_action" readonly="1" /> + <field + name="service_invoicing_action_description" + attrs="{'readonly': 1,'invisible': [('service_invoicing_action','not in', ['modification','activate'])]}" + /> + </xpath> + <xpath expr="//field[@name='company_id']" position="attributes"> + <attribute name="required">0</attribute> + </xpath> + </field> + </record> +</odoo> diff --git a/energy_communities_service_invoicing/views/service_invoicing_views.xml b/energy_communities_service_invoicing/views/service_invoicing_views.xml new file mode 100644 index 0000000000000000000000000000000000000000..ab73851f9120d719232f171b8ae6a21e7cad1649 --- /dev/null +++ b/energy_communities_service_invoicing/views/service_invoicing_views.xml @@ -0,0 +1,118 @@ +<odoo> + <record + id="view_service_invoicing_window_platform_manager" + model="ir.actions.act_window" + > + <field name="name">Service Contracts</field> + <field name="res_model">contract.contract</field> + <field name="view_mode">tree,form</field> + <field name="domain">[('community_company_id','!=',False)]</field> + <field name="context">{"search_default_not_finished":1,"search_default_paused":1}</field> + </record> + <record + id="action_view_service_invoicing_tree_platform_manager" + model="ir.actions.act_window.view" + > + <field name="view_mode">tree</field> + <field name="view_id" ref="view_service_invoicing_tree"/> + <field name="act_window_id" ref="view_service_invoicing_window_platform_manager"/> + </record> + <record + id="action_view_contract_contract_customer_form_platform_manager" + model="ir.actions.act_window.view" + > + <field name="view_mode">form</field> + <field name="view_id" ref="view_contract_contract_customer_form_platform_admin"/> + <field name="act_window_id" ref="view_service_invoicing_window_platform_manager"/> + </record> + + <record + id="view_service_invoicing_window_coord_admin" + model="ir.actions.act_window" + > + <field name="name">Service Contracts</field> + <field name="res_model">contract.contract</field> + <field name="view_mode">tree,form</field> + <field name="domain">[('community_company_id','!=',False)]</field> + <field name="context">{"search_default_not_finished":1,"search_default_paused":1}</field> + </record> + <record + id="action_view_service_invoicing_tree_coord_admin" + model="ir.actions.act_window.view" + > + <field name="view_mode">tree</field> + <field name="view_id" ref="view_service_invoicing_tree"/> + <field name="act_window_id" ref="view_service_invoicing_window_coord_admin"/> + </record> + <record + id="action_view_contract_contract_customer_form_coord_admin" + model="ir.actions.act_window.view" + > + <field name="view_mode">form</field> + <field name="view_id" ref="view_contract_contract_customer_form_coord_admin"/> + <field name="act_window_id" ref="view_service_invoicing_window_coord_admin"/> + </record> + + <record + id="view_service_packs_window" + model="ir.actions.act_window" + > + <field name="name">Packs</field> + <field name="res_model">product.template</field> + <field name="view_mode">tree,form</field> + <field name="domain" eval="[('categ_id','=',ref('product_category_platform_pack'))]" /> + </record> + + <record + id="view_services_window" + model="ir.actions.act_window" + > + <field name="name">Services</field> + <field name="res_model">product.template</field> + <field name="view_mode">tree,form</field> + <field name="domain" eval="[('categ_id','=',ref('product_category_platform_service'))]" /> + </record> + + <record + id="view_service_contract_templates_window" + model="ir.actions.act_window" + > + <field name="name">Packs contract templates</field> + <field name="res_model">contract.template</field> + <field name="view_mode">tree,form</field> + <field name="domain">[('pack_type', '=', 'platform_pack')]</field> + </record> + + <record + id="view_service_invoices_issued_act_window" + model="ir.actions.act_window" + > + <field name="name">Service invoices (issued)</field> + <field name="res_model">account.move</field> + <field name="view_mode">tree,form</field> + <field name="domain" eval="[('move_type', 'in', ['out_invoice', 'out_refund']), ('pack_type', '=', 'platform_pack')]"/> + <field name="context">{"default_move_type": "out_invoice","search_default_group_by_related_community":1}</field> + </record> + + <record + id="view_service_invoices_received_act_window" + model="ir.actions.act_window" + > + <field name="name">Service invoices (received)</field> + <field name="res_model">account.move</field> + <field name="view_mode">tree,form</field> + <field name="domain" eval="[('move_type', 'in', ['in_invoice', 'in_refund']), ('pack_type', '=', 'platform_pack')]"/> + <field name="context">{"default_move_type": "in_invoice","search_default_group_by_related_community":1}</field> + </record> + + <record + id="view_service_sale_orders_window" + model="ir.actions.act_window" + > + <field name="name">Service actions (sale orders)</field> + <field name="res_model">sale.order</field> + <field name="view_mode">tree,form</field> + <field name="domain">[('service_invoicing_action','!=','none')]</field> + </record> + +</odoo> diff --git a/energy_communities_service_invoicing/wizards/__init__.py b/energy_communities_service_invoicing/wizards/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..a584830823e1a5302ceb5bf0840d0f0d6217379b --- /dev/null +++ b/energy_communities_service_invoicing/wizards/__init__.py @@ -0,0 +1,2 @@ +from . import service_invoicing_action +from . import service_invoicing_action_create diff --git a/energy_communities_service_invoicing/wizards/service_invoicing_action.py b/energy_communities_service_invoicing/wizards/service_invoicing_action.py new file mode 100644 index 0000000000000000000000000000000000000000..a2778ad123c9a4434e02a1c412125fef1049c5f0 --- /dev/null +++ b/energy_communities_service_invoicing/wizards/service_invoicing_action.py @@ -0,0 +1,92 @@ +from odoo import api, fields, models +from odoo.exceptions import ValidationError +from odoo.tools.translate import _ + +from odoo.addons.energy_communities.utils import contract_utils + +from ..utils import ( + _SERVICE_INVOICING_EXECUTED_ACTION_VALUES, + service_invoicing_form_view_for_platform_admins, +) + + +class ServiceInvoicingActionWizard(models.TransientModel): + _name = "service.invoicing.action.wizard" + _description = "Execute actions on service invoicing" + + service_invoicing_id = fields.Many2one( + "contract.contract", string="Selected contract" + ) + execution_date = fields.Date(string="Execution date") + executed_action = fields.Selection( + selection=_SERVICE_INVOICING_EXECUTED_ACTION_VALUES + ) + pricelist_id = fields.Many2one("product.pricelist", string="Select pricelist") + pack_id = fields.Many2one("product.product", string="Pack") + discount = fields.Float(string="Discount (%)", digits="Discount") + payment_mode_id = fields.Many2one("account.payment.mode", string="Payment mode") + pack_type = fields.Selection(related="service_invoicing_id.pack_type") + + def execute_activate(self): + with contract_utils(self.env, self.service_invoicing_id) as component: + component.set_contract_status_active(self.execution_date) + + def execute_close(self): + with contract_utils(self.env, self.service_invoicing_id) as component: + component.set_contract_status_closed(self.execution_date) + + def execute_modify(self): + self._validate_execute_modify() + executed_modification_action = self._build_executed_modification_action() + with contract_utils(self.env, self.service_invoicing_id) as component: + service_invoicing_id = component.modify( + self.execution_date, + executed_modification_action, + self.pricelist_id, + self.pack_id, + self.discount, + self.payment_mode_id, + ) + return service_invoicing_form_view_for_platform_admins( + self.env, service_invoicing_id + ) + + def execute_reopen(self): + with contract_utils(self.env, self.service_invoicing_id) as component: + service_invoicing_id = component.reopen( + self.execution_date, + self.pricelist_id, + self.pack_id, + self.discount, + self.payment_mode_id, + ) + return service_invoicing_form_view_for_platform_admins( + self.env, service_invoicing_id + ) + + def _validate_execute_modify(self): + if ( + not self.pricelist_id + and not self.pack_id + and not self.payment_mode_id + and self.discount == self.service_invoicing_id.discount + ): + raise ValidationError(_("Select at least one value to modify")) + + def _build_executed_modification_action(self): + executed_modification_action = "" + if self.pricelist_id: + executed_modification_action += "modify_pricelist" + if self.pack_id: + if bool(executed_modification_action): + executed_modification_action += "," + executed_modification_action += "modify_pack" + if self.payment_mode_id: + if bool(executed_modification_action): + executed_modification_action += "," + executed_modification_action += "modify_payment_mode" + if self.discount != self.service_invoicing_id.discount: + if bool(executed_modification_action): + executed_modification_action += "," + executed_modification_action += "modify_discount" + return executed_modification_action diff --git a/energy_communities_service_invoicing/wizards/service_invoicing_action.xml b/energy_communities_service_invoicing/wizards/service_invoicing_action.xml new file mode 100644 index 0000000000000000000000000000000000000000..f5585a315c3323ffda156ec121f362518e79c4b6 --- /dev/null +++ b/energy_communities_service_invoicing/wizards/service_invoicing_action.xml @@ -0,0 +1,101 @@ +<odoo> + <record + id="view_service_invoicing_action_wizard_form" + model="ir.ui.view" + > + <field name="name">service.invoicing.action.wizard.form</field> + <field name="model">service.invoicing.action.wizard</field> + <field name="arch" type="xml"> + <form string="Execute a service invoicing action"> + <sheet> + <group> + <field name="executed_action" invisible="1" /> + <field name="pack_type" invisible="1" /> + <field + name="service_invoicing_id" + required="1" + readonly="1" + domain="[('community_company_id','!=',False)]" + options="{'no_open': True}" + /> + <field name="execution_date" required="1"/> + <field + name="pack_id" + domain="[('pack_type','=', pack_type)]" + attrs="{ + 'invisible': [('executed_action','not in',['modification','reopen'])], + 'required': [('executed_action','=','reopen')] + }" + /> + <field + name="pricelist_id" + attrs="{ + 'invisible': [('executed_action','not in',['modification','reopen'])], + 'required': [('executed_action','=','reopen')] + }" + /> + <field + name="payment_mode_id" + attrs="{ + 'invisible': [('executed_action','not in',['modification','reopen'])], + 'required': [('executed_action','=','reopen')] + }" + /> + <field + name="discount" + attrs="{ + 'invisible': [('executed_action','not in',['modification','reopen'])], + 'required': [('executed_action','=','reopen')] + }" + /> + </group> + </sheet> + <footer> + <button + name="execute_activate" + string="activate contract" + type="object" + class="btn-primary" + attrs="{'invisible': [('executed_action','!=','activate')]}" + /> + <button + name="execute_modify" + string="modify" + type="object" + class="btn-primary" + attrs="{'invisible': [('executed_action','!=','modification')]}" + /> + <button + name="execute_close" + string="close contract" + type="object" + class="btn-primary" + attrs="{'invisible': [('executed_action','!=','close')]}" + /> + <button + name="execute_reopen" + string="reopen contract" + type="object" + class="btn-primary" + attrs="{'invisible': [('executed_action','!=','reopen')]}" + /> + <button + special="cancel" + string="Cancelar" + class="btn-secondary" + /> + </footer> + </form> + </field> + </record> + <record + model="ir.actions.act_window" + id="service_invoicing_action_wizard_action" + > + <field name="name">Service invoicing actions</field> + <field name="res_model">service.invoicing.action.wizard</field> + <field name="view_mode">form</field> + <field name="target">new</field> + </record> + +</odoo> diff --git a/energy_communities_service_invoicing/wizards/service_invoicing_action_create.py b/energy_communities_service_invoicing/wizards/service_invoicing_action_create.py new file mode 100644 index 0000000000000000000000000000000000000000..d0c8030473b1bd5e63b70c0a661beb9f56002230 --- /dev/null +++ b/energy_communities_service_invoicing/wizards/service_invoicing_action_create.py @@ -0,0 +1,209 @@ +from odoo import api, fields, models +from odoo.exceptions import ValidationError +from odoo.tools.translate import _ + +from odoo.addons.energy_communities.utils import ( + contract_utils, + sale_order_utils, +) + +from ..utils import ( + get_existing_last_closed_pack_contract, + get_existing_open_pack_contract, + raise_existing_same_open_platform_pack_contract_error, + service_invoicing_form_view_for_platform_admins, + service_invoicing_tree_view, +) + + +class ServiceInvoicingActionCreateWizard(models.TransientModel): + _name = "service.invoicing.action.create.wizard" + _description = "Create service invoicing for an energy community" + _inherit = ["user.currentcompany.mixin"] + + creation_type = fields.Selection( + [("single", "Single"), ("multiple", "Multiple")], default="single" + ) + execution_date = fields.Date(string="Execution date") + company_id = fields.Many2one("res.company", string="Coordinator") + community_company_id = fields.Many2one( + "res.company", + string="Community", + domain="[('id', 'in', allowed_community_company_ids)]", + ) + community_company_mids = fields.Many2many( + comodel_name="res.company", + ) + platform_pack_id = fields.Many2one( + "product.product", + string="Platform service pack", + ) + payment_mode_id = fields.Many2one( + "account.payment.mode", + string="Payment mode", + domain="[('id', 'in', allowed_payment_mode_ids)]", + ) + pricelist_id = fields.Many2one("product.pricelist", string="PriceList") + discount = fields.Float(string="Discount (%)", digits="Discount", default=0) + + allowed_community_company_ids = fields.Many2many( + comodel_name="res.company", + compute="_compute_allowed_community_company_ids", + store=False, + ) + allowed_payment_mode_ids = fields.Many2many( + comodel_name="account.payment.mode", + compute="_compute_allowed_payment_mode_ids", + store=False, + ) + platform_pack_product_categ_id = fields.Many2one( + "product.category", + compute="_compute_platform_pack_product_categ_id", + store=False, + ) + + def _compute_platform_pack_product_categ_id(self): + for record in self: + record.platform_pack_product_categ_id = self.env.ref( + "energy_communities_service_invoicing.product_category_platform_pack" + ).id + + @api.depends("company_id", "community_company_mids") + def _compute_allowed_community_company_ids(self): + for record in self: + query = [("hierarchy_level", "=", "community")] + if record.community_company_mids: + query.append(("parent_id", "=", self.user_current_company.id)) + else: + query.append(("parent_id", "=", record.company_id.id)) + record.allowed_community_company_ids = self.env["res.company"].search(query) + + @api.depends("company_id", "community_company_mids") + def _compute_allowed_payment_mode_ids(self): + for record in self: + record.allowed_payment_mode_ids = self.env["account.payment.mode"].search( + [("company_id", "=", self.user_current_company.id)] + ) + + @api.onchange("company_id") + def _compute_service_invoicing_action_create_wizard_allowed_values(self): + for record in self: + record._compute_platform_pack_product_categ_id() + record._compute_allowed_community_company_ids() + record._compute_allowed_payment_mode_ids() + + def execute_create(self): + if self.creation_type == "multiple": + for community in self.community_company_mids: + self._execute_create_one( + community, + community.parent_id, + ) + return service_invoicing_tree_view(self.env) + else: + service_invoicing_id = self._execute_create_one( + self.community_company_id, self.company_id, self.payment_mode_id + ) + return service_invoicing_form_view_for_platform_admins( + self.env, service_invoicing_id + ) + + def _execute_create_one( + self, community_company_id, company_id, payment_mode_id=False + ): + self._validate_service_invoicing_action_create([community_company_id.id]) + existing_closed_contract = get_existing_last_closed_pack_contract( + self.env, company_id.partner_id, community_company_id + ) + # If existing closed contract reopen it + if existing_closed_contract: + with contract_utils(self.env, existing_closed_contract) as component: + service_invoicing_id = component.reopen( + self.execution_date, + self.pricelist_id, + self.platform_pack_id, + self.discount, + payment_mode_id, + ) + # If none of previous create a new contract + else: + with sale_order_utils(self.env) as component: + # TODO: pass community_company_id as metadata + service_invoicing_id = component.create_service_invoicing_initial( + company_id, + self.platform_pack_id, + self.pricelist_id, + self.execution_date, + "activate", + "active_platform_service_invocing", + payment_mode_id, + { + "community_company_id": community_company_id.id, + "discount": self.discount, + }, + ) + return service_invoicing_id + + def get_multiple_service_invoicing_action_create_wizard_form_view(self): + if "active_ids" in self.env.context.keys(): + self._validate_service_invoicing_action_create( + self.env.context["active_ids"] + ) + self._validate_service_invoicing_action_create_multicommunity( + self.env.context["active_ids"] + ) + wizard = self.env["service.invoicing.action.create.wizard"].create( + { + "creation_type": "multiple", + "community_company_mids": self.env.context["active_ids"], + } + ) + return { + "type": "ir.actions.act_window", + "res_model": "service.invoicing.action.create.wizard", + "views": [ + ( + self.env.ref( + "energy_communities_service_invoicing.view_service_invoicing_action_create_wizard_form" + ).id, + "form", + ), + ], + "target": "new", + "res_id": wizard.id, + } + return False + + def _validate_service_invoicing_action_create(self, company_id_list): + if self.env.company.hierarchy_level != "instance": + raise ValidationError( + _("This action is only allowed when you're on instance level.") + ) + impacted_records = self.env["res.company"].browse(company_id_list) + # Check all selected companies are communities + hierarchy_levels = list(set(impacted_records.mapped("hierarchy_level"))) + if len(hierarchy_levels) > 1 or hierarchy_levels[0] != "community": + raise ValidationError(_("You can only assign pack to communities")) + # Check if already open one and raise error + for record in impacted_records: + existing_contract = get_existing_open_pack_contract( + self.env, + record.parent_id.partner_id, + "platform_pack", + contract_id=False, + custom_query=[("community_company_id", "=", record.id)], + ) + + if existing_contract: + raise_existing_same_open_platform_pack_contract_error(existing_contract) + + def _validate_service_invoicing_action_create_multicommunity(self, company_id_list): + impacted_records = self.env["res.company"].browse(company_id_list) + # check all communities have coordinator defined + for record in impacted_records: + if not record.parent_id: + raise ValidationError( + _("Community {} must have a parent coordinator defined").format( + record.name + ) + ) diff --git a/energy_communities_service_invoicing/wizards/service_invoicing_action_create.xml b/energy_communities_service_invoicing/wizards/service_invoicing_action_create.xml new file mode 100644 index 0000000000000000000000000000000000000000..69cfde32f67b6b8c02cc82cda66e3ca2a7a576e6 --- /dev/null +++ b/energy_communities_service_invoicing/wizards/service_invoicing_action_create.xml @@ -0,0 +1,73 @@ +<odoo> + <record + id="view_service_invoicing_action_create_wizard_form" + model="ir.ui.view" + > + <field name="name">service.invoicing.action.create.wizard.form</field> + <field name="model">service.invoicing.action.create.wizard</field> + <field name="arch" type="xml"> + <form string="Service Contract"> + <sheet> + <group> + <field name="creation_type" invisible="1" /> + <field name="allowed_community_company_ids" invisible="1" /> + <field name="allowed_payment_mode_ids" invisible="1" /> + <field name="platform_pack_product_categ_id" invisible="1" /> + <field name="execution_date" required="1"/> + <field + name="company_id" + domain="[('hierarchy_level','=','coordinator')]" + attrs="{'invisible':[('creation_type','=','multiple')],'required':[('creation_type','=','single')]}" + /> + <field + name="community_company_id" + attrs="{'invisible':[('creation_type','=','multiple')],'required':[('creation_type','=','single')]}" + /> + <field + name="community_company_mids" + attrs="{'invisible':[('creation_type','=','single')],'required':[('creation_type','=','multiple')]}" + widget="many2many" + > + <tree> + <field name="name"/> + <field name="parent_id"/> + </tree> + </field> + <field name="platform_pack_id" + domain="[('categ_id','=', platform_pack_product_categ_id)]" + required="1" + /> + <field name="pricelist_id" required="1" domain="[('company_id','=',False)]"/> + <field + name="payment_mode_id" + attrs="{'invisible':[('creation_type','=','multiple')]}" + /> + <field name="discount" required="1" /> + </group> + </sheet> + <footer> + <button + name="execute_create" + string="create" + type="object" + class="btn-primary" + /> + <button + string="Cancelar" + class="btn-secondary" + special="cancel" + /> + </footer> + </form> + </field> + </record> + <record + model="ir.actions.act_window" + id="service_invoicing_action_create_wizard_action" + > + <field name="name">Assign pack to community</field> + <field name="res_model">service.invoicing.action.create.wizard</field> + <field name="view_mode">form</field> + <field name="target">new</field> + </record> +</odoo> diff --git a/energy_selfconsumption/__manifest__.py b/energy_selfconsumption/__manifest__.py index b944919ba95f53ca36d059a82c74c347c2ec0e2e..39544c56cd9b5d2e14fa2473e4b875f39877bb59 100644 --- a/energy_selfconsumption/__manifest__.py +++ b/energy_selfconsumption/__manifest__.py @@ -9,7 +9,7 @@ "author": "Coopdevs Treball SCCL & Som Energia SCCL", "website": "https://coopdevs.org", "category": "Customizations", - "version": "16.0.0.1.7", + "version": "16.0.0.2.1", "license": "AGPL-3", "depends": [ "base", @@ -26,6 +26,7 @@ "web_m2x_options", "l10n_es", "report_csv", + "energy_communities_service_invoicing", ], "external_dependencies": { "python": ["pandas>=2.0.3", "numpy>=1.24.4", "openupgradelib>=3.6.1"] @@ -41,6 +42,7 @@ "data/mail_template.xml", "data/ir_attachment_data.xml", "data/ir_cron.xml", + "data/product_data.xml", "views/contract_views.xml", "views/selfconsumption_views.xml", "views/supply_point_views.xml", @@ -59,6 +61,7 @@ "wizards/change_state_inscription_wizard_views.xml", "reports/selfconsumption_reports.xml", "reports/invoice_template.xml", + "wizards/change_distribution_table_import_wizard.xml", ], "demo": [ "demo/energy_selfconsumption_demo.xml", diff --git a/energy_selfconsumption/data/contract_line_qty_formula_data.xml b/energy_selfconsumption/data/contract_line_qty_formula_data.xml index b5f974949a4e8b775c1fc73174df4edf1e8f7f4b..289add01cd5b6ea2171faf654e3749ab162ea8e0 100644 --- a/energy_selfconsumption/data/contract_line_qty_formula_data.xml +++ b/energy_selfconsumption/data/contract_line_qty_formula_data.xml @@ -12,6 +12,7 @@ else: days_between = 0 result = contract.supply_point_assignation_id.distribution_table_id.selfconsumption_project_id.power * contract.supply_point_assignation_id.coefficient * days_between </field> + <field name="company_id" eval="ref('base.main_company')" /> </record> <record id="energy_delivered_formula" model="contract.line.qty.formula"> <field name="name">Energy Delivered Formula</field> @@ -21,6 +22,7 @@ if 'energy_delivered' in context: energy_delivered = context['energy_delivered'] result = energy_delivered * contract.supply_point_assignation_id.coefficient </field> + <field name="company_id" eval="ref('base.main_company')" /> </record> <record id="energy_delivered_variable_formula" @@ -30,6 +32,7 @@ result = energy_delivered * contract.supply_point_assignation_id.coefficient <field name="code"> result = 0 </field> + <field name="company_id" eval="ref('base.main_company')" /> </record> </data> </odoo> diff --git a/energy_selfconsumption/data/mail_template.xml b/energy_selfconsumption/data/mail_template.xml index c74f4cfdcdfc2239c8b09d26a3a3538e213c53cc..ed0e7716701404847ce365ea8186bc84e7e8938a 100644 --- a/energy_selfconsumption/data/mail_template.xml +++ b/energy_selfconsumption/data/mail_template.xml @@ -4,7 +4,7 @@ <record id="selfconsumption_energy_delivered_invoicing_reminder" model="mail.template"> <field name="name">Selfconsumption Energy Delivered Invoicing Reminder</field> <field name="description">Email reminder for self-consumption billing of supplied energy</field> - <field name="email_from">info@somcomunitats.coop</field> + <field name="email_from">{{ (object.company_id.coop_email_contact or object.company_id.email_formatted) }}</field> <field name="subject">Selfconsumption - Energy Delivered Invoicing Reminder</field> <field name="model_id" ref="energy_selfconsumption.model_energy_selfconsumption_selfconsumption"/> <field name="body_html" type="html"> @@ -36,7 +36,7 @@ <record id="selfconsumption_energy_delivered_custom_invoicing_reminder" model="mail.template"> <field name="name">Selfconsumption Energy Delivered Custom Invoicing Reminder</field> <field name="description">E-mail reminder of personalized billing of self-consumption of energy supplied</field> - <field name="email_from">info@somcomunitats.coop</field> + <field name="email_from">{{ (object.company_id.coop_email_contact or object.company_id.email_formatted) }}</field> <field name="subject">Self-consumption billing reminder {{object.name}}</field> <field name="model_id" ref="energy_selfconsumption.model_energy_selfconsumption_selfconsumption"/> <field name="body_html" type="html"> @@ -78,7 +78,7 @@ <record id="selfconsumption_power_acquired_invoicing_reminder" model="mail.template"> <field name="name">Selfconsumption Power Acquired Invoicing Reminder</field> <field name="description">E-mail billing reminder of self-consumption of energy purchased</field> - <field name="email_from">info@somcomunitats.coop</field> + <field name="email_from">{{ (object.company_id.coop_email_contact or object.company_id.email_formatted) }}</field> <field name="subject">Selfconsumption - Power Acquired Invoicing Reminder</field> <field name="model_id" ref="energy_selfconsumption.model_energy_selfconsumption_selfconsumption"/> <field name="body_html" type="html"> @@ -104,7 +104,7 @@ <record id="selfconsumption_insciption_form" model="mail.template"> <field name="name">Registration in self-consumption project of the Energy Community</field> <field name="description">E-mail of inscription in the self-consumption project of the Energy Community</field> - <field name="email_from">info@somcomunitats.coop</field> + <field name="email_from">{{ (object.company_id.coop_email_contact or object.company_id.email_formatted) }}</field> <field name="subject">Registration in {{ object.name }}</field> <field name="model_id" ref="energy_selfconsumption.model_energy_selfconsumption_selfconsumption"/> <field name="body_html" type="html"> diff --git a/energy_selfconsumption/data/product_data.xml b/energy_selfconsumption/data/product_data.xml new file mode 100644 index 0000000000000000000000000000000000000000..3350c52e309a6df601db8566d49e4f8117235cd9 --- /dev/null +++ b/energy_selfconsumption/data/product_data.xml @@ -0,0 +1,9 @@ +<odoo> + <record id="product_category_selfconsumption_pack" model="product.category"> + <field name="name">Selfconsumption Pack</field> + </record> + <record id="product_category_selfconsumption_service" model="product.category"> + <field name="name">Selfconsumption Service</field> + </record> +</odoo> + diff --git a/energy_selfconsumption/i18n/ca_ES.po b/energy_selfconsumption/i18n/ca_ES.po index 9d3ae7601820bf20ec2e616cfdab9ad11a4ba73f..98d3fb55e2f754dd30a8bc466d5f27c4bf3423d9 100644 --- a/energy_selfconsumption/i18n/ca_ES.po +++ b/energy_selfconsumption/i18n/ca_ES.po @@ -6,8 +6,8 @@ msgid "" msgstr "" "Project-Id-Version: Odoo Server 16.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-02-13 10:05+0000\n" -"PO-Revision-Date: 2025-02-13 10:05+0000\n" +"POT-Creation-Date: 2025-03-03 07:48+0000\n" +"PO-Revision-Date: 2025-03-03 07:48+0000\n" "Last-Translator: \n" "Language-Team: \n" "MIME-Version: 1.0\n" @@ -18,21 +18,29 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/wizards/contract_generation_wizard.py:0 +#: code:addons/energy_selfconsumption/wizards/contract_generation_wizard.py:0 #, python-format msgid "" "\n" "CAU: {cau}\n" -"Total installed nominal power (kW): {power}\n" -"Partition coefficient: {coefficient}" +" Total installed nominal power (kW): {power}\n" +" Partition coefficient: {coefficient}\n" +" Daily nominal power acquired: {power} kWn * {coefficient} = {power_acquired} kWn/day\n" +" Days to be invoiced: {days_invoiced} days\n" +" Total amount invoiced: {days_invoiced} days * {power_acquired} kWn/day = {total_amount}\n" msgstr "" "\n" "CAU: {cau}\n" -"Potència nominal instal·lada total (kW): {power}\n" -"Coeficient de partició: {coefficient}" +" Potència nominal instal·lada total (kW): {power}\n" +" Coeficient de partició: {coefficient}\n" +" Potència nominal adquirida dià ria: {power} kWn * {coefficient} = {power_acquired} kWn/die\n" +" Dies a facturar: {days_invoiced} dies\n" +" Quantitat total a facturar: {days_invoiced} dies * {power_acquired} kWn/die = {total_amount}\n" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/wizards/invoicing_wizard.py:0 +#: code:addons/energy_selfconsumption/wizards/invoicing_wizard.py:0 #, python-format msgid "" "\n" @@ -48,6 +56,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/wizards/invoicing_wizard.py:0 +#: code:addons/energy_selfconsumption/wizards/invoicing_wizard.py:0 #, python-format msgid "" "\n" @@ -61,6 +70,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/wizards/invoicing_wizard.py:0 +#: code:addons/energy_selfconsumption/wizards/invoicing_wizard.py:0 #, python-format msgid "" "\n" @@ -76,6 +86,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/wizards/invoicing_wizard.py:0 +#: code:addons/energy_selfconsumption/wizards/invoicing_wizard.py:0 #, python-format msgid "" "\n" @@ -517,6 +528,8 @@ msgstr "" #. odoo-python #: code:addons/energy_selfconsumption/wizards/selfconsumption_import_wizard.py:0 #: code:addons/energy_selfconsumption/wizards/selfconsumption_import_wizard.py:0 +#: code:addons/energy_selfconsumption/wizards/selfconsumption_import_wizard.py:0 +#: code:addons/energy_selfconsumption/wizards/selfconsumption_import_wizard.py:0 #, python-format msgid "<li>Line {line}: {error}</li>\n" msgstr "<li>LÃÂnia {line}: {error}</li>\n" @@ -537,7 +550,7 @@ msgstr "" #: model_terms:ir.ui.view,arch_db:energy_selfconsumption.selfconsumption_invoice_template msgid "" "<span groups=\"account.group_show_line_subtotals_tax_excluded\">Amount</span>\n" -" <span groups=\"account.group_show_line_subtotals_tax_included\">Total Price</span>" +" <span groups=\"account.group_show_line_subtotals_tax_included\">Total Price</span>" msgstr "" "<span groups=\"account.group_show_line_subtotals_tax_excluded\">Quantitat</span>\n" " <span groups=\"account.group_show_line_subtotals_tax_included\">Preu Total</span>" @@ -557,16 +570,6 @@ msgstr "" msgid "<span> kWn/day</span>" msgstr "<span> kWn/dia</span>" -#. module: energy_selfconsumption -#: model_terms:ir.ui.view,arch_db:energy_selfconsumption.selfconsumption_invoice_template -msgid "<span>Description</span>" -msgstr "<span>Descripció</span>" - -#. module: energy_selfconsumption -#: model_terms:ir.ui.view,arch_db:energy_selfconsumption.selfconsumption_invoice_template -msgid "<span>Disc.%</span>" -msgstr "<span>Desc.%</span>" - #. module: energy_selfconsumption #: model_terms:ir.ui.view,arch_db:energy_selfconsumption.selfconsumption_invoice_template msgid "<span>Import</span>" @@ -607,16 +610,6 @@ msgstr "<span>Quantitat total facturada</span>" msgid "<span>Total installation generation</span>" msgstr "<span>Total de generació de la instal·lació</span>" -#. module: energy_selfconsumption -#: model_terms:ir.ui.view,arch_db:energy_selfconsumption.selfconsumption_invoice_template -msgid "<span>Unit Price</span>" -msgstr "<span>Preu unitat</span>" - -#. module: energy_selfconsumption -#: model_terms:ir.ui.view,arch_db:energy_selfconsumption.selfconsumption_invoice_template -msgid "<strong class=\"mr16\">Subtotal</strong>" -msgstr "" - #. module: energy_selfconsumption #: model_terms:ir.ui.view,arch_db:energy_selfconsumption.inscription_data_headline_message_closed msgid "<strong>Closed form</strong>" @@ -666,6 +659,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/models/selfconsumption.py:0 +#: code:addons/energy_selfconsumption/models/selfconsumption.py:0 #: model:ir.model.constraint,message:energy_selfconsumption.constraint_energy_selfconsumption_selfconsumption_unique_code #, python-format msgid "A project with this CAU already exists." @@ -674,6 +668,7 @@ msgstr "Ja existeix un projecte amb aquesta CAU." #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/models/supply_point.py:0 +#: code:addons/energy_selfconsumption/models/supply_point.py:0 #: model:ir.model.constraint,message:energy_selfconsumption.constraint_energy_selfconsumption_supply_point_unique_code_company_id #, python-format msgid "A supply point with this code already exists." @@ -717,6 +712,7 @@ msgstr "Número de compte" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/wizards/define_invoicing_mode_wizard.py:0 +#: code:addons/energy_selfconsumption/wizards/define_invoicing_mode_wizard.py:0 #, python-format msgid "Accounting Journal not found." msgstr "No s'ha trobat cap diari de comptabilitat configurat" @@ -744,8 +740,10 @@ msgstr "Activa el formulari" #: code:addons/energy_selfconsumption/models/inscription.py:0 #: code:addons/energy_selfconsumption/models/selfconsumption.py:0 #: code:addons/energy_selfconsumption/wizards/change_state_inscription_wizard.py:0 +#: code:addons/energy_selfconsumption/wizards/change_distribution_table_import_wizard.py:0 #: model:ir.model.fields,field_description:energy_selfconsumption.field_energy_selfconsumption_distribution_table__active #: model:ir.model.fields,field_description:energy_selfconsumption.field_energy_selfconsumption_selfconsumption__active +#: model:ir.model.fields.selection,name:energy_selfconsumption.selection__change_distribution_table_import_line_wizard__state__active #: model:ir.model.fields.selection,name:energy_selfconsumption.selection__energy_selfconsumption_change_state_inscription_lines_wizard__state__active #: model:ir.model.fields.selection,name:energy_selfconsumption.selection__energy_selfconsumption_distribution_table__state__active #: model:ir.model.fields.selection,name:energy_selfconsumption.selection__energy_selfconsumption_inscription_selfconsumption__state__active @@ -794,6 +792,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 +#: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 #, python-format msgid "Address" msgstr "Adreça" @@ -834,6 +833,7 @@ msgstr "Consum anual d'electricitat" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 +#: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 #, python-format msgid "Annual electricity use?" msgstr "Consum anual d'electricitat?" @@ -841,6 +841,7 @@ msgstr "Consum anual d'electricitat?" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 +#: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 #, python-format msgid "Are you in a vulnerable situation?" msgstr "Està s en una situació vulnerable?" @@ -858,6 +859,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/wizards/clean_supply_point_assignation_wizard.py:0 +#: code:addons/energy_selfconsumption/wizards/clean_supply_point_assignation_wizard.py:0 #, python-format msgid "Are you sure you want to delete all assigned distribution points?" msgstr "Estas segur que vols eliminar els punts de distribució?" @@ -902,6 +904,7 @@ msgstr "PerÃÂode de facturació" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 +#: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 #, python-format msgid "Birthdate" msgstr "Data de naixement" @@ -914,6 +917,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 +#: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 #, python-format msgid "CIF/NIF" msgstr "" @@ -932,6 +936,7 @@ msgstr "COEFICIENT (α)" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/wizards/invoicing_wizard.py:0 +#: code:addons/energy_selfconsumption/wizards/invoicing_wizard.py:0 #, python-format msgid "CSV file could not be loaded" msgstr "No s'ha pogut carregar el fitxer CSV" @@ -939,6 +944,7 @@ msgstr "No s'ha pogut carregar el fitxer CSV" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 +#: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 #: model:ir.model.fields,field_description:energy_selfconsumption.field_energy_selfconsumption_inscription_selfconsumption__code #: model:ir.model.fields,field_description:energy_selfconsumption.field_energy_selfconsumption_supply_point__code #: model:ir.model.fields,field_description:energy_selfconsumption.field_energy_selfconsumption_supply_point_assignation__code @@ -951,6 +957,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 +#: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 #, python-format msgid "" "CUPS is the Unified Code of the Point of Supply. You can find it on " @@ -962,6 +969,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/wizards/define_invoicing_mode_wizard.py:0 +#: code:addons/energy_selfconsumption/wizards/define_invoicing_mode_wizard.py:0 #, python-format msgid "" "CUPS: {code}\n" @@ -981,12 +989,14 @@ msgstr "Referència cadastral" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 +#: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 #, python-format msgid "Cadastral reference of the property" msgstr "Referència cadastral de l'immoble" #. module: energy_selfconsumption #: model_terms:ir.ui.view,arch_db:energy_selfconsumption.contract_generation_wizard_form_view +#: model_terms:ir.ui.view,arch_db:energy_selfconsumption.view_change_distribution_table_import_wizard_form #: model_terms:ir.ui.view,arch_db:energy_selfconsumption.view_clean_supply_point_assignation_wizard msgid "Cancel" msgstr "Cancel·lar" @@ -995,12 +1005,27 @@ msgstr "Cancel·lar" #. odoo-python #: code:addons/energy_selfconsumption/models/inscription.py:0 #: code:addons/energy_selfconsumption/wizards/change_state_inscription_wizard.py:0 +#: code:addons/energy_selfconsumption/wizards/change_distribution_table_import_wizard.py:0 +#: model:ir.model.fields.selection,name:energy_selfconsumption.selection__change_distribution_table_import_line_wizard__state__change +#: model:ir.model.fields.selection,name:energy_selfconsumption.selection__change_distribution_table_import_wizard__state__change #: model:ir.model.fields.selection,name:energy_selfconsumption.selection__energy_selfconsumption_change_state_inscription_lines_wizard__state__change #: model:ir.model.fields.selection,name:energy_selfconsumption.selection__energy_selfconsumption_inscription_selfconsumption__state__change #, python-format msgid "Change" msgstr "Canviar" +#. module: energy_selfconsumption +#: model:ir.actions.act_window,name:energy_selfconsumption.action_change_distribution_table_import_wizard +msgid "Change distribution table" +msgstr "Canvia la taula de distribució" + +#. module: energy_selfconsumption +#: model:ir.model.fields,field_description:energy_selfconsumption.field_change_distribution_table_import_wizard__change_distribution_table_import_line_wizard_ids +#: model:ir.model.fields,field_description:energy_selfconsumption.field_change_distribution_table_import_wizard__change_distribution_table_import_line_wizard_news_ids +#: model:ir.model.fields,field_description:energy_selfconsumption.field_change_distribution_table_import_wizard__change_distribution_table_import_line_wizard_views_ids +msgid "Change distribution table import line wizard" +msgstr "Canvia la taula de distribució" + #. module: energy_selfconsumption #: model:ir.actions.act_window,name:energy_selfconsumption.change_state_inscription_wizard_action #: model:ir.actions.server,name:energy_selfconsumption.inscription_to_change_state_action @@ -1014,13 +1039,32 @@ msgid "Change state inscription lines wizards" msgstr "Canviar estat d'inscripció" #. module: energy_selfconsumption +#: model:ir.model.fields,field_description:energy_selfconsumption.field_change_distribution_table_import_line_wizard__change_distribution_table_import_wizard_id #: model:ir.model.fields,field_description:energy_selfconsumption.field_energy_selfconsumption_change_state_inscription_lines_wizard__change_state_inscription_wizard_id msgid "Change state inscription wizard" msgstr "Canviar estat d'inscripció" +#. module: energy_selfconsumption +#. odoo-python +#: code:addons/energy_selfconsumption/wizards/change_distribution_table_import_wizard.py:0 +#: model:ir.model,name:energy_selfconsumption.model_change_distribution_table_import_line_wizard +#, python-format +msgid "Change_distribution_table_import_line_wizard" +msgstr "Canvia la taula de distribució" + +#. module: energy_selfconsumption +#. odoo-python +#: code:addons/energy_selfconsumption/wizards/change_distribution_table_import_wizard.py:0 +#: model:ir.model,name:energy_selfconsumption.model_change_distribution_table_import_wizard +#: model_terms:ir.ui.view,arch_db:energy_selfconsumption.view_change_distribution_table_import_wizard_form +#, python-format +msgid "Change_distribution_table_import_wizard" +msgstr "Canvia la taula de distribució" + #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 +#: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 #: model:ir.model.fields,field_description:energy_selfconsumption.field_energy_selfconsumption_selfconsumption__city #: model:ir.model.fields,field_description:energy_selfconsumption.field_energy_selfconsumption_supply_point__city #: model:ir.model.fields,field_description:energy_selfconsumption.field_energy_selfconsumption_supply_point_assignation__supply_point_town @@ -1043,6 +1087,7 @@ msgstr "Assistent per a l'assignació de punts de subministrament nets" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/models/distribution_table.py:0 +#: code:addons/energy_selfconsumption/models/distribution_table.py:0 #: model:ir.actions.server,name:energy_selfconsumption.manager_clean_supply_point_assignation_action #, python-format msgid "Clean supply point assignation" @@ -1068,6 +1113,7 @@ msgstr "El coeficient és và lid" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/models/supply_point_assignation.py:0 +#: code:addons/energy_selfconsumption/models/supply_point_assignation.py:0 #, python-format msgid "Coefficient can't be negative." msgstr "El coeficient no pot ser negatiu." @@ -1075,6 +1121,7 @@ msgstr "El coeficient no pot ser negatiu." #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/models/distribution_table.py:0 +#: code:addons/energy_selfconsumption/models/distribution_table.py:0 #, python-format msgid "Coefficient distribution must sum to 1." msgstr "El coeficient de distribució ha de sumar 1." @@ -1091,6 +1138,7 @@ msgstr "Companyia" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 +#: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 #, python-format msgid "Company Name" msgstr "Nom de l'empresa" @@ -1172,6 +1220,7 @@ msgstr "Confirmar" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 +#: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 #, python-format msgid "Confirm E-mail" msgstr "Confirmeu el correu electrònic" @@ -1197,6 +1246,7 @@ msgstr "Contracte" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/wizards/contract_generation_wizard.py:0 +#: code:addons/energy_selfconsumption/wizards/contract_generation_wizard.py:0 #, python-format msgid "Contract - %s - %s" msgstr "Contracte - %s - %s" @@ -1264,6 +1314,8 @@ msgid "Create participant table" msgstr "Crea una taula de participants" #. module: energy_selfconsumption +#: model:ir.model.fields,field_description:energy_selfconsumption.field_change_distribution_table_import_line_wizard__create_uid +#: model:ir.model.fields,field_description:energy_selfconsumption.field_change_distribution_table_import_wizard__create_uid #: model:ir.model.fields,field_description:energy_selfconsumption.field_clean_supply_point_assignation_wizard__create_uid #: model:ir.model.fields,field_description:energy_selfconsumption.field_energy_selfconsumption_change_state_inscription_lines_wizard__create_uid #: model:ir.model.fields,field_description:energy_selfconsumption.field_energy_selfconsumption_change_state_inscription_wizard__create_uid @@ -1284,6 +1336,8 @@ msgid "Created by" msgstr "Creat per" #. module: energy_selfconsumption +#: model:ir.model.fields,field_description:energy_selfconsumption.field_change_distribution_table_import_line_wizard__create_date +#: model:ir.model.fields,field_description:energy_selfconsumption.field_change_distribution_table_import_wizard__create_date #: model:ir.model.fields,field_description:energy_selfconsumption.field_clean_supply_point_assignation_wizard__create_date #: model:ir.model.fields,field_description:energy_selfconsumption.field_energy_selfconsumption_change_state_inscription_lines_wizard__create_date #: model:ir.model.fields,field_description:energy_selfconsumption.field_energy_selfconsumption_change_state_inscription_wizard__create_date @@ -1370,6 +1424,7 @@ msgstr "Dies facturats" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/models/selfconsumption.py:0 +#: code:addons/energy_selfconsumption/models/selfconsumption.py:0 #: model_terms:ir.ui.view,arch_db:energy_selfconsumption.selfconsumption_form_view #, python-format msgid "Define Invoicing Mode" @@ -1393,6 +1448,14 @@ msgstr "" " mecanisme de compensació en el següent perÃÂode de facturació des de la recepció d'aquest\n" " acord." +#. module: energy_selfconsumption +#. odoo-python +#: code:addons/energy_selfconsumption/wizards/change_distribution_table_import_wizard.py:0 +#: model:ir.model.fields.selection,name:energy_selfconsumption.selection__change_distribution_table_import_wizard__state__delete +#, python-format +msgid "Delete" +msgstr "Eliminar" + #. module: energy_selfconsumption #: model:ir.model.fields,help:energy_selfconsumption.field_energy_selfconsumption_distribution_table__hourly_coefficients_imported_delimiter #: model:ir.model.fields,help:energy_selfconsumption.field_energy_selfconsumption_distribution_table_import_wizard__delimiter @@ -1412,6 +1475,8 @@ msgid "Description form" msgstr "Formulari de descripció" #. module: energy_selfconsumption +#: model:ir.model.fields,field_description:energy_selfconsumption.field_change_distribution_table_import_line_wizard__display_name +#: model:ir.model.fields,field_description:energy_selfconsumption.field_change_distribution_table_import_wizard__display_name #: model:ir.model.fields,field_description:energy_selfconsumption.field_clean_supply_point_assignation_wizard__display_name #: model:ir.model.fields,field_description:energy_selfconsumption.field_energy_selfconsumption_change_state_inscription_lines_wizard__display_name #: model:ir.model.fields,field_description:energy_selfconsumption.field_energy_selfconsumption_change_state_inscription_wizard__display_name @@ -1484,6 +1549,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 +#: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 #, python-format msgid "Do you currently have self-consumption?" msgstr "Actualment tens autoconsum?" @@ -1491,6 +1557,7 @@ msgstr "Actualment tens autoconsum?" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/wizards/selfconsumption_import_wizard.py:0 +#: code:addons/energy_selfconsumption/wizards/selfconsumption_import_wizard.py:0 #, python-format msgid "Dont exit participation for this project." msgstr "No abandonis la participació en aquest projecte." @@ -1524,6 +1591,7 @@ msgstr "Descarregar Autorització del Gestor d'Autoconsum" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/models/distribution_table.py:0 +#: code:addons/energy_selfconsumption/models/distribution_table.py:0 #: model:ir.model.fields.selection,name:energy_selfconsumption.selection__energy_selfconsumption_distribution_table__state__draft #, python-format msgid "Draft" @@ -1532,6 +1600,7 @@ msgstr "Esborrany" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 +#: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 #, python-format msgid "E-mail" msgstr "Correu electrònic" @@ -1653,6 +1722,7 @@ msgstr "Final" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/models/selfconsumption.py:0 +#: code:addons/energy_selfconsumption/models/selfconsumption.py:0 #: model:ir.model.fields.selection,name:energy_selfconsumption.selection__energy_selfconsumption_define_invoicing_mode_wizard__invoicing_mode__energy_delivered #: model:ir.model.fields.selection,name:energy_selfconsumption.selection__energy_selfconsumption_invoicing_wizard__invoicing_mode__energy_delivered #: model:ir.model.fields.selection,name:energy_selfconsumption.selection__energy_selfconsumption_selfconsumption__invoicing_mode__energy_delivered @@ -1663,6 +1733,7 @@ msgstr "Energia entregada" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/models/selfconsumption.py:0 +#: code:addons/energy_selfconsumption/models/selfconsumption.py:0 #: model:ir.model.fields.selection,name:energy_selfconsumption.selection__energy_selfconsumption_define_invoicing_mode_wizard__invoicing_mode__energy_custom #: model:ir.model.fields.selection,name:energy_selfconsumption.selection__energy_selfconsumption_invoicing_wizard__invoicing_mode__energy_custom #: model:ir.model.fields.selection,name:energy_selfconsumption.selection__energy_selfconsumption_selfconsumption__invoicing_mode__energy_custom @@ -1673,6 +1744,7 @@ msgstr "Energia entregada personalitzada" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/wizards/invoicing_wizard.py:0 +#: code:addons/energy_selfconsumption/wizards/invoicing_wizard.py:0 #, python-format msgid "Energy Delivered Custom: {energy_delivered} kWh" msgstr "Energia entregada personalitzada: {energy_delivered} kWh" @@ -1690,6 +1762,7 @@ msgstr "Fórmula variable d'energia entregada" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/wizards/invoicing_wizard.py:0 +#: code:addons/energy_selfconsumption/wizards/invoicing_wizard.py:0 #, python-format msgid "Energy Delivered: {energy_delivered} kWh" msgstr "Energia entregada: {energy_delivered} kWh" @@ -1703,6 +1776,7 @@ msgstr "Projecte energètic" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 +#: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 #, python-format msgid "Energy Project Name" msgstr "Nom del projecte energètic" @@ -1735,6 +1809,7 @@ msgstr "Inscripció al projecte d'autoconsum compartit de la" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 +#: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 #, python-format msgid "Error format date." msgstr "Error de format de data." @@ -1742,7 +1817,10 @@ msgstr "Error de format de data." #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/models/selfconsumption.py:0 +#: code:addons/energy_selfconsumption/models/selfconsumption.py:0 #: code:addons/energy_selfconsumption/wizards/distribution_table_import_wizard.py:0 +#: code:addons/energy_selfconsumption/wizards/distribution_table_import_wizard.py:0 +#: code:addons/energy_selfconsumption/wizards/selfconsumption_import_wizard.py:0 #: code:addons/energy_selfconsumption/wizards/selfconsumption_import_wizard.py:0 #, python-format msgid "Error parsing the file" @@ -1751,6 +1829,7 @@ msgstr "S'ha produït un error en analitzar el fitxer" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/models/selfconsumption.py:0 +#: code:addons/energy_selfconsumption/models/selfconsumption.py:0 #, python-format msgid "Error reading file" msgstr "Error de l'ectura d'arxiu" @@ -1795,6 +1874,7 @@ msgstr "Data:" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 +#: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 #, python-format msgid "Female" msgstr "" @@ -1850,6 +1930,8 @@ msgstr "Nom de pila" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/models/distribution_table.py:0 +#: code:addons/energy_selfconsumption/models/distribution_table.py:0 +#: code:addons/energy_selfconsumption/wizards/create_distribution_table_wizard.py:0 #: code:addons/energy_selfconsumption/wizards/create_distribution_table_wizard.py:0 #: model:ir.model.fields.selection,name:energy_selfconsumption.selection__energy_selfconsumption_create_distribution_table_wizard__type__fixed #: model:ir.model.fields.selection,name:energy_selfconsumption.selection__energy_selfconsumption_distribution_table__type__fixed @@ -1881,6 +1963,7 @@ msgstr "Icona de lletra impressionant, p. ex. fa-tasks" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/models/supply_point.py:0 +#: code:addons/energy_selfconsumption/models/supply_point.py:0 #, python-format msgid "" "For the 2.0TD rate, the maximum contracted power must be between 0 and 15 " @@ -1892,6 +1975,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/models/supply_point.py:0 +#: code:addons/energy_selfconsumption/models/supply_point.py:0 #, python-format msgid "" "For the 3.0TD rate, the maximum contracted power must be greater than 15 kW." @@ -1902,6 +1986,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 +#: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 #, python-format msgid "Gender" msgstr "Gènere" @@ -1914,6 +1999,7 @@ msgstr "Generar" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/models/selfconsumption.py:0 +#: code:addons/energy_selfconsumption/models/selfconsumption.py:0 #, python-format msgid "Generate Contracts" msgstr "Generar contractes" @@ -1955,6 +2041,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 +#: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 #, python-format msgid "" "Have to accept and authorize being able to issue payments to this bank " @@ -1968,6 +2055,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 +#: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 #, python-format msgid "Have to accept politic privacy." msgstr "Cal acceptar la privadesa polÃÂtica." @@ -1975,6 +2063,7 @@ msgstr "Cal acceptar la privadesa polÃÂtica." #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 +#: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 #: model:ir.model.fields,field_description:energy_selfconsumption.field_energy_selfconsumption_selfconsumption__conf_header_description #, python-format msgid "Header description on website form" @@ -1983,6 +2072,7 @@ msgstr "Descripció de la capçalera al formulari del lloc web" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 +#: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 #, python-format msgid "" "How much power of the collective PV installation you would like to purchase." @@ -1992,6 +2082,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 +#: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 #: model:ir.model.fields,field_description:energy_selfconsumption.field_energy_selfconsumption_inscription_selfconsumption__accept #, python-format msgid "" @@ -2006,6 +2097,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 +#: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 #, python-format msgid "I accept privacy policy" msgstr "Accepto la polÃÂtica de privadesa" @@ -2013,6 +2105,7 @@ msgstr "Accepto la polÃÂtica de privadesa" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 +#: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 #, python-format msgid "I prefer to not share it" msgstr "Prefereixo no compartir-ho" @@ -2020,11 +2113,14 @@ msgstr "Prefereixo no compartir-ho" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 +#: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 #, python-format msgid "IBAN" msgstr "" #. module: energy_selfconsumption +#: model:ir.model.fields,field_description:energy_selfconsumption.field_change_distribution_table_import_line_wizard__id +#: model:ir.model.fields,field_description:energy_selfconsumption.field_change_distribution_table_import_wizard__id #: model:ir.model.fields,field_description:energy_selfconsumption.field_clean_supply_point_assignation_wizard__id #: model:ir.model.fields,field_description:energy_selfconsumption.field_energy_selfconsumption_change_state_inscription_lines_wizard__id #: model:ir.model.fields,field_description:energy_selfconsumption.field_energy_selfconsumption_change_state_inscription_wizard__id @@ -2081,6 +2177,7 @@ msgstr "Importar" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/models/distribution_table.py:0 +#: code:addons/energy_selfconsumption/models/distribution_table.py:0 #: model:ir.actions.act_window,name:energy_selfconsumption.distribution_table_import_wizard_action #, python-format msgid "Import Distribution Table" @@ -2089,6 +2186,7 @@ msgstr "Importar Taula de Repartiment" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/wizards/selfconsumption_import_wizard.py:0 +#: code:addons/energy_selfconsumption/wizards/selfconsumption_import_wizard.py:0 #, python-format msgid "Import Errors" msgstr "Errors d'importació" @@ -2104,6 +2202,7 @@ msgstr "Importa arxiu (*.csv)" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/models/selfconsumption.py:0 +#: code:addons/energy_selfconsumption/models/selfconsumption.py:0 #, python-format msgid "Import Inscriptions and Supply Points" msgstr "Importa inscripcions i punts de subministrament" @@ -2116,6 +2215,7 @@ msgstr "Importa dades" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/wizards/selfconsumption_import_wizard.py:0 +#: code:addons/energy_selfconsumption/wizards/selfconsumption_import_wizard.py:0 #, python-format msgid "Import errors found: <ul>{list}</ul>" msgstr "S'han trobat errors d'importació: <ul>{list}</ul>" @@ -2133,6 +2233,7 @@ msgstr "Importar Taula" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/models/distribution_table.py:0 +#: code:addons/energy_selfconsumption/models/distribution_table.py:0 #: model:ir.model.fields.selection,name:energy_selfconsumption.selection__energy_selfconsumption_distribution_table__state__process #, python-format msgid "In process" @@ -2151,6 +2252,8 @@ msgstr "" #: code:addons/energy_selfconsumption/models/inscription.py:0 #: code:addons/energy_selfconsumption/models/selfconsumption.py:0 #: code:addons/energy_selfconsumption/wizards/change_state_inscription_wizard.py:0 +#: code:addons/energy_selfconsumption/wizards/change_distribution_table_import_wizard.py:0 +#: model:ir.model.fields.selection,name:energy_selfconsumption.selection__change_distribution_table_import_line_wizard__state__inactive #: model:ir.model.fields.selection,name:energy_selfconsumption.selection__energy_selfconsumption_change_state_inscription_lines_wizard__state__inactive #: model:ir.model.fields.selection,name:energy_selfconsumption.selection__energy_selfconsumption_inscription_selfconsumption__state__inactive #: model:ir.model.fields.selection,name:energy_selfconsumption.selection__energy_selfconsumption_selfconsumption__conf_state__inactive @@ -2161,6 +2264,7 @@ msgstr "Inactiu" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 +#: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 #, python-format msgid "" "Information necessary for the formalization of the distribution " @@ -2170,6 +2274,7 @@ msgstr "" "encontrarlo en cadastro.es" #. module: energy_selfconsumption +#: model:ir.model.fields,field_description:energy_selfconsumption.field_change_distribution_table_import_line_wizard__inscription_id #: model:ir.model.fields,field_description:energy_selfconsumption.field_energy_selfconsumption_change_state_inscription_lines_wizard__inscription_id #: model:ir.model.fields,field_description:energy_selfconsumption.field_energy_selfconsumption_inscription_selfconsumption__inscription_id #: model:ir.model.fields,field_description:energy_selfconsumption.field_energy_selfconsumption_selfconsumption__inscription_ids @@ -2209,6 +2314,7 @@ msgstr "Instal·lació:" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/models/selfconsumption.py:0 +#: code:addons/energy_selfconsumption/models/selfconsumption.py:0 #, python-format msgid "Invalid CAU: Last 3 digits are not numbers" msgstr "CAU no và lid: els 3 últims dÃÂgits no són números" @@ -2217,6 +2323,8 @@ msgstr "CAU no và lid: els 3 últims dÃÂgits no són números" #. odoo-python #: code:addons/energy_selfconsumption/models/selfconsumption.py:0 #: code:addons/energy_selfconsumption/models/selfconsumption.py:0 +#: code:addons/energy_selfconsumption/models/selfconsumption.py:0 +#: code:addons/energy_selfconsumption/models/selfconsumption.py:0 #, python-format msgid "Invalid CAU: The CUPS does not start with 'ES'." msgstr "CAU no và lid: el CUPS no comença amb \"ES\"." @@ -2225,6 +2333,8 @@ msgstr "CAU no và lid: el CUPS no comença amb \"ES\"." #. odoo-python #: code:addons/energy_selfconsumption/models/selfconsumption.py:0 #: code:addons/energy_selfconsumption/models/selfconsumption.py:0 +#: code:addons/energy_selfconsumption/models/selfconsumption.py:0 +#: code:addons/energy_selfconsumption/models/selfconsumption.py:0 #, python-format msgid "Invalid CAU: The CUPS has an incorrect format." msgstr "CAU no và lid: el CUPS té un format incorrecte." @@ -2232,6 +2342,7 @@ msgstr "CAU no và lid: el CUPS té un format incorrecte." #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/models/selfconsumption.py:0 +#: code:addons/energy_selfconsumption/models/selfconsumption.py:0 #, python-format msgid "Invalid CAU: The character after CUPS is not A" msgstr "CAU no và lid: el carà cter després de CUPS no és A" @@ -2240,6 +2351,8 @@ msgstr "CAU no và lid: el carà cter després de CUPS no és A" #. odoo-python #: code:addons/energy_selfconsumption/models/selfconsumption.py:0 #: code:addons/energy_selfconsumption/models/selfconsumption.py:0 +#: code:addons/energy_selfconsumption/models/selfconsumption.py:0 +#: code:addons/energy_selfconsumption/models/selfconsumption.py:0 #, python-format msgid "Invalid CAU: The checksum of the CUPS is incorrect." msgstr "CAU no và lid: la suma de comprovació del CUPS és incorrecta." @@ -2248,6 +2361,8 @@ msgstr "CAU no và lid: la suma de comprovació del CUPS és incorrecta." #. odoo-python #: code:addons/energy_selfconsumption/models/selfconsumption.py:0 #: code:addons/energy_selfconsumption/models/selfconsumption.py:0 +#: code:addons/energy_selfconsumption/models/selfconsumption.py:0 +#: code:addons/energy_selfconsumption/models/selfconsumption.py:0 #, python-format msgid "" "Invalid CAU: The first characters related to CUPS are incorrect. The length " @@ -2259,6 +2374,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/models/selfconsumption.py:0 +#: code:addons/energy_selfconsumption/models/selfconsumption.py:0 #, python-format msgid "Invalid CAU: The length is not correct" msgstr "CAU no và lid: la longitud no és correcta" @@ -2266,6 +2382,7 @@ msgstr "CAU no và lid: la longitud no és correcta" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/models/selfconsumption.py:0 +#: code:addons/energy_selfconsumption/models/selfconsumption.py:0 #, python-format msgid "Invalid CIL: Last 3 digits are not numbers" msgstr "CIL no và lid: els 3 últims dÃÂgits no són números" @@ -2274,6 +2391,8 @@ msgstr "CIL no và lid: els 3 últims dÃÂgits no són números" #. odoo-python #: code:addons/energy_selfconsumption/models/selfconsumption.py:0 #: code:addons/energy_selfconsumption/models/selfconsumption.py:0 +#: code:addons/energy_selfconsumption/models/selfconsumption.py:0 +#: code:addons/energy_selfconsumption/models/selfconsumption.py:0 #, python-format msgid "Invalid CIL: The CUPS does not start with 'ES'." msgstr "CIL no và lid: el CUPS no comença amb \"ES\"." @@ -2282,6 +2401,8 @@ msgstr "CIL no và lid: el CUPS no comença amb \"ES\"." #. odoo-python #: code:addons/energy_selfconsumption/models/selfconsumption.py:0 #: code:addons/energy_selfconsumption/models/selfconsumption.py:0 +#: code:addons/energy_selfconsumption/models/selfconsumption.py:0 +#: code:addons/energy_selfconsumption/models/selfconsumption.py:0 #, python-format msgid "Invalid CIL: The CUPS has an incorrect format." msgstr "CIL no và lid: el CUPS té un format incorrecte." @@ -2290,6 +2411,8 @@ msgstr "CIL no và lid: el CUPS té un format incorrecte." #. odoo-python #: code:addons/energy_selfconsumption/models/selfconsumption.py:0 #: code:addons/energy_selfconsumption/models/selfconsumption.py:0 +#: code:addons/energy_selfconsumption/models/selfconsumption.py:0 +#: code:addons/energy_selfconsumption/models/selfconsumption.py:0 #, python-format msgid "Invalid CIL: The checksum of the CUPS is incorrect." msgstr "CIL no và lid: la suma de comprovació del CUPS és incorrecta." @@ -2298,6 +2421,8 @@ msgstr "CIL no và lid: la suma de comprovació del CUPS és incorrecta." #. odoo-python #: code:addons/energy_selfconsumption/models/selfconsumption.py:0 #: code:addons/energy_selfconsumption/models/selfconsumption.py:0 +#: code:addons/energy_selfconsumption/models/selfconsumption.py:0 +#: code:addons/energy_selfconsumption/models/selfconsumption.py:0 #, python-format msgid "" "Invalid CIL: The first characters related to CUPS are incorrect. The length " @@ -2309,6 +2434,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/models/selfconsumption.py:0 +#: code:addons/energy_selfconsumption/models/selfconsumption.py:0 #, python-format msgid "Invalid CIL: The length is not correct" msgstr "CIL no và lid: la longitud no és correcta" @@ -2316,6 +2442,7 @@ msgstr "CIL no và lid: la longitud no és correcta" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/models/supply_point.py:0 +#: code:addons/energy_selfconsumption/models/supply_point.py:0 #, python-format msgid "Invalid CUPS: The checksum is incorrect." msgstr "CUPS no và lid: la suma de comprovació és incorrecta." @@ -2323,6 +2450,7 @@ msgstr "CUPS no và lid: la suma de comprovació és incorrecta." #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/models/supply_point.py:0 +#: code:addons/energy_selfconsumption/models/supply_point.py:0 #, python-format msgid "Invalid CUPS: The length is incorrect." msgstr "CUPS no và lid: la longitud és incorrecta." @@ -2330,6 +2458,7 @@ msgstr "CUPS no và lid: la longitud és incorrecta." #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/models/supply_point.py:0 +#: code:addons/energy_selfconsumption/models/supply_point.py:0 #, python-format msgid "Invalid CUPS: does not start with 'ES'." msgstr "CUPS no và lid: no comença amb \"ES\"." @@ -2337,6 +2466,7 @@ msgstr "CUPS no và lid: no comença amb \"ES\"." #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/models/supply_point.py:0 +#: code:addons/energy_selfconsumption/models/supply_point.py:0 #, python-format msgid "Invalid CUPS: has an incorrect format." msgstr "CUPS no và lid: té un format incorrecte." @@ -2344,6 +2474,8 @@ msgstr "CUPS no và lid: té un format incorrecte." #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/models/selfconsumption.py:0 +#: code:addons/energy_selfconsumption/models/selfconsumption.py:0 +#: code:addons/energy_selfconsumption/models/supply_point.py:0 #: code:addons/energy_selfconsumption/models/supply_point.py:0 #, python-format msgid "Invalid Cadastral Reference: {error}" @@ -2352,6 +2484,7 @@ msgstr "Referència cadastral no và lida: {error}" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/models/create_inscription.py:0 +#: code:addons/energy_selfconsumption/models/create_inscription.py:0 #, python-format msgid "Invalid IBAN: {error}" msgstr "IBAN no và lid: {error}" @@ -2359,6 +2492,7 @@ msgstr "IBAN no và lid: {error}" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/models/supply_point.py:0 +#: code:addons/energy_selfconsumption/models/supply_point.py:0 #, python-format msgid "Invalid VAT: {error}" msgstr "NIF/CIF no và lid: {error}" @@ -2401,6 +2535,7 @@ msgstr "És Seguidor" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 +#: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 #, python-format msgid "Is the owner the same partner?" msgstr "El propietari és el mateix soci?" @@ -2418,6 +2553,7 @@ msgstr "Apunt comptable" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 +#: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 #, python-format msgid "Lang" msgstr "Idioma" @@ -2425,6 +2561,7 @@ msgstr "Idioma" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 +#: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 #, python-format msgid "Language not found." msgstr "Idioma no trobat." @@ -2435,6 +2572,8 @@ msgid "Last Date Invoiced" msgstr "Última data facturada" #. module: energy_selfconsumption +#: model:ir.model.fields,field_description:energy_selfconsumption.field_change_distribution_table_import_line_wizard____last_update +#: model:ir.model.fields,field_description:energy_selfconsumption.field_change_distribution_table_import_wizard____last_update #: model:ir.model.fields,field_description:energy_selfconsumption.field_clean_supply_point_assignation_wizard____last_update #: model:ir.model.fields,field_description:energy_selfconsumption.field_energy_selfconsumption_change_state_inscription_lines_wizard____last_update #: model:ir.model.fields,field_description:energy_selfconsumption.field_energy_selfconsumption_change_state_inscription_wizard____last_update @@ -2465,6 +2604,8 @@ msgid "Last Period Start" msgstr "Inici de l'últim perÃÂode" #. module: energy_selfconsumption +#: model:ir.model.fields,field_description:energy_selfconsumption.field_change_distribution_table_import_line_wizard__write_uid +#: model:ir.model.fields,field_description:energy_selfconsumption.field_change_distribution_table_import_wizard__write_uid #: model:ir.model.fields,field_description:energy_selfconsumption.field_clean_supply_point_assignation_wizard__write_uid #: model:ir.model.fields,field_description:energy_selfconsumption.field_energy_selfconsumption_change_state_inscription_lines_wizard__write_uid #: model:ir.model.fields,field_description:energy_selfconsumption.field_energy_selfconsumption_change_state_inscription_wizard__write_uid @@ -2485,6 +2626,8 @@ msgid "Last Updated by" msgstr "Última actualització per" #. module: energy_selfconsumption +#: model:ir.model.fields,field_description:energy_selfconsumption.field_change_distribution_table_import_line_wizard__write_date +#: model:ir.model.fields,field_description:energy_selfconsumption.field_change_distribution_table_import_wizard__write_date #: model:ir.model.fields,field_description:energy_selfconsumption.field_clean_supply_point_assignation_wizard__write_date #: model:ir.model.fields,field_description:energy_selfconsumption.field_energy_selfconsumption_change_state_inscription_lines_wizard__write_date #: model:ir.model.fields,field_description:energy_selfconsumption.field_energy_selfconsumption_change_state_inscription_wizard__write_date @@ -2512,6 +2655,7 @@ msgstr "Cognom" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 +#: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 #, python-format msgid "Lastname" msgstr "Cognom" @@ -2528,6 +2672,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/wizards/create_distribution_table_wizard.py:0 +#: code:addons/energy_selfconsumption/wizards/create_distribution_table_wizard.py:0 #: model:ir.model.fields.selection,name:energy_selfconsumption.selection__energy_selfconsumption_create_distribution_table_wizard__type_distribute_excess__linear #, python-format msgid "Linear" @@ -2581,6 +2726,7 @@ msgstr "LÃÂnia principal" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 +#: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 #, python-format msgid "Male" msgstr "" @@ -2598,6 +2744,7 @@ msgstr "Mandat filtrat" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/wizards/contract_generation_wizard.py:0 +#: code:addons/energy_selfconsumption/wizards/contract_generation_wizard.py:0 #, python-format msgid "Mandate not found for {partner}" msgstr "Mandat no trobat per {partner}" @@ -2610,6 +2757,7 @@ msgstr "Potència mà xima distribuïda" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 +#: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 #: model:ir.model.fields,field_description:energy_selfconsumption.field_energy_selfconsumption_supply_point__contracted_power #, python-format msgid "Maximum contracted power" @@ -2653,6 +2801,7 @@ msgstr "Modalitat" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/models/selfconsumption.py:0 +#: code:addons/energy_selfconsumption/models/selfconsumption.py:0 #, python-format msgid "Must have a valid Distribution Table." msgstr "Ha de tenir una taula de repartiment validada." @@ -2678,6 +2827,7 @@ msgstr "NOM I COGNOM (Titular del subministrament)" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 +#: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 #: model:ir.model.fields,field_description:energy_selfconsumption.field_contract_contract__supply_point_name #: model:ir.model.fields,field_description:energy_selfconsumption.field_energy_selfconsumption_distribution_table__name #: model:ir.model.fields,field_description:energy_selfconsumption.field_energy_selfconsumption_inscription_selfconsumption__name @@ -2698,13 +2848,27 @@ msgstr "Nom de l'empresa" msgid "Necessary data for the integration of the Community:" msgstr "Dades necessà ries per a la integració de la Comunitat:" +#. module: energy_selfconsumption +#. odoo-python +#: code:addons/energy_selfconsumption/wizards/change_distribution_table_import_wizard.py:0 +#: model:ir.model.fields.selection,name:energy_selfconsumption.selection__change_distribution_table_import_wizard__state__new +#, python-format +msgid "New" +msgstr "Nou" + #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/models/supply_point.py:0 +#: code:addons/energy_selfconsumption/models/supply_point.py:0 #, python-format msgid "New Supply Point" msgstr "Nou punt de subministrament" +#. module: energy_selfconsumption +#: model_terms:ir.ui.view,arch_db:energy_selfconsumption.view_change_distribution_table_import_wizard_form +msgid "New registrations" +msgstr "Nous registres" + #. module: energy_selfconsumption #: model:ir.model.fields,field_description:energy_selfconsumption.field_energy_selfconsumption_distribution_table__activity_calendar_event_id #: model:ir.model.fields,field_description:energy_selfconsumption.field_energy_selfconsumption_selfconsumption__activity_calendar_event_id @@ -2754,24 +2918,35 @@ msgstr "Final del perÃÂode següent" msgid "Next Period Start" msgstr "Inici del perÃÂode següent" +#. module: energy_selfconsumption +#: model_terms:ir.ui.view,arch_db:energy_selfconsumption.view_change_distribution_table_import_wizard_form +msgid "Next step" +msgstr "Següent pas" + #. module: energy_selfconsumption #. odoo-python + #: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 #: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 #: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 +#: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 +#: code:addons/energy_selfconsumption/models/partner.py:0 #: code:addons/energy_selfconsumption/models/partner.py:0 #: code:addons/energy_selfconsumption/models/supply_point.py:0 +#: code:addons/energy_selfconsumption/models/supply_point.py:0 +#: code:addons/energy_selfconsumption/wizards/create_distribution_table_wizard.py:0 #: code:addons/energy_selfconsumption/wizards/create_distribution_table_wizard.py:0 #: model:ir.model.fields.selection,name:energy_selfconsumption.selection__energy_selfconsumption_create_distribution_table_wizard__distribute_excess__no #: model:ir.model.fields.selection,name:energy_selfconsumption.selection__energy_selfconsumption_supply_point__used_in_selfconsumption__no #: model:ir.model.fields.selection,name:energy_selfconsumption.selection__res_partner__vulnerability_situation__no #, python-format msgid "No" -msgstr "" +msgstr "No" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/models/create_inscription.py:0 +#: code:addons/energy_selfconsumption/models/create_inscription.py:0 #, python-format msgid "No participation found for this project." msgstr "No s'ha trobat cap participació per a aquest projecte." @@ -2779,8 +2954,11 @@ msgstr "No s'ha trobat cap participació per a aquest projecte." #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/models/selfconsumption.py:0 +#: code:addons/energy_selfconsumption/models/selfconsumption.py:0 +#: code:addons/energy_selfconsumption/wizards/distribution_table_import_wizard.py:0 #: code:addons/energy_selfconsumption/wizards/distribution_table_import_wizard.py:0 #: code:addons/energy_selfconsumption/wizards/selfconsumption_import_wizard.py:0 +#: code:addons/energy_selfconsumption/wizards/selfconsumption_import_wizard.py:0 #, python-format msgid "No valid encoding was found for the attached file" msgstr "No s'ha trobat cap codificació và lida per al fitxer adjunt" @@ -2788,6 +2966,7 @@ msgstr "No s'ha trobat cap codificació và lida per al fitxer adjunt" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 +#: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 #, python-format msgid "Not binary" msgstr "No binari" @@ -2837,8 +3016,19 @@ msgstr "ALTRES DADES NECESSARIS" #. module: energy_selfconsumption #. odoo-python +#: code:addons/energy_selfconsumption/wizards/change_distribution_table_import_wizard.py:0 +#: model:ir.model.fields.selection,name:energy_selfconsumption.selection__change_distribution_table_import_wizard__state__old +#, python-format +msgid "Old" +msgstr "Antigu" + +#. module: energy_selfconsumption +#. odoo-python +#: code:addons/energy_selfconsumption/wizards/distribution_table_import_wizard.py:0 #: code:addons/energy_selfconsumption/wizards/distribution_table_import_wizard.py:0 #: code:addons/energy_selfconsumption/wizards/invoicing_wizard.py:0 +#: code:addons/energy_selfconsumption/wizards/invoicing_wizard.py:0 +#: code:addons/energy_selfconsumption/wizards/selfconsumption_import_wizard.py:0 #: code:addons/energy_selfconsumption/wizards/selfconsumption_import_wizard.py:0 #, python-format msgid "Only csv format files are accepted." @@ -2847,6 +3037,7 @@ msgstr "Només s'accepten fitxers en format csv." #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 +#: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 #, python-format msgid "Other" msgstr "Altres" @@ -2868,6 +3059,7 @@ msgstr "Propietari del subministrament" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/models/create_inscription.py:0 +#: code:addons/energy_selfconsumption/models/create_inscription.py:0 #, python-format msgid "Owner could not be created or found." msgstr "No s'ha pogut crear ni trobar el propietari." @@ -2894,6 +3086,7 @@ msgstr "Participació" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 +#: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 #, python-format msgid "Participation does not exist." msgstr "La participació no existeix." @@ -2904,6 +3097,7 @@ msgid "Participation inscription" msgstr "Inscripció de participació" #. module: energy_selfconsumption +#: model:ir.model.fields,field_description:energy_selfconsumption.field_change_distribution_table_import_line_wizard__participation_real_quantity #: model:ir.model.fields,field_description:energy_selfconsumption.field_energy_selfconsumption_change_state_inscription_lines_wizard__participation_real_quantity #: model:ir.model.fields,field_description:energy_selfconsumption.field_energy_selfconsumption_inscription_selfconsumption__participation_real_quantity msgid "Participation real quantity" @@ -2917,6 +3111,7 @@ msgstr "Soci" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 +#: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 #, python-format msgid "Partner does not exist." msgstr "El soci no existeix." @@ -2924,6 +3119,7 @@ msgstr "El soci no existeix." #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/models/inscription.py:0 +#: code:addons/energy_selfconsumption/models/inscription.py:0 #, python-format msgid "Partner is already signed up in this project with that cups." msgstr "El soci ja està inscrit en aquest projecte amb aquestes copes." @@ -2931,6 +3127,7 @@ msgstr "El soci ja està inscrit en aquest projecte amb aquestes copes." #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 +#: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 #, python-format msgid "Partner is not cooperator." msgstr "El soci no és col·laborador." @@ -2938,6 +3135,7 @@ msgstr "El soci no és col·laborador." #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/models/create_inscription.py:0 +#: code:addons/energy_selfconsumption/models/create_inscription.py:0 #, python-format msgid "Partner with VAT {vat} is already registered in project {code}" msgstr "El soci amb CIF/NIF {vat} ja està registrat al projecte {code}" @@ -2945,6 +3143,7 @@ msgstr "El soci amb CIF/NIF {vat} ja està registrat al projecte {code}" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/models/create_inscription.py:0 +#: code:addons/energy_selfconsumption/models/create_inscription.py:0 #, python-format msgid "Partner with VAT:<b>{vat}</b> is not a cooperator." msgstr "Col·laborar amb CIF/NIF:<b>{vat}</b> no és un col·laborador." @@ -2952,6 +3151,7 @@ msgstr "Col·laborar amb CIF/NIF:<b>{vat}</b> no és un col·laborador." #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/models/create_inscription.py:0 +#: code:addons/energy_selfconsumption/models/create_inscription.py:0 #, python-format msgid "Partner with VAT:<b>{vat}</b> was not found." msgstr "No s'ha trobat el soci amb CIF/NIF:<b>{vat}</b>." @@ -2976,6 +3176,7 @@ msgstr "Percentatge de potència distribuïda" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 +#: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 #, python-format msgid "Phone" msgstr "Telèfon" @@ -2988,6 +3189,7 @@ msgstr "Potència (kW)" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/models/selfconsumption.py:0 +#: code:addons/energy_selfconsumption/models/selfconsumption.py:0 #: model:ir.model.fields.selection,name:energy_selfconsumption.selection__energy_selfconsumption_define_invoicing_mode_wizard__invoicing_mode__power_acquired #: model:ir.model.fields.selection,name:energy_selfconsumption.selection__energy_selfconsumption_invoicing_wizard__invoicing_mode__power_acquired #: model:ir.model.fields.selection,name:energy_selfconsumption.selection__energy_selfconsumption_selfconsumption__invoicing_mode__power_acquired @@ -3010,6 +3212,11 @@ msgstr "Informe de l'acord de compartició d'energia" msgid "Power acquired" msgstr "Potència adquirida" +#. module: energy_selfconsumption +#: model_terms:ir.ui.view,arch_db:energy_selfconsumption.view_change_distribution_table_import_wizard_form +msgid "Previous step" +msgstr "Pas anterior" + #. module: energy_selfconsumption #: model:ir.model.fields,field_description:energy_selfconsumption.field_energy_selfconsumption_define_invoicing_mode_wizard__price msgid "Price" @@ -3023,6 +3230,7 @@ msgstr "PolÃÂtica de privadesa" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 +#: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 #, python-format msgid "Privacy policy file text" msgstr "Text del fitxer de la polÃÂtica de privadesa" @@ -3053,6 +3261,8 @@ msgstr "Projecte" #. odoo-python #: code:addons/energy_selfconsumption/models/selfconsumption.py:0 #: code:addons/energy_selfconsumption/models/selfconsumption.py:0 +#: code:addons/energy_selfconsumption/models/selfconsumption.py:0 +#: code:addons/energy_selfconsumption/models/selfconsumption.py:0 #, python-format msgid "Project must have a valid Code." msgstr "El projecte ha de tenir un CUP và lid." @@ -3061,6 +3271,8 @@ msgstr "El projecte ha de tenir un CUP và lid." #. odoo-python #: code:addons/energy_selfconsumption/models/selfconsumption.py:0 #: code:addons/energy_selfconsumption/models/selfconsumption.py:0 +#: code:addons/energy_selfconsumption/models/selfconsumption.py:0 +#: code:addons/energy_selfconsumption/models/selfconsumption.py:0 #, python-format msgid "Project must have a valid Rated Power." msgstr "El projecte ha de tenir una potència nominal và lida." @@ -3068,6 +3280,7 @@ msgstr "El projecte ha de tenir una potència nominal và lida." #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/models/selfconsumption.py:0 +#: code:addons/energy_selfconsumption/models/selfconsumption.py:0 #, python-format msgid "Project must have defined a invoicing mode before activation." msgstr "" @@ -3076,6 +3289,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/wizards/create_distribution_table_wizard.py:0 +#: code:addons/energy_selfconsumption/wizards/create_distribution_table_wizard.py:0 #: model:ir.model.fields.selection,name:energy_selfconsumption.selection__energy_selfconsumption_create_distribution_table_wizard__type_distribute_excess__proportional #, python-format msgid "Proportional" @@ -3094,6 +3308,11 @@ msgstr "Quantitat" msgid "Quotechar in import CSV file." msgstr "Carà cter de citació al arxiu CSV d'importació." +#. module: energy_selfconsumption +#: model_terms:ir.ui.view,arch_db:energy_selfconsumption.view_change_distribution_table_import_wizard_form +msgid "Record deregistration" +msgstr "Inscripció de desinscripció" + #. module: energy_selfconsumption #: model:ir.model.fields,field_description:energy_selfconsumption.field_energy_selfconsumption_define_invoicing_mode_wizard__recurring_rule_type msgid "Recurrence" @@ -3161,6 +3380,11 @@ msgstr "Restableix a l'esborrany" msgid "Responsible User" msgstr "Usuari responsable" +#. module: energy_selfconsumption +#: model_terms:ir.ui.view,arch_db:energy_selfconsumption.view_change_distribution_table_import_wizard_form +msgid "Retain old records" +msgstr "Mantenir registres antics" + #. module: energy_selfconsumption #: model_terms:ir.ui.view,arch_db:energy_selfconsumption.selfconsumption_form_view msgid "Return to Draft" @@ -3242,6 +3466,7 @@ msgstr "Recordatori de facturació autoconsum ${ object.name }" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/models/distribution_table.py:0 +#: code:addons/energy_selfconsumption/models/distribution_table.py:0 #, python-format msgid "Self-consumption project already has a table in process" msgstr "El projecte d'autoconsum ja té una taula en trà mit" @@ -3249,6 +3474,7 @@ msgstr "El projecte d'autoconsum ja té una taula en trà mit" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/models/distribution_table.py:0 +#: code:addons/energy_selfconsumption/models/distribution_table.py:0 #, python-format msgid "Self-consumption project already has a validated table" msgstr "El projecte d'autoconsum ja té una taula validada" @@ -3452,16 +3678,18 @@ msgid "State" msgstr "ProvÃÂncia" #. module: energy_selfconsumption +#: model:ir.model.fields,field_description:energy_selfconsumption.field_energy_selfconsumption_supply_point_assignation__supply_point_state +msgid "State Name" +msgstr "Nom de l'estat" + +#. module: energy_selfconsumption +#: model:ir.model.fields,field_description:energy_selfconsumption.field_change_distribution_table_import_line_wizard__state +#: model:ir.model.fields,field_description:energy_selfconsumption.field_change_distribution_table_import_wizard__state #: model:ir.model.fields,field_description:energy_selfconsumption.field_energy_selfconsumption_change_state_inscription_lines_wizard__state #: model:ir.model.fields,field_description:energy_selfconsumption.field_energy_selfconsumption_inscription_selfconsumption__state msgid "Status" msgstr "Estat" -#. module: energy_selfconsumption -#: model:ir.model.fields,field_description:energy_selfconsumption.field_energy_selfconsumption_supply_point_assignation__supply_point_state -msgid "State Name" -msgstr "Nom de l'estat" - #. module: energy_selfconsumption #: model:ir.model.fields,help:energy_selfconsumption.field_energy_selfconsumption_distribution_table__activity_state #: model:ir.model.fields,help:energy_selfconsumption.field_energy_selfconsumption_selfconsumption__activity_state @@ -3557,6 +3785,11 @@ msgstr "Punt de subministrament filtrat" msgid "Supply Points" msgstr "Punts de subministrament" +#. module: energy_selfconsumption +#: model_terms:ir.ui.view,arch_db:energy_selfconsumption.selfconsumption_invoice_template +msgid "Tax 15%" +msgstr "" + #. module: energy_selfconsumption #: model:ir.model.fields,field_description:energy_selfconsumption.field_energy_selfconsumption_supply_point_assignation__owner_vat msgid "Tax ID" @@ -3565,6 +3798,7 @@ msgstr "Impost ID" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/models/create_inscription.py:0 +#: code:addons/energy_selfconsumption/models/create_inscription.py:0 #, python-format msgid "The IBAN field cannot be empty." msgstr "El camp IBAN no pot estar buit." @@ -3582,6 +3816,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/wizards/invoicing_wizard.py:0 +#: code:addons/energy_selfconsumption/wizards/invoicing_wizard.py:0 #, python-format msgid "The contract has no lines" msgstr "El contracte no té lÃÂnies" @@ -3589,6 +3824,7 @@ msgstr "El contracte no té lÃÂnies" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 +#: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 #, python-format msgid "The email is not the same." msgstr "El correu electrònic no és el mateix." @@ -3597,6 +3833,8 @@ msgstr "El correu electrònic no és el mateix." #. odoo-python #: code:addons/energy_selfconsumption/wizards/invoicing_wizard.py:0 #: code:addons/energy_selfconsumption/wizards/invoicing_wizard.py:0 +#: code:addons/energy_selfconsumption/wizards/invoicing_wizard.py:0 +#: code:addons/energy_selfconsumption/wizards/invoicing_wizard.py:0 #, python-format msgid "The energy generated must be greater than 0 (kWh)." msgstr "L'energia generada ha de ser superior a 0 (kWh)." @@ -3604,6 +3842,7 @@ msgstr "L'energia generada ha de ser superior a 0 (kWh)." #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/wizards/selfconsumption_import_wizard.py:0 +#: code:addons/energy_selfconsumption/wizards/selfconsumption_import_wizard.py:0 #, python-format msgid "The file should contain 28 columns and not {header_length} columns." msgstr "El fitxer ha de contenir 28 columnes i no {header_length} columnes." @@ -3611,6 +3850,7 @@ msgstr "El fitxer ha de contenir 28 columnes i no {header_length} columnes." #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 +#: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 #, python-format msgid "" "The form is not open. For more information write to your Energy Community " @@ -3622,6 +3862,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/wizards/invoicing_wizard.py:0 +#: code:addons/energy_selfconsumption/wizards/invoicing_wizard.py:0 #, python-format msgid "" "The number of contracts selected does not match the number of contracts " @@ -3633,6 +3874,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/models/supply_point_assignation.py:0 +#: code:addons/energy_selfconsumption/models/supply_point_assignation.py:0 #, python-format msgid "The partner of the supply point is not subscribed to the project" msgstr "El soci del punt de subministrament no està subscrit al projecte" @@ -3640,6 +3882,7 @@ msgstr "El soci del punt de subministrament no està subscrit al projecte" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/wizards/create_distribution_table_wizard.py:0 +#: code:addons/energy_selfconsumption/wizards/create_distribution_table_wizard.py:0 #, python-format msgid "The project has to have a power greater than 0." msgstr "El projecte ha de tenir una potència superior a 0." @@ -3647,6 +3890,7 @@ msgstr "El projecte ha de tenir una potència superior a 0." #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/models/selfconsumption.py:0 +#: code:addons/energy_selfconsumption/models/selfconsumption.py:0 #, python-format msgid "" "The report can be downloaded when the project is in activation or active " @@ -3662,6 +3906,7 @@ msgstr "La suma de tots els coeficients ha de resultar 1" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/wizards/distribution_table_import_wizard.py:0 +#: code:addons/energy_selfconsumption/wizards/distribution_table_import_wizard.py:0 #, python-format msgid "" "The sum of coefficients for the following hours is not equal to 1: %s, " @@ -3670,6 +3915,7 @@ msgstr "La suma de coeficients per les hores següents no és igual a 1: %s, " #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/wizards/distribution_table_import_wizard.py:0 +#: code:addons/energy_selfconsumption/wizards/distribution_table_import_wizard.py:0 #, python-format msgid "The sum of coefficients is not equal to 1: %s" msgstr "La suma de coeficients no és igual a 1: %s" @@ -3677,6 +3923,7 @@ msgstr "La suma de coeficients no és igual a 1: %s" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/models/distribution_table.py:0 +#: code:addons/energy_selfconsumption/models/distribution_table.py:0 #, python-format msgid "" "The supply point can't be removed because the distribution table state is " @@ -3697,6 +3944,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 +#: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 #, python-format msgid "" "There is already an individual photovoltaic self-consumption or collective " @@ -3708,6 +3956,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/wizards/contract_generation_wizard.py:0 +#: code:addons/energy_selfconsumption/wizards/contract_generation_wizard.py:0 #, python-format msgid "There is no distribution table in proces of activation." msgstr "No hi ha cap taula de distribució en procés d’activació." @@ -3732,6 +3981,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/wizards/distribution_table_import_wizard.py:0 +#: code:addons/energy_selfconsumption/wizards/distribution_table_import_wizard.py:0 #, python-format msgid "There isn't any supply point with this code: {code}" msgstr "No hi ha cap punt de subministrament amb aquest CUPS: {code}" @@ -3756,6 +4006,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/models/distribution_table.py:0 +#: code:addons/energy_selfconsumption/models/distribution_table.py:0 #, python-format msgid "" "To change the type you must first delete the associated distribution points.\n" @@ -3811,6 +4062,11 @@ msgstr "" msgid "Unactivate form" msgstr "Desactiva el formulari" +#. module: energy_selfconsumption +#: model_terms:ir.ui.view,arch_db:energy_selfconsumption.view_change_distribution_table_import_wizard_form +msgid "Update old records" +msgstr "Actualitza registres antics" + #. module: energy_selfconsumption #: model:ir.model.fields,field_description:energy_selfconsumption.field_energy_selfconsumption_inscription_selfconsumption__used_in_selfconsumption #: model:ir.model.fields,field_description:energy_selfconsumption.field_energy_selfconsumption_supply_point__used_in_selfconsumption @@ -3825,6 +4081,7 @@ msgstr "Rol actual de l'usuari" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 +#: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 #, python-format msgid "VAT of the partner" msgstr "CIF/NIF del soci" @@ -3837,6 +4094,7 @@ msgstr "Validar" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/models/distribution_table.py:0 +#: code:addons/energy_selfconsumption/models/distribution_table.py:0 #: model:ir.model.fields.selection,name:energy_selfconsumption.selection__energy_selfconsumption_distribution_table__state__validated #, python-format msgid "Validated" @@ -3845,6 +4103,7 @@ msgstr "Validat" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/models/distribution_table.py:0 +#: code:addons/energy_selfconsumption/models/distribution_table.py:0 #: model:ir.model.fields.selection,name:energy_selfconsumption.selection__energy_selfconsumption_distribution_table__type__hourly #, python-format msgid "Variable hourly" @@ -3888,6 +4147,7 @@ msgstr "Historial de la comunicació del lloc web" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 +#: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 #, python-format msgid "What participation would you like?" msgstr "Quina participació t'agradaria?" @@ -3897,9 +4157,15 @@ msgstr "Quina participació t'agradaria?" #: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 #: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 #: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 +#: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 +#: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 +#: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 #: code:addons/energy_selfconsumption/models/partner.py:0 +#: code:addons/energy_selfconsumption/models/partner.py:0 +#: code:addons/energy_selfconsumption/models/supply_point.py:0 #: code:addons/energy_selfconsumption/models/supply_point.py:0 #: code:addons/energy_selfconsumption/wizards/create_distribution_table_wizard.py:0 +#: code:addons/energy_selfconsumption/wizards/create_distribution_table_wizard.py:0 #: model:ir.model.fields.selection,name:energy_selfconsumption.selection__energy_selfconsumption_create_distribution_table_wizard__distribute_excess__yes #: model:ir.model.fields.selection,name:energy_selfconsumption.selection__energy_selfconsumption_supply_point__used_in_selfconsumption__yes #: model:ir.model.fields.selection,name:energy_selfconsumption.selection__res_partner__vulnerability_situation__yes @@ -3910,6 +4176,7 @@ msgstr "SÃÂ" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 +#: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 #, python-format msgid "You are already enrolled in this self-consumption project." msgstr "Ja està s inscrit en aquest projecte d'autoconsum." @@ -3940,6 +4207,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 +#: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 #, python-format msgid "" "You can find the annual electricity use on the electricity bill(Total annual" @@ -3951,6 +4219,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/wizards/clean_supply_point_assignation_wizard.py:0 +#: code:addons/energy_selfconsumption/wizards/clean_supply_point_assignation_wizard.py:0 #, python-format msgid "" "You can only delete assigned distribution points from a distribution table " @@ -3962,6 +4231,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/models/contract_line.py:0 +#: code:addons/energy_selfconsumption/models/contract_line.py:0 #, python-format msgid "" "You can't have a date of next invoice anterior to the start of the contract " @@ -3973,6 +4243,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 +#: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 #, python-format msgid "" "You have a recognized situation of vulnerability due to energy poverty or " @@ -3984,6 +4255,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/models/create_inscription.py:0 +#: code:addons/energy_selfconsumption/models/create_inscription.py:0 #, python-format msgid "You have successfully registered." msgstr "Us heu registrat correctament." @@ -3991,6 +4263,8 @@ msgstr "Us heu registrat correctament." #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/wizards/change_state_inscription_wizard.py:0 +#: code:addons/energy_selfconsumption/wizards/change_state_inscription_wizard.py:0 +#: code:addons/energy_selfconsumption/wizards/create_distribution_table_wizard.py:0 #: code:addons/energy_selfconsumption/wizards/create_distribution_table_wizard.py:0 #, python-format msgid "You have to select at least one entry." @@ -3999,6 +4273,7 @@ msgstr "Heu de seleccionar almenys una entrada." #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/models/selfconsumption.py:0 +#: code:addons/energy_selfconsumption/models/selfconsumption.py:0 #, python-format msgid "" "You need to add the privacy policy file to display the form.To modify the " @@ -4015,6 +4290,7 @@ msgstr "Les vostres dades s'han registrat correctament." #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/wizards/create_distribution_table_wizard.py:0 +#: code:addons/energy_selfconsumption/wizards/create_distribution_table_wizard.py:0 #, python-format msgid "Your distribution percentage cannot be 0." msgstr "El vostre percentatge de distribució no pot ser 0." @@ -4022,6 +4298,7 @@ msgstr "El vostre percentatge de distribució no pot ser 0." #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/wizards/create_distribution_table_wizard.py:0 +#: code:addons/energy_selfconsumption/wizards/create_distribution_table_wizard.py:0 #, python-format msgid "Your distribution percentage cannot exceed 100%." msgstr "El vostre percentatge de distribució no pot superar el 100%." @@ -4035,6 +4312,7 @@ msgstr "Codi Postal" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 +#: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 #: model:ir.model.fields,field_description:energy_selfconsumption.field_energy_selfconsumption_selfconsumption__zip #: model:ir.model.fields,field_description:energy_selfconsumption.field_energy_selfconsumption_supply_point__zip #: model:ir.model.fields,field_description:energy_selfconsumption.field_energy_selfconsumption_supply_point_assignation__supply_point_postalcode diff --git a/energy_selfconsumption/i18n/energy_selfconsumption.pot b/energy_selfconsumption/i18n/energy_selfconsumption.pot index 32b4c4509b5b0d24e61ce785155625d5ff6d8a6e..fd3987eed4a95847d753aca790c2e079918b0089 100644 --- a/energy_selfconsumption/i18n/energy_selfconsumption.pot +++ b/energy_selfconsumption/i18n/energy_selfconsumption.pot @@ -6,8 +6,8 @@ msgid "" msgstr "" "Project-Id-Version: Odoo Server 16.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-02-13 10:06+0000\n" -"PO-Revision-Date: 2025-02-13 10:06+0000\n" +"POT-Creation-Date: 2025-03-03 07:47+0000\n" +"PO-Revision-Date: 2025-03-03 07:47+0000\n" "Last-Translator: \n" "Language-Team: \n" "MIME-Version: 1.0\n" @@ -18,17 +18,22 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/wizards/contract_generation_wizard.py:0 +#: code:addons/energy_selfconsumption/wizards/contract_generation_wizard.py:0 #, python-format msgid "" "\n" "CAU: {cau}\n" -"Total installed nominal power (kW): {power}\n" -"Partition coefficient: {coefficient}" +" Total installed nominal power (kW): {power}\n" +" Partition coefficient: {coefficient}\n" +" Daily nominal power acquired: {power} kWn * {coefficient} = {power_acquired} kWn/day\n" +" Days to be invoiced: {days_invoiced} days\n" +" Total amount invoiced: {days_invoiced} days * {power_acquired} kWn/day = {total_amount}\n" msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/wizards/invoicing_wizard.py:0 +#: code:addons/energy_selfconsumption/wizards/invoicing_wizard.py:0 #, python-format msgid "" "\n" @@ -40,6 +45,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/wizards/invoicing_wizard.py:0 +#: code:addons/energy_selfconsumption/wizards/invoicing_wizard.py:0 #, python-format msgid "" "\n" @@ -50,6 +56,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/wizards/invoicing_wizard.py:0 +#: code:addons/energy_selfconsumption/wizards/invoicing_wizard.py:0 #, python-format msgid "" "\n" @@ -61,6 +68,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/wizards/invoicing_wizard.py:0 +#: code:addons/energy_selfconsumption/wizards/invoicing_wizard.py:0 #, python-format msgid "" "\n" @@ -391,6 +399,8 @@ msgstr "" #. odoo-python #: code:addons/energy_selfconsumption/wizards/selfconsumption_import_wizard.py:0 #: code:addons/energy_selfconsumption/wizards/selfconsumption_import_wizard.py:0 +#: code:addons/energy_selfconsumption/wizards/selfconsumption_import_wizard.py:0 +#: code:addons/energy_selfconsumption/wizards/selfconsumption_import_wizard.py:0 #, python-format msgid "<li>Line {line}: {error}</li>\n" msgstr "" @@ -408,7 +418,7 @@ msgstr "" #: model_terms:ir.ui.view,arch_db:energy_selfconsumption.selfconsumption_invoice_template msgid "" "<span groups=\"account.group_show_line_subtotals_tax_excluded\">Amount</span>\n" -" <span groups=\"account.group_show_line_subtotals_tax_included\">Total Price</span>" +" <span groups=\"account.group_show_line_subtotals_tax_included\">Total Price</span>" msgstr "" #. module: energy_selfconsumption @@ -426,16 +436,6 @@ msgstr "" msgid "<span> kWn/day</span>" msgstr "" -#. module: energy_selfconsumption -#: model_terms:ir.ui.view,arch_db:energy_selfconsumption.selfconsumption_invoice_template -msgid "<span>Description</span>" -msgstr "" - -#. module: energy_selfconsumption -#: model_terms:ir.ui.view,arch_db:energy_selfconsumption.selfconsumption_invoice_template -msgid "<span>Disc.%</span>" -msgstr "" - #. module: energy_selfconsumption #: model_terms:ir.ui.view,arch_db:energy_selfconsumption.selfconsumption_invoice_template msgid "<span>Import</span>" @@ -476,16 +476,6 @@ msgstr "" msgid "<span>Total installation generation</span>" msgstr "" -#. module: energy_selfconsumption -#: model_terms:ir.ui.view,arch_db:energy_selfconsumption.selfconsumption_invoice_template -msgid "<span>Unit Price</span>" -msgstr "" - -#. module: energy_selfconsumption -#: model_terms:ir.ui.view,arch_db:energy_selfconsumption.selfconsumption_invoice_template -msgid "<strong class=\"mr16\">Subtotal</strong>" -msgstr "" - #. module: energy_selfconsumption #: model_terms:ir.ui.view,arch_db:energy_selfconsumption.inscription_data_headline_message_closed msgid "<strong>Closed form</strong>" @@ -522,6 +512,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/models/selfconsumption.py:0 +#: code:addons/energy_selfconsumption/models/selfconsumption.py:0 #: model:ir.model.constraint,message:energy_selfconsumption.constraint_energy_selfconsumption_selfconsumption_unique_code #, python-format msgid "A project with this CAU already exists." @@ -530,6 +521,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/models/supply_point.py:0 +#: code:addons/energy_selfconsumption/models/supply_point.py:0 #: model:ir.model.constraint,message:energy_selfconsumption.constraint_energy_selfconsumption_supply_point_unique_code_company_id #, python-format msgid "A supply point with this code already exists." @@ -568,6 +560,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/wizards/define_invoicing_mode_wizard.py:0 +#: code:addons/energy_selfconsumption/wizards/define_invoicing_mode_wizard.py:0 #, python-format msgid "Accounting Journal not found." msgstr "" @@ -595,8 +588,10 @@ msgstr "" #: code:addons/energy_selfconsumption/models/inscription.py:0 #: code:addons/energy_selfconsumption/models/selfconsumption.py:0 #: code:addons/energy_selfconsumption/wizards/change_state_inscription_wizard.py:0 +#: code:addons/energy_selfconsumption/wizards/change_distribution_table_import_wizard.py:0 #: model:ir.model.fields,field_description:energy_selfconsumption.field_energy_selfconsumption_distribution_table__active #: model:ir.model.fields,field_description:energy_selfconsumption.field_energy_selfconsumption_selfconsumption__active +#: model:ir.model.fields.selection,name:energy_selfconsumption.selection__change_distribution_table_import_line_wizard__state__active #: model:ir.model.fields.selection,name:energy_selfconsumption.selection__energy_selfconsumption_change_state_inscription_lines_wizard__state__active #: model:ir.model.fields.selection,name:energy_selfconsumption.selection__energy_selfconsumption_distribution_table__state__active #: model:ir.model.fields.selection,name:energy_selfconsumption.selection__energy_selfconsumption_inscription_selfconsumption__state__active @@ -643,6 +638,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 +#: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 #, python-format msgid "Address" msgstr "" @@ -682,6 +678,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 +#: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 #, python-format msgid "Annual electricity use?" msgstr "" @@ -689,6 +686,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 +#: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 #, python-format msgid "Are you in a vulnerable situation?" msgstr "" @@ -704,6 +702,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/wizards/clean_supply_point_assignation_wizard.py:0 +#: code:addons/energy_selfconsumption/wizards/clean_supply_point_assignation_wizard.py:0 #, python-format msgid "Are you sure you want to delete all assigned distribution points?" msgstr "" @@ -748,6 +747,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 +#: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 #, python-format msgid "Birthdate" msgstr "" @@ -760,6 +760,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 +#: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 #, python-format msgid "CIF/NIF" msgstr "" @@ -778,6 +779,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/wizards/invoicing_wizard.py:0 +#: code:addons/energy_selfconsumption/wizards/invoicing_wizard.py:0 #, python-format msgid "CSV file could not be loaded" msgstr "" @@ -785,6 +787,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 +#: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 #: model:ir.model.fields,field_description:energy_selfconsumption.field_energy_selfconsumption_inscription_selfconsumption__code #: model:ir.model.fields,field_description:energy_selfconsumption.field_energy_selfconsumption_supply_point__code #: model:ir.model.fields,field_description:energy_selfconsumption.field_energy_selfconsumption_supply_point_assignation__code @@ -797,6 +800,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 +#: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 #, python-format msgid "" "CUPS is the Unified Code of the Point of Supply. You can find it on " @@ -806,6 +810,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/wizards/define_invoicing_mode_wizard.py:0 +#: code:addons/energy_selfconsumption/wizards/define_invoicing_mode_wizard.py:0 #, python-format msgid "" "CUPS: {code}\n" @@ -822,12 +827,14 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 +#: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 #, python-format msgid "Cadastral reference of the property" msgstr "" #. module: energy_selfconsumption #: model_terms:ir.ui.view,arch_db:energy_selfconsumption.contract_generation_wizard_form_view +#: model_terms:ir.ui.view,arch_db:energy_selfconsumption.view_change_distribution_table_import_wizard_form #: model_terms:ir.ui.view,arch_db:energy_selfconsumption.view_clean_supply_point_assignation_wizard msgid "Cancel" msgstr "" @@ -836,12 +843,27 @@ msgstr "" #. odoo-python #: code:addons/energy_selfconsumption/models/inscription.py:0 #: code:addons/energy_selfconsumption/wizards/change_state_inscription_wizard.py:0 +#: code:addons/energy_selfconsumption/wizards/change_distribution_table_import_wizard.py:0 +#: model:ir.model.fields.selection,name:energy_selfconsumption.selection__change_distribution_table_import_line_wizard__state__change +#: model:ir.model.fields.selection,name:energy_selfconsumption.selection__change_distribution_table_import_wizard__state__change #: model:ir.model.fields.selection,name:energy_selfconsumption.selection__energy_selfconsumption_change_state_inscription_lines_wizard__state__change #: model:ir.model.fields.selection,name:energy_selfconsumption.selection__energy_selfconsumption_inscription_selfconsumption__state__change #, python-format msgid "Change" msgstr "" +#. module: energy_selfconsumption +#: model:ir.actions.act_window,name:energy_selfconsumption.action_change_distribution_table_import_wizard +msgid "Change distribution table" +msgstr "" + +#. module: energy_selfconsumption +#: model:ir.model.fields,field_description:energy_selfconsumption.field_change_distribution_table_import_wizard__change_distribution_table_import_line_wizard_ids +#: model:ir.model.fields,field_description:energy_selfconsumption.field_change_distribution_table_import_wizard__change_distribution_table_import_line_wizard_news_ids +#: model:ir.model.fields,field_description:energy_selfconsumption.field_change_distribution_table_import_wizard__change_distribution_table_import_line_wizard_views_ids +msgid "Change distribution table import line wizard" +msgstr "" + #. module: energy_selfconsumption #: model:ir.actions.act_window,name:energy_selfconsumption.change_state_inscription_wizard_action #: model:ir.actions.server,name:energy_selfconsumption.inscription_to_change_state_action @@ -855,13 +877,32 @@ msgid "Change state inscription lines wizards" msgstr "" #. module: energy_selfconsumption +#: model:ir.model.fields,field_description:energy_selfconsumption.field_change_distribution_table_import_line_wizard__change_distribution_table_import_wizard_id #: model:ir.model.fields,field_description:energy_selfconsumption.field_energy_selfconsumption_change_state_inscription_lines_wizard__change_state_inscription_wizard_id msgid "Change state inscription wizard" msgstr "" +#. module: energy_selfconsumption +#. odoo-python +#: code:addons/energy_selfconsumption/wizards/change_distribution_table_import_wizard.py:0 +#: model:ir.model,name:energy_selfconsumption.model_change_distribution_table_import_line_wizard +#, python-format +msgid "Change_distribution_table_import_line_wizard" +msgstr "" + +#. module: energy_selfconsumption +#. odoo-python +#: code:addons/energy_selfconsumption/wizards/change_distribution_table_import_wizard.py:0 +#: model:ir.model,name:energy_selfconsumption.model_change_distribution_table_import_wizard +#: model_terms:ir.ui.view,arch_db:energy_selfconsumption.view_change_distribution_table_import_wizard_form +#, python-format +msgid "Change_distribution_table_import_wizard" +msgstr "" + #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 +#: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 #: model:ir.model.fields,field_description:energy_selfconsumption.field_energy_selfconsumption_selfconsumption__city #: model:ir.model.fields,field_description:energy_selfconsumption.field_energy_selfconsumption_supply_point__city #: model:ir.model.fields,field_description:energy_selfconsumption.field_energy_selfconsumption_supply_point_assignation__supply_point_town @@ -884,6 +925,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/models/distribution_table.py:0 +#: code:addons/energy_selfconsumption/models/distribution_table.py:0 #: model:ir.actions.server,name:energy_selfconsumption.manager_clean_supply_point_assignation_action #, python-format msgid "Clean supply point assignation" @@ -909,6 +951,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/models/supply_point_assignation.py:0 +#: code:addons/energy_selfconsumption/models/supply_point_assignation.py:0 #, python-format msgid "Coefficient can't be negative." msgstr "" @@ -916,6 +959,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/models/distribution_table.py:0 +#: code:addons/energy_selfconsumption/models/distribution_table.py:0 #, python-format msgid "Coefficient distribution must sum to 1." msgstr "" @@ -932,6 +976,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 +#: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 #, python-format msgid "Company Name" msgstr "" @@ -1001,6 +1046,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 +#: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 #, python-format msgid "Confirm E-mail" msgstr "" @@ -1026,6 +1072,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/wizards/contract_generation_wizard.py:0 +#: code:addons/energy_selfconsumption/wizards/contract_generation_wizard.py:0 #, python-format msgid "Contract - %s - %s" msgstr "" @@ -1093,6 +1140,8 @@ msgid "Create participant table" msgstr "" #. module: energy_selfconsumption +#: model:ir.model.fields,field_description:energy_selfconsumption.field_change_distribution_table_import_line_wizard__create_uid +#: model:ir.model.fields,field_description:energy_selfconsumption.field_change_distribution_table_import_wizard__create_uid #: model:ir.model.fields,field_description:energy_selfconsumption.field_clean_supply_point_assignation_wizard__create_uid #: model:ir.model.fields,field_description:energy_selfconsumption.field_energy_selfconsumption_change_state_inscription_lines_wizard__create_uid #: model:ir.model.fields,field_description:energy_selfconsumption.field_energy_selfconsumption_change_state_inscription_wizard__create_uid @@ -1113,6 +1162,8 @@ msgid "Created by" msgstr "" #. module: energy_selfconsumption +#: model:ir.model.fields,field_description:energy_selfconsumption.field_change_distribution_table_import_line_wizard__create_date +#: model:ir.model.fields,field_description:energy_selfconsumption.field_change_distribution_table_import_wizard__create_date #: model:ir.model.fields,field_description:energy_selfconsumption.field_clean_supply_point_assignation_wizard__create_date #: model:ir.model.fields,field_description:energy_selfconsumption.field_energy_selfconsumption_change_state_inscription_lines_wizard__create_date #: model:ir.model.fields,field_description:energy_selfconsumption.field_energy_selfconsumption_change_state_inscription_wizard__create_date @@ -1193,6 +1244,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/models/selfconsumption.py:0 +#: code:addons/energy_selfconsumption/models/selfconsumption.py:0 #: model_terms:ir.ui.view,arch_db:energy_selfconsumption.selfconsumption_form_view #, python-format msgid "Define Invoicing Mode" @@ -1212,6 +1264,14 @@ msgid "" " acuerdo." msgstr "" +#. module: energy_selfconsumption +#. odoo-python +#: code:addons/energy_selfconsumption/wizards/change_distribution_table_import_wizard.py:0 +#: model:ir.model.fields.selection,name:energy_selfconsumption.selection__change_distribution_table_import_wizard__state__delete +#, python-format +msgid "Delete" +msgstr "" + #. module: energy_selfconsumption #: model:ir.model.fields,help:energy_selfconsumption.field_energy_selfconsumption_distribution_table__hourly_coefficients_imported_delimiter #: model:ir.model.fields,help:energy_selfconsumption.field_energy_selfconsumption_distribution_table_import_wizard__delimiter @@ -1231,6 +1291,8 @@ msgid "Description form" msgstr "" #. module: energy_selfconsumption +#: model:ir.model.fields,field_description:energy_selfconsumption.field_change_distribution_table_import_line_wizard__display_name +#: model:ir.model.fields,field_description:energy_selfconsumption.field_change_distribution_table_import_wizard__display_name #: model:ir.model.fields,field_description:energy_selfconsumption.field_clean_supply_point_assignation_wizard__display_name #: model:ir.model.fields,field_description:energy_selfconsumption.field_energy_selfconsumption_change_state_inscription_lines_wizard__display_name #: model:ir.model.fields,field_description:energy_selfconsumption.field_energy_selfconsumption_change_state_inscription_wizard__display_name @@ -1301,6 +1363,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 +#: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 #, python-format msgid "Do you currently have self-consumption?" msgstr "" @@ -1308,6 +1371,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/wizards/selfconsumption_import_wizard.py:0 +#: code:addons/energy_selfconsumption/wizards/selfconsumption_import_wizard.py:0 #, python-format msgid "Dont exit participation for this project." msgstr "" @@ -1339,6 +1403,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/models/distribution_table.py:0 +#: code:addons/energy_selfconsumption/models/distribution_table.py:0 #: model:ir.model.fields.selection,name:energy_selfconsumption.selection__energy_selfconsumption_distribution_table__state__draft #, python-format msgid "Draft" @@ -1347,6 +1412,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 +#: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 #, python-format msgid "E-mail" msgstr "" @@ -1440,6 +1506,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/models/selfconsumption.py:0 +#: code:addons/energy_selfconsumption/models/selfconsumption.py:0 #: model:ir.model.fields.selection,name:energy_selfconsumption.selection__energy_selfconsumption_define_invoicing_mode_wizard__invoicing_mode__energy_delivered #: model:ir.model.fields.selection,name:energy_selfconsumption.selection__energy_selfconsumption_invoicing_wizard__invoicing_mode__energy_delivered #: model:ir.model.fields.selection,name:energy_selfconsumption.selection__energy_selfconsumption_selfconsumption__invoicing_mode__energy_delivered @@ -1450,6 +1517,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/models/selfconsumption.py:0 +#: code:addons/energy_selfconsumption/models/selfconsumption.py:0 #: model:ir.model.fields.selection,name:energy_selfconsumption.selection__energy_selfconsumption_define_invoicing_mode_wizard__invoicing_mode__energy_custom #: model:ir.model.fields.selection,name:energy_selfconsumption.selection__energy_selfconsumption_invoicing_wizard__invoicing_mode__energy_custom #: model:ir.model.fields.selection,name:energy_selfconsumption.selection__energy_selfconsumption_selfconsumption__invoicing_mode__energy_custom @@ -1460,6 +1528,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/wizards/invoicing_wizard.py:0 +#: code:addons/energy_selfconsumption/wizards/invoicing_wizard.py:0 #, python-format msgid "Energy Delivered Custom: {energy_delivered} kWh" msgstr "" @@ -1477,6 +1546,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/wizards/invoicing_wizard.py:0 +#: code:addons/energy_selfconsumption/wizards/invoicing_wizard.py:0 #, python-format msgid "Energy Delivered: {energy_delivered} kWh" msgstr "" @@ -1490,6 +1560,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 +#: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 #, python-format msgid "Energy Project Name" msgstr "" @@ -1522,6 +1593,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 +#: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 #, python-format msgid "Error format date." msgstr "" @@ -1529,7 +1601,10 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/models/selfconsumption.py:0 +#: code:addons/energy_selfconsumption/models/selfconsumption.py:0 #: code:addons/energy_selfconsumption/wizards/distribution_table_import_wizard.py:0 +#: code:addons/energy_selfconsumption/wizards/distribution_table_import_wizard.py:0 +#: code:addons/energy_selfconsumption/wizards/selfconsumption_import_wizard.py:0 #: code:addons/energy_selfconsumption/wizards/selfconsumption_import_wizard.py:0 #, python-format msgid "Error parsing the file" @@ -1538,6 +1613,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/models/selfconsumption.py:0 +#: code:addons/energy_selfconsumption/models/selfconsumption.py:0 #, python-format msgid "Error reading file" msgstr "" @@ -1577,6 +1653,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 +#: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 #, python-format msgid "Female" msgstr "" @@ -1632,6 +1709,8 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/models/distribution_table.py:0 +#: code:addons/energy_selfconsumption/models/distribution_table.py:0 +#: code:addons/energy_selfconsumption/wizards/create_distribution_table_wizard.py:0 #: code:addons/energy_selfconsumption/wizards/create_distribution_table_wizard.py:0 #: model:ir.model.fields.selection,name:energy_selfconsumption.selection__energy_selfconsumption_create_distribution_table_wizard__type__fixed #: model:ir.model.fields.selection,name:energy_selfconsumption.selection__energy_selfconsumption_distribution_table__type__fixed @@ -1663,6 +1742,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/models/supply_point.py:0 +#: code:addons/energy_selfconsumption/models/supply_point.py:0 #, python-format msgid "" "For the 2.0TD rate, the maximum contracted power must be between 0 and 15 " @@ -1672,6 +1752,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/models/supply_point.py:0 +#: code:addons/energy_selfconsumption/models/supply_point.py:0 #, python-format msgid "" "For the 3.0TD rate, the maximum contracted power must be greater than 15 kW." @@ -1680,6 +1761,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 +#: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 #, python-format msgid "Gender" msgstr "" @@ -1692,6 +1774,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/models/selfconsumption.py:0 +#: code:addons/energy_selfconsumption/models/selfconsumption.py:0 #, python-format msgid "Generate Contracts" msgstr "" @@ -1731,6 +1814,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 +#: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 #, python-format msgid "" "Have to accept and authorize being able to issue payments to this bank " @@ -1741,6 +1825,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 +#: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 #, python-format msgid "Have to accept politic privacy." msgstr "" @@ -1748,6 +1833,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 +#: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 #: model:ir.model.fields,field_description:energy_selfconsumption.field_energy_selfconsumption_selfconsumption__conf_header_description #, python-format msgid "Header description on website form" @@ -1756,6 +1842,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 +#: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 #, python-format msgid "" "How much power of the collective PV installation you would like to purchase." @@ -1764,6 +1851,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 +#: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 #: model:ir.model.fields,field_description:energy_selfconsumption.field_energy_selfconsumption_inscription_selfconsumption__accept #, python-format msgid "" @@ -1775,6 +1863,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 +#: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 #, python-format msgid "I accept privacy policy" msgstr "" @@ -1782,6 +1871,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 +#: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 #, python-format msgid "I prefer to not share it" msgstr "" @@ -1789,11 +1879,14 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 +#: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 #, python-format msgid "IBAN" msgstr "" #. module: energy_selfconsumption +#: model:ir.model.fields,field_description:energy_selfconsumption.field_change_distribution_table_import_line_wizard__id +#: model:ir.model.fields,field_description:energy_selfconsumption.field_change_distribution_table_import_wizard__id #: model:ir.model.fields,field_description:energy_selfconsumption.field_clean_supply_point_assignation_wizard__id #: model:ir.model.fields,field_description:energy_selfconsumption.field_energy_selfconsumption_change_state_inscription_lines_wizard__id #: model:ir.model.fields,field_description:energy_selfconsumption.field_energy_selfconsumption_change_state_inscription_wizard__id @@ -1850,6 +1943,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/models/distribution_table.py:0 +#: code:addons/energy_selfconsumption/models/distribution_table.py:0 #: model:ir.actions.act_window,name:energy_selfconsumption.distribution_table_import_wizard_action #, python-format msgid "Import Distribution Table" @@ -1858,6 +1952,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/wizards/selfconsumption_import_wizard.py:0 +#: code:addons/energy_selfconsumption/wizards/selfconsumption_import_wizard.py:0 #, python-format msgid "Import Errors" msgstr "" @@ -1873,6 +1968,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/models/selfconsumption.py:0 +#: code:addons/energy_selfconsumption/models/selfconsumption.py:0 #, python-format msgid "Import Inscriptions and Supply Points" msgstr "" @@ -1885,6 +1981,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/wizards/selfconsumption_import_wizard.py:0 +#: code:addons/energy_selfconsumption/wizards/selfconsumption_import_wizard.py:0 #, python-format msgid "Import errors found: <ul>{list}</ul>" msgstr "" @@ -1902,6 +1999,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/models/distribution_table.py:0 +#: code:addons/energy_selfconsumption/models/distribution_table.py:0 #: model:ir.model.fields.selection,name:energy_selfconsumption.selection__energy_selfconsumption_distribution_table__state__process #, python-format msgid "In process" @@ -1918,6 +2016,8 @@ msgstr "" #: code:addons/energy_selfconsumption/models/inscription.py:0 #: code:addons/energy_selfconsumption/models/selfconsumption.py:0 #: code:addons/energy_selfconsumption/wizards/change_state_inscription_wizard.py:0 +#: code:addons/energy_selfconsumption/wizards/change_distribution_table_import_wizard.py:0 +#: model:ir.model.fields.selection,name:energy_selfconsumption.selection__change_distribution_table_import_line_wizard__state__inactive #: model:ir.model.fields.selection,name:energy_selfconsumption.selection__energy_selfconsumption_change_state_inscription_lines_wizard__state__inactive #: model:ir.model.fields.selection,name:energy_selfconsumption.selection__energy_selfconsumption_inscription_selfconsumption__state__inactive #: model:ir.model.fields.selection,name:energy_selfconsumption.selection__energy_selfconsumption_selfconsumption__conf_state__inactive @@ -1928,6 +2028,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 +#: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 #, python-format msgid "" "Information necessary for the formalization of the distribution " @@ -1935,6 +2036,7 @@ msgid "" msgstr "" #. module: energy_selfconsumption +#: model:ir.model.fields,field_description:energy_selfconsumption.field_change_distribution_table_import_line_wizard__inscription_id #: model:ir.model.fields,field_description:energy_selfconsumption.field_energy_selfconsumption_change_state_inscription_lines_wizard__inscription_id #: model:ir.model.fields,field_description:energy_selfconsumption.field_energy_selfconsumption_inscription_selfconsumption__inscription_id #: model:ir.model.fields,field_description:energy_selfconsumption.field_energy_selfconsumption_selfconsumption__inscription_ids @@ -1974,6 +2076,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/models/selfconsumption.py:0 +#: code:addons/energy_selfconsumption/models/selfconsumption.py:0 #, python-format msgid "Invalid CAU: Last 3 digits are not numbers" msgstr "" @@ -1982,6 +2085,8 @@ msgstr "" #. odoo-python #: code:addons/energy_selfconsumption/models/selfconsumption.py:0 #: code:addons/energy_selfconsumption/models/selfconsumption.py:0 +#: code:addons/energy_selfconsumption/models/selfconsumption.py:0 +#: code:addons/energy_selfconsumption/models/selfconsumption.py:0 #, python-format msgid "Invalid CAU: The CUPS does not start with 'ES'." msgstr "" @@ -1990,6 +2095,8 @@ msgstr "" #. odoo-python #: code:addons/energy_selfconsumption/models/selfconsumption.py:0 #: code:addons/energy_selfconsumption/models/selfconsumption.py:0 +#: code:addons/energy_selfconsumption/models/selfconsumption.py:0 +#: code:addons/energy_selfconsumption/models/selfconsumption.py:0 #, python-format msgid "Invalid CAU: The CUPS has an incorrect format." msgstr "" @@ -1997,6 +2104,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/models/selfconsumption.py:0 +#: code:addons/energy_selfconsumption/models/selfconsumption.py:0 #, python-format msgid "Invalid CAU: The character after CUPS is not A" msgstr "" @@ -2005,6 +2113,8 @@ msgstr "" #. odoo-python #: code:addons/energy_selfconsumption/models/selfconsumption.py:0 #: code:addons/energy_selfconsumption/models/selfconsumption.py:0 +#: code:addons/energy_selfconsumption/models/selfconsumption.py:0 +#: code:addons/energy_selfconsumption/models/selfconsumption.py:0 #, python-format msgid "Invalid CAU: The checksum of the CUPS is incorrect." msgstr "" @@ -2013,6 +2123,8 @@ msgstr "" #. odoo-python #: code:addons/energy_selfconsumption/models/selfconsumption.py:0 #: code:addons/energy_selfconsumption/models/selfconsumption.py:0 +#: code:addons/energy_selfconsumption/models/selfconsumption.py:0 +#: code:addons/energy_selfconsumption/models/selfconsumption.py:0 #, python-format msgid "" "Invalid CAU: The first characters related to CUPS are incorrect. The length " @@ -2022,6 +2134,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/models/selfconsumption.py:0 +#: code:addons/energy_selfconsumption/models/selfconsumption.py:0 #, python-format msgid "Invalid CAU: The length is not correct" msgstr "" @@ -2029,6 +2142,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/models/selfconsumption.py:0 +#: code:addons/energy_selfconsumption/models/selfconsumption.py:0 #, python-format msgid "Invalid CIL: Last 3 digits are not numbers" msgstr "" @@ -2037,6 +2151,8 @@ msgstr "" #. odoo-python #: code:addons/energy_selfconsumption/models/selfconsumption.py:0 #: code:addons/energy_selfconsumption/models/selfconsumption.py:0 +#: code:addons/energy_selfconsumption/models/selfconsumption.py:0 +#: code:addons/energy_selfconsumption/models/selfconsumption.py:0 #, python-format msgid "Invalid CIL: The CUPS does not start with 'ES'." msgstr "" @@ -2045,6 +2161,8 @@ msgstr "" #. odoo-python #: code:addons/energy_selfconsumption/models/selfconsumption.py:0 #: code:addons/energy_selfconsumption/models/selfconsumption.py:0 +#: code:addons/energy_selfconsumption/models/selfconsumption.py:0 +#: code:addons/energy_selfconsumption/models/selfconsumption.py:0 #, python-format msgid "Invalid CIL: The CUPS has an incorrect format." msgstr "" @@ -2053,6 +2171,8 @@ msgstr "" #. odoo-python #: code:addons/energy_selfconsumption/models/selfconsumption.py:0 #: code:addons/energy_selfconsumption/models/selfconsumption.py:0 +#: code:addons/energy_selfconsumption/models/selfconsumption.py:0 +#: code:addons/energy_selfconsumption/models/selfconsumption.py:0 #, python-format msgid "Invalid CIL: The checksum of the CUPS is incorrect." msgstr "" @@ -2061,6 +2181,8 @@ msgstr "" #. odoo-python #: code:addons/energy_selfconsumption/models/selfconsumption.py:0 #: code:addons/energy_selfconsumption/models/selfconsumption.py:0 +#: code:addons/energy_selfconsumption/models/selfconsumption.py:0 +#: code:addons/energy_selfconsumption/models/selfconsumption.py:0 #, python-format msgid "" "Invalid CIL: The first characters related to CUPS are incorrect. The length " @@ -2070,6 +2192,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/models/selfconsumption.py:0 +#: code:addons/energy_selfconsumption/models/selfconsumption.py:0 #, python-format msgid "Invalid CIL: The length is not correct" msgstr "" @@ -2077,6 +2200,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/models/supply_point.py:0 +#: code:addons/energy_selfconsumption/models/supply_point.py:0 #, python-format msgid "Invalid CUPS: The checksum is incorrect." msgstr "" @@ -2084,6 +2208,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/models/supply_point.py:0 +#: code:addons/energy_selfconsumption/models/supply_point.py:0 #, python-format msgid "Invalid CUPS: The length is incorrect." msgstr "" @@ -2091,6 +2216,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/models/supply_point.py:0 +#: code:addons/energy_selfconsumption/models/supply_point.py:0 #, python-format msgid "Invalid CUPS: does not start with 'ES'." msgstr "" @@ -2098,6 +2224,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/models/supply_point.py:0 +#: code:addons/energy_selfconsumption/models/supply_point.py:0 #, python-format msgid "Invalid CUPS: has an incorrect format." msgstr "" @@ -2105,6 +2232,8 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/models/selfconsumption.py:0 +#: code:addons/energy_selfconsumption/models/selfconsumption.py:0 +#: code:addons/energy_selfconsumption/models/supply_point.py:0 #: code:addons/energy_selfconsumption/models/supply_point.py:0 #, python-format msgid "Invalid Cadastral Reference: {error}" @@ -2113,6 +2242,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/models/create_inscription.py:0 +#: code:addons/energy_selfconsumption/models/create_inscription.py:0 #, python-format msgid "Invalid IBAN: {error}" msgstr "" @@ -2120,6 +2250,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/models/supply_point.py:0 +#: code:addons/energy_selfconsumption/models/supply_point.py:0 #, python-format msgid "Invalid VAT: {error}" msgstr "" @@ -2162,6 +2293,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 +#: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 #, python-format msgid "Is the owner the same partner?" msgstr "" @@ -2179,6 +2311,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 +#: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 #, python-format msgid "Lang" msgstr "" @@ -2186,6 +2319,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 +#: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 #, python-format msgid "Language not found." msgstr "" @@ -2196,6 +2330,8 @@ msgid "Last Date Invoiced" msgstr "" #. module: energy_selfconsumption +#: model:ir.model.fields,field_description:energy_selfconsumption.field_change_distribution_table_import_line_wizard____last_update +#: model:ir.model.fields,field_description:energy_selfconsumption.field_change_distribution_table_import_wizard____last_update #: model:ir.model.fields,field_description:energy_selfconsumption.field_clean_supply_point_assignation_wizard____last_update #: model:ir.model.fields,field_description:energy_selfconsumption.field_energy_selfconsumption_change_state_inscription_lines_wizard____last_update #: model:ir.model.fields,field_description:energy_selfconsumption.field_energy_selfconsumption_change_state_inscription_wizard____last_update @@ -2226,6 +2362,8 @@ msgid "Last Period Start" msgstr "" #. module: energy_selfconsumption +#: model:ir.model.fields,field_description:energy_selfconsumption.field_change_distribution_table_import_line_wizard__write_uid +#: model:ir.model.fields,field_description:energy_selfconsumption.field_change_distribution_table_import_wizard__write_uid #: model:ir.model.fields,field_description:energy_selfconsumption.field_clean_supply_point_assignation_wizard__write_uid #: model:ir.model.fields,field_description:energy_selfconsumption.field_energy_selfconsumption_change_state_inscription_lines_wizard__write_uid #: model:ir.model.fields,field_description:energy_selfconsumption.field_energy_selfconsumption_change_state_inscription_wizard__write_uid @@ -2246,6 +2384,8 @@ msgid "Last Updated by" msgstr "" #. module: energy_selfconsumption +#: model:ir.model.fields,field_description:energy_selfconsumption.field_change_distribution_table_import_line_wizard__write_date +#: model:ir.model.fields,field_description:energy_selfconsumption.field_change_distribution_table_import_wizard__write_date #: model:ir.model.fields,field_description:energy_selfconsumption.field_clean_supply_point_assignation_wizard__write_date #: model:ir.model.fields,field_description:energy_selfconsumption.field_energy_selfconsumption_change_state_inscription_lines_wizard__write_date #: model:ir.model.fields,field_description:energy_selfconsumption.field_energy_selfconsumption_change_state_inscription_wizard__write_date @@ -2273,6 +2413,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 +#: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 #, python-format msgid "Lastname" msgstr "" @@ -2287,6 +2428,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/wizards/create_distribution_table_wizard.py:0 +#: code:addons/energy_selfconsumption/wizards/create_distribution_table_wizard.py:0 #: model:ir.model.fields.selection,name:energy_selfconsumption.selection__energy_selfconsumption_create_distribution_table_wizard__type_distribute_excess__linear #, python-format msgid "Linear" @@ -2336,6 +2478,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 +#: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 #, python-format msgid "Male" msgstr "" @@ -2353,6 +2496,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/wizards/contract_generation_wizard.py:0 +#: code:addons/energy_selfconsumption/wizards/contract_generation_wizard.py:0 #, python-format msgid "Mandate not found for {partner}" msgstr "" @@ -2365,6 +2509,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 +#: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 #: model:ir.model.fields,field_description:energy_selfconsumption.field_energy_selfconsumption_supply_point__contracted_power #, python-format msgid "Maximum contracted power" @@ -2408,6 +2553,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/models/selfconsumption.py:0 +#: code:addons/energy_selfconsumption/models/selfconsumption.py:0 #, python-format msgid "Must have a valid Distribution Table." msgstr "" @@ -2433,6 +2579,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 +#: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 #: model:ir.model.fields,field_description:energy_selfconsumption.field_contract_contract__supply_point_name #: model:ir.model.fields,field_description:energy_selfconsumption.field_energy_selfconsumption_distribution_table__name #: model:ir.model.fields,field_description:energy_selfconsumption.field_energy_selfconsumption_inscription_selfconsumption__name @@ -2453,13 +2600,27 @@ msgstr "" msgid "Necessary data for the integration of the Community:" msgstr "" +#. module: energy_selfconsumption +#. odoo-python +#: code:addons/energy_selfconsumption/wizards/change_distribution_table_import_wizard.py:0 +#: model:ir.model.fields.selection,name:energy_selfconsumption.selection__change_distribution_table_import_wizard__state__new +#, python-format +msgid "New" +msgstr "" + #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/models/supply_point.py:0 +#: code:addons/energy_selfconsumption/models/supply_point.py:0 #, python-format msgid "New Supply Point" msgstr "" +#. module: energy_selfconsumption +#: model_terms:ir.ui.view,arch_db:energy_selfconsumption.view_change_distribution_table_import_wizard_form +msgid "New registrations" +msgstr "" + #. module: energy_selfconsumption #: model:ir.model.fields,field_description:energy_selfconsumption.field_energy_selfconsumption_distribution_table__activity_calendar_event_id #: model:ir.model.fields,field_description:energy_selfconsumption.field_energy_selfconsumption_selfconsumption__activity_calendar_event_id @@ -2509,14 +2670,25 @@ msgstr "" msgid "Next Period Start" msgstr "" +#. module: energy_selfconsumption +#: model_terms:ir.ui.view,arch_db:energy_selfconsumption.view_change_distribution_table_import_wizard_form +msgid "Next step" +msgstr "" + #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 #: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 #: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 +#: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 +#: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 +#: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 #: code:addons/energy_selfconsumption/models/partner.py:0 +#: code:addons/energy_selfconsumption/models/partner.py:0 +#: code:addons/energy_selfconsumption/models/supply_point.py:0 #: code:addons/energy_selfconsumption/models/supply_point.py:0 #: code:addons/energy_selfconsumption/wizards/create_distribution_table_wizard.py:0 +#: code:addons/energy_selfconsumption/wizards/create_distribution_table_wizard.py:0 #: model:ir.model.fields.selection,name:energy_selfconsumption.selection__energy_selfconsumption_create_distribution_table_wizard__distribute_excess__no #: model:ir.model.fields.selection,name:energy_selfconsumption.selection__energy_selfconsumption_supply_point__used_in_selfconsumption__no #: model:ir.model.fields.selection,name:energy_selfconsumption.selection__res_partner__vulnerability_situation__no @@ -2527,6 +2699,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/models/create_inscription.py:0 +#: code:addons/energy_selfconsumption/models/create_inscription.py:0 #, python-format msgid "No participation found for this project." msgstr "" @@ -2534,8 +2707,11 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/models/selfconsumption.py:0 +#: code:addons/energy_selfconsumption/models/selfconsumption.py:0 +#: code:addons/energy_selfconsumption/wizards/distribution_table_import_wizard.py:0 #: code:addons/energy_selfconsumption/wizards/distribution_table_import_wizard.py:0 #: code:addons/energy_selfconsumption/wizards/selfconsumption_import_wizard.py:0 +#: code:addons/energy_selfconsumption/wizards/selfconsumption_import_wizard.py:0 #, python-format msgid "No valid encoding was found for the attached file" msgstr "" @@ -2543,6 +2719,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 +#: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 #, python-format msgid "Not binary" msgstr "" @@ -2589,8 +2766,19 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python +#: code:addons/energy_selfconsumption/wizards/change_distribution_table_import_wizard.py:0 +#: model:ir.model.fields.selection,name:energy_selfconsumption.selection__change_distribution_table_import_wizard__state__old +#, python-format +msgid "Old" +msgstr "" + +#. module: energy_selfconsumption +#. odoo-python +#: code:addons/energy_selfconsumption/wizards/distribution_table_import_wizard.py:0 #: code:addons/energy_selfconsumption/wizards/distribution_table_import_wizard.py:0 #: code:addons/energy_selfconsumption/wizards/invoicing_wizard.py:0 +#: code:addons/energy_selfconsumption/wizards/invoicing_wizard.py:0 +#: code:addons/energy_selfconsumption/wizards/selfconsumption_import_wizard.py:0 #: code:addons/energy_selfconsumption/wizards/selfconsumption_import_wizard.py:0 #, python-format msgid "Only csv format files are accepted." @@ -2599,6 +2787,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 +#: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 #, python-format msgid "Other" msgstr "" @@ -2620,6 +2809,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/models/create_inscription.py:0 +#: code:addons/energy_selfconsumption/models/create_inscription.py:0 #, python-format msgid "Owner could not be created or found." msgstr "" @@ -2646,6 +2836,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 +#: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 #, python-format msgid "Participation does not exist." msgstr "" @@ -2656,6 +2847,7 @@ msgid "Participation inscription" msgstr "" #. module: energy_selfconsumption +#: model:ir.model.fields,field_description:energy_selfconsumption.field_change_distribution_table_import_line_wizard__participation_real_quantity #: model:ir.model.fields,field_description:energy_selfconsumption.field_energy_selfconsumption_change_state_inscription_lines_wizard__participation_real_quantity #: model:ir.model.fields,field_description:energy_selfconsumption.field_energy_selfconsumption_inscription_selfconsumption__participation_real_quantity msgid "Participation real quantity" @@ -2669,6 +2861,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 +#: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 #, python-format msgid "Partner does not exist." msgstr "" @@ -2676,6 +2869,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/models/inscription.py:0 +#: code:addons/energy_selfconsumption/models/inscription.py:0 #, python-format msgid "Partner is already signed up in this project with that cups." msgstr "" @@ -2683,6 +2877,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 +#: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 #, python-format msgid "Partner is not cooperator." msgstr "" @@ -2690,6 +2885,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/models/create_inscription.py:0 +#: code:addons/energy_selfconsumption/models/create_inscription.py:0 #, python-format msgid "Partner with VAT {vat} is already registered in project {code}" msgstr "" @@ -2697,6 +2893,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/models/create_inscription.py:0 +#: code:addons/energy_selfconsumption/models/create_inscription.py:0 #, python-format msgid "Partner with VAT:<b>{vat}</b> is not a cooperator." msgstr "" @@ -2704,6 +2901,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/models/create_inscription.py:0 +#: code:addons/energy_selfconsumption/models/create_inscription.py:0 #, python-format msgid "Partner with VAT:<b>{vat}</b> was not found." msgstr "" @@ -2728,6 +2926,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 +#: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 #, python-format msgid "Phone" msgstr "" @@ -2740,6 +2939,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/models/selfconsumption.py:0 +#: code:addons/energy_selfconsumption/models/selfconsumption.py:0 #: model:ir.model.fields.selection,name:energy_selfconsumption.selection__energy_selfconsumption_define_invoicing_mode_wizard__invoicing_mode__power_acquired #: model:ir.model.fields.selection,name:energy_selfconsumption.selection__energy_selfconsumption_invoicing_wizard__invoicing_mode__power_acquired #: model:ir.model.fields.selection,name:energy_selfconsumption.selection__energy_selfconsumption_selfconsumption__invoicing_mode__power_acquired @@ -2762,6 +2962,11 @@ msgstr "" msgid "Power acquired" msgstr "" +#. module: energy_selfconsumption +#: model_terms:ir.ui.view,arch_db:energy_selfconsumption.view_change_distribution_table_import_wizard_form +msgid "Previous step" +msgstr "" + #. module: energy_selfconsumption #: model:ir.model.fields,field_description:energy_selfconsumption.field_energy_selfconsumption_define_invoicing_mode_wizard__price msgid "Price" @@ -2775,6 +2980,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 +#: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 #, python-format msgid "Privacy policy file text" msgstr "" @@ -2805,6 +3011,8 @@ msgstr "" #. odoo-python #: code:addons/energy_selfconsumption/models/selfconsumption.py:0 #: code:addons/energy_selfconsumption/models/selfconsumption.py:0 +#: code:addons/energy_selfconsumption/models/selfconsumption.py:0 +#: code:addons/energy_selfconsumption/models/selfconsumption.py:0 #, python-format msgid "Project must have a valid Code." msgstr "" @@ -2813,6 +3021,8 @@ msgstr "" #. odoo-python #: code:addons/energy_selfconsumption/models/selfconsumption.py:0 #: code:addons/energy_selfconsumption/models/selfconsumption.py:0 +#: code:addons/energy_selfconsumption/models/selfconsumption.py:0 +#: code:addons/energy_selfconsumption/models/selfconsumption.py:0 #, python-format msgid "Project must have a valid Rated Power." msgstr "" @@ -2820,6 +3030,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/models/selfconsumption.py:0 +#: code:addons/energy_selfconsumption/models/selfconsumption.py:0 #, python-format msgid "Project must have defined a invoicing mode before activation." msgstr "" @@ -2827,6 +3038,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/wizards/create_distribution_table_wizard.py:0 +#: code:addons/energy_selfconsumption/wizards/create_distribution_table_wizard.py:0 #: model:ir.model.fields.selection,name:energy_selfconsumption.selection__energy_selfconsumption_create_distribution_table_wizard__type_distribute_excess__proportional #, python-format msgid "Proportional" @@ -2845,6 +3057,11 @@ msgstr "" msgid "Quotechar in import CSV file." msgstr "" +#. module: energy_selfconsumption +#: model_terms:ir.ui.view,arch_db:energy_selfconsumption.view_change_distribution_table_import_wizard_form +msgid "Record deregistration" +msgstr "" + #. module: energy_selfconsumption #: model:ir.model.fields,field_description:energy_selfconsumption.field_energy_selfconsumption_define_invoicing_mode_wizard__recurring_rule_type msgid "Recurrence" @@ -2912,6 +3129,11 @@ msgstr "" msgid "Responsible User" msgstr "" +#. module: energy_selfconsumption +#: model_terms:ir.ui.view,arch_db:energy_selfconsumption.view_change_distribution_table_import_wizard_form +msgid "Retain old records" +msgstr "" + #. module: energy_selfconsumption #: model_terms:ir.ui.view,arch_db:energy_selfconsumption.selfconsumption_form_view msgid "Return to Draft" @@ -2990,6 +3212,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/models/distribution_table.py:0 +#: code:addons/energy_selfconsumption/models/distribution_table.py:0 #, python-format msgid "Self-consumption project already has a table in process" msgstr "" @@ -2997,6 +3220,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/models/distribution_table.py:0 +#: code:addons/energy_selfconsumption/models/distribution_table.py:0 #, python-format msgid "Self-consumption project already has a validated table" msgstr "" @@ -3190,14 +3414,16 @@ msgid "State" msgstr "" #. module: energy_selfconsumption -#: model:ir.model.fields,field_description:energy_selfconsumption.field_energy_selfconsumption_change_state_inscription_lines_wizard__state -#: model:ir.model.fields,field_description:energy_selfconsumption.field_energy_selfconsumption_inscription_selfconsumption__state -msgid "Status" +#: model:ir.model.fields,field_description:energy_selfconsumption.field_energy_selfconsumption_supply_point_assignation__supply_point_state +msgid "State Name" msgstr "" #. module: energy_selfconsumption -#: model:ir.model.fields,field_description:energy_selfconsumption.field_energy_selfconsumption_supply_point_assignation__supply_point_state -msgid "State Name" +#: model:ir.model.fields,field_description:energy_selfconsumption.field_change_distribution_table_import_line_wizard__state +#: model:ir.model.fields,field_description:energy_selfconsumption.field_change_distribution_table_import_wizard__state +#: model:ir.model.fields,field_description:energy_selfconsumption.field_energy_selfconsumption_change_state_inscription_lines_wizard__state +#: model:ir.model.fields,field_description:energy_selfconsumption.field_energy_selfconsumption_inscription_selfconsumption__state +msgid "Status" msgstr "" #. module: energy_selfconsumption @@ -3291,6 +3517,11 @@ msgstr "" msgid "Supply Points" msgstr "" +#. module: energy_selfconsumption +#: model_terms:ir.ui.view,arch_db:energy_selfconsumption.selfconsumption_invoice_template +msgid "Tax 15%" +msgstr "" + #. module: energy_selfconsumption #: model:ir.model.fields,field_description:energy_selfconsumption.field_energy_selfconsumption_supply_point_assignation__owner_vat msgid "Tax ID" @@ -3299,6 +3530,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/models/create_inscription.py:0 +#: code:addons/energy_selfconsumption/models/create_inscription.py:0 #, python-format msgid "The IBAN field cannot be empty." msgstr "" @@ -3314,6 +3546,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/wizards/invoicing_wizard.py:0 +#: code:addons/energy_selfconsumption/wizards/invoicing_wizard.py:0 #, python-format msgid "The contract has no lines" msgstr "" @@ -3321,6 +3554,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 +#: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 #, python-format msgid "The email is not the same." msgstr "" @@ -3329,6 +3563,8 @@ msgstr "" #. odoo-python #: code:addons/energy_selfconsumption/wizards/invoicing_wizard.py:0 #: code:addons/energy_selfconsumption/wizards/invoicing_wizard.py:0 +#: code:addons/energy_selfconsumption/wizards/invoicing_wizard.py:0 +#: code:addons/energy_selfconsumption/wizards/invoicing_wizard.py:0 #, python-format msgid "The energy generated must be greater than 0 (kWh)." msgstr "" @@ -3336,6 +3572,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/wizards/selfconsumption_import_wizard.py:0 +#: code:addons/energy_selfconsumption/wizards/selfconsumption_import_wizard.py:0 #, python-format msgid "The file should contain 28 columns and not {header_length} columns." msgstr "" @@ -3343,6 +3580,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 +#: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 #, python-format msgid "" "The form is not open. For more information write to your Energy Community " @@ -3352,6 +3590,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/wizards/invoicing_wizard.py:0 +#: code:addons/energy_selfconsumption/wizards/invoicing_wizard.py:0 #, python-format msgid "" "The number of contracts selected does not match the number of contracts " @@ -3361,6 +3600,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/models/supply_point_assignation.py:0 +#: code:addons/energy_selfconsumption/models/supply_point_assignation.py:0 #, python-format msgid "The partner of the supply point is not subscribed to the project" msgstr "" @@ -3368,6 +3608,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/wizards/create_distribution_table_wizard.py:0 +#: code:addons/energy_selfconsumption/wizards/create_distribution_table_wizard.py:0 #, python-format msgid "The project has to have a power greater than 0." msgstr "" @@ -3375,6 +3616,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/models/selfconsumption.py:0 +#: code:addons/energy_selfconsumption/models/selfconsumption.py:0 #, python-format msgid "" "The report can be downloaded when the project is in activation or active " @@ -3389,6 +3631,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/wizards/distribution_table_import_wizard.py:0 +#: code:addons/energy_selfconsumption/wizards/distribution_table_import_wizard.py:0 #, python-format msgid "" "The sum of coefficients for the following hours is not equal to 1: %s, " @@ -3397,6 +3640,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/wizards/distribution_table_import_wizard.py:0 +#: code:addons/energy_selfconsumption/wizards/distribution_table_import_wizard.py:0 #, python-format msgid "The sum of coefficients is not equal to 1: %s" msgstr "" @@ -3404,6 +3648,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/models/distribution_table.py:0 +#: code:addons/energy_selfconsumption/models/distribution_table.py:0 #, python-format msgid "" "The supply point can't be removed because the distribution table state is " @@ -3420,6 +3665,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 +#: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 #, python-format msgid "" "There is already an individual photovoltaic self-consumption or collective " @@ -3429,6 +3675,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/wizards/contract_generation_wizard.py:0 +#: code:addons/energy_selfconsumption/wizards/contract_generation_wizard.py:0 #, python-format msgid "There is no distribution table in proces of activation." msgstr "" @@ -3451,6 +3698,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/wizards/distribution_table_import_wizard.py:0 +#: code:addons/energy_selfconsumption/wizards/distribution_table_import_wizard.py:0 #, python-format msgid "There isn't any supply point with this code: {code}" msgstr "" @@ -3472,6 +3720,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/models/distribution_table.py:0 +#: code:addons/energy_selfconsumption/models/distribution_table.py:0 #, python-format msgid "" "To change the type you must first delete the associated distribution points.\n" @@ -3523,6 +3772,11 @@ msgstr "" msgid "Unactivate form" msgstr "" +#. module: energy_selfconsumption +#: model_terms:ir.ui.view,arch_db:energy_selfconsumption.view_change_distribution_table_import_wizard_form +msgid "Update old records" +msgstr "" + #. module: energy_selfconsumption #: model:ir.model.fields,field_description:energy_selfconsumption.field_energy_selfconsumption_inscription_selfconsumption__used_in_selfconsumption #: model:ir.model.fields,field_description:energy_selfconsumption.field_energy_selfconsumption_supply_point__used_in_selfconsumption @@ -3537,6 +3791,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 +#: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 #, python-format msgid "VAT of the partner" msgstr "" @@ -3549,6 +3804,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/models/distribution_table.py:0 +#: code:addons/energy_selfconsumption/models/distribution_table.py:0 #: model:ir.model.fields.selection,name:energy_selfconsumption.selection__energy_selfconsumption_distribution_table__state__validated #, python-format msgid "Validated" @@ -3557,6 +3813,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/models/distribution_table.py:0 +#: code:addons/energy_selfconsumption/models/distribution_table.py:0 #: model:ir.model.fields.selection,name:energy_selfconsumption.selection__energy_selfconsumption_distribution_table__type__hourly #, python-format msgid "Variable hourly" @@ -3598,6 +3855,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 +#: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 #, python-format msgid "What participation would you like?" msgstr "" @@ -3607,8 +3865,14 @@ msgstr "" #: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 #: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 #: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 +#: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 +#: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 +#: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 +#: code:addons/energy_selfconsumption/models/partner.py:0 #: code:addons/energy_selfconsumption/models/partner.py:0 #: code:addons/energy_selfconsumption/models/supply_point.py:0 +#: code:addons/energy_selfconsumption/models/supply_point.py:0 +#: code:addons/energy_selfconsumption/wizards/create_distribution_table_wizard.py:0 #: code:addons/energy_selfconsumption/wizards/create_distribution_table_wizard.py:0 #: model:ir.model.fields.selection,name:energy_selfconsumption.selection__energy_selfconsumption_create_distribution_table_wizard__distribute_excess__yes #: model:ir.model.fields.selection,name:energy_selfconsumption.selection__energy_selfconsumption_supply_point__used_in_selfconsumption__yes @@ -3620,6 +3884,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 +#: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 #, python-format msgid "You are already enrolled in this self-consumption project." msgstr "" @@ -3646,6 +3911,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 +#: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 #, python-format msgid "" "You can find the annual electricity use on the electricity bill(Total annual" @@ -3655,6 +3921,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/wizards/clean_supply_point_assignation_wizard.py:0 +#: code:addons/energy_selfconsumption/wizards/clean_supply_point_assignation_wizard.py:0 #, python-format msgid "" "You can only delete assigned distribution points from a distribution table " @@ -3664,6 +3931,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/models/contract_line.py:0 +#: code:addons/energy_selfconsumption/models/contract_line.py:0 #, python-format msgid "" "You can't have a date of next invoice anterior to the start of the contract " @@ -3673,6 +3941,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 +#: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 #, python-format msgid "" "You have a recognized situation of vulnerability due to energy poverty or " @@ -3682,6 +3951,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/models/create_inscription.py:0 +#: code:addons/energy_selfconsumption/models/create_inscription.py:0 #, python-format msgid "You have successfully registered." msgstr "" @@ -3689,6 +3959,8 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/wizards/change_state_inscription_wizard.py:0 +#: code:addons/energy_selfconsumption/wizards/change_state_inscription_wizard.py:0 +#: code:addons/energy_selfconsumption/wizards/create_distribution_table_wizard.py:0 #: code:addons/energy_selfconsumption/wizards/create_distribution_table_wizard.py:0 #, python-format msgid "You have to select at least one entry." @@ -3697,6 +3969,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/models/selfconsumption.py:0 +#: code:addons/energy_selfconsumption/models/selfconsumption.py:0 #, python-format msgid "" "You need to add the privacy policy file to display the form.To modify the " @@ -3711,6 +3984,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/wizards/create_distribution_table_wizard.py:0 +#: code:addons/energy_selfconsumption/wizards/create_distribution_table_wizard.py:0 #, python-format msgid "Your distribution percentage cannot be 0." msgstr "" @@ -3718,6 +3992,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/wizards/create_distribution_table_wizard.py:0 +#: code:addons/energy_selfconsumption/wizards/create_distribution_table_wizard.py:0 #, python-format msgid "Your distribution percentage cannot exceed 100%." msgstr "" @@ -3731,6 +4006,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 +#: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 #: model:ir.model.fields,field_description:energy_selfconsumption.field_energy_selfconsumption_selfconsumption__zip #: model:ir.model.fields,field_description:energy_selfconsumption.field_energy_selfconsumption_supply_point__zip #: model:ir.model.fields,field_description:energy_selfconsumption.field_energy_selfconsumption_supply_point_assignation__supply_point_postalcode diff --git a/energy_selfconsumption/i18n/es.po b/energy_selfconsumption/i18n/es.po index 37f5a4743563091465db695135d1e837bfb70962..448184dab82c198ceff6d74f9d3168f590ff9d5f 100644 --- a/energy_selfconsumption/i18n/es.po +++ b/energy_selfconsumption/i18n/es.po @@ -6,8 +6,8 @@ msgid "" msgstr "" "Project-Id-Version: Odoo Server 16.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-02-13 10:04+0000\n" -"PO-Revision-Date: 2025-02-13 10:04+0000\n" +"POT-Creation-Date: 2025-03-03 07:47+0000\n" +"PO-Revision-Date: 2025-03-03 07:47+0000\n" "Last-Translator: \n" "Language-Team: \n" "MIME-Version: 1.0\n" @@ -18,21 +18,29 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/wizards/contract_generation_wizard.py:0 +#: code:addons/energy_selfconsumption/wizards/contract_generation_wizard.py:0 #, python-format msgid "" "\n" "CAU: {cau}\n" -"Total installed nominal power (kW): {power}\n" -"Partition coefficient: {coefficient}" +" Total installed nominal power (kW): {power}\n" +" Partition coefficient: {coefficient}\n" +" Daily nominal power acquired: {power} kWn * {coefficient} = {power_acquired} kWn/day\n" +" Days to be invoiced: {days_invoiced} days\n" +" Total amount invoiced: {days_invoiced} days * {power_acquired} kWn/day = {total_amount}\n" msgstr "" "\n" "CAU: {cau}\n" -"Potencia nominal total instalada (kW): {power}\n" -"Coeficiente de partición: {coefficient}" +" Poténcia nominal instalada total (kW): {power}\n" +" Coeficient de partición: {coefficient}\n" +" Poténcia nominal adquirida diaria: {power} kWn * {coefficient} = {power_acquired} kWn/dÃÂa\n" +" DÃÂas a facturar: {days_invoiced} dÃÂas\n" +" Cantidad total a facturar: {days_invoiced} dÃÂas * {power_acquired} kWn/dÃÂa = {total_amount}\n" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/wizards/invoicing_wizard.py:0 +#: code:addons/energy_selfconsumption/wizards/invoicing_wizard.py:0 #, python-format msgid "" "\n" @@ -48,6 +56,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/wizards/invoicing_wizard.py:0 +#: code:addons/energy_selfconsumption/wizards/invoicing_wizard.py:0 #, python-format msgid "" "\n" @@ -60,6 +69,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/wizards/invoicing_wizard.py:0 +#: code:addons/energy_selfconsumption/wizards/invoicing_wizard.py:0 #, python-format msgid "" "\n" @@ -74,6 +84,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/wizards/invoicing_wizard.py:0 +#: code:addons/energy_selfconsumption/wizards/invoicing_wizard.py:0 #, python-format msgid "" "\n" @@ -502,6 +513,8 @@ msgstr "" #. odoo-python #: code:addons/energy_selfconsumption/wizards/selfconsumption_import_wizard.py:0 #: code:addons/energy_selfconsumption/wizards/selfconsumption_import_wizard.py:0 +#: code:addons/energy_selfconsumption/wizards/selfconsumption_import_wizard.py:0 +#: code:addons/energy_selfconsumption/wizards/selfconsumption_import_wizard.py:0 #, python-format msgid "<li>Line {line}: {error}</li>\n" msgstr "<li>LÃÂnea {line}: {error}</li>" @@ -522,7 +535,7 @@ msgstr "" #: model_terms:ir.ui.view,arch_db:energy_selfconsumption.selfconsumption_invoice_template msgid "" "<span groups=\"account.group_show_line_subtotals_tax_excluded\">Amount</span>\n" -" <span groups=\"account.group_show_line_subtotals_tax_included\">Total Price</span>" +" <span groups=\"account.group_show_line_subtotals_tax_included\">Total Price</span>" msgstr "" "<span groups=\"account.group_show_line_subtotals_tax_excluded\">Cantidad</span>\n" " <span groups=\"account.group_show_line_subtotals_tax_included\">Precio Total</span>" @@ -542,16 +555,6 @@ msgstr "" msgid "<span> kWn/day</span>" msgstr "<span> kWn/dÃÂa</span>" -#. module: energy_selfconsumption -#: model_terms:ir.ui.view,arch_db:energy_selfconsumption.selfconsumption_invoice_template -msgid "<span>Description</span>" -msgstr "<span>Descripción</span>" - -#. module: energy_selfconsumption -#: model_terms:ir.ui.view,arch_db:energy_selfconsumption.selfconsumption_invoice_template -msgid "<span>Disc.%</span>" -msgstr "<span>Desc.%</span>" - #. module: energy_selfconsumption #: model_terms:ir.ui.view,arch_db:energy_selfconsumption.selfconsumption_invoice_template msgid "<span>Import</span>" @@ -592,16 +595,6 @@ msgstr "<span>Cantidad total facturada</span>" msgid "<span>Total installation generation</span>" msgstr "<span>Total generado de la instalación</span>" -#. module: energy_selfconsumption -#: model_terms:ir.ui.view,arch_db:energy_selfconsumption.selfconsumption_invoice_template -msgid "<span>Unit Price</span>" -msgstr "<span>Precio unidad</span>" - -#. module: energy_selfconsumption -#: model_terms:ir.ui.view,arch_db:energy_selfconsumption.selfconsumption_invoice_template -msgid "<strong class=\"mr16\">Subtotal</strong>" -msgstr "" - #. module: energy_selfconsumption #: model_terms:ir.ui.view,arch_db:energy_selfconsumption.inscription_data_headline_message_closed msgid "<strong>Closed form</strong>" @@ -638,6 +631,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/models/selfconsumption.py:0 +#: code:addons/energy_selfconsumption/models/selfconsumption.py:0 #: model:ir.model.constraint,message:energy_selfconsumption.constraint_energy_selfconsumption_selfconsumption_unique_code #, python-format msgid "A project with this CAU already exists." @@ -646,6 +640,7 @@ msgstr "Ya existe un proyecto con esta CAU." #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/models/supply_point.py:0 +#: code:addons/energy_selfconsumption/models/supply_point.py:0 #: model:ir.model.constraint,message:energy_selfconsumption.constraint_energy_selfconsumption_supply_point_unique_code_company_id #, python-format msgid "A supply point with this code already exists." @@ -684,6 +679,7 @@ msgstr "Número de cuenta" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/wizards/define_invoicing_mode_wizard.py:0 +#: code:addons/energy_selfconsumption/wizards/define_invoicing_mode_wizard.py:0 #, python-format msgid "Accounting Journal not found." msgstr "Diario de contabilidad no encontrado." @@ -711,8 +707,10 @@ msgstr "Activar formulario" #: code:addons/energy_selfconsumption/models/inscription.py:0 #: code:addons/energy_selfconsumption/models/selfconsumption.py:0 #: code:addons/energy_selfconsumption/wizards/change_state_inscription_wizard.py:0 +#: code:addons/energy_selfconsumption/wizards/change_distribution_table_import_wizard.py:0 #: model:ir.model.fields,field_description:energy_selfconsumption.field_energy_selfconsumption_distribution_table__active #: model:ir.model.fields,field_description:energy_selfconsumption.field_energy_selfconsumption_selfconsumption__active +#: model:ir.model.fields.selection,name:energy_selfconsumption.selection__change_distribution_table_import_line_wizard__state__active #: model:ir.model.fields.selection,name:energy_selfconsumption.selection__energy_selfconsumption_change_state_inscription_lines_wizard__state__active #: model:ir.model.fields.selection,name:energy_selfconsumption.selection__energy_selfconsumption_distribution_table__state__active #: model:ir.model.fields.selection,name:energy_selfconsumption.selection__energy_selfconsumption_inscription_selfconsumption__state__active @@ -759,6 +757,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 +#: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 #, python-format msgid "Address" msgstr "Dirección" @@ -800,6 +799,7 @@ msgstr "Consumo anual de electricidad" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 +#: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 #, python-format msgid "Annual electricity use?" msgstr "¿Consumo anual de electricidad?" @@ -807,6 +807,7 @@ msgstr "¿Consumo anual de electricidad?" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 +#: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 #, python-format msgid "Are you in a vulnerable situation?" msgstr "¿Se encuentra en una situación vulnerable?" @@ -825,6 +826,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/wizards/clean_supply_point_assignation_wizard.py:0 +#: code:addons/energy_selfconsumption/wizards/clean_supply_point_assignation_wizard.py:0 #, python-format msgid "Are you sure you want to delete all assigned distribution points?" msgstr "" @@ -871,6 +873,7 @@ msgstr "PerÃÂodo de facturación" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 +#: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 #, python-format msgid "Birthdate" msgstr "Fecha de nacimiento" @@ -883,6 +886,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 +#: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 #, python-format msgid "CIF/NIF" msgstr "" @@ -901,6 +905,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/wizards/invoicing_wizard.py:0 +#: code:addons/energy_selfconsumption/wizards/invoicing_wizard.py:0 #, python-format msgid "CSV file could not be loaded" msgstr "No se ha podido cargar el archivo CSV" @@ -908,6 +913,7 @@ msgstr "No se ha podido cargar el archivo CSV" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 +#: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 #: model:ir.model.fields,field_description:energy_selfconsumption.field_energy_selfconsumption_inscription_selfconsumption__code #: model:ir.model.fields,field_description:energy_selfconsumption.field_energy_selfconsumption_supply_point__code #: model:ir.model.fields,field_description:energy_selfconsumption.field_energy_selfconsumption_supply_point_assignation__code @@ -920,6 +926,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 +#: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 #, python-format msgid "" "CUPS is the Unified Code of the Point of Supply. You can find it on " @@ -931,6 +938,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/wizards/define_invoicing_mode_wizard.py:0 +#: code:addons/energy_selfconsumption/wizards/define_invoicing_mode_wizard.py:0 #, python-format msgid "" "CUPS: {code}\n" @@ -950,12 +958,14 @@ msgstr "Referencia catastral" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 +#: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 #, python-format msgid "Cadastral reference of the property" msgstr "Referencia catastral de la propiedad" #. module: energy_selfconsumption #: model_terms:ir.ui.view,arch_db:energy_selfconsumption.contract_generation_wizard_form_view +#: model_terms:ir.ui.view,arch_db:energy_selfconsumption.view_change_distribution_table_import_wizard_form #: model_terms:ir.ui.view,arch_db:energy_selfconsumption.view_clean_supply_point_assignation_wizard msgid "Cancel" msgstr "Cancelar" @@ -964,12 +974,27 @@ msgstr "Cancelar" #. odoo-python #: code:addons/energy_selfconsumption/models/inscription.py:0 #: code:addons/energy_selfconsumption/wizards/change_state_inscription_wizard.py:0 +#: code:addons/energy_selfconsumption/wizards/change_distribution_table_import_wizard.py:0 +#: model:ir.model.fields.selection,name:energy_selfconsumption.selection__change_distribution_table_import_line_wizard__state__change +#: model:ir.model.fields.selection,name:energy_selfconsumption.selection__change_distribution_table_import_wizard__state__change #: model:ir.model.fields.selection,name:energy_selfconsumption.selection__energy_selfconsumption_change_state_inscription_lines_wizard__state__change #: model:ir.model.fields.selection,name:energy_selfconsumption.selection__energy_selfconsumption_inscription_selfconsumption__state__change #, python-format msgid "Change" msgstr "Cambiar" +#. module: energy_selfconsumption +#: model:ir.actions.act_window,name:energy_selfconsumption.action_change_distribution_table_import_wizard +msgid "Change distribution table" +msgstr "Cambiar tabla de distribución" + +#. module: energy_selfconsumption +#: model:ir.model.fields,field_description:energy_selfconsumption.field_change_distribution_table_import_wizard__change_distribution_table_import_line_wizard_ids +#: model:ir.model.fields,field_description:energy_selfconsumption.field_change_distribution_table_import_wizard__change_distribution_table_import_line_wizard_news_ids +#: model:ir.model.fields,field_description:energy_selfconsumption.field_change_distribution_table_import_wizard__change_distribution_table_import_line_wizard_views_ids +msgid "Change distribution table import line wizard" +msgstr "Cambiar tabla de distribución" + #. module: energy_selfconsumption #: model:ir.actions.act_window,name:energy_selfconsumption.change_state_inscription_wizard_action #: model:ir.actions.server,name:energy_selfconsumption.inscription_to_change_state_action @@ -983,13 +1008,32 @@ msgid "Change state inscription lines wizards" msgstr "Cambiar estado de inscripción" #. module: energy_selfconsumption +#: model:ir.model.fields,field_description:energy_selfconsumption.field_change_distribution_table_import_line_wizard__change_distribution_table_import_wizard_id #: model:ir.model.fields,field_description:energy_selfconsumption.field_energy_selfconsumption_change_state_inscription_lines_wizard__change_state_inscription_wizard_id msgid "Change state inscription wizard" msgstr "Cambiar estado de inscripción" +#. module: energy_selfconsumption +#. odoo-python +#: code:addons/energy_selfconsumption/wizards/change_distribution_table_import_wizard.py:0 +#: model:ir.model,name:energy_selfconsumption.model_change_distribution_table_import_line_wizard +#, python-format +msgid "Change_distribution_table_import_line_wizard" +msgstr "Cambiar tabla de distribución" + +#. module: energy_selfconsumption +#. odoo-python +#: code:addons/energy_selfconsumption/wizards/change_distribution_table_import_wizard.py:0 +#: model:ir.model,name:energy_selfconsumption.model_change_distribution_table_import_wizard +#: model_terms:ir.ui.view,arch_db:energy_selfconsumption.view_change_distribution_table_import_wizard_form +#, python-format +msgid "Change_distribution_table_import_wizard" +msgstr "Cambiar tabla de distribución" + #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 +#: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 #: model:ir.model.fields,field_description:energy_selfconsumption.field_energy_selfconsumption_selfconsumption__city #: model:ir.model.fields,field_description:energy_selfconsumption.field_energy_selfconsumption_supply_point__city #: model:ir.model.fields,field_description:energy_selfconsumption.field_energy_selfconsumption_supply_point_assignation__supply_point_town @@ -1012,6 +1056,7 @@ msgstr "Asistente para la asignación de puntos de suministro limpios" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/models/distribution_table.py:0 +#: code:addons/energy_selfconsumption/models/distribution_table.py:0 #: model:ir.actions.server,name:energy_selfconsumption.manager_clean_supply_point_assignation_action #, python-format msgid "Clean supply point assignation" @@ -1037,6 +1082,7 @@ msgstr "El coeficiente es válido" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/models/supply_point_assignation.py:0 +#: code:addons/energy_selfconsumption/models/supply_point_assignation.py:0 #, python-format msgid "Coefficient can't be negative." msgstr "El coeficiente no puede ser negativo." @@ -1044,6 +1090,7 @@ msgstr "El coeficiente no puede ser negativo." #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/models/distribution_table.py:0 +#: code:addons/energy_selfconsumption/models/distribution_table.py:0 #, python-format msgid "Coefficient distribution must sum to 1." msgstr "La distribución de coeficientes debe sumar 1." @@ -1060,6 +1107,7 @@ msgstr "CompañÃÂa" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 +#: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 #, python-format msgid "Company Name" msgstr "Nombre de la empresa" @@ -1133,6 +1181,7 @@ msgstr "Confirmar" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 +#: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 #, python-format msgid "Confirm E-mail" msgstr "Confirmar e-mail" @@ -1158,6 +1207,7 @@ msgstr "Contrato" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/wizards/contract_generation_wizard.py:0 +#: code:addons/energy_selfconsumption/wizards/contract_generation_wizard.py:0 #, python-format msgid "Contract - %s - %s" msgstr "Contrato - %s - %s" @@ -1225,6 +1275,8 @@ msgid "Create participant table" msgstr "Crear tabla de participantes" #. module: energy_selfconsumption +#: model:ir.model.fields,field_description:energy_selfconsumption.field_change_distribution_table_import_line_wizard__create_uid +#: model:ir.model.fields,field_description:energy_selfconsumption.field_change_distribution_table_import_wizard__create_uid #: model:ir.model.fields,field_description:energy_selfconsumption.field_clean_supply_point_assignation_wizard__create_uid #: model:ir.model.fields,field_description:energy_selfconsumption.field_energy_selfconsumption_change_state_inscription_lines_wizard__create_uid #: model:ir.model.fields,field_description:energy_selfconsumption.field_energy_selfconsumption_change_state_inscription_wizard__create_uid @@ -1245,6 +1297,8 @@ msgid "Created by" msgstr "Creado por" #. module: energy_selfconsumption +#: model:ir.model.fields,field_description:energy_selfconsumption.field_change_distribution_table_import_line_wizard__create_date +#: model:ir.model.fields,field_description:energy_selfconsumption.field_change_distribution_table_import_wizard__create_date #: model:ir.model.fields,field_description:energy_selfconsumption.field_clean_supply_point_assignation_wizard__create_date #: model:ir.model.fields,field_description:energy_selfconsumption.field_energy_selfconsumption_change_state_inscription_lines_wizard__create_date #: model:ir.model.fields,field_description:energy_selfconsumption.field_energy_selfconsumption_change_state_inscription_wizard__create_date @@ -1325,6 +1379,7 @@ msgstr "DÃÂas facturados" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/models/selfconsumption.py:0 +#: code:addons/energy_selfconsumption/models/selfconsumption.py:0 #: model_terms:ir.ui.view,arch_db:energy_selfconsumption.selfconsumption_form_view #, python-format msgid "Define Invoicing Mode" @@ -1344,6 +1399,14 @@ msgid "" " acuerdo." msgstr "" +#. module: energy_selfconsumption +#. odoo-python +#: code:addons/energy_selfconsumption/wizards/change_distribution_table_import_wizard.py:0 +#: model:ir.model.fields.selection,name:energy_selfconsumption.selection__change_distribution_table_import_wizard__state__delete +#, python-format +msgid "Delete" +msgstr "Eliminar" + #. module: energy_selfconsumption #: model:ir.model.fields,help:energy_selfconsumption.field_energy_selfconsumption_distribution_table__hourly_coefficients_imported_delimiter #: model:ir.model.fields,help:energy_selfconsumption.field_energy_selfconsumption_distribution_table_import_wizard__delimiter @@ -1363,6 +1426,8 @@ msgid "Description form" msgstr "Descripción del formulario" #. module: energy_selfconsumption +#: model:ir.model.fields,field_description:energy_selfconsumption.field_change_distribution_table_import_line_wizard__display_name +#: model:ir.model.fields,field_description:energy_selfconsumption.field_change_distribution_table_import_wizard__display_name #: model:ir.model.fields,field_description:energy_selfconsumption.field_clean_supply_point_assignation_wizard__display_name #: model:ir.model.fields,field_description:energy_selfconsumption.field_energy_selfconsumption_change_state_inscription_lines_wizard__display_name #: model:ir.model.fields,field_description:energy_selfconsumption.field_energy_selfconsumption_change_state_inscription_wizard__display_name @@ -1435,6 +1500,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 +#: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 #, python-format msgid "Do you currently have self-consumption?" msgstr "¿Tiene actualmente autoconsumo?" @@ -1442,6 +1508,7 @@ msgstr "¿Tiene actualmente autoconsumo?" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/wizards/selfconsumption_import_wizard.py:0 +#: code:addons/energy_selfconsumption/wizards/selfconsumption_import_wizard.py:0 #, python-format msgid "Dont exit participation for this project." msgstr "No salga de la participación en este proyecto." @@ -1475,6 +1542,7 @@ msgstr "Descargar Autorización del Gestor de Autoconsumo" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/models/distribution_table.py:0 +#: code:addons/energy_selfconsumption/models/distribution_table.py:0 #: model:ir.model.fields.selection,name:energy_selfconsumption.selection__energy_selfconsumption_distribution_table__state__draft #, python-format msgid "Draft" @@ -1483,6 +1551,7 @@ msgstr "Borrador" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 +#: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 #, python-format msgid "E-mail" msgstr "" @@ -1584,6 +1653,7 @@ msgstr "Final" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/models/selfconsumption.py:0 +#: code:addons/energy_selfconsumption/models/selfconsumption.py:0 #: model:ir.model.fields.selection,name:energy_selfconsumption.selection__energy_selfconsumption_define_invoicing_mode_wizard__invoicing_mode__energy_delivered #: model:ir.model.fields.selection,name:energy_selfconsumption.selection__energy_selfconsumption_invoicing_wizard__invoicing_mode__energy_delivered #: model:ir.model.fields.selection,name:energy_selfconsumption.selection__energy_selfconsumption_selfconsumption__invoicing_mode__energy_delivered @@ -1594,6 +1664,7 @@ msgstr "EnergÃÂa Entregada" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/models/selfconsumption.py:0 +#: code:addons/energy_selfconsumption/models/selfconsumption.py:0 #: model:ir.model.fields.selection,name:energy_selfconsumption.selection__energy_selfconsumption_define_invoicing_mode_wizard__invoicing_mode__energy_custom #: model:ir.model.fields.selection,name:energy_selfconsumption.selection__energy_selfconsumption_invoicing_wizard__invoicing_mode__energy_custom #: model:ir.model.fields.selection,name:energy_selfconsumption.selection__energy_selfconsumption_selfconsumption__invoicing_mode__energy_custom @@ -1604,6 +1675,7 @@ msgstr "EnergÃÂa entregada personalizada" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/wizards/invoicing_wizard.py:0 +#: code:addons/energy_selfconsumption/wizards/invoicing_wizard.py:0 #, python-format msgid "Energy Delivered Custom: {energy_delivered} kWh" msgstr "EnergÃÂa entregada personalizada: {energy_delivered} kWh" @@ -1621,6 +1693,7 @@ msgstr "Fórmula Variable de EnergÃÂa Entregada" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/wizards/invoicing_wizard.py:0 +#: code:addons/energy_selfconsumption/wizards/invoicing_wizard.py:0 #, python-format msgid "Energy Delivered: {energy_delivered} kWh" msgstr "EnergÃÂa Entregada: {energy_delivered} kWh" @@ -1634,6 +1707,7 @@ msgstr "Proyecto Energético" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 +#: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 #, python-format msgid "Energy Project Name" msgstr "Nombre del proyecto energético" @@ -1666,6 +1740,7 @@ msgstr "Inscripción en el proyecto de autoconsumo compartido del" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 +#: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 #, python-format msgid "Error format date." msgstr "Error de formato de fecha." @@ -1673,7 +1748,10 @@ msgstr "Error de formato de fecha." #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/models/selfconsumption.py:0 +#: code:addons/energy_selfconsumption/models/selfconsumption.py:0 #: code:addons/energy_selfconsumption/wizards/distribution_table_import_wizard.py:0 +#: code:addons/energy_selfconsumption/wizards/distribution_table_import_wizard.py:0 +#: code:addons/energy_selfconsumption/wizards/selfconsumption_import_wizard.py:0 #: code:addons/energy_selfconsumption/wizards/selfconsumption_import_wizard.py:0 #, python-format msgid "Error parsing the file" @@ -1682,6 +1760,7 @@ msgstr "Error al analizar el archivo" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/models/selfconsumption.py:0 +#: code:addons/energy_selfconsumption/models/selfconsumption.py:0 #, python-format msgid "Error reading file" msgstr "Error de lectura en archivo" @@ -1721,6 +1800,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 +#: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 #, python-format msgid "Female" msgstr "Mujer" @@ -1776,6 +1856,8 @@ msgstr "Nombre" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/models/distribution_table.py:0 +#: code:addons/energy_selfconsumption/models/distribution_table.py:0 +#: code:addons/energy_selfconsumption/wizards/create_distribution_table_wizard.py:0 #: code:addons/energy_selfconsumption/wizards/create_distribution_table_wizard.py:0 #: model:ir.model.fields.selection,name:energy_selfconsumption.selection__energy_selfconsumption_create_distribution_table_wizard__type__fixed #: model:ir.model.fields.selection,name:energy_selfconsumption.selection__energy_selfconsumption_distribution_table__type__fixed @@ -1807,6 +1889,7 @@ msgstr "Icono de fuente impresionante, p. fa-tasks" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/models/supply_point.py:0 +#: code:addons/energy_selfconsumption/models/supply_point.py:0 #, python-format msgid "" "For the 2.0TD rate, the maximum contracted power must be between 0 and 15 " @@ -1818,6 +1901,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/models/supply_point.py:0 +#: code:addons/energy_selfconsumption/models/supply_point.py:0 #, python-format msgid "" "For the 3.0TD rate, the maximum contracted power must be greater than 15 kW." @@ -1828,6 +1912,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 +#: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 #, python-format msgid "Gender" msgstr "Género" @@ -1840,6 +1925,7 @@ msgstr "Generar" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/models/selfconsumption.py:0 +#: code:addons/energy_selfconsumption/models/selfconsumption.py:0 #, python-format msgid "Generate Contracts" msgstr "Generar Contratos" @@ -1879,6 +1965,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 +#: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 #, python-format msgid "" "Have to accept and authorize being able to issue payments to this bank " @@ -1892,6 +1979,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 +#: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 #, python-format msgid "Have to accept politic privacy." msgstr "Tienes que aceptar la polÃÂtica de privacidad." @@ -1899,6 +1987,7 @@ msgstr "Tienes que aceptar la polÃÂtica de privacidad." #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 +#: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 #: model:ir.model.fields,field_description:energy_selfconsumption.field_energy_selfconsumption_selfconsumption__conf_header_description #, python-format msgid "Header description on website form" @@ -1907,6 +1996,7 @@ msgstr "Descripción de la cabecera en el formulario del sitio web" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 +#: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 #, python-format msgid "" "How much power of the collective PV installation you would like to purchase." @@ -1916,6 +2006,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 +#: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 #: model:ir.model.fields,field_description:energy_selfconsumption.field_energy_selfconsumption_inscription_selfconsumption__accept #, python-format msgid "" @@ -1930,6 +2021,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 +#: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 #, python-format msgid "I accept privacy policy" msgstr "Acepto la polÃÂtica de privacidad" @@ -1937,6 +2029,7 @@ msgstr "Acepto la polÃÂtica de privacidad" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 +#: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 #, python-format msgid "I prefer to not share it" msgstr "Prefiero no compartirlo" @@ -1944,11 +2037,14 @@ msgstr "Prefiero no compartirlo" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 +#: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 #, python-format msgid "IBAN" msgstr "" #. module: energy_selfconsumption +#: model:ir.model.fields,field_description:energy_selfconsumption.field_change_distribution_table_import_line_wizard__id +#: model:ir.model.fields,field_description:energy_selfconsumption.field_change_distribution_table_import_wizard__id #: model:ir.model.fields,field_description:energy_selfconsumption.field_clean_supply_point_assignation_wizard__id #: model:ir.model.fields,field_description:energy_selfconsumption.field_energy_selfconsumption_change_state_inscription_lines_wizard__id #: model:ir.model.fields,field_description:energy_selfconsumption.field_energy_selfconsumption_change_state_inscription_wizard__id @@ -2005,6 +2101,7 @@ msgstr "Importar" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/models/distribution_table.py:0 +#: code:addons/energy_selfconsumption/models/distribution_table.py:0 #: model:ir.actions.act_window,name:energy_selfconsumption.distribution_table_import_wizard_action #, python-format msgid "Import Distribution Table" @@ -2013,6 +2110,7 @@ msgstr "Importar tabla de distribución" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/wizards/selfconsumption_import_wizard.py:0 +#: code:addons/energy_selfconsumption/wizards/selfconsumption_import_wizard.py:0 #, python-format msgid "Import Errors" msgstr "Importar errores" @@ -2028,6 +2126,7 @@ msgstr "Importar archivo (*.csv)" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/models/selfconsumption.py:0 +#: code:addons/energy_selfconsumption/models/selfconsumption.py:0 #, python-format msgid "Import Inscriptions and Supply Points" msgstr "Importar inscripciones y puntos de suministro" @@ -2040,6 +2139,7 @@ msgstr "Importar datos" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/wizards/selfconsumption_import_wizard.py:0 +#: code:addons/energy_selfconsumption/wizards/selfconsumption_import_wizard.py:0 #, python-format msgid "Import errors found: <ul>{list}</ul>" msgstr "Se han encontrado errores de importación: <ul>{list}</ul>" @@ -2057,6 +2157,7 @@ msgstr "Importar tabla" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/models/distribution_table.py:0 +#: code:addons/energy_selfconsumption/models/distribution_table.py:0 #: model:ir.model.fields.selection,name:energy_selfconsumption.selection__energy_selfconsumption_distribution_table__state__process #, python-format msgid "In process" @@ -2075,6 +2176,8 @@ msgstr "" #: code:addons/energy_selfconsumption/models/inscription.py:0 #: code:addons/energy_selfconsumption/models/selfconsumption.py:0 #: code:addons/energy_selfconsumption/wizards/change_state_inscription_wizard.py:0 +#: code:addons/energy_selfconsumption/wizards/change_distribution_table_import_wizard.py:0 +#: model:ir.model.fields.selection,name:energy_selfconsumption.selection__change_distribution_table_import_line_wizard__state__inactive #: model:ir.model.fields.selection,name:energy_selfconsumption.selection__energy_selfconsumption_change_state_inscription_lines_wizard__state__inactive #: model:ir.model.fields.selection,name:energy_selfconsumption.selection__energy_selfconsumption_inscription_selfconsumption__state__inactive #: model:ir.model.fields.selection,name:energy_selfconsumption.selection__energy_selfconsumption_selfconsumption__conf_state__inactive @@ -2085,6 +2188,7 @@ msgstr "Inactivo" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 +#: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 #, python-format msgid "" "Information necessary for the formalization of the distribution " @@ -2094,6 +2198,7 @@ msgstr "" "encontrarlo en cadastro.es" #. module: energy_selfconsumption +#: model:ir.model.fields,field_description:energy_selfconsumption.field_change_distribution_table_import_line_wizard__inscription_id #: model:ir.model.fields,field_description:energy_selfconsumption.field_energy_selfconsumption_change_state_inscription_lines_wizard__inscription_id #: model:ir.model.fields,field_description:energy_selfconsumption.field_energy_selfconsumption_inscription_selfconsumption__inscription_id #: model:ir.model.fields,field_description:energy_selfconsumption.field_energy_selfconsumption_selfconsumption__inscription_ids @@ -2133,6 +2238,7 @@ msgstr "Instalación:" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/models/selfconsumption.py:0 +#: code:addons/energy_selfconsumption/models/selfconsumption.py:0 #, python-format msgid "Invalid CAU: Last 3 digits are not numbers" msgstr "CAU no válida: los últimos 3 dÃÂgitos no son números" @@ -2141,6 +2247,8 @@ msgstr "CAU no válida: los últimos 3 dÃÂgitos no son números" #. odoo-python #: code:addons/energy_selfconsumption/models/selfconsumption.py:0 #: code:addons/energy_selfconsumption/models/selfconsumption.py:0 +#: code:addons/energy_selfconsumption/models/selfconsumption.py:0 +#: code:addons/energy_selfconsumption/models/selfconsumption.py:0 #, python-format msgid "Invalid CAU: The CUPS does not start with 'ES'." msgstr "CAU no válida: El CUPS no comienza con 'ES'." @@ -2149,6 +2257,8 @@ msgstr "CAU no válida: El CUPS no comienza con 'ES'." #. odoo-python #: code:addons/energy_selfconsumption/models/selfconsumption.py:0 #: code:addons/energy_selfconsumption/models/selfconsumption.py:0 +#: code:addons/energy_selfconsumption/models/selfconsumption.py:0 +#: code:addons/energy_selfconsumption/models/selfconsumption.py:0 #, python-format msgid "Invalid CAU: The CUPS has an incorrect format." msgstr "CAU no válido: El CUPS tiene un formato incorrecto." @@ -2156,6 +2266,7 @@ msgstr "CAU no válido: El CUPS tiene un formato incorrecto." #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/models/selfconsumption.py:0 +#: code:addons/energy_selfconsumption/models/selfconsumption.py:0 #, python-format msgid "Invalid CAU: The character after CUPS is not A" msgstr "CAU no válida: el carácter después de CUPS no es A" @@ -2164,6 +2275,8 @@ msgstr "CAU no válida: el carácter después de CUPS no es A" #. odoo-python #: code:addons/energy_selfconsumption/models/selfconsumption.py:0 #: code:addons/energy_selfconsumption/models/selfconsumption.py:0 +#: code:addons/energy_selfconsumption/models/selfconsumption.py:0 +#: code:addons/energy_selfconsumption/models/selfconsumption.py:0 #, python-format msgid "Invalid CAU: The checksum of the CUPS is incorrect." msgstr "CAU no válida: la suma de comprobación del CUPS es incorrecta." @@ -2172,6 +2285,8 @@ msgstr "CAU no válida: la suma de comprobación del CUPS es incorrecta." #. odoo-python #: code:addons/energy_selfconsumption/models/selfconsumption.py:0 #: code:addons/energy_selfconsumption/models/selfconsumption.py:0 +#: code:addons/energy_selfconsumption/models/selfconsumption.py:0 +#: code:addons/energy_selfconsumption/models/selfconsumption.py:0 #, python-format msgid "" "Invalid CAU: The first characters related to CUPS are incorrect. The length " @@ -2183,6 +2298,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/models/selfconsumption.py:0 +#: code:addons/energy_selfconsumption/models/selfconsumption.py:0 #, python-format msgid "Invalid CAU: The length is not correct" msgstr "CAU no válida: la longitud no es correcta" @@ -2190,6 +2306,7 @@ msgstr "CAU no válida: la longitud no es correcta" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/models/selfconsumption.py:0 +#: code:addons/energy_selfconsumption/models/selfconsumption.py:0 #, python-format msgid "Invalid CIL: Last 3 digits are not numbers" msgstr "CIL no válido: los últimos 3 dÃÂgitos no son números" @@ -2198,6 +2315,8 @@ msgstr "CIL no válido: los últimos 3 dÃÂgitos no son números" #. odoo-python #: code:addons/energy_selfconsumption/models/selfconsumption.py:0 #: code:addons/energy_selfconsumption/models/selfconsumption.py:0 +#: code:addons/energy_selfconsumption/models/selfconsumption.py:0 +#: code:addons/energy_selfconsumption/models/selfconsumption.py:0 #, python-format msgid "Invalid CIL: The CUPS does not start with 'ES'." msgstr "CIL no válido: CUPS no comienza con 'ES'." @@ -2206,6 +2325,8 @@ msgstr "CIL no válido: CUPS no comienza con 'ES'." #. odoo-python #: code:addons/energy_selfconsumption/models/selfconsumption.py:0 #: code:addons/energy_selfconsumption/models/selfconsumption.py:0 +#: code:addons/energy_selfconsumption/models/selfconsumption.py:0 +#: code:addons/energy_selfconsumption/models/selfconsumption.py:0 #, python-format msgid "Invalid CIL: The CUPS has an incorrect format." msgstr "CIL no válido: El CUPS tiene un formato incorrecto." @@ -2214,6 +2335,8 @@ msgstr "CIL no válido: El CUPS tiene un formato incorrecto." #. odoo-python #: code:addons/energy_selfconsumption/models/selfconsumption.py:0 #: code:addons/energy_selfconsumption/models/selfconsumption.py:0 +#: code:addons/energy_selfconsumption/models/selfconsumption.py:0 +#: code:addons/energy_selfconsumption/models/selfconsumption.py:0 #, python-format msgid "Invalid CIL: The checksum of the CUPS is incorrect." msgstr "CIL no válido: la suma de comprobación de CUPS es incorrecta." @@ -2222,6 +2345,8 @@ msgstr "CIL no válido: la suma de comprobación de CUPS es incorrecta." #. odoo-python #: code:addons/energy_selfconsumption/models/selfconsumption.py:0 #: code:addons/energy_selfconsumption/models/selfconsumption.py:0 +#: code:addons/energy_selfconsumption/models/selfconsumption.py:0 +#: code:addons/energy_selfconsumption/models/selfconsumption.py:0 #, python-format msgid "" "Invalid CIL: The first characters related to CUPS are incorrect. The length " @@ -2233,6 +2358,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/models/selfconsumption.py:0 +#: code:addons/energy_selfconsumption/models/selfconsumption.py:0 #, python-format msgid "Invalid CIL: The length is not correct" msgstr "CIL no válido: la longitud no es correcta" @@ -2240,6 +2366,7 @@ msgstr "CIL no válido: la longitud no es correcta" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/models/supply_point.py:0 +#: code:addons/energy_selfconsumption/models/supply_point.py:0 #, python-format msgid "Invalid CUPS: The checksum is incorrect." msgstr "CUPS no válidos: la suma de comprobación es incorrecta." @@ -2247,6 +2374,7 @@ msgstr "CUPS no válidos: la suma de comprobación es incorrecta." #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/models/supply_point.py:0 +#: code:addons/energy_selfconsumption/models/supply_point.py:0 #, python-format msgid "Invalid CUPS: The length is incorrect." msgstr "CUPS no válidos: La longitud es incorrecta." @@ -2254,6 +2382,7 @@ msgstr "CUPS no válidos: La longitud es incorrecta." #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/models/supply_point.py:0 +#: code:addons/energy_selfconsumption/models/supply_point.py:0 #, python-format msgid "Invalid CUPS: does not start with 'ES'." msgstr "CUPS no válidos: no comienza con 'ES'." @@ -2261,6 +2390,7 @@ msgstr "CUPS no válidos: no comienza con 'ES'." #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/models/supply_point.py:0 +#: code:addons/energy_selfconsumption/models/supply_point.py:0 #, python-format msgid "Invalid CUPS: has an incorrect format." msgstr "CUPS no válidos: tiene un formato incorrecto." @@ -2268,6 +2398,8 @@ msgstr "CUPS no válidos: tiene un formato incorrecto." #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/models/selfconsumption.py:0 +#: code:addons/energy_selfconsumption/models/selfconsumption.py:0 +#: code:addons/energy_selfconsumption/models/supply_point.py:0 #: code:addons/energy_selfconsumption/models/supply_point.py:0 #, python-format msgid "Invalid Cadastral Reference: {error}" @@ -2276,6 +2408,7 @@ msgstr "Referencia catastral no válida: {error}" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/models/create_inscription.py:0 +#: code:addons/energy_selfconsumption/models/create_inscription.py:0 #, python-format msgid "Invalid IBAN: {error}" msgstr "IBAN no válido: {error}" @@ -2283,6 +2416,7 @@ msgstr "IBAN no válido: {error}" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/models/supply_point.py:0 +#: code:addons/energy_selfconsumption/models/supply_point.py:0 #, python-format msgid "Invalid VAT: {error}" msgstr "NIF/CIF no válido: {error}" @@ -2325,6 +2459,7 @@ msgstr "Es seguidor" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 +#: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 #, python-format msgid "Is the owner the same partner?" msgstr "¿El titular es el mismo socio?" @@ -2342,6 +2477,7 @@ msgstr "Apunte contable" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 +#: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 #, python-format msgid "Lang" msgstr "Idioma" @@ -2349,6 +2485,7 @@ msgstr "Idioma" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 +#: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 #, python-format msgid "Language not found." msgstr "Idioma no encontrado." @@ -2359,6 +2496,8 @@ msgid "Last Date Invoiced" msgstr "Última fecha facturada" #. module: energy_selfconsumption +#: model:ir.model.fields,field_description:energy_selfconsumption.field_change_distribution_table_import_line_wizard____last_update +#: model:ir.model.fields,field_description:energy_selfconsumption.field_change_distribution_table_import_wizard____last_update #: model:ir.model.fields,field_description:energy_selfconsumption.field_clean_supply_point_assignation_wizard____last_update #: model:ir.model.fields,field_description:energy_selfconsumption.field_energy_selfconsumption_change_state_inscription_lines_wizard____last_update #: model:ir.model.fields,field_description:energy_selfconsumption.field_energy_selfconsumption_change_state_inscription_wizard____last_update @@ -2389,6 +2528,8 @@ msgid "Last Period Start" msgstr "Inicio del último perÃÂodo" #. module: energy_selfconsumption +#: model:ir.model.fields,field_description:energy_selfconsumption.field_change_distribution_table_import_line_wizard__write_uid +#: model:ir.model.fields,field_description:energy_selfconsumption.field_change_distribution_table_import_wizard__write_uid #: model:ir.model.fields,field_description:energy_selfconsumption.field_clean_supply_point_assignation_wizard__write_uid #: model:ir.model.fields,field_description:energy_selfconsumption.field_energy_selfconsumption_change_state_inscription_lines_wizard__write_uid #: model:ir.model.fields,field_description:energy_selfconsumption.field_energy_selfconsumption_change_state_inscription_wizard__write_uid @@ -2409,6 +2550,8 @@ msgid "Last Updated by" msgstr "Última actualización por" #. module: energy_selfconsumption +#: model:ir.model.fields,field_description:energy_selfconsumption.field_change_distribution_table_import_line_wizard__write_date +#: model:ir.model.fields,field_description:energy_selfconsumption.field_change_distribution_table_import_wizard__write_date #: model:ir.model.fields,field_description:energy_selfconsumption.field_clean_supply_point_assignation_wizard__write_date #: model:ir.model.fields,field_description:energy_selfconsumption.field_energy_selfconsumption_change_state_inscription_lines_wizard__write_date #: model:ir.model.fields,field_description:energy_selfconsumption.field_energy_selfconsumption_change_state_inscription_wizard__write_date @@ -2436,6 +2579,7 @@ msgstr "Apellido" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 +#: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 #, python-format msgid "Lastname" msgstr "Apellido" @@ -2450,6 +2594,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/wizards/create_distribution_table_wizard.py:0 +#: code:addons/energy_selfconsumption/wizards/create_distribution_table_wizard.py:0 #: model:ir.model.fields.selection,name:energy_selfconsumption.selection__energy_selfconsumption_create_distribution_table_wizard__type_distribute_excess__linear #, python-format msgid "Linear" @@ -2499,6 +2644,7 @@ msgstr "LÃÂnea principal" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 +#: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 #, python-format msgid "Male" msgstr "Hombre" @@ -2516,6 +2662,7 @@ msgstr "Mandato Filtrado" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/wizards/contract_generation_wizard.py:0 +#: code:addons/energy_selfconsumption/wizards/contract_generation_wizard.py:0 #, python-format msgid "Mandate not found for {partner}" msgstr "Mandato no encontrado para {partner}" @@ -2528,6 +2675,7 @@ msgstr "Potencia máxima distribuida" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 +#: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 #: model:ir.model.fields,field_description:energy_selfconsumption.field_energy_selfconsumption_supply_point__contracted_power #, python-format msgid "Maximum contracted power" @@ -2571,6 +2719,7 @@ msgstr "Modalidad" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/models/selfconsumption.py:0 +#: code:addons/energy_selfconsumption/models/selfconsumption.py:0 #, python-format msgid "Must have a valid Distribution Table." msgstr "Debe tener una tabla de distribución válida." @@ -2596,6 +2745,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 +#: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 #: model:ir.model.fields,field_description:energy_selfconsumption.field_contract_contract__supply_point_name #: model:ir.model.fields,field_description:energy_selfconsumption.field_energy_selfconsumption_distribution_table__name #: model:ir.model.fields,field_description:energy_selfconsumption.field_energy_selfconsumption_inscription_selfconsumption__name @@ -2616,13 +2766,27 @@ msgstr "Nombre de la empresa" msgid "Necessary data for the integration of the Community:" msgstr "Datos necesarios para la integración de la Comunidad:" +#. module: energy_selfconsumption +#. odoo-python +#: code:addons/energy_selfconsumption/wizards/change_distribution_table_import_wizard.py:0 +#: model:ir.model.fields.selection,name:energy_selfconsumption.selection__change_distribution_table_import_wizard__state__new +#, python-format +msgid "New" +msgstr "Nuevo" + #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/models/supply_point.py:0 +#: code:addons/energy_selfconsumption/models/supply_point.py:0 #, python-format msgid "New Supply Point" msgstr "Nuevo Punto de Suministro" +#. module: energy_selfconsumption +#: model_terms:ir.ui.view,arch_db:energy_selfconsumption.view_change_distribution_table_import_wizard_form +msgid "New registrations" +msgstr "Nuevos registros" + #. module: energy_selfconsumption #: model:ir.model.fields,field_description:energy_selfconsumption.field_energy_selfconsumption_distribution_table__activity_calendar_event_id #: model:ir.model.fields,field_description:energy_selfconsumption.field_energy_selfconsumption_selfconsumption__activity_calendar_event_id @@ -2672,24 +2836,35 @@ msgstr "Próximo PerÃÂodo de Finalización" msgid "Next Period Start" msgstr "Próximo PerÃÂodo de Comienzo" +#. module: energy_selfconsumption +#: model_terms:ir.ui.view,arch_db:energy_selfconsumption.view_change_distribution_table_import_wizard_form +msgid "Next step" +msgstr "Siguiente paso" + #. module: energy_selfconsumption #. odoo-python + #: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 #: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 #: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 +#: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 +#: code:addons/energy_selfconsumption/models/partner.py:0 #: code:addons/energy_selfconsumption/models/partner.py:0 #: code:addons/energy_selfconsumption/models/supply_point.py:0 +#: code:addons/energy_selfconsumption/models/supply_point.py:0 +#: code:addons/energy_selfconsumption/wizards/create_distribution_table_wizard.py:0 #: code:addons/energy_selfconsumption/wizards/create_distribution_table_wizard.py:0 #: model:ir.model.fields.selection,name:energy_selfconsumption.selection__energy_selfconsumption_create_distribution_table_wizard__distribute_excess__no #: model:ir.model.fields.selection,name:energy_selfconsumption.selection__energy_selfconsumption_supply_point__used_in_selfconsumption__no #: model:ir.model.fields.selection,name:energy_selfconsumption.selection__res_partner__vulnerability_situation__no #, python-format msgid "No" -msgstr "" +msgstr "No" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/models/create_inscription.py:0 +#: code:addons/energy_selfconsumption/models/create_inscription.py:0 #, python-format msgid "No participation found for this project." msgstr "No se ha encontrado participación para este proyecto." @@ -2697,8 +2872,11 @@ msgstr "No se ha encontrado participación para este proyecto." #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/models/selfconsumption.py:0 +#: code:addons/energy_selfconsumption/models/selfconsumption.py:0 +#: code:addons/energy_selfconsumption/wizards/distribution_table_import_wizard.py:0 #: code:addons/energy_selfconsumption/wizards/distribution_table_import_wizard.py:0 #: code:addons/energy_selfconsumption/wizards/selfconsumption_import_wizard.py:0 +#: code:addons/energy_selfconsumption/wizards/selfconsumption_import_wizard.py:0 #, python-format msgid "No valid encoding was found for the attached file" msgstr "" @@ -2707,6 +2885,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 +#: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 #, python-format msgid "Not binary" msgstr "No binario" @@ -2755,8 +2934,19 @@ msgstr "OTROS DATOS NECESARIOS" #. module: energy_selfconsumption #. odoo-python +#: code:addons/energy_selfconsumption/wizards/change_distribution_table_import_wizard.py:0 +#: model:ir.model.fields.selection,name:energy_selfconsumption.selection__change_distribution_table_import_wizard__state__old +#, python-format +msgid "Old" +msgstr "Antiguo" + +#. module: energy_selfconsumption +#. odoo-python +#: code:addons/energy_selfconsumption/wizards/distribution_table_import_wizard.py:0 #: code:addons/energy_selfconsumption/wizards/distribution_table_import_wizard.py:0 #: code:addons/energy_selfconsumption/wizards/invoicing_wizard.py:0 +#: code:addons/energy_selfconsumption/wizards/invoicing_wizard.py:0 +#: code:addons/energy_selfconsumption/wizards/selfconsumption_import_wizard.py:0 #: code:addons/energy_selfconsumption/wizards/selfconsumption_import_wizard.py:0 #, python-format msgid "Only csv format files are accepted." @@ -2765,6 +2955,7 @@ msgstr "Solo se aceptan archivos en formato csv." #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 +#: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 #, python-format msgid "Other" msgstr "Otros" @@ -2786,6 +2977,7 @@ msgstr "Suministro del propietario" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/models/create_inscription.py:0 +#: code:addons/energy_selfconsumption/models/create_inscription.py:0 #, python-format msgid "Owner could not be created or found." msgstr "No se ha podido crear o encontrar al propietario." @@ -2812,6 +3004,7 @@ msgstr "Participación" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 +#: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 #, python-format msgid "Participation does not exist." msgstr "La participación no existe." @@ -2822,6 +3015,7 @@ msgid "Participation inscription" msgstr "Inscripción de participación" #. module: energy_selfconsumption +#: model:ir.model.fields,field_description:energy_selfconsumption.field_change_distribution_table_import_line_wizard__participation_real_quantity #: model:ir.model.fields,field_description:energy_selfconsumption.field_energy_selfconsumption_change_state_inscription_lines_wizard__participation_real_quantity #: model:ir.model.fields,field_description:energy_selfconsumption.field_energy_selfconsumption_inscription_selfconsumption__participation_real_quantity msgid "Participation real quantity" @@ -2835,6 +3029,7 @@ msgstr "Socio" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 +#: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 #, python-format msgid "Partner does not exist." msgstr "El socio no existe." @@ -2842,6 +3037,7 @@ msgstr "El socio no existe." #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/models/inscription.py:0 +#: code:addons/energy_selfconsumption/models/inscription.py:0 #, python-format msgid "Partner is already signed up in this project with that cups." msgstr "El socio ya está inscrito en este proyecto con esas copas." @@ -2849,6 +3045,7 @@ msgstr "El socio ya está inscrito en este proyecto con esas copas." #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 +#: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 #, python-format msgid "Partner is not cooperator." msgstr "Socio no es cooperador." @@ -2856,6 +3053,7 @@ msgstr "Socio no es cooperador." #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/models/create_inscription.py:0 +#: code:addons/energy_selfconsumption/models/create_inscription.py:0 #, python-format msgid "Partner with VAT {vat} is already registered in project {code}" msgstr "Socio con CIF/NIF {vat} ya está registrado en el proyecto {code}" @@ -2863,6 +3061,7 @@ msgstr "Socio con CIF/NIF {vat} ya está registrado en el proyecto {code}" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/models/create_inscription.py:0 +#: code:addons/energy_selfconsumption/models/create_inscription.py:0 #, python-format msgid "Partner with VAT:<b>{vat}</b> is not a cooperator." msgstr "Colaborador con CIF/NIF:<b>{vat}</b> no es un colaborador." @@ -2870,6 +3069,7 @@ msgstr "Colaborador con CIF/NIF:<b>{vat}</b> no es un colaborador." #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/models/create_inscription.py:0 +#: code:addons/energy_selfconsumption/models/create_inscription.py:0 #, python-format msgid "Partner with VAT:<b>{vat}</b> was not found." msgstr "No se ha encontrado socio con CIF/NIF:<b>{vat}</b>." @@ -2894,6 +3094,7 @@ msgstr "Porcentaje de energÃÂa distribuida" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 +#: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 #, python-format msgid "Phone" msgstr "Teléfono" @@ -2906,6 +3107,7 @@ msgstr "Potencia (kW)" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/models/selfconsumption.py:0 +#: code:addons/energy_selfconsumption/models/selfconsumption.py:0 #: model:ir.model.fields.selection,name:energy_selfconsumption.selection__energy_selfconsumption_define_invoicing_mode_wizard__invoicing_mode__power_acquired #: model:ir.model.fields.selection,name:energy_selfconsumption.selection__energy_selfconsumption_invoicing_wizard__invoicing_mode__power_acquired #: model:ir.model.fields.selection,name:energy_selfconsumption.selection__energy_selfconsumption_selfconsumption__invoicing_mode__power_acquired @@ -2928,6 +3130,11 @@ msgstr "Informe del Acuerdo de Poder" msgid "Power acquired" msgstr "Potencia adquirida" +#. module: energy_selfconsumption +#: model_terms:ir.ui.view,arch_db:energy_selfconsumption.view_change_distribution_table_import_wizard_form +msgid "Previous step" +msgstr "Paso anterior" + #. module: energy_selfconsumption #: model:ir.model.fields,field_description:energy_selfconsumption.field_energy_selfconsumption_define_invoicing_mode_wizard__price msgid "Price" @@ -2941,6 +3148,7 @@ msgstr "PolÃÂtica de privacidad" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 +#: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 #, python-format msgid "Privacy policy file text" msgstr "Texto del archivo de polÃÂtica de privacidad" @@ -2971,6 +3179,8 @@ msgstr "Proyecto" #. odoo-python #: code:addons/energy_selfconsumption/models/selfconsumption.py:0 #: code:addons/energy_selfconsumption/models/selfconsumption.py:0 +#: code:addons/energy_selfconsumption/models/selfconsumption.py:0 +#: code:addons/energy_selfconsumption/models/selfconsumption.py:0 #, python-format msgid "Project must have a valid Code." msgstr "El proyecto debe tener un código CUP válido." @@ -2979,6 +3189,8 @@ msgstr "El proyecto debe tener un código CUP válido." #. odoo-python #: code:addons/energy_selfconsumption/models/selfconsumption.py:0 #: code:addons/energy_selfconsumption/models/selfconsumption.py:0 +#: code:addons/energy_selfconsumption/models/selfconsumption.py:0 +#: code:addons/energy_selfconsumption/models/selfconsumption.py:0 #, python-format msgid "Project must have a valid Rated Power." msgstr "El proyecto debe tener una potencia nominal válida." @@ -2986,6 +3198,7 @@ msgstr "El proyecto debe tener una potencia nominal válida." #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/models/selfconsumption.py:0 +#: code:addons/energy_selfconsumption/models/selfconsumption.py:0 #, python-format msgid "Project must have defined a invoicing mode before activation." msgstr "" @@ -2995,6 +3208,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/wizards/create_distribution_table_wizard.py:0 +#: code:addons/energy_selfconsumption/wizards/create_distribution_table_wizard.py:0 #: model:ir.model.fields.selection,name:energy_selfconsumption.selection__energy_selfconsumption_create_distribution_table_wizard__type_distribute_excess__proportional #, python-format msgid "Proportional" @@ -3013,6 +3227,11 @@ msgstr "Cantidad" msgid "Quotechar in import CSV file." msgstr "Quotechar en archivo CSV de importación." +#. module: energy_selfconsumption +#: model_terms:ir.ui.view,arch_db:energy_selfconsumption.view_change_distribution_table_import_wizard_form +msgid "Record deregistration" +msgstr "Registro de desinscripción" + #. module: energy_selfconsumption #: model:ir.model.fields,field_description:energy_selfconsumption.field_energy_selfconsumption_define_invoicing_mode_wizard__recurring_rule_type msgid "Recurrence" @@ -3081,6 +3300,11 @@ msgstr "Restablecer a borrador" msgid "Responsible User" msgstr "Usuario responsable" +#. module: energy_selfconsumption +#: model_terms:ir.ui.view,arch_db:energy_selfconsumption.view_change_distribution_table_import_wizard_form +msgid "Retain old records" +msgstr "Mantener registros antiguos" + #. module: energy_selfconsumption #: model_terms:ir.ui.view,arch_db:energy_selfconsumption.selfconsumption_form_view msgid "Return to Draft" @@ -3162,6 +3386,7 @@ msgstr "Recordatorio de facturación autoconsumo ${ object.name }" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/models/distribution_table.py:0 +#: code:addons/energy_selfconsumption/models/distribution_table.py:0 #, python-format msgid "Self-consumption project already has a table in process" msgstr "El proyecto de autoconsumo ya tiene una tabla en proceso" @@ -3169,6 +3394,7 @@ msgstr "El proyecto de autoconsumo ya tiene una tabla en proceso" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/models/distribution_table.py:0 +#: code:addons/energy_selfconsumption/models/distribution_table.py:0 #, python-format msgid "Self-consumption project already has a validated table" msgstr "El proyecto de autoconsumo ya tiene una tabla validada" @@ -3371,16 +3597,18 @@ msgid "State" msgstr "Provincia" #. module: energy_selfconsumption +#: model:ir.model.fields,field_description:energy_selfconsumption.field_energy_selfconsumption_supply_point_assignation__supply_point_state +msgid "State Name" +msgstr "Nombre del Estado" + +#. module: energy_selfconsumption +#: model:ir.model.fields,field_description:energy_selfconsumption.field_change_distribution_table_import_line_wizard__state +#: model:ir.model.fields,field_description:energy_selfconsumption.field_change_distribution_table_import_wizard__state #: model:ir.model.fields,field_description:energy_selfconsumption.field_energy_selfconsumption_change_state_inscription_lines_wizard__state #: model:ir.model.fields,field_description:energy_selfconsumption.field_energy_selfconsumption_inscription_selfconsumption__state msgid "Status" msgstr "Estado" -#. module: energy_selfconsumption -#: model:ir.model.fields,field_description:energy_selfconsumption.field_energy_selfconsumption_supply_point_assignation__supply_point_state -msgid "State Name" -msgstr "Nombre del Estado" - #. module: energy_selfconsumption #: model:ir.model.fields,help:energy_selfconsumption.field_energy_selfconsumption_distribution_table__activity_state #: model:ir.model.fields,help:energy_selfconsumption.field_energy_selfconsumption_selfconsumption__activity_state @@ -3476,6 +3704,11 @@ msgstr "Punto de suministro filtrado" msgid "Supply Points" msgstr "Puntos de Suministro" +#. module: energy_selfconsumption +#: model_terms:ir.ui.view,arch_db:energy_selfconsumption.selfconsumption_invoice_template +msgid "Tax 15%" +msgstr "" + #. module: energy_selfconsumption #: model:ir.model.fields,field_description:energy_selfconsumption.field_energy_selfconsumption_supply_point_assignation__owner_vat msgid "Tax ID" @@ -3484,6 +3717,7 @@ msgstr "Impuesto ID" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/models/create_inscription.py:0 +#: code:addons/energy_selfconsumption/models/create_inscription.py:0 #, python-format msgid "The IBAN field cannot be empty." msgstr "El campo IBAN no puede estar vacÃÂo." @@ -3501,6 +3735,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/wizards/invoicing_wizard.py:0 +#: code:addons/energy_selfconsumption/wizards/invoicing_wizard.py:0 #, python-format msgid "The contract has no lines" msgstr "El contrato no tiene lÃÂneas" @@ -3508,6 +3743,7 @@ msgstr "El contrato no tiene lÃÂneas" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 +#: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 #, python-format msgid "The email is not the same." msgstr "El correo electrónico no es el mismo." @@ -3516,6 +3752,8 @@ msgstr "El correo electrónico no es el mismo." #. odoo-python #: code:addons/energy_selfconsumption/wizards/invoicing_wizard.py:0 #: code:addons/energy_selfconsumption/wizards/invoicing_wizard.py:0 +#: code:addons/energy_selfconsumption/wizards/invoicing_wizard.py:0 +#: code:addons/energy_selfconsumption/wizards/invoicing_wizard.py:0 #, python-format msgid "The energy generated must be greater than 0 (kWh)." msgstr "La energÃÂa generada debe ser superior a 0 (kWh)." @@ -3523,6 +3761,7 @@ msgstr "La energÃÂa generada debe ser superior a 0 (kWh)." #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/wizards/selfconsumption_import_wizard.py:0 +#: code:addons/energy_selfconsumption/wizards/selfconsumption_import_wizard.py:0 #, python-format msgid "The file should contain 28 columns and not {header_length} columns." msgstr "El archivo debe contener 28 columnas y no {header_length} columnas." @@ -3530,6 +3769,7 @@ msgstr "El archivo debe contener 28 columnas y no {header_length} columnas." #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 +#: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 #, python-format msgid "" "The form is not open. For more information write to your Energy Community " @@ -3541,6 +3781,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/wizards/invoicing_wizard.py:0 +#: code:addons/energy_selfconsumption/wizards/invoicing_wizard.py:0 #, python-format msgid "" "The number of contracts selected does not match the number of contracts " @@ -3552,6 +3793,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/models/supply_point_assignation.py:0 +#: code:addons/energy_selfconsumption/models/supply_point_assignation.py:0 #, python-format msgid "The partner of the supply point is not subscribed to the project" msgstr "El socio del punto de suministro no está suscrito al proyecto" @@ -3559,6 +3801,7 @@ msgstr "El socio del punto de suministro no está suscrito al proyecto" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/wizards/create_distribution_table_wizard.py:0 +#: code:addons/energy_selfconsumption/wizards/create_distribution_table_wizard.py:0 #, python-format msgid "The project has to have a power greater than 0." msgstr "El proyecto debe tener una potencia superior a 0." @@ -3566,6 +3809,7 @@ msgstr "El proyecto debe tener una potencia superior a 0." #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/models/selfconsumption.py:0 +#: code:addons/energy_selfconsumption/models/selfconsumption.py:0 #, python-format msgid "" "The report can be downloaded when the project is in activation or active " @@ -3582,6 +3826,7 @@ msgstr "La suma de todos los coeficientes debe dar como resultado 1" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/wizards/distribution_table_import_wizard.py:0 +#: code:addons/energy_selfconsumption/wizards/distribution_table_import_wizard.py:0 #, python-format msgid "" "The sum of coefficients for the following hours is not equal to 1: %s, " @@ -3591,6 +3836,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/wizards/distribution_table_import_wizard.py:0 +#: code:addons/energy_selfconsumption/wizards/distribution_table_import_wizard.py:0 #, python-format msgid "The sum of coefficients is not equal to 1: %s" msgstr "La suma de los coeficiente no es igual a 1: %s" @@ -3598,6 +3844,7 @@ msgstr "La suma de los coeficiente no es igual a 1: %s" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/models/distribution_table.py:0 +#: code:addons/energy_selfconsumption/models/distribution_table.py:0 #, python-format msgid "" "The supply point can't be removed because the distribution table state is " @@ -3618,6 +3865,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 +#: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 #, python-format msgid "" "There is already an individual photovoltaic self-consumption or collective " @@ -3629,6 +3877,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/wizards/contract_generation_wizard.py:0 +#: code:addons/energy_selfconsumption/wizards/contract_generation_wizard.py:0 #, python-format msgid "There is no distribution table in proces of activation." msgstr "No existe tabla de distribución en proceso de activación." @@ -3654,6 +3903,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/wizards/distribution_table_import_wizard.py:0 +#: code:addons/energy_selfconsumption/wizards/distribution_table_import_wizard.py:0 #, python-format msgid "There isn't any supply point with this code: {code}" msgstr "No hay ningún punto de suministro con este código: {code}" @@ -3678,6 +3928,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/models/distribution_table.py:0 +#: code:addons/energy_selfconsumption/models/distribution_table.py:0 #, python-format msgid "" "To change the type you must first delete the associated distribution points.\n" @@ -3733,6 +3984,11 @@ msgstr "" msgid "Unactivate form" msgstr "Desactivar formulario" +#. module: energy_selfconsumption +#: model_terms:ir.ui.view,arch_db:energy_selfconsumption.view_change_distribution_table_import_wizard_form +msgid "Update old records" +msgstr "Actualizar registros antiguos" + #. module: energy_selfconsumption #: model:ir.model.fields,field_description:energy_selfconsumption.field_energy_selfconsumption_inscription_selfconsumption__used_in_selfconsumption #: model:ir.model.fields,field_description:energy_selfconsumption.field_energy_selfconsumption_supply_point__used_in_selfconsumption @@ -3747,6 +4003,7 @@ msgstr "Rol actual del usuario" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 +#: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 #, python-format msgid "VAT of the partner" msgstr "CIF/NIF del socio" @@ -3759,6 +4016,7 @@ msgstr "Validar" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/models/distribution_table.py:0 +#: code:addons/energy_selfconsumption/models/distribution_table.py:0 #: model:ir.model.fields.selection,name:energy_selfconsumption.selection__energy_selfconsumption_distribution_table__state__validated #, python-format msgid "Validated" @@ -3767,6 +4025,7 @@ msgstr "Validado" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/models/distribution_table.py:0 +#: code:addons/energy_selfconsumption/models/distribution_table.py:0 #: model:ir.model.fields.selection,name:energy_selfconsumption.selection__energy_selfconsumption_distribution_table__type__hourly #, python-format msgid "Variable hourly" @@ -3810,6 +4069,7 @@ msgstr "Historial de comunicaciones del sitio web" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 +#: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 #, python-format msgid "What participation would you like?" msgstr "¿Qué participación le gustarÃÂa?" @@ -3819,9 +4079,15 @@ msgstr "¿Qué participación le gustarÃÂa?" #: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 #: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 #: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 +#: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 +#: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 +#: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 #: code:addons/energy_selfconsumption/models/partner.py:0 +#: code:addons/energy_selfconsumption/models/partner.py:0 +#: code:addons/energy_selfconsumption/models/supply_point.py:0 #: code:addons/energy_selfconsumption/models/supply_point.py:0 #: code:addons/energy_selfconsumption/wizards/create_distribution_table_wizard.py:0 +#: code:addons/energy_selfconsumption/wizards/create_distribution_table_wizard.py:0 #: model:ir.model.fields.selection,name:energy_selfconsumption.selection__energy_selfconsumption_create_distribution_table_wizard__distribute_excess__yes #: model:ir.model.fields.selection,name:energy_selfconsumption.selection__energy_selfconsumption_supply_point__used_in_selfconsumption__yes #: model:ir.model.fields.selection,name:energy_selfconsumption.selection__res_partner__vulnerability_situation__yes @@ -3832,6 +4098,7 @@ msgstr "SÃÂ" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 +#: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 #, python-format msgid "You are already enrolled in this self-consumption project." msgstr "Ya estás inscrito en este proyecto de autoconsumo." @@ -3862,6 +4129,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 +#: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 #, python-format msgid "" "You can find the annual electricity use on the electricity bill(Total annual" @@ -3873,6 +4141,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/wizards/clean_supply_point_assignation_wizard.py:0 +#: code:addons/energy_selfconsumption/wizards/clean_supply_point_assignation_wizard.py:0 #, python-format msgid "" "You can only delete assigned distribution points from a distribution table " @@ -3884,6 +4153,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/models/contract_line.py:0 +#: code:addons/energy_selfconsumption/models/contract_line.py:0 #, python-format msgid "" "You can't have a date of next invoice anterior to the start of the contract " @@ -3895,6 +4165,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 +#: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 #, python-format msgid "" "You have a recognized situation of vulnerability due to energy poverty or " @@ -3906,6 +4177,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/models/create_inscription.py:0 +#: code:addons/energy_selfconsumption/models/create_inscription.py:0 #, python-format msgid "You have successfully registered." msgstr "Se ha registrado correctamente." @@ -3913,6 +4185,8 @@ msgstr "Se ha registrado correctamente." #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/wizards/change_state_inscription_wizard.py:0 +#: code:addons/energy_selfconsumption/wizards/change_state_inscription_wizard.py:0 +#: code:addons/energy_selfconsumption/wizards/create_distribution_table_wizard.py:0 #: code:addons/energy_selfconsumption/wizards/create_distribution_table_wizard.py:0 #, python-format msgid "You have to select at least one entry." @@ -3921,6 +4195,7 @@ msgstr "Debe seleccionar al menos una entrada." #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/models/selfconsumption.py:0 +#: code:addons/energy_selfconsumption/models/selfconsumption.py:0 #, python-format msgid "" "You need to add the privacy policy file to display the form.To modify the " @@ -3938,6 +4213,7 @@ msgstr "Sus datos se han registrado correctamente." #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/wizards/create_distribution_table_wizard.py:0 +#: code:addons/energy_selfconsumption/wizards/create_distribution_table_wizard.py:0 #, python-format msgid "Your distribution percentage cannot be 0." msgstr "Su porcentaje de distribución no puede ser 0." @@ -3945,6 +4221,7 @@ msgstr "Su porcentaje de distribución no puede ser 0." #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/wizards/create_distribution_table_wizard.py:0 +#: code:addons/energy_selfconsumption/wizards/create_distribution_table_wizard.py:0 #, python-format msgid "Your distribution percentage cannot exceed 100%." msgstr "Su porcentaje de distribución no puede superar el 100%." @@ -3958,6 +4235,7 @@ msgstr "Código Postal" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 +#: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 #: model:ir.model.fields,field_description:energy_selfconsumption.field_energy_selfconsumption_selfconsumption__zip #: model:ir.model.fields,field_description:energy_selfconsumption.field_energy_selfconsumption_supply_point__zip #: model:ir.model.fields,field_description:energy_selfconsumption.field_energy_selfconsumption_supply_point_assignation__supply_point_postalcode diff --git a/energy_selfconsumption/i18n/eu_ES.po b/energy_selfconsumption/i18n/eu_ES.po index 47ddfa4a2c44a3f1b0e985cbb4774445e16b6e0e..f5bc4be747975fbaa85faa1fe0c4517196837bb9 100644 --- a/energy_selfconsumption/i18n/eu_ES.po +++ b/energy_selfconsumption/i18n/eu_ES.po @@ -6,8 +6,8 @@ msgid "" msgstr "" "Project-Id-Version: Odoo Server 16.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-02-13 10:05+0000\n" -"PO-Revision-Date: 2025-02-13 10:05+0000\n" +"POT-Creation-Date: 2025-03-03 07:48+0000\n" +"PO-Revision-Date: 2025-03-03 07:48+0000\n" "Last-Translator: \n" "Language-Team: \n" "MIME-Version: 1.0\n" @@ -18,21 +18,29 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/wizards/contract_generation_wizard.py:0 +#: code:addons/energy_selfconsumption/wizards/contract_generation_wizard.py:0 #, python-format msgid "" "\n" "CAU: {cau}\n" -"Total installed nominal power (kW): {power}\n" -"Partition coefficient: {coefficient}" +" Total installed nominal power (kW): {power}\n" +" Partition coefficient: {coefficient}\n" +" Daily nominal power acquired: {power} kWn * {coefficient} = {power_acquired} kWn/day\n" +" Days to be invoiced: {days_invoiced} days\n" +" Total amount invoiced: {days_invoiced} days * {power_acquired} kWn/day = {total_amount}\n" msgstr "" "\n" "CAU: {cau}\n" -"Instalatutako potentzia nominala guztira (kW): {power}\n" -"Zatiketa koefizientea: {coefficient}" +" Instalatutako potentzia nominala guztira (kW): {power}\n" +" Zatiketa koefizientea: {coefficient}\n" +" Eguneko potentzia nominala: {power} kWn * {coefficient} = {power_acquired} kWn/egun\n" +" Fakturatzeko egunak: {days_invoiced} egun\n" +" Fakturatzeko kopurua: {days_invoiced} egun * {power_acquired} kWn/egun = {total_amount}\n" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/wizards/invoicing_wizard.py:0 +#: code:addons/energy_selfconsumption/wizards/invoicing_wizard.py:0 #, python-format msgid "" "\n" @@ -44,6 +52,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/wizards/invoicing_wizard.py:0 +#: code:addons/energy_selfconsumption/wizards/invoicing_wizard.py:0 #, python-format msgid "" "\n" @@ -56,6 +65,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/wizards/invoicing_wizard.py:0 +#: code:addons/energy_selfconsumption/wizards/invoicing_wizard.py:0 #, python-format msgid "" "\n" @@ -70,6 +80,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/wizards/invoicing_wizard.py:0 +#: code:addons/energy_selfconsumption/wizards/invoicing_wizard.py:0 #, python-format msgid "" "\n" @@ -510,6 +521,8 @@ msgstr "" #. odoo-python #: code:addons/energy_selfconsumption/wizards/selfconsumption_import_wizard.py:0 #: code:addons/energy_selfconsumption/wizards/selfconsumption_import_wizard.py:0 +#: code:addons/energy_selfconsumption/wizards/selfconsumption_import_wizard.py:0 +#: code:addons/energy_selfconsumption/wizards/selfconsumption_import_wizard.py:0 #, python-format msgid "<li>Line {line}: {error}</li>\n" msgstr "<li>Lerroa {line}: {error}</li>\n" @@ -530,7 +543,7 @@ msgstr "" #: model_terms:ir.ui.view,arch_db:energy_selfconsumption.selfconsumption_invoice_template msgid "" "<span groups=\"account.group_show_line_subtotals_tax_excluded\">Amount</span>\n" -" <span groups=\"account.group_show_line_subtotals_tax_included\">Total Price</span>" +" <span groups=\"account.group_show_line_subtotals_tax_included\">Total Price</span>" msgstr "" "<span groups=\"account.group_show_line_subtotals_tax_excluded\">Zenbatekoa</span>\n" " <span groups=\"account.group_show_line_subtotals_tax_included\">Prezioa guztira</span>" @@ -550,16 +563,6 @@ msgstr "" msgid "<span> kWn/day</span>" msgstr "<span> kWn/egun</span>" -#. module: energy_selfconsumption -#: model_terms:ir.ui.view,arch_db:energy_selfconsumption.selfconsumption_invoice_template -msgid "<span>Description</span>" -msgstr "" - -#. module: energy_selfconsumption -#: model_terms:ir.ui.view,arch_db:energy_selfconsumption.selfconsumption_invoice_template -msgid "<span>Disc.%</span>" -msgstr "" - #. module: energy_selfconsumption #: model_terms:ir.ui.view,arch_db:energy_selfconsumption.selfconsumption_invoice_template msgid "<span>Import</span>" @@ -600,16 +603,6 @@ msgstr "<span>Fakturatutako zenbatekoa, guztira</span>" msgid "<span>Total installation generation</span>" msgstr "<span>Instalazioen sorrera osoa</span>" -#. module: energy_selfconsumption -#: model_terms:ir.ui.view,arch_db:energy_selfconsumption.selfconsumption_invoice_template -msgid "<span>Unit Price</span>" -msgstr "<span>Unitatearen Prezioa</span>" - -#. module: energy_selfconsumption -#: model_terms:ir.ui.view,arch_db:energy_selfconsumption.selfconsumption_invoice_template -msgid "<strong class=\"mr16\">Subtotal</strong>" -msgstr "<strong class=\"mr16\">Azpitotala</strong>" - #. module: energy_selfconsumption #: model_terms:ir.ui.view,arch_db:energy_selfconsumption.inscription_data_headline_message_closed msgid "<strong>Closed form</strong>" @@ -659,6 +652,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/models/selfconsumption.py:0 +#: code:addons/energy_selfconsumption/models/selfconsumption.py:0 #: model:ir.model.constraint,message:energy_selfconsumption.constraint_energy_selfconsumption_selfconsumption_unique_code #, python-format msgid "A project with this CAU already exists." @@ -667,6 +661,7 @@ msgstr "Dagoeneko badago CAU honekin proiektu bat." #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/models/supply_point.py:0 +#: code:addons/energy_selfconsumption/models/supply_point.py:0 #: model:ir.model.constraint,message:energy_selfconsumption.constraint_energy_selfconsumption_supply_point_unique_code_company_id #, python-format msgid "A supply point with this code already exists." @@ -705,6 +700,7 @@ msgstr "Kontu zenbakia" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/wizards/define_invoicing_mode_wizard.py:0 +#: code:addons/energy_selfconsumption/wizards/define_invoicing_mode_wizard.py:0 #, python-format msgid "Accounting Journal not found." msgstr "Kontabilitate aldizkaria ez da aurkitu." @@ -732,8 +728,10 @@ msgstr "Aktibatu formularioa" #: code:addons/energy_selfconsumption/models/inscription.py:0 #: code:addons/energy_selfconsumption/models/selfconsumption.py:0 #: code:addons/energy_selfconsumption/wizards/change_state_inscription_wizard.py:0 +#: code:addons/energy_selfconsumption/wizards/change_distribution_table_import_wizard.py:0 #: model:ir.model.fields,field_description:energy_selfconsumption.field_energy_selfconsumption_distribution_table__active #: model:ir.model.fields,field_description:energy_selfconsumption.field_energy_selfconsumption_selfconsumption__active +#: model:ir.model.fields.selection,name:energy_selfconsumption.selection__change_distribution_table_import_line_wizard__state__active #: model:ir.model.fields.selection,name:energy_selfconsumption.selection__energy_selfconsumption_change_state_inscription_lines_wizard__state__active #: model:ir.model.fields.selection,name:energy_selfconsumption.selection__energy_selfconsumption_distribution_table__state__active #: model:ir.model.fields.selection,name:energy_selfconsumption.selection__energy_selfconsumption_inscription_selfconsumption__state__active @@ -782,6 +780,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 +#: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 #, python-format msgid "Address" msgstr "Helbidea" @@ -823,6 +822,7 @@ msgstr "Urteko elektrizitatearen erabilera" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 +#: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 #, python-format msgid "Annual electricity use?" msgstr "Urteko elektrizitatearen erabilera?" @@ -830,6 +830,7 @@ msgstr "Urteko elektrizitatearen erabilera?" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 +#: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 #, python-format msgid "Are you in a vulnerable situation?" msgstr "Egoera zaurgarrian al zaude?" @@ -847,6 +848,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/wizards/clean_supply_point_assignation_wizard.py:0 +#: code:addons/energy_selfconsumption/wizards/clean_supply_point_assignation_wizard.py:0 #, python-format msgid "Are you sure you want to delete all assigned distribution points?" msgstr "Ziur esleitutako banaketa puntu guztiak ezabatu nahi dituzula?" @@ -891,6 +893,7 @@ msgstr "Fakturazio epea" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 +#: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 #, python-format msgid "Birthdate" msgstr "Jaioteguna" @@ -903,6 +906,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 +#: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 #, python-format msgid "CIF/NIF" msgstr "IFK/IFZ" @@ -921,6 +925,7 @@ msgstr "Koefizientea (α)" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/wizards/invoicing_wizard.py:0 +#: code:addons/energy_selfconsumption/wizards/invoicing_wizard.py:0 #, python-format msgid "CSV file could not be loaded" msgstr "Ezin izan da CSV fitxategia kargatu" @@ -928,6 +933,7 @@ msgstr "Ezin izan da CSV fitxategia kargatu" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 +#: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 #: model:ir.model.fields,field_description:energy_selfconsumption.field_energy_selfconsumption_inscription_selfconsumption__code #: model:ir.model.fields,field_description:energy_selfconsumption.field_energy_selfconsumption_supply_point__code #: model:ir.model.fields,field_description:energy_selfconsumption.field_energy_selfconsumption_supply_point_assignation__code @@ -940,6 +946,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 +#: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 #, python-format msgid "" "CUPS is the Unified Code of the Point of Supply. You can find it on " @@ -951,6 +958,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/wizards/define_invoicing_mode_wizard.py:0 +#: code:addons/energy_selfconsumption/wizards/define_invoicing_mode_wizard.py:0 #, python-format msgid "" "CUPS: {code}\n" @@ -970,12 +978,14 @@ msgstr "Katastroaren erreferentzia" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 +#: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 #, python-format msgid "Cadastral reference of the property" msgstr "Erreferentzia katastrala del inmueble" #. module: energy_selfconsumption #: model_terms:ir.ui.view,arch_db:energy_selfconsumption.contract_generation_wizard_form_view +#: model_terms:ir.ui.view,arch_db:energy_selfconsumption.view_change_distribution_table_import_wizard_form #: model_terms:ir.ui.view,arch_db:energy_selfconsumption.view_clean_supply_point_assignation_wizard msgid "Cancel" msgstr "Indargabetu" @@ -984,12 +994,27 @@ msgstr "Indargabetu" #. odoo-python #: code:addons/energy_selfconsumption/models/inscription.py:0 #: code:addons/energy_selfconsumption/wizards/change_state_inscription_wizard.py:0 +#: code:addons/energy_selfconsumption/wizards/change_distribution_table_import_wizard.py:0 +#: model:ir.model.fields.selection,name:energy_selfconsumption.selection__change_distribution_table_import_line_wizard__state__change +#: model:ir.model.fields.selection,name:energy_selfconsumption.selection__change_distribution_table_import_wizard__state__change #: model:ir.model.fields.selection,name:energy_selfconsumption.selection__energy_selfconsumption_change_state_inscription_lines_wizard__state__change #: model:ir.model.fields.selection,name:energy_selfconsumption.selection__energy_selfconsumption_inscription_selfconsumption__state__change #, python-format msgid "Change" msgstr "Aldatu" +#. module: energy_selfconsumption +#: model:ir.actions.act_window,name:energy_selfconsumption.action_change_distribution_table_import_wizard +msgid "Change distribution table" +msgstr "Aldatu banaketa-taula" + +#. module: energy_selfconsumption +#: model:ir.model.fields,field_description:energy_selfconsumption.field_change_distribution_table_import_wizard__change_distribution_table_import_line_wizard_ids +#: model:ir.model.fields,field_description:energy_selfconsumption.field_change_distribution_table_import_wizard__change_distribution_table_import_line_wizard_news_ids +#: model:ir.model.fields,field_description:energy_selfconsumption.field_change_distribution_table_import_wizard__change_distribution_table_import_line_wizard_views_ids +msgid "Change distribution table import line wizard" +msgstr "Aldatu banaketa-taula lerroak" + #. module: energy_selfconsumption #: model:ir.actions.act_window,name:energy_selfconsumption.change_state_inscription_wizard_action #: model:ir.actions.server,name:energy_selfconsumption.inscription_to_change_state_action @@ -1003,12 +1028,31 @@ msgid "Change state inscription lines wizards" msgstr "Aldatu inscriptzioaren egoera lerroak" #. module: energy_selfconsumption +#: model:ir.model.fields,field_description:energy_selfconsumption.field_change_distribution_table_import_line_wizard__change_distribution_table_import_wizard_id #: model:ir.model.fields,field_description:energy_selfconsumption.field_energy_selfconsumption_change_state_inscription_lines_wizard__change_state_inscription_wizard_id msgid "Change state inscription wizard" msgstr "Aldatu inscriptzioaren egoera lerroak" #. module: energy_selfconsumption #. odoo-python +#: code:addons/energy_selfconsumption/wizards/change_distribution_table_import_wizard.py:0 +#: model:ir.model,name:energy_selfconsumption.model_change_distribution_table_import_line_wizard +#, python-format +msgid "Change_distribution_table_import_line_wizard" +msgstr "Aldatu banaketa-taula lerroak" + +#. module: energy_selfconsumption +#. odoo-python +#: code:addons/energy_selfconsumption/wizards/change_distribution_table_import_wizard.py:0 +#: model:ir.model,name:energy_selfconsumption.model_change_distribution_table_import_wizard +#: model_terms:ir.ui.view,arch_db:energy_selfconsumption.view_change_distribution_table_import_wizard_form +#, python-format +msgid "Change_distribution_table_import_wizard" +msgstr "Aldatu banaketa-taula" + +#. module: energy_selfconsumption +#. odoo-python +#: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 #: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 #: model:ir.model.fields,field_description:energy_selfconsumption.field_energy_selfconsumption_selfconsumption__city #: model:ir.model.fields,field_description:energy_selfconsumption.field_energy_selfconsumption_supply_point__city @@ -1032,6 +1076,7 @@ msgstr "Garbitu hornidura-puntua esleitzeko morroia" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/models/distribution_table.py:0 +#: code:addons/energy_selfconsumption/models/distribution_table.py:0 #: model:ir.actions.server,name:energy_selfconsumption.manager_clean_supply_point_assignation_action #, python-format msgid "Clean supply point assignation" @@ -1057,6 +1102,7 @@ msgstr "Koefizientea Baliozkoa da" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/models/supply_point_assignation.py:0 +#: code:addons/energy_selfconsumption/models/supply_point_assignation.py:0 #, python-format msgid "Coefficient can't be negative." msgstr "Koefizientea ezin da negatiboa izan." @@ -1064,6 +1110,7 @@ msgstr "Koefizientea ezin da negatiboa izan." #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/models/distribution_table.py:0 +#: code:addons/energy_selfconsumption/models/distribution_table.py:0 #, python-format msgid "Coefficient distribution must sum to 1." msgstr "Koefizienteen banaketa 1 izan behar da." @@ -1080,6 +1127,7 @@ msgstr "Enpresa" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 +#: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 #, python-format msgid "Company Name" msgstr "Enpresaren izena" @@ -1159,6 +1207,7 @@ msgstr "Berretsi" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 +#: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 #, python-format msgid "Confirm E-mail" msgstr "Berretsi posta elektronikoa" @@ -1184,6 +1233,7 @@ msgstr "Kontratu" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/wizards/contract_generation_wizard.py:0 +#: code:addons/energy_selfconsumption/wizards/contract_generation_wizard.py:0 #, python-format msgid "Contract - %s - %s" msgstr "Kontratua - %s - %s" @@ -1251,6 +1301,8 @@ msgid "Create participant table" msgstr "Sortu parte-hartzaileen taula" #. module: energy_selfconsumption +#: model:ir.model.fields,field_description:energy_selfconsumption.field_change_distribution_table_import_line_wizard__create_uid +#: model:ir.model.fields,field_description:energy_selfconsumption.field_change_distribution_table_import_wizard__create_uid #: model:ir.model.fields,field_description:energy_selfconsumption.field_clean_supply_point_assignation_wizard__create_uid #: model:ir.model.fields,field_description:energy_selfconsumption.field_energy_selfconsumption_change_state_inscription_lines_wizard__create_uid #: model:ir.model.fields,field_description:energy_selfconsumption.field_energy_selfconsumption_change_state_inscription_wizard__create_uid @@ -1271,6 +1323,8 @@ msgid "Created by" msgstr "Sortua" #. module: energy_selfconsumption +#: model:ir.model.fields,field_description:energy_selfconsumption.field_change_distribution_table_import_line_wizard__create_date +#: model:ir.model.fields,field_description:energy_selfconsumption.field_change_distribution_table_import_wizard__create_date #: model:ir.model.fields,field_description:energy_selfconsumption.field_clean_supply_point_assignation_wizard__create_date #: model:ir.model.fields,field_description:energy_selfconsumption.field_energy_selfconsumption_change_state_inscription_lines_wizard__create_date #: model:ir.model.fields,field_description:energy_selfconsumption.field_energy_selfconsumption_change_state_inscription_wizard__create_date @@ -1357,6 +1411,7 @@ msgstr "Fakturatutako egunak" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/models/selfconsumption.py:0 +#: code:addons/energy_selfconsumption/models/selfconsumption.py:0 #: model_terms:ir.ui.view,arch_db:energy_selfconsumption.selfconsumption_form_view #, python-format msgid "Define Invoicing Mode" @@ -1380,6 +1435,14 @@ msgstr "" " konpentsazio-mekanismoa hurrengo fakturazio-aldian hau jasotzen denetik\n" " akordioa." +#. module: energy_selfconsumption +#. odoo-python +#: code:addons/energy_selfconsumption/wizards/change_distribution_table_import_wizard.py:0 +#: model:ir.model.fields.selection,name:energy_selfconsumption.selection__change_distribution_table_import_wizard__state__delete +#, python-format +msgid "Delete" +msgstr "Ezabatu" + #. module: energy_selfconsumption #: model:ir.model.fields,help:energy_selfconsumption.field_energy_selfconsumption_distribution_table__hourly_coefficients_imported_delimiter #: model:ir.model.fields,help:energy_selfconsumption.field_energy_selfconsumption_distribution_table_import_wizard__delimiter @@ -1399,6 +1462,8 @@ msgid "Description form" msgstr "Deskribapen formularioa" #. module: energy_selfconsumption +#: model:ir.model.fields,field_description:energy_selfconsumption.field_change_distribution_table_import_line_wizard__display_name +#: model:ir.model.fields,field_description:energy_selfconsumption.field_change_distribution_table_import_wizard__display_name #: model:ir.model.fields,field_description:energy_selfconsumption.field_clean_supply_point_assignation_wizard__display_name #: model:ir.model.fields,field_description:energy_selfconsumption.field_energy_selfconsumption_change_state_inscription_lines_wizard__display_name #: model:ir.model.fields,field_description:energy_selfconsumption.field_energy_selfconsumption_change_state_inscription_wizard__display_name @@ -1471,6 +1536,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 +#: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 #, python-format msgid "Do you currently have self-consumption?" msgstr "Gaur egun autokontsumoa al duzu?" @@ -1478,6 +1544,7 @@ msgstr "Gaur egun autokontsumoa al duzu?" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/wizards/selfconsumption_import_wizard.py:0 +#: code:addons/energy_selfconsumption/wizards/selfconsumption_import_wizard.py:0 #, python-format msgid "Dont exit participation for this project." msgstr "Ez utzi proiektu honetan parte hartzea." @@ -1511,6 +1578,7 @@ msgstr "Deskargatu Autokontsumo Kudeatzailearen Baimena" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/models/distribution_table.py:0 +#: code:addons/energy_selfconsumption/models/distribution_table.py:0 #: model:ir.model.fields.selection,name:energy_selfconsumption.selection__energy_selfconsumption_distribution_table__state__draft #, python-format msgid "Draft" @@ -1519,6 +1587,7 @@ msgstr "Zirriborroa" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 +#: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 #, python-format msgid "E-mail" msgstr "Posta elektronikoa" @@ -1637,6 +1706,7 @@ msgstr "Amaiera" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/models/selfconsumption.py:0 +#: code:addons/energy_selfconsumption/models/selfconsumption.py:0 #: model:ir.model.fields.selection,name:energy_selfconsumption.selection__energy_selfconsumption_define_invoicing_mode_wizard__invoicing_mode__energy_delivered #: model:ir.model.fields.selection,name:energy_selfconsumption.selection__energy_selfconsumption_invoicing_wizard__invoicing_mode__energy_delivered #: model:ir.model.fields.selection,name:energy_selfconsumption.selection__energy_selfconsumption_selfconsumption__invoicing_mode__energy_delivered @@ -1647,6 +1717,7 @@ msgstr "Energia entregatu" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/models/selfconsumption.py:0 +#: code:addons/energy_selfconsumption/models/selfconsumption.py:0 #: model:ir.model.fields.selection,name:energy_selfconsumption.selection__energy_selfconsumption_define_invoicing_mode_wizard__invoicing_mode__energy_custom #: model:ir.model.fields.selection,name:energy_selfconsumption.selection__energy_selfconsumption_invoicing_wizard__invoicing_mode__energy_custom #: model:ir.model.fields.selection,name:energy_selfconsumption.selection__energy_selfconsumption_selfconsumption__invoicing_mode__energy_custom @@ -1657,6 +1728,7 @@ msgstr "Energia entregatu pertsonalizatua" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/wizards/invoicing_wizard.py:0 +#: code:addons/energy_selfconsumption/wizards/invoicing_wizard.py:0 #, python-format msgid "Energy Delivered Custom: {energy_delivered} kWh" msgstr "Energia entregatu pertsonalizatua: {energy_delivered} kWh" @@ -1674,6 +1746,7 @@ msgstr "Energia Entregatu Formula Aldakorra" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/wizards/invoicing_wizard.py:0 +#: code:addons/energy_selfconsumption/wizards/invoicing_wizard.py:0 #, python-format msgid "Energy Delivered: {energy_delivered} kWh" msgstr "Energia Entregatu: {energy_delivered} kWh" @@ -1687,6 +1760,7 @@ msgstr "Energia Proiektua" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 +#: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 #, python-format msgid "Energy Project Name" msgstr "Energia Proiektuaren izena" @@ -1719,6 +1793,7 @@ msgstr "Partekatutako autokontsumo proiektuan izena ematea" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 +#: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 #, python-format msgid "Error format date." msgstr "Errorearen formatuaren data." @@ -1726,8 +1801,11 @@ msgstr "Errorearen formatuaren data." #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/models/selfconsumption.py:0 +#: code:addons/energy_selfconsumption/models/selfconsumption.py:0 +#: code:addons/energy_selfconsumption/wizards/distribution_table_import_wizard.py:0 #: code:addons/energy_selfconsumption/wizards/distribution_table_import_wizard.py:0 #: code:addons/energy_selfconsumption/wizards/selfconsumption_import_wizard.py:0 +#: code:addons/energy_selfconsumption/wizards/selfconsumption_import_wizard.py:0 #, python-format msgid "Error parsing the file" msgstr "Errore bat gertatu da fitxategia analizatzean" @@ -1735,6 +1813,7 @@ msgstr "Errore bat gertatu da fitxategia analizatzean" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/models/selfconsumption.py:0 +#: code:addons/energy_selfconsumption/models/selfconsumption.py:0 #, python-format msgid "Error reading file" msgstr "" @@ -1779,6 +1858,7 @@ msgstr "Data:" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 +#: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 #, python-format msgid "Female" msgstr "Emakumezkoa" @@ -1834,6 +1914,8 @@ msgstr "Izena" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/models/distribution_table.py:0 +#: code:addons/energy_selfconsumption/models/distribution_table.py:0 +#: code:addons/energy_selfconsumption/wizards/create_distribution_table_wizard.py:0 #: code:addons/energy_selfconsumption/wizards/create_distribution_table_wizard.py:0 #: model:ir.model.fields.selection,name:energy_selfconsumption.selection__energy_selfconsumption_create_distribution_table_wizard__type__fixed #: model:ir.model.fields.selection,name:energy_selfconsumption.selection__energy_selfconsumption_distribution_table__type__fixed @@ -1865,6 +1947,7 @@ msgstr "Letra-tipo ikaragarria ikonoa adibidez. fa-tasks" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/models/supply_point.py:0 +#: code:addons/energy_selfconsumption/models/supply_point.py:0 #, python-format msgid "" "For the 2.0TD rate, the maximum contracted power must be between 0 and 15 " @@ -1876,6 +1959,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/models/supply_point.py:0 +#: code:addons/energy_selfconsumption/models/supply_point.py:0 #, python-format msgid "" "For the 3.0TD rate, the maximum contracted power must be greater than 15 kW." @@ -1886,6 +1970,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 +#: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 #, python-format msgid "Gender" msgstr "Generoa" @@ -1898,6 +1983,7 @@ msgstr "Sortu" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/models/selfconsumption.py:0 +#: code:addons/energy_selfconsumption/models/selfconsumption.py:0 #, python-format msgid "Generate Contracts" msgstr "Kontratuak Sortu" @@ -1939,6 +2025,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 +#: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 #, python-format msgid "" "Have to accept and authorize being able to issue payments to this bank " @@ -1952,6 +2039,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 +#: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 #, python-format msgid "Have to accept politic privacy." msgstr "Pribatutasun politikoa onartu behar." @@ -1959,6 +2047,7 @@ msgstr "Pribatutasun politikoa onartu behar." #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 +#: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 #: model:ir.model.fields,field_description:energy_selfconsumption.field_energy_selfconsumption_selfconsumption__conf_header_description #, python-format msgid "Header description on website form" @@ -1967,6 +2056,7 @@ msgstr "Goiburuaren deskribapena webguneko formularioan" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 +#: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 #, python-format msgid "" "How much power of the collective PV installation you would like to purchase." @@ -1975,6 +2065,7 @@ msgstr "Erosi nahi duzun FV instalazio kolektiboaren zenbat potentzia." #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 +#: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 #: model:ir.model.fields,field_description:energy_selfconsumption.field_energy_selfconsumption_inscription_selfconsumption__accept #, python-format msgid "" @@ -1989,6 +2080,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 +#: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 #, python-format msgid "I accept privacy policy" msgstr "Pribatutasun politika onartzen dut" @@ -1996,6 +2088,7 @@ msgstr "Pribatutasun politika onartzen dut" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 +#: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 #, python-format msgid "I prefer to not share it" msgstr "Nahiago dut ez partekatzea" @@ -2003,11 +2096,14 @@ msgstr "Nahiago dut ez partekatzea" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 +#: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 #, python-format msgid "IBAN" msgstr "" #. module: energy_selfconsumption +#: model:ir.model.fields,field_description:energy_selfconsumption.field_change_distribution_table_import_line_wizard__id +#: model:ir.model.fields,field_description:energy_selfconsumption.field_change_distribution_table_import_wizard__id #: model:ir.model.fields,field_description:energy_selfconsumption.field_clean_supply_point_assignation_wizard__id #: model:ir.model.fields,field_description:energy_selfconsumption.field_energy_selfconsumption_change_state_inscription_lines_wizard__id #: model:ir.model.fields,field_description:energy_selfconsumption.field_energy_selfconsumption_change_state_inscription_wizard__id @@ -2064,6 +2160,7 @@ msgstr "Inportatu" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/models/distribution_table.py:0 +#: code:addons/energy_selfconsumption/models/distribution_table.py:0 #: model:ir.actions.act_window,name:energy_selfconsumption.distribution_table_import_wizard_action #, python-format msgid "Import Distribution Table" @@ -2072,6 +2169,7 @@ msgstr "Inportazioen Banaketa Taula" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/wizards/selfconsumption_import_wizard.py:0 +#: code:addons/energy_selfconsumption/wizards/selfconsumption_import_wizard.py:0 #, python-format msgid "Import Errors" msgstr "Inportatu erroreak" @@ -2087,6 +2185,7 @@ msgstr "Inportatu fitxategia (*.csv)" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/models/selfconsumption.py:0 +#: code:addons/energy_selfconsumption/models/selfconsumption.py:0 #, python-format msgid "Import Inscriptions and Supply Points" msgstr "Inportatu inskripzioak eta hornidura puntuak" @@ -2099,6 +2198,7 @@ msgstr "Inportatu datuak" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/wizards/selfconsumption_import_wizard.py:0 +#: code:addons/energy_selfconsumption/wizards/selfconsumption_import_wizard.py:0 #, python-format msgid "Import errors found: <ul>{list}</ul>" msgstr "Inportazio-erroreak aurkitu dira: <ul>{list}</ul>" @@ -2116,6 +2216,7 @@ msgstr "Inportatu taula" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/models/distribution_table.py:0 +#: code:addons/energy_selfconsumption/models/distribution_table.py:0 #: model:ir.model.fields.selection,name:energy_selfconsumption.selection__energy_selfconsumption_distribution_table__state__process #, python-format msgid "In process" @@ -2134,6 +2235,8 @@ msgstr "" #: code:addons/energy_selfconsumption/models/inscription.py:0 #: code:addons/energy_selfconsumption/models/selfconsumption.py:0 #: code:addons/energy_selfconsumption/wizards/change_state_inscription_wizard.py:0 +#: code:addons/energy_selfconsumption/wizards/change_distribution_table_import_wizard.py:0 +#: model:ir.model.fields.selection,name:energy_selfconsumption.selection__change_distribution_table_import_line_wizard__state__inactive #: model:ir.model.fields.selection,name:energy_selfconsumption.selection__energy_selfconsumption_change_state_inscription_lines_wizard__state__inactive #: model:ir.model.fields.selection,name:energy_selfconsumption.selection__energy_selfconsumption_inscription_selfconsumption__state__inactive #: model:ir.model.fields.selection,name:energy_selfconsumption.selection__energy_selfconsumption_selfconsumption__conf_state__inactive @@ -2144,6 +2247,7 @@ msgstr "Inaktibo" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 +#: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 #, python-format msgid "" "Information necessary for the formalization of the distribution " @@ -2153,6 +2257,7 @@ msgstr "" "helbidean aurkituko duzu" #. module: energy_selfconsumption +#: model:ir.model.fields,field_description:energy_selfconsumption.field_change_distribution_table_import_line_wizard__inscription_id #: model:ir.model.fields,field_description:energy_selfconsumption.field_energy_selfconsumption_change_state_inscription_lines_wizard__inscription_id #: model:ir.model.fields,field_description:energy_selfconsumption.field_energy_selfconsumption_inscription_selfconsumption__inscription_id #: model:ir.model.fields,field_description:energy_selfconsumption.field_energy_selfconsumption_selfconsumption__inscription_ids @@ -2193,6 +2298,7 @@ msgstr "instalazioa:" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/models/selfconsumption.py:0 +#: code:addons/energy_selfconsumption/models/selfconsumption.py:0 #, python-format msgid "Invalid CAU: Last 3 digits are not numbers" msgstr "CAU baliogabea: azken 3 zifrak ez dira zenbakiak" @@ -2201,6 +2307,8 @@ msgstr "CAU baliogabea: azken 3 zifrak ez dira zenbakiak" #. odoo-python #: code:addons/energy_selfconsumption/models/selfconsumption.py:0 #: code:addons/energy_selfconsumption/models/selfconsumption.py:0 +#: code:addons/energy_selfconsumption/models/selfconsumption.py:0 +#: code:addons/energy_selfconsumption/models/selfconsumption.py:0 #, python-format msgid "Invalid CAU: The CUPS does not start with 'ES'." msgstr "CAU baliogabea: CUPS ez da 'ES'-rekin hasten." @@ -2209,6 +2317,8 @@ msgstr "CAU baliogabea: CUPS ez da 'ES'-rekin hasten." #. odoo-python #: code:addons/energy_selfconsumption/models/selfconsumption.py:0 #: code:addons/energy_selfconsumption/models/selfconsumption.py:0 +#: code:addons/energy_selfconsumption/models/selfconsumption.py:0 +#: code:addons/energy_selfconsumption/models/selfconsumption.py:0 #, python-format msgid "Invalid CAU: The CUPS has an incorrect format." msgstr "CAU baliogabea: CUPSak formatu okerra du." @@ -2216,6 +2326,7 @@ msgstr "CAU baliogabea: CUPSak formatu okerra du." #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/models/selfconsumption.py:0 +#: code:addons/energy_selfconsumption/models/selfconsumption.py:0 #, python-format msgid "Invalid CAU: The character after CUPS is not A" msgstr "CAU baliogabea: CUPS ondorengo karakterea ez da A" @@ -2224,6 +2335,8 @@ msgstr "CAU baliogabea: CUPS ondorengo karakterea ez da A" #. odoo-python #: code:addons/energy_selfconsumption/models/selfconsumption.py:0 #: code:addons/energy_selfconsumption/models/selfconsumption.py:0 +#: code:addons/energy_selfconsumption/models/selfconsumption.py:0 +#: code:addons/energy_selfconsumption/models/selfconsumption.py:0 #, python-format msgid "Invalid CAU: The checksum of the CUPS is incorrect." msgstr "CAU baliogabea: CUPSen kontrol batura okerra da." @@ -2232,6 +2345,8 @@ msgstr "CAU baliogabea: CUPSen kontrol batura okerra da." #. odoo-python #: code:addons/energy_selfconsumption/models/selfconsumption.py:0 #: code:addons/energy_selfconsumption/models/selfconsumption.py:0 +#: code:addons/energy_selfconsumption/models/selfconsumption.py:0 +#: code:addons/energy_selfconsumption/models/selfconsumption.py:0 #, python-format msgid "" "Invalid CAU: The first characters related to CUPS are incorrect. The length " @@ -2243,6 +2358,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/models/selfconsumption.py:0 +#: code:addons/energy_selfconsumption/models/selfconsumption.py:0 #, python-format msgid "Invalid CAU: The length is not correct" msgstr "CAU baliogabea: luzera ez da zuzena" @@ -2250,6 +2366,7 @@ msgstr "CAU baliogabea: luzera ez da zuzena" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/models/selfconsumption.py:0 +#: code:addons/energy_selfconsumption/models/selfconsumption.py:0 #, python-format msgid "Invalid CIL: Last 3 digits are not numbers" msgstr "CIL baliogabea: azken 3 zifrak ez dira zenbakiak" @@ -2258,6 +2375,8 @@ msgstr "CIL baliogabea: azken 3 zifrak ez dira zenbakiak" #. odoo-python #: code:addons/energy_selfconsumption/models/selfconsumption.py:0 #: code:addons/energy_selfconsumption/models/selfconsumption.py:0 +#: code:addons/energy_selfconsumption/models/selfconsumption.py:0 +#: code:addons/energy_selfconsumption/models/selfconsumption.py:0 #, python-format msgid "Invalid CIL: The CUPS does not start with 'ES'." msgstr "CIL baliogabea: CUPS ez da 'ES'-rekin hasten." @@ -2266,6 +2385,8 @@ msgstr "CIL baliogabea: CUPS ez da 'ES'-rekin hasten." #. odoo-python #: code:addons/energy_selfconsumption/models/selfconsumption.py:0 #: code:addons/energy_selfconsumption/models/selfconsumption.py:0 +#: code:addons/energy_selfconsumption/models/selfconsumption.py:0 +#: code:addons/energy_selfconsumption/models/selfconsumption.py:0 #, python-format msgid "Invalid CIL: The CUPS has an incorrect format." msgstr "CIL baliogabea: CUPSak formatu okerra du." @@ -2274,6 +2395,8 @@ msgstr "CIL baliogabea: CUPSak formatu okerra du." #. odoo-python #: code:addons/energy_selfconsumption/models/selfconsumption.py:0 #: code:addons/energy_selfconsumption/models/selfconsumption.py:0 +#: code:addons/energy_selfconsumption/models/selfconsumption.py:0 +#: code:addons/energy_selfconsumption/models/selfconsumption.py:0 #, python-format msgid "Invalid CIL: The checksum of the CUPS is incorrect." msgstr "CIL baliogabea: CUPS-en kontrol batura okerra da." @@ -2282,6 +2405,8 @@ msgstr "CIL baliogabea: CUPS-en kontrol batura okerra da." #. odoo-python #: code:addons/energy_selfconsumption/models/selfconsumption.py:0 #: code:addons/energy_selfconsumption/models/selfconsumption.py:0 +#: code:addons/energy_selfconsumption/models/selfconsumption.py:0 +#: code:addons/energy_selfconsumption/models/selfconsumption.py:0 #, python-format msgid "" "Invalid CIL: The first characters related to CUPS are incorrect. The length " @@ -2293,6 +2418,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/models/selfconsumption.py:0 +#: code:addons/energy_selfconsumption/models/selfconsumption.py:0 #, python-format msgid "Invalid CIL: The length is not correct" msgstr "CIL baliogabea: luzera ez da zuzena" @@ -2300,6 +2426,7 @@ msgstr "CIL baliogabea: luzera ez da zuzena" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/models/supply_point.py:0 +#: code:addons/energy_selfconsumption/models/supply_point.py:0 #, python-format msgid "Invalid CUPS: The checksum is incorrect." msgstr "CUPS baliogabea: kontrol-bagaketa okerra da." @@ -2307,6 +2434,7 @@ msgstr "CUPS baliogabea: kontrol-bagaketa okerra da." #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/models/supply_point.py:0 +#: code:addons/energy_selfconsumption/models/supply_point.py:0 #, python-format msgid "Invalid CUPS: The length is incorrect." msgstr "CUPS baliogabea: luzera okerra da." @@ -2314,6 +2442,7 @@ msgstr "CUPS baliogabea: luzera okerra da." #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/models/supply_point.py:0 +#: code:addons/energy_selfconsumption/models/supply_point.py:0 #, python-format msgid "Invalid CUPS: does not start with 'ES'." msgstr "CUPS baliogabea: ez da 'ES'-rekin hasten." @@ -2321,6 +2450,7 @@ msgstr "CUPS baliogabea: ez da 'ES'-rekin hasten." #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/models/supply_point.py:0 +#: code:addons/energy_selfconsumption/models/supply_point.py:0 #, python-format msgid "Invalid CUPS: has an incorrect format." msgstr "CUPS baliogabea: formatu okerra du." @@ -2328,6 +2458,8 @@ msgstr "CUPS baliogabea: formatu okerra du." #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/models/selfconsumption.py:0 +#: code:addons/energy_selfconsumption/models/selfconsumption.py:0 +#: code:addons/energy_selfconsumption/models/supply_point.py:0 #: code:addons/energy_selfconsumption/models/supply_point.py:0 #, python-format msgid "Invalid Cadastral Reference: {error}" @@ -2336,6 +2468,7 @@ msgstr "Katastro-erreferentzia baliogabea: {error}" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/models/create_inscription.py:0 +#: code:addons/energy_selfconsumption/models/create_inscription.py:0 #, python-format msgid "Invalid IBAN: {error}" msgstr "IBAN baliogabea: {error}" @@ -2343,6 +2476,7 @@ msgstr "IBAN baliogabea: {error}" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/models/supply_point.py:0 +#: code:addons/energy_selfconsumption/models/supply_point.py:0 #, python-format msgid "Invalid VAT: {error}" msgstr "IFK/IFZ baliogabea: {error}" @@ -2385,6 +2519,7 @@ msgstr "Jarraitzailea da" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 +#: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 #, python-format msgid "Is the owner the same partner?" msgstr "Jabea bikotekide bera al da?" @@ -2402,6 +2537,7 @@ msgstr "Aldizkariaren elementua" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 +#: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 #, python-format msgid "Lang" msgstr "Idioma" @@ -2409,6 +2545,7 @@ msgstr "Idioma" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 +#: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 #, python-format msgid "Language not found." msgstr "Hizkuntza ez da aurkitu." @@ -2419,6 +2556,8 @@ msgid "Last Date Invoiced" msgstr "Azken data fakturatua" #. module: energy_selfconsumption +#: model:ir.model.fields,field_description:energy_selfconsumption.field_change_distribution_table_import_line_wizard____last_update +#: model:ir.model.fields,field_description:energy_selfconsumption.field_change_distribution_table_import_wizard____last_update #: model:ir.model.fields,field_description:energy_selfconsumption.field_clean_supply_point_assignation_wizard____last_update #: model:ir.model.fields,field_description:energy_selfconsumption.field_energy_selfconsumption_change_state_inscription_lines_wizard____last_update #: model:ir.model.fields,field_description:energy_selfconsumption.field_energy_selfconsumption_change_state_inscription_wizard____last_update @@ -2449,6 +2588,8 @@ msgid "Last Period Start" msgstr "Azken aldia hasiera" #. module: energy_selfconsumption +#: model:ir.model.fields,field_description:energy_selfconsumption.field_change_distribution_table_import_line_wizard__write_uid +#: model:ir.model.fields,field_description:energy_selfconsumption.field_change_distribution_table_import_wizard__write_uid #: model:ir.model.fields,field_description:energy_selfconsumption.field_clean_supply_point_assignation_wizard__write_uid #: model:ir.model.fields,field_description:energy_selfconsumption.field_energy_selfconsumption_change_state_inscription_lines_wizard__write_uid #: model:ir.model.fields,field_description:energy_selfconsumption.field_energy_selfconsumption_change_state_inscription_wizard__write_uid @@ -2469,6 +2610,8 @@ msgid "Last Updated by" msgstr "Azken eguneratua" #. module: energy_selfconsumption +#: model:ir.model.fields,field_description:energy_selfconsumption.field_change_distribution_table_import_line_wizard__write_date +#: model:ir.model.fields,field_description:energy_selfconsumption.field_change_distribution_table_import_wizard__write_date #: model:ir.model.fields,field_description:energy_selfconsumption.field_clean_supply_point_assignation_wizard__write_date #: model:ir.model.fields,field_description:energy_selfconsumption.field_energy_selfconsumption_change_state_inscription_lines_wizard__write_date #: model:ir.model.fields,field_description:energy_selfconsumption.field_energy_selfconsumption_change_state_inscription_wizard__write_date @@ -2496,6 +2639,7 @@ msgstr "Abizena" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 +#: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 #, python-format msgid "Lastname" msgstr "Abizena" @@ -2512,6 +2656,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/wizards/create_distribution_table_wizard.py:0 +#: code:addons/energy_selfconsumption/wizards/create_distribution_table_wizard.py:0 #: model:ir.model.fields.selection,name:energy_selfconsumption.selection__energy_selfconsumption_create_distribution_table_wizard__type_distribute_excess__linear #, python-format msgid "Linear" @@ -2565,6 +2710,7 @@ msgstr "Linea nagusia" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 +#: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 #, python-format msgid "Male" msgstr "Gizonezkoa" @@ -2582,6 +2728,7 @@ msgstr "Mandatua iragazita" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/wizards/contract_generation_wizard.py:0 +#: code:addons/energy_selfconsumption/wizards/contract_generation_wizard.py:0 #, python-format msgid "Mandate not found for {partner}" msgstr "Ez da aurkitu komandoa {partner}rentzat" @@ -2594,6 +2741,7 @@ msgstr "Gehienezko potentzia banatua" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 +#: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 #: model:ir.model.fields,field_description:energy_selfconsumption.field_energy_selfconsumption_supply_point__contracted_power #, python-format msgid "Maximum contracted power" @@ -2637,6 +2785,7 @@ msgstr "Modalitatea" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/models/selfconsumption.py:0 +#: code:addons/energy_selfconsumption/models/selfconsumption.py:0 #, python-format msgid "Must have a valid Distribution Table." msgstr "Baliozko Banaketa Taula izan behar du." @@ -2662,6 +2811,7 @@ msgstr "IZENA ETA ABIZENAK (hornitzailearen titularra)" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 +#: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 #: model:ir.model.fields,field_description:energy_selfconsumption.field_contract_contract__supply_point_name #: model:ir.model.fields,field_description:energy_selfconsumption.field_energy_selfconsumption_distribution_table__name #: model:ir.model.fields,field_description:energy_selfconsumption.field_energy_selfconsumption_inscription_selfconsumption__name @@ -2684,11 +2834,25 @@ msgstr "Erkidegoa integratzeko beharrezkoak diren datuak:" #. module: energy_selfconsumption #. odoo-python +#: code:addons/energy_selfconsumption/wizards/change_distribution_table_import_wizard.py:0 +#: model:ir.model.fields.selection,name:energy_selfconsumption.selection__change_distribution_table_import_wizard__state__new +#, python-format +msgid "New" +msgstr "Berria" + +#. module: energy_selfconsumption +#. odoo-python +#: code:addons/energy_selfconsumption/models/supply_point.py:0 #: code:addons/energy_selfconsumption/models/supply_point.py:0 #, python-format msgid "New Supply Point" msgstr "Hornidura Puntu berria" +#. module: energy_selfconsumption +#: model_terms:ir.ui.view,arch_db:energy_selfconsumption.view_change_distribution_table_import_wizard_form +msgid "New registrations" +msgstr "Erregistro berriak" + #. module: energy_selfconsumption #: model:ir.model.fields,field_description:energy_selfconsumption.field_energy_selfconsumption_distribution_table__activity_calendar_event_id #: model:ir.model.fields,field_description:energy_selfconsumption.field_energy_selfconsumption_selfconsumption__activity_calendar_event_id @@ -2738,14 +2902,24 @@ msgstr "Hurrengo aldia amaiera" msgid "Next Period Start" msgstr "Hurrengo aldia hasiera" +#. module: energy_selfconsumption +#: model_terms:ir.ui.view,arch_db:energy_selfconsumption.view_change_distribution_table_import_wizard_form +msgid "Next step" +msgstr "Hurrengo pausoa" + #. module: energy_selfconsumption #. odoo-python + +#: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 #: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 #: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 #: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 #: code:addons/energy_selfconsumption/models/partner.py:0 +#: code:addons/energy_selfconsumption/models/partner.py:0 +#: code:addons/energy_selfconsumption/models/supply_point.py:0 #: code:addons/energy_selfconsumption/models/supply_point.py:0 #: code:addons/energy_selfconsumption/wizards/create_distribution_table_wizard.py:0 +#: code:addons/energy_selfconsumption/wizards/create_distribution_table_wizard.py:0 #: model:ir.model.fields.selection,name:energy_selfconsumption.selection__energy_selfconsumption_create_distribution_table_wizard__distribute_excess__no #: model:ir.model.fields.selection,name:energy_selfconsumption.selection__energy_selfconsumption_supply_point__used_in_selfconsumption__no #: model:ir.model.fields.selection,name:energy_selfconsumption.selection__res_partner__vulnerability_situation__no @@ -2756,6 +2930,7 @@ msgstr "ez" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/models/create_inscription.py:0 +#: code:addons/energy_selfconsumption/models/create_inscription.py:0 #, python-format msgid "No participation found for this project." msgstr "Ez da parte-hartzerik aurkitu proiektu honetan." @@ -2763,8 +2938,11 @@ msgstr "Ez da parte-hartzerik aurkitu proiektu honetan." #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/models/selfconsumption.py:0 +#: code:addons/energy_selfconsumption/models/selfconsumption.py:0 +#: code:addons/energy_selfconsumption/wizards/distribution_table_import_wizard.py:0 #: code:addons/energy_selfconsumption/wizards/distribution_table_import_wizard.py:0 #: code:addons/energy_selfconsumption/wizards/selfconsumption_import_wizard.py:0 +#: code:addons/energy_selfconsumption/wizards/selfconsumption_import_wizard.py:0 #, python-format msgid "No valid encoding was found for the attached file" msgstr "Ez da aurkitu erantsitako fitxategirako baliozko kodeketarik" @@ -2772,6 +2950,7 @@ msgstr "Ez da aurkitu erantsitako fitxategirako baliozko kodeketarik" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 +#: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 #, python-format msgid "Not binary" msgstr "Ez bitarra" @@ -2820,8 +2999,19 @@ msgstr "BEHARREZKO BESTE DATU BATZUK" #. module: energy_selfconsumption #. odoo-python +#: code:addons/energy_selfconsumption/wizards/change_distribution_table_import_wizard.py:0 +#: model:ir.model.fields.selection,name:energy_selfconsumption.selection__change_distribution_table_import_wizard__state__old +#, python-format +msgid "Old" +msgstr "Antigu" + +#. module: energy_selfconsumption +#. odoo-python +#: code:addons/energy_selfconsumption/wizards/distribution_table_import_wizard.py:0 #: code:addons/energy_selfconsumption/wizards/distribution_table_import_wizard.py:0 #: code:addons/energy_selfconsumption/wizards/invoicing_wizard.py:0 +#: code:addons/energy_selfconsumption/wizards/invoicing_wizard.py:0 +#: code:addons/energy_selfconsumption/wizards/selfconsumption_import_wizard.py:0 #: code:addons/energy_selfconsumption/wizards/selfconsumption_import_wizard.py:0 #, python-format msgid "Only csv format files are accepted." @@ -2830,6 +3020,7 @@ msgstr "Csv formatuko fitxategiak bakarrik onartzen dira." #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 +#: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 #, python-format msgid "Other" msgstr "Bestela" @@ -2851,6 +3042,7 @@ msgstr "Jabeen hornidura" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/models/create_inscription.py:0 +#: code:addons/energy_selfconsumption/models/create_inscription.py:0 #, python-format msgid "Owner could not be created or found." msgstr "Ezin izan da sortu edo aurkitu jabea." @@ -2877,6 +3069,7 @@ msgstr "Parte hartzea" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 +#: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 #, python-format msgid "Participation does not exist." msgstr "Parte hartzea ez da existitzen." @@ -2887,6 +3080,7 @@ msgid "Participation inscription" msgstr "Parte hartzeko inskripzioa" #. module: energy_selfconsumption +#: model:ir.model.fields,field_description:energy_selfconsumption.field_change_distribution_table_import_line_wizard__participation_real_quantity #: model:ir.model.fields,field_description:energy_selfconsumption.field_energy_selfconsumption_change_state_inscription_lines_wizard__participation_real_quantity #: model:ir.model.fields,field_description:energy_selfconsumption.field_energy_selfconsumption_inscription_selfconsumption__participation_real_quantity msgid "Participation real quantity" @@ -2900,6 +3094,7 @@ msgstr "Bazkidea" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 +#: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 #, python-format msgid "Partner does not exist." msgstr "Bazkidea ez da existitzen." @@ -2907,6 +3102,7 @@ msgstr "Bazkidea ez da existitzen." #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/models/inscription.py:0 +#: code:addons/energy_selfconsumption/models/inscription.py:0 #, python-format msgid "Partner is already signed up in this project with that cups." msgstr "Bazkidea dagoeneko izena emanda dago proiektu honetan kopa horrekin." @@ -2914,6 +3110,7 @@ msgstr "Bazkidea dagoeneko izena emanda dago proiektu honetan kopa horrekin." #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 +#: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 #, python-format msgid "Partner is not cooperator." msgstr "Bazkidea ez da kolaboratzailea." @@ -2921,6 +3118,7 @@ msgstr "Bazkidea ez da kolaboratzailea." #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/models/create_inscription.py:0 +#: code:addons/energy_selfconsumption/models/create_inscription.py:0 #, python-format msgid "Partner with VAT {vat} is already registered in project {code}" msgstr "" @@ -2929,6 +3127,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/models/create_inscription.py:0 +#: code:addons/energy_selfconsumption/models/create_inscription.py:0 #, python-format msgid "Partner with VAT:<b>{vat}</b> is not a cooperator." msgstr "IFK/NIF-ren bazkidea:<b>{vat}</b> ez da kolaboratzailea." @@ -2936,6 +3135,7 @@ msgstr "IFK/NIF-ren bazkidea:<b>{vat}</b> ez da kolaboratzailea." #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/models/create_inscription.py:0 +#: code:addons/energy_selfconsumption/models/create_inscription.py:0 #, python-format msgid "Partner with VAT:<b>{vat}</b> was not found." msgstr "IFK/NIF-ko bazkidea:<b>{vat}</b> ez da aurkitu." @@ -2960,6 +3160,7 @@ msgstr "Banatutako potentziaren ehunekoa" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 +#: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 #, python-format msgid "Phone" msgstr "Telefonoa" @@ -2972,6 +3173,7 @@ msgstr "Potentzia (kW)" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/models/selfconsumption.py:0 +#: code:addons/energy_selfconsumption/models/selfconsumption.py:0 #: model:ir.model.fields.selection,name:energy_selfconsumption.selection__energy_selfconsumption_define_invoicing_mode_wizard__invoicing_mode__power_acquired #: model:ir.model.fields.selection,name:energy_selfconsumption.selection__energy_selfconsumption_invoicing_wizard__invoicing_mode__power_acquired #: model:ir.model.fields.selection,name:energy_selfconsumption.selection__energy_selfconsumption_selfconsumption__invoicing_mode__power_acquired @@ -2994,6 +3196,11 @@ msgstr "Energia Partekatzeko Akordioaren Txostena" msgid "Power acquired" msgstr "" +#. module: energy_selfconsumption +#: model_terms:ir.ui.view,arch_db:energy_selfconsumption.view_change_distribution_table_import_wizard_form +msgid "Previous step" +msgstr "Paso anterior" + #. module: energy_selfconsumption #: model:ir.model.fields,field_description:energy_selfconsumption.field_energy_selfconsumption_define_invoicing_mode_wizard__price msgid "Price" @@ -3007,6 +3214,7 @@ msgstr "Pribatutasun politika" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 +#: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 #, python-format msgid "Privacy policy file text" msgstr "Pribatutasun politikaren fitxategiaren testua" @@ -3037,6 +3245,8 @@ msgstr "Proiektua" #. odoo-python #: code:addons/energy_selfconsumption/models/selfconsumption.py:0 #: code:addons/energy_selfconsumption/models/selfconsumption.py:0 +#: code:addons/energy_selfconsumption/models/selfconsumption.py:0 +#: code:addons/energy_selfconsumption/models/selfconsumption.py:0 #, python-format msgid "Project must have a valid Code." msgstr "Proiektuak baliozko Kode bat izan behar du." @@ -3045,6 +3255,8 @@ msgstr "Proiektuak baliozko Kode bat izan behar du." #. odoo-python #: code:addons/energy_selfconsumption/models/selfconsumption.py:0 #: code:addons/energy_selfconsumption/models/selfconsumption.py:0 +#: code:addons/energy_selfconsumption/models/selfconsumption.py:0 +#: code:addons/energy_selfconsumption/models/selfconsumption.py:0 #, python-format msgid "Project must have a valid Rated Power." msgstr "Proiektuak baliozko Potentzia Nominal bat izan behar du." @@ -3052,6 +3264,7 @@ msgstr "Proiektuak baliozko Potentzia Nominal bat izan behar du." #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/models/selfconsumption.py:0 +#: code:addons/energy_selfconsumption/models/selfconsumption.py:0 #, python-format msgid "Project must have defined a invoicing mode before activation." msgstr "Proiektuak fakturazio modua zehaztu behar du aktibatu aurretik." @@ -3059,6 +3272,7 @@ msgstr "Proiektuak fakturazio modua zehaztu behar du aktibatu aurretik." #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/wizards/create_distribution_table_wizard.py:0 +#: code:addons/energy_selfconsumption/wizards/create_distribution_table_wizard.py:0 #: model:ir.model.fields.selection,name:energy_selfconsumption.selection__energy_selfconsumption_create_distribution_table_wizard__type_distribute_excess__proportional #, python-format msgid "Proportional" @@ -3077,6 +3291,11 @@ msgstr "Kantitatea" msgid "Quotechar in import CSV file." msgstr "Quotechar inportazio CSV fitxategian." +#. module: energy_selfconsumption +#: model_terms:ir.ui.view,arch_db:energy_selfconsumption.view_change_distribution_table_import_wizard_form +msgid "Record deregistration" +msgstr "Erregistro ezabatzea" + #. module: energy_selfconsumption #: model:ir.model.fields,field_description:energy_selfconsumption.field_energy_selfconsumption_define_invoicing_mode_wizard__recurring_rule_type msgid "Recurrence" @@ -3144,6 +3363,11 @@ msgstr "Berrezarri zirriborrora" msgid "Responsible User" msgstr "Erabiltzaile arduratsua" +#. module: energy_selfconsumption +#: model_terms:ir.ui.view,arch_db:energy_selfconsumption.view_change_distribution_table_import_wizard_form +msgid "Retain old records" +msgstr "Erregistro ezabatzea" + #. module: energy_selfconsumption #: model_terms:ir.ui.view,arch_db:energy_selfconsumption.selfconsumption_form_view msgid "Return to Draft" @@ -3224,6 +3448,7 @@ msgstr "Autokontsumoaren fakturazio abisua ${ object.name }" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/models/distribution_table.py:0 +#: code:addons/energy_selfconsumption/models/distribution_table.py:0 #, python-format msgid "Self-consumption project already has a table in process" msgstr "Autokontsumo proiektuak dagoeneko badu mahai bat martxan" @@ -3231,6 +3456,7 @@ msgstr "Autokontsumo proiektuak dagoeneko badu mahai bat martxan" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/models/distribution_table.py:0 +#: code:addons/energy_selfconsumption/models/distribution_table.py:0 #, python-format msgid "Self-consumption project already has a validated table" msgstr "Autokontsumo proiektuak dagoeneko baliozkotutako taula bat du" @@ -3435,16 +3661,18 @@ msgid "State" msgstr "Probintzia" #. module: energy_selfconsumption +#: model:ir.model.fields,field_description:energy_selfconsumption.field_energy_selfconsumption_supply_point_assignation__supply_point_state +msgid "State Name" +msgstr "Estatuaren izena" + +#. module: energy_selfconsumption +#: model:ir.model.fields,field_description:energy_selfconsumption.field_change_distribution_table_import_line_wizard__state +#: model:ir.model.fields,field_description:energy_selfconsumption.field_change_distribution_table_import_wizard__state #: model:ir.model.fields,field_description:energy_selfconsumption.field_energy_selfconsumption_change_state_inscription_lines_wizard__state #: model:ir.model.fields,field_description:energy_selfconsumption.field_energy_selfconsumption_inscription_selfconsumption__state msgid "Status" msgstr "Egoera" -#. module: energy_selfconsumption -#: model:ir.model.fields,field_description:energy_selfconsumption.field_energy_selfconsumption_supply_point_assignation__supply_point_state -msgid "State Name" -msgstr "Estatuaren izena" - #. module: energy_selfconsumption #: model:ir.model.fields,help:energy_selfconsumption.field_energy_selfconsumption_distribution_table__activity_state #: model:ir.model.fields,help:energy_selfconsumption.field_energy_selfconsumption_selfconsumption__activity_state @@ -3540,6 +3768,11 @@ msgstr "Hornikuntza-puntua Iragazita" msgid "Supply Points" msgstr "Hornikuntza Puntuak" +#. module: energy_selfconsumption +#: model_terms:ir.ui.view,arch_db:energy_selfconsumption.selfconsumption_invoice_template +msgid "Tax 15%" +msgstr "" + #. module: energy_selfconsumption #: model:ir.model.fields,field_description:energy_selfconsumption.field_energy_selfconsumption_supply_point_assignation__owner_vat msgid "Tax ID" @@ -3548,6 +3781,7 @@ msgstr "Zerga ID" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/models/create_inscription.py:0 +#: code:addons/energy_selfconsumption/models/create_inscription.py:0 #, python-format msgid "The IBAN field cannot be empty." msgstr "IBAN eremua ezin da hutsik egon." @@ -3565,6 +3799,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/wizards/invoicing_wizard.py:0 +#: code:addons/energy_selfconsumption/wizards/invoicing_wizard.py:0 #, python-format msgid "The contract has no lines" msgstr "Kontratuak ez du lerrorik" @@ -3572,6 +3807,7 @@ msgstr "Kontratuak ez du lerrorik" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 +#: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 #, python-format msgid "The email is not the same." msgstr "Posta elektronikoa ez da berdina." @@ -3580,6 +3816,8 @@ msgstr "Posta elektronikoa ez da berdina." #. odoo-python #: code:addons/energy_selfconsumption/wizards/invoicing_wizard.py:0 #: code:addons/energy_selfconsumption/wizards/invoicing_wizard.py:0 +#: code:addons/energy_selfconsumption/wizards/invoicing_wizard.py:0 +#: code:addons/energy_selfconsumption/wizards/invoicing_wizard.py:0 #, python-format msgid "The energy generated must be greater than 0 (kWh)." msgstr "Sortutako energia 0 (kWh) baino handiagoa izan behar da." @@ -3587,6 +3825,7 @@ msgstr "Sortutako energia 0 (kWh) baino handiagoa izan behar da." #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/wizards/selfconsumption_import_wizard.py:0 +#: code:addons/energy_selfconsumption/wizards/selfconsumption_import_wizard.py:0 #, python-format msgid "The file should contain 28 columns and not {header_length} columns." msgstr "Fitxategiak 28 zutabe izan behar ditu eta ez {header_length} zutabe." @@ -3594,6 +3833,7 @@ msgstr "Fitxategiak 28 zutabe izan behar ditu eta ez {header_length} zutabe." #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 +#: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 #, python-format msgid "" "The form is not open. For more information write to your Energy Community " @@ -3605,6 +3845,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/wizards/invoicing_wizard.py:0 +#: code:addons/energy_selfconsumption/wizards/invoicing_wizard.py:0 #, python-format msgid "" "The number of contracts selected does not match the number of contracts " @@ -3616,6 +3857,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/models/supply_point_assignation.py:0 +#: code:addons/energy_selfconsumption/models/supply_point_assignation.py:0 #, python-format msgid "The partner of the supply point is not subscribed to the project" msgstr "Hornidura puntuko bazkidea ez da proiektuan harpidetuta" @@ -3623,6 +3865,7 @@ msgstr "Hornidura puntuko bazkidea ez da proiektuan harpidetuta" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/wizards/create_distribution_table_wizard.py:0 +#: code:addons/energy_selfconsumption/wizards/create_distribution_table_wizard.py:0 #, python-format msgid "The project has to have a power greater than 0." msgstr "Proiektuak 0 baino potentzia handiagoa izan behar du." @@ -3630,6 +3873,7 @@ msgstr "Proiektuak 0 baino potentzia handiagoa izan behar du." #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/models/selfconsumption.py:0 +#: code:addons/energy_selfconsumption/models/selfconsumption.py:0 #, python-format msgid "" "The report can be downloaded when the project is in activation or active " @@ -3646,6 +3890,7 @@ msgstr "Koefiziente guztien baturak 1 izan behar du" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/wizards/distribution_table_import_wizard.py:0 +#: code:addons/energy_selfconsumption/wizards/distribution_table_import_wizard.py:0 #, python-format msgid "" "The sum of coefficients for the following hours is not equal to 1: %s, " @@ -3654,6 +3899,7 @@ msgstr "Hurrengo orduetako koefizienteen batura ez da 1ekoa: %s," #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/wizards/distribution_table_import_wizard.py:0 +#: code:addons/energy_selfconsumption/wizards/distribution_table_import_wizard.py:0 #, python-format msgid "The sum of coefficients is not equal to 1: %s" msgstr "Koefizienteen batura ez da 1ekoa: %s" @@ -3661,6 +3907,7 @@ msgstr "Koefizienteen batura ez da 1ekoa: %s" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/models/distribution_table.py:0 +#: code:addons/energy_selfconsumption/models/distribution_table.py:0 #, python-format msgid "" "The supply point can't be removed because the distribution table state is " @@ -3680,6 +3927,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 +#: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 #, python-format msgid "" "There is already an individual photovoltaic self-consumption or collective " @@ -3691,6 +3939,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/wizards/contract_generation_wizard.py:0 +#: code:addons/energy_selfconsumption/wizards/contract_generation_wizard.py:0 #, python-format msgid "There is no distribution table in proces of activation." msgstr "Ez dago banaketa taularik aktibatzeko prozesuan." @@ -3715,6 +3964,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/wizards/distribution_table_import_wizard.py:0 +#: code:addons/energy_selfconsumption/wizards/distribution_table_import_wizard.py:0 #, python-format msgid "There isn't any supply point with this code: {code}" msgstr "Ez dago hornidura punturik kode honekin: {code}" @@ -3739,6 +3989,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/models/distribution_table.py:0 +#: code:addons/energy_selfconsumption/models/distribution_table.py:0 #, python-format msgid "" "To change the type you must first delete the associated distribution points.\n" @@ -3794,6 +4045,11 @@ msgstr "" msgid "Unactivate form" msgstr "Desaktibatu inprimakia" +#. module: energy_selfconsumption +#: model_terms:ir.ui.view,arch_db:energy_selfconsumption.view_change_distribution_table_import_wizard_form +msgid "Update old records" +msgstr "Aldatu antiguo erregistroak" + #. module: energy_selfconsumption #: model:ir.model.fields,field_description:energy_selfconsumption.field_energy_selfconsumption_inscription_selfconsumption__used_in_selfconsumption #: model:ir.model.fields,field_description:energy_selfconsumption.field_energy_selfconsumption_supply_point__used_in_selfconsumption @@ -3808,6 +4064,7 @@ msgstr "Erabiltzailearen egungo rola" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 +#: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 #, python-format msgid "VAT of the partner" msgstr "Bazkidearen IFK/IFZ" @@ -3820,6 +4077,7 @@ msgstr "Baliozkotu" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/models/distribution_table.py:0 +#: code:addons/energy_selfconsumption/models/distribution_table.py:0 #: model:ir.model.fields.selection,name:energy_selfconsumption.selection__energy_selfconsumption_distribution_table__state__validated #, python-format msgid "Validated" @@ -3828,6 +4086,7 @@ msgstr "Baliozkotua" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/models/distribution_table.py:0 +#: code:addons/energy_selfconsumption/models/distribution_table.py:0 #: model:ir.model.fields.selection,name:energy_selfconsumption.selection__energy_selfconsumption_distribution_table__type__hourly #, python-format msgid "Variable hourly" @@ -3871,6 +4130,7 @@ msgstr "Webguneen komunikazioaren historia" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 +#: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 #, python-format msgid "What participation would you like?" msgstr "Zein parte hartzea gustatuko litzaizuke?" @@ -3880,9 +4140,15 @@ msgstr "Zein parte hartzea gustatuko litzaizuke?" #: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 #: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 #: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 +#: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 +#: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 +#: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 #: code:addons/energy_selfconsumption/models/partner.py:0 +#: code:addons/energy_selfconsumption/models/partner.py:0 +#: code:addons/energy_selfconsumption/models/supply_point.py:0 #: code:addons/energy_selfconsumption/models/supply_point.py:0 #: code:addons/energy_selfconsumption/wizards/create_distribution_table_wizard.py:0 +#: code:addons/energy_selfconsumption/wizards/create_distribution_table_wizard.py:0 #: model:ir.model.fields.selection,name:energy_selfconsumption.selection__energy_selfconsumption_create_distribution_table_wizard__distribute_excess__yes #: model:ir.model.fields.selection,name:energy_selfconsumption.selection__energy_selfconsumption_supply_point__used_in_selfconsumption__yes #: model:ir.model.fields.selection,name:energy_selfconsumption.selection__res_partner__vulnerability_situation__yes @@ -3893,6 +4159,7 @@ msgstr "Bai" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 +#: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 #, python-format msgid "You are already enrolled in this self-consumption project." msgstr "Dagoeneko matrikulatuta zaude autokontsumo proiektu honetan." @@ -3923,6 +4190,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 +#: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 #, python-format msgid "" "You can find the annual electricity use on the electricity bill(Total annual" @@ -3934,6 +4202,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/wizards/clean_supply_point_assignation_wizard.py:0 +#: code:addons/energy_selfconsumption/wizards/clean_supply_point_assignation_wizard.py:0 #, python-format msgid "" "You can only delete assigned distribution points from a distribution table " @@ -3943,6 +4212,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/models/contract_line.py:0 +#: code:addons/energy_selfconsumption/models/contract_line.py:0 #, python-format msgid "" "You can't have a date of next invoice anterior to the start of the contract " @@ -3954,6 +4224,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 +#: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 #, python-format msgid "" "You have a recognized situation of vulnerability due to energy poverty or " @@ -3965,6 +4236,7 @@ msgstr "" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/models/create_inscription.py:0 +#: code:addons/energy_selfconsumption/models/create_inscription.py:0 #, python-format msgid "You have successfully registered." msgstr "Behar bezala erregistratu zara." @@ -3972,6 +4244,8 @@ msgstr "Behar bezala erregistratu zara." #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/wizards/change_state_inscription_wizard.py:0 +#: code:addons/energy_selfconsumption/wizards/change_state_inscription_wizard.py:0 +#: code:addons/energy_selfconsumption/wizards/create_distribution_table_wizard.py:0 #: code:addons/energy_selfconsumption/wizards/create_distribution_table_wizard.py:0 #, python-format msgid "You have to select at least one entry." @@ -3980,6 +4254,7 @@ msgstr "Gutxienez sarrera bat hautatu behar duzu." #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/models/selfconsumption.py:0 +#: code:addons/energy_selfconsumption/models/selfconsumption.py:0 #, python-format msgid "" "You need to add the privacy policy file to display the form.To modify the " @@ -3996,6 +4271,7 @@ msgstr "Zure datuak behar bezala erregistratu dira." #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/wizards/create_distribution_table_wizard.py:0 +#: code:addons/energy_selfconsumption/wizards/create_distribution_table_wizard.py:0 #, python-format msgid "Your distribution percentage cannot be 0." msgstr "Zure banaketa-ehunekoa ezin da 0 izan." @@ -4003,6 +4279,7 @@ msgstr "Zure banaketa-ehunekoa ezin da 0 izan." #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/wizards/create_distribution_table_wizard.py:0 +#: code:addons/energy_selfconsumption/wizards/create_distribution_table_wizard.py:0 #, python-format msgid "Your distribution percentage cannot exceed 100%." msgstr "Zure banaketa-ehunekoa ezin da %100etik gorakoa izan." @@ -4016,6 +4293,7 @@ msgstr "Posta Kodea" #. module: energy_selfconsumption #. odoo-python #: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 +#: code:addons/energy_selfconsumption/controllers/inscriptions_form_controllers.py:0 #: model:ir.model.fields,field_description:energy_selfconsumption.field_energy_selfconsumption_selfconsumption__zip #: model:ir.model.fields,field_description:energy_selfconsumption.field_energy_selfconsumption_supply_point__zip #: model:ir.model.fields,field_description:energy_selfconsumption.field_energy_selfconsumption_supply_point_assignation__supply_point_postalcode diff --git a/energy_selfconsumption/models/__init__.py b/energy_selfconsumption/models/__init__.py index 3a53b39849e879fdc922b51e166562c4d1993720..85657e9a782cd7ed64d0f1be2c39c28ea2aa2978 100644 --- a/energy_selfconsumption/models/__init__.py +++ b/energy_selfconsumption/models/__init__.py @@ -1,3 +1,4 @@ +from . import pack_type_mixin from . import account_move from . import contract from . import contract_csv_report @@ -14,3 +15,4 @@ from . import project from . import selfconsumption from . import supply_point from . import supply_point_assignation +from . import contract_template diff --git a/energy_selfconsumption/models/account_move.py b/energy_selfconsumption/models/account_move.py index 760be4ee44304b609620e284ac175c4ced9cfc38..110e8e4bb407ad6be61fbe5d640505034e911791 100644 --- a/energy_selfconsumption/models/account_move.py +++ b/energy_selfconsumption/models/account_move.py @@ -11,7 +11,8 @@ class AccountMoveLine(models.Model): class AccountMove(models.Model): - _inherit = "account.move" + _name = "account.move" + _inherit = ["account.move", "pack.type.mixin"] selfconsumption_invoicing_mode = fields.Selection( [ diff --git a/energy_selfconsumption/models/contract_line.py b/energy_selfconsumption/models/contract_line.py index 2b8b031b5933110d88e167ef26ed788e28ddc68b..2ac8ae92c45c1e21cdf5db799c29cf1212fe8e8d 100644 --- a/energy_selfconsumption/models/contract_line.py +++ b/energy_selfconsumption/models/contract_line.py @@ -5,11 +5,6 @@ from odoo.exceptions import ValidationError class ContractLine(models.Model): _inherit = "contract.line" - days_invoiced = fields.Integer( - string="Days invoiced", - compute="_compute_days_invoiced", - store=True, - ) main_line = fields.Boolean("Main line", default=False) # This validation is raised when writing date_start on the contract and recurring_next_date is yet not computed # Fixed by just checking when the recurrence is at line level (line_recurrence) @@ -41,22 +36,3 @@ class ContractLine(models.Model): ) % line.name ) - - @api.depends("last_date_invoiced", "recurring_next_date") - def _compute_days_invoiced(self): - for record in self: - ( - first_date_invoiced, - last_date_invoiced, - _, # recurring_next_date - ) = record._get_period_to_invoice( - record.last_date_invoiced, - record.recurring_next_date, - stop_at_date_end=True, - ) - - record.days_invoiced = ( - (last_date_invoiced - first_date_invoiced).days + 1 - if first_date_invoiced and last_date_invoiced - else 0 - ) diff --git a/energy_selfconsumption/models/contract_template.py b/energy_selfconsumption/models/contract_template.py new file mode 100644 index 0000000000000000000000000000000000000000..e45bdbfd477840fb444bd8859fc4d04b3ce868fc --- /dev/null +++ b/energy_selfconsumption/models/contract_template.py @@ -0,0 +1,14 @@ +from odoo import _, api, fields, models + + +class ContractTemplate(models.Model): + _name = "contract.template" + _inherit = ["contract.template", "pack.type.mixin"] + + def custom_compute_pack_type(self): + super().custom_compute_pack_type() + if self.pack_type == "none": + self._set_custom_pack_type_on_contract_template( + "selfconsumption_pack", + "selfconsumption.product_category_selfconsumption_pack", + ) diff --git a/energy_selfconsumption/models/pack_type_mixin.py b/energy_selfconsumption/models/pack_type_mixin.py new file mode 100644 index 0000000000000000000000000000000000000000..30bad5f15f2f5914393c7431612a9f153406f8f5 --- /dev/null +++ b/energy_selfconsumption/models/pack_type_mixin.py @@ -0,0 +1,11 @@ +from odoo import _, fields, models + +PACK_VALUES = [ + ("selfconsumption_pack", _("Selfconsumption Pack")), +] + + +class PackTypeMixin(models.AbstractModel): + _inherit = "pack.type.mixin" + + pack_type = fields.Selection(selection_add=PACK_VALUES) diff --git a/energy_selfconsumption/models/selfconsumption.py b/energy_selfconsumption/models/selfconsumption.py index 4c5a243b001fdcee2b521c75bbe2e4aaf4da8c24..e101d4f850972c38b28fd02a078889839f168926 100644 --- a/energy_selfconsumption/models/selfconsumption.py +++ b/energy_selfconsumption/models/selfconsumption.py @@ -210,8 +210,11 @@ class Selfconsumption(models.Model): "type": "ir.actions.act_window", "name": "Contracts", "views": [ - [self.env.ref("energy_selfconsumption.contract_tree_view").id, "tree"], - [False, "form"], + (self.env.ref("energy_selfconsumption.contract_tree_view").id, "tree"), + ( + self.env.ref("contract.contract_contract_customer_form_view").id, + "form", + ), ], "res_model": "contract.contract", "domain": [("project_id", "=", self.id)], diff --git a/energy_selfconsumption/models/supply_point_assignation.py b/energy_selfconsumption/models/supply_point_assignation.py index fc5c3841ec887ede5d040dd4a12c899140bd86ea..de6080ba0efa6220c533ea8116c8c28e0a2fd078 100644 --- a/energy_selfconsumption/models/supply_point_assignation.py +++ b/energy_selfconsumption/models/supply_point_assignation.py @@ -36,6 +36,11 @@ class SupplyPointAssignation(models.Model): record.selfconsumption_project_id.power * record.coefficient ) + @api.depends("coefficient") + def _compute_participacion(self): + for record in self: + record.participacion = record.coefficient * record.selfconsumption_project_id.power + distribution_table_id = fields.Many2one( "energy_selfconsumption.distribution_table", required=True ) @@ -50,6 +55,7 @@ class SupplyPointAssignation(models.Model): supply_point_id = fields.Many2one( "energy_selfconsumption.supply_point", required=True ) + participacion = fields.Float(string="Participacion",compute="_compute_participacion", store=True) coefficient = fields.Float( string="Distribution coefficient", digits=(7, 6), diff --git a/energy_selfconsumption/reports/invoice_template.xml b/energy_selfconsumption/reports/invoice_template.xml index e03c259e8a34c256d5c64458e26aa5c56b959425..cc203ef9966823ab09211cc98062da2b0bd48fb3 100644 --- a/energy_selfconsumption/reports/invoice_template.xml +++ b/energy_selfconsumption/reports/invoice_template.xml @@ -2,11 +2,7 @@ <template id="selfconsumption_invoice_template" inherit_id="account.report_invoice_document"> <xpath expr="//th[@name='th_quantity']" position="replace"> <th name="th_quantity" t-if="o.selfconsumption_invoicing_mode == 'none'" class="text-end"><span>Quantity</span></th> - <t t-if="o.selfconsumption_invoicing_mode == 'power_acquired'"> - <th name="th_power_acquired" class="text-end"><span>Power acquired</span></th> - <th name="th_invoiced_days" class="text-end"><span>Invoiced days</span></th> - <th name="th_quantity" class="text-end"><span>Quantity</span></th> - </t> + <th name="th_quantity" t-if="o.selfconsumption_invoicing_mode == 'power_acquired'" class="text-end"><span>Quantity</span></th> <t t-if="o.selfconsumption_invoicing_mode == 'energy_delivered'"> <th name="th_total_installation_generation" class="text-end"><span>Total installation generation</span></th> <th name="th_partition_coefficient" class="text-end"><span>Partition coefficient</span></th> @@ -31,33 +27,6 @@ </th> </xpath> <xpath expr="//td[@name='account_invoice_line_name']" position="after"> - <t t-if="o.selfconsumption_invoicing_mode == 'power_acquired'"> - <td name="td_power_acquired" class="text-end"> - <t t-set="found" t-value="False" /> - <t t-foreach="line.selfconsumption_id.distribution_table_ids.supply_point_assignation_ids" t-as="assignation"> - <t t-if="line.partner_id == assignation.owner_id and line.ref == assignation.code"> - <t t-set="power_acquired" t-value="'{:.2f}'.format(line.selfconsumption_id.power * assignation.coefficient)"/> - <t t-esc="power_acquired" /><span> kWn/day</span> - <t t-set="found" t-value="True" /> - </t> - </t> - <t t-if="not found"> - 0 kW/day - </t> - </td> - <td name="td_invoiced_days" class="text-end"> - <t t-foreach="o.invoice_line_ids" t-as="line"> - <t t-foreach="line.contract_line_id" t-as="contract_line"> - <t t-if="contract_line.contract_id.partner_id == line.partner_id"> - <span t-field="contract_line.days_invoiced"/> - </t> - <t t-else=""> - 0 - </t> - </t> - </t> - </td> - </t> <t t-if="o.selfconsumption_invoicing_mode == 'energy_delivered'"> <td name="td_total_installation_generation" class="text-end"> <span t-field="line.selfconsumption_id.power"/><span> kWh</span> diff --git a/energy_selfconsumption/security/ir.model.access.csv b/energy_selfconsumption/security/ir.model.access.csv index ce40451eba35e1354a9dadca8ef16af0e794d8d1..76fc052469061ca1de052e770e369bd6530ec759 100644 --- a/energy_selfconsumption/security/ir.model.access.csv +++ b/energy_selfconsumption/security/ir.model.access.csv @@ -29,3 +29,8 @@ access_energy_selfconsumption_change_state_inscription_wizard_user,energy.selfco access_energy_selfconsumption_change_state_inscription_wizard_admin,energy.selfconsumption.change.state.inscription.wizard.admin,model_energy_selfconsumption_change_state_inscription_wizard,energy_project.group_admin,1,1,1,1 access_energy_selfconsumption_change_state_inscription_lines_wizard_user,energy.selfconsumption.change.state.inscription.lines.wizard.user,model_energy_selfconsumption_change_state_inscription_lines_wizard,energy_project.group_user,1,1,1,1 access_energy_selfconsumption_change_state_inscription_lines_wizard_admin,energy.selfconsumption.change.state.inscription.lines.wizard.admin,model_energy_selfconsumption_change_state_inscription_lines_wizard,energy_project.group_admin,1,1,1,1 +access_change_distribution_table_import_wizard_user,change.distribution.table.import.wizard.user,model_change_distribution_table_import_wizard,energy_project.group_user,1,1,1,1 +access_change_distribution_table_import_wizard_admin,change.distribution.table.import.wizard.admin,model_change_distribution_table_import_wizard,energy_project.group_admin,1,1,1,1 +access_change_distribution_table_import_line_wizard_user,change.distribution.table.import.line.wizard.user,model_change_distribution_table_import_line_wizard,energy_project.group_user,1,1,1,1 +access_change_distribution_table_import_line_wizard_admin,change.distribution.table.import.line.wizard.admin,model_change_distribution_table_import_line_wizard,energy_project.group_admin,1,1,1,1 + diff --git a/energy_selfconsumption/static/src/js/progress_bar.js b/energy_selfconsumption/static/src/js/progress_bar.js index 359949dd9dedc7e949d6308b254dcefab384a800..c7ea3699cf5333bf81ec8e41779a178e9930e9ed 100644 --- a/energy_selfconsumption/static/src/js/progress_bar.js +++ b/energy_selfconsumption/static/src/js/progress_bar.js @@ -1,12 +1,12 @@ /** @odoo-module **/ -import {Component, useState} from "@odoo/owl"; -import {registry} from "@web/core/registry"; +import { Component, useState } from "@odoo/owl"; +import { registry } from "@web/core/registry"; class ProgressBarWidget extends Component { setup() { // Obtener valores desde this.props - const {record} = this.props; + const { record } = this.props; // Configurar el estado inicial usando hooks de OWL this.state = useState({ @@ -16,17 +16,21 @@ class ProgressBarWidget extends Component { }); // Calcular el porcentaje basado en los valores actuales - this.state.percentage = Math.min( - (this.state.current_quantity / this.state.max_quantity) * 100, - 100 - ); + this.state.percentage = (this.state.current_quantity / this.state.max_quantity) * 100; } get progressStyle() { + let background_color = '#7C7BAD'; + if (this.state.percentage > 100) { + background_color = '#a10000'; + } else if (this.state.percentage == 100) { + background_color = '#00a12a'; + } + let width = this.state.percentage > 100 ? 100 : this.state.percentage; return ` - width: ${this.state.percentage}%; + width: ${width}%; height: 100%; - background-color: #7C7BAD; + background-color: ${background_color}; `; } diff --git a/energy_selfconsumption/views/contract_views.xml b/energy_selfconsumption/views/contract_views.xml index a49c0c8189cf53dc63072ea80e138bf41b502cb5..b98b19ce1f88884e15f011b176c2926dec083b81 100644 --- a/energy_selfconsumption/views/contract_views.xml +++ b/energy_selfconsumption/views/contract_views.xml @@ -24,12 +24,12 @@ <field name="arch" type="xml"> <xpath expr="/search" position="inside"> <group expand="1" string="Group By"> - <filter - string="Next Period Date Start" - name="filter_next_period_date_end" - domain="[]" - context="{'group_by':'next_period_date_end'}" - /> + <filter + string="Next Period Date Start" + name="filter_next_period_date_end" + domain="[]" + context="{'group_by':'next_period_date_end'}" + /> </group> </xpath> </field> diff --git a/energy_selfconsumption/views/distribution_table_views.xml b/energy_selfconsumption/views/distribution_table_views.xml index 0a00934b4802927509436d50fb97954fefacbd88..a8d0dcb04919345d31fab1b8a8d1883a820a13b0 100644 --- a/energy_selfconsumption/views/distribution_table_views.xml +++ b/energy_selfconsumption/views/distribution_table_views.xml @@ -50,6 +50,7 @@ name="selfconsumption_project_id" attrs="{'readonly': [('state', 'not in', ['draft'])]}" options="{'no_create': True}" + invisible="1" /> </group> <group> @@ -85,6 +86,7 @@ /> <field name="owner_id" /> <field name="code" /> + <field name="participacion" sum="True"/> <field name="coefficient" sum="True" diff --git a/energy_selfconsumption/wizards/__init__.py b/energy_selfconsumption/wizards/__init__.py index 4787ed8ec741eee2e107777f2aa55f9dfca0a55f..d5dbd8a633666b6e511df3e8f114a8be942e2e85 100644 --- a/energy_selfconsumption/wizards/__init__.py +++ b/energy_selfconsumption/wizards/__init__.py @@ -6,3 +6,4 @@ from . import distribution_table_import_wizard from . import invoicing_wizard from . import selfconsumption_import_wizard from . import change_state_inscription_wizard +from . import change_distribution_table_import_wizard diff --git a/energy_selfconsumption/wizards/change_distribution_table_import_wizard.py b/energy_selfconsumption/wizards/change_distribution_table_import_wizard.py new file mode 100644 index 0000000000000000000000000000000000000000..23b45d107cc6e6fb7d763816b43c1230ec61494c --- /dev/null +++ b/energy_selfconsumption/wizards/change_distribution_table_import_wizard.py @@ -0,0 +1,169 @@ +# -*- coding: utf-8 -*- +import logging + +from odoo import models, fields, api, _ +from odoo.exceptions import UserError, ValidationError + +_logger = logging.getLogger(__name__) + +STATE_VALUES = [ + ("active", _("Active")), + ("inactive", _("Inactive")), + ("change", _("Change")), +] + +STATE_WIZARD_VALUES = [ + ('old', _('Old')), + ('new', _('New')), + ('delete', _('Delete')), + ('change', _('Change')) +] + +class Change_distribution_table_import_wizard(models.TransientModel): + _name = 'change.distribution.table.import.wizard' + _description = _('Change_distribution_table_import_wizard') + + change_distribution_table_import_line_wizard_ids = fields.One2many( + "change.distribution.table.import.line.wizard", + "change_distribution_table_import_wizard_id", + string="Change distribution table import line wizard" + ) + + change_distribution_table_import_line_wizard_news_ids = fields.One2many( + "change.distribution.table.import.line.wizard", + "change_distribution_table_import_wizard_id", + string="Change distribution table import line wizard", + domain=[('state', '=', 'inactive')] + ) + + change_distribution_table_import_line_wizard_views_ids = fields.One2many( + "change.distribution.table.import.line.wizard", + string="Change distribution table import line wizard", + compute='_compute_change_distribution_table_import_line_wizard_ids' + ) + + state = fields.Selection(STATE_WIZARD_VALUES, required=True, string="Status", default='old') + + @api.model + def default_get(self, default_fields): + # OVERRIDE + default_fields = super().default_get(default_fields) + + inscription_ids = self.env['energy_selfconsumption.inscription_selfconsumption'].search([ + ('selfconsumption_project_id', '=', self.env.context['default_selfconsumption_project_id']), + ('state', '!=', 'inactive') + ]) + + lines = [] + for inscription in inscription_ids: + lines.append( + ( + 0, + 0, + { + "change_distribution_table_import_wizard_id": self.id, + "inscription_id": inscription.id, + "state": inscription.state, + "participation_real_quantity": inscription.participation_real_quantity, + }, + ) + ) + + default_fields["change_distribution_table_import_line_wizard_ids"] = lines + + inscription_ids = self.env['energy_selfconsumption.inscription_selfconsumption'].search([ + ('selfconsumption_project_id', '=', self.env.context['default_selfconsumption_project_id']), + ('state', '=', 'inactive') + ]) + + lines = [] + for inscription in inscription_ids: + lines.append( + ( + 0, + 0, + { + "change_distribution_table_import_wizard_id": self.id, + "inscription_id": inscription.id, + "state": inscription.state, + "participation_real_quantity": inscription.participation_real_quantity, + }, + ) + ) + default_fields["change_distribution_table_import_line_wizard_news_ids"] = lines + return default_fields + + @api.depends('state', 'change_distribution_table_import_line_wizard_ids') + def _compute_change_distribution_table_import_line_wizard_ids(self): + _logger.info(f"self.state: {self.state}") + if self.state == 'old': + self.change_distribution_table_import_line_wizard_views_ids = self.change_distribution_table_import_line_wizard_ids.filtered(lambda line: line.state == 'active') + elif self.state == 'delete': + self.change_distribution_table_import_line_wizard_views_ids = self.change_distribution_table_import_line_wizard_ids.filtered(lambda line: line.state == 'change' and line.participation_real_quantity == 0) + elif self.state == 'change': + self.change_distribution_table_import_line_wizard_views_ids = self.change_distribution_table_import_line_wizard_ids.filtered(lambda line: line.state == 'change' and line.participation_real_quantity > 0) + elif self.state == 'new': + self.change_distribution_table_import_line_wizard_views_ids = self.change_distribution_table_import_line_wizard_ids.filtered(lambda line: line.state == 'inactive') + else: + self.change_distribution_table_import_line_wizard_views_ids = self.change_distribution_table_import_line_wizard_ids + + def next_step(self): + if self.state == 'old': + self.state = 'delete' + return self.action_change_distribution_table_import() + elif self.state == 'delete': + self.state = 'change' + return self.action_change_distribution_table_import() + elif self.state == 'change': + self.state = 'new' + return self.action_change_distribution_table_import() + elif self.state == 'new': + return self.action_create_distribution_table_import() + else: + return self.action_change_distribution_table_import() + + def previous_step(self): + if self.state == 'new': + self.state = 'change' + return self.action_change_distribution_table_import() + elif self.state == 'change': + self.state = 'delete' + return self.action_change_distribution_table_import() + elif self.state == 'delete': + self.state = 'old' + return self.action_change_distribution_table_import() + else: + return self.action_change_distribution_table_import() + + def action_change_distribution_table_import(self): + action = self.env.ref('energy_selfconsumption.action_change_distribution_table_import_wizard').read()[0] + action.update({'res_id': self.id}) + return action + + def action_create_distribution_table_import(self): + action = self.env.ref('energy_selfconsumption.create_distribution_table_wizard_action').read()[0] + inscription_ids = self.change_distribution_table_import_line_wizard_ids.filtered(lambda line: not (line.state == 'change' and line.participation_real_quantity == 0)) + action.update({'context': {'active_ids': inscription_ids.inscription_id.ids}}) + return action + +class Change_distribution_table_import_line_wizard(models.TransientModel): + _name = 'change.distribution.table.import.line.wizard' + _description = _('Change_distribution_table_import_line_wizard') + + change_distribution_table_import_wizard_id = fields.Many2one( + "change.distribution.table.import.wizard", + string="Change state inscription wizard", + required=True, + ) + + inscription_id = fields.Many2one( + "energy_selfconsumption.inscription_selfconsumption", + string="Inscription", + required=True, + ) + + state = fields.Selection(STATE_VALUES, required=True, string="Status") + + participation_real_quantity = fields.Float( + string="Participation real quantity", required=True + ) \ No newline at end of file diff --git a/energy_selfconsumption/wizards/change_distribution_table_import_wizard.xml b/energy_selfconsumption/wizards/change_distribution_table_import_wizard.xml new file mode 100644 index 0000000000000000000000000000000000000000..612ca91ce1d5e4706e88ca00b918a6cd81eb3437 --- /dev/null +++ b/energy_selfconsumption/wizards/change_distribution_table_import_wizard.xml @@ -0,0 +1,62 @@ +<?xml version="1.0" encoding="utf-8"?> +<odoo> + <data> + + <!-- View change_distribution_table_import_wizard form --> + <record id="view_change_distribution_table_import_wizard_form" model="ir.ui.view"> + <field name="name">view.change_distribution_table_import_wizard.form</field> + <field name="model">change.distribution.table.import.wizard</field> + <field name="arch" type="xml"> + <form string="Change_distribution_table_import_wizard"> + <div class="oe_title"> + <field name="state" invisible="1"/> + <field name="change_distribution_table_import_line_wizard_ids" invisible="1"> + <tree editable="bottom" create="0"> + <field name="change_distribution_table_import_wizard_id" readonly="1" force_save="1"/> + <field name="inscription_id" readonly="1" force_save="1"/> + <field name="state" readonly="1" force_save="1"/> + <field name="participation_real_quantity" readonly="1" force_save="1"/> + </tree> + </field> + <h1 attrs="{'invisible': [('state', '!=', 'old')]}">Retain old records</h1> + <h1 attrs="{'invisible': [('state', '!=', 'delete')]}">Record deregistration</h1> + <h1 attrs="{'invisible': [('state', '!=', 'change')]}">Update old records</h1> + <h1 attrs="{'invisible': [('state', '!=', 'new')]}">New registrations</h1> + <field name="change_distribution_table_import_line_wizard_views_ids" mode="tree" nolabel="1" attrs="{'invisible': [('state', '=', 'new')]}"> + <tree editable="bottom" create="0"> + <field name="inscription_id" /> + <field name="state" /> + <field name="participation_real_quantity" /> + </tree> + </field> + <field name="change_distribution_table_import_line_wizard_news_ids" attrs="{'invisible': [('state', '!=', 'new')]}"> + <tree editable="bottom" create="0"> + <field name="change_distribution_table_import_wizard_id" invisible="1" readonly="1" force_save="1"/> + <field name="inscription_id" readonly="1" force_save="1"/> + <field name="state" readonly="1" force_save="1"/> + <field name="participation_real_quantity" readonly="1" force_save="1"/> + </tree> + </field> + </div> + <footer> + <button name="next_step" type="object" string="Next step" class="oe_highlight"/> + <button name="previous_step" type="object" string="Previous step" class="oe_highlight" attrs="{'invisible': [('state', '==', 'old')]}"/> + <button special="cancel" string="Cancel"/> + </footer> + </form> + </field> + </record> + + <!-- Action change_distribution_table_import_wizard --> + <record id="action_change_distribution_table_import_wizard" model="ir.actions.act_window"> + <field name="name">Change distribution table</field> + <field name="type">ir.actions.act_window</field> + <field name="res_model">change.distribution.table.import.wizard</field> + <field name="binding_model_id" ref="model_energy_selfconsumption_inscription_selfconsumption" /> + <field name="view_mode">form</field> + <field name="target">new</field> + </record> + + </data> + +</odoo> diff --git a/energy_selfconsumption/wizards/contract_generation_wizard.py b/energy_selfconsumption/wizards/contract_generation_wizard.py index c26374151e4d167e4c680f8a17091e220358e452..4fe62e43b37959b4fe2fdf72ef112087331b54b3 100644 --- a/energy_selfconsumption/wizards/contract_generation_wizard.py +++ b/energy_selfconsumption/wizards/contract_generation_wizard.py @@ -106,10 +106,27 @@ class ContractGenerationWizard(models.TransientModel): contract_line_id.name += """\nCAU: {cau}\n""" elif self.selfconsumption_id.invoicing_mode == "power_acquired": contract_line_id.name += _( - """\nCAU: {cau}\nTotal installed nominal power (kW): {power}\nPartition coefficient: {coefficient}""" + """\nCAU: {cau} + Total installed nominal power (kW): {power} + Partition coefficient: {coefficient} + Daily nominal power acquired: {power} kWn * {coefficient} = {power_acquired} kWn/day + Days to be invoiced: {days_invoiced} days + Total amount invoiced: {days_invoiced} days * {power_acquired} kWn/day = {total_amount}\n""" ) data["power"] = self.selfconsumption_id.power data["coefficient"] = supply_point_assignation.coefficient + first_date_invoiced, last_date_invoiced, recurring_next_date = contract_line_id._get_period_to_invoice( + contract_line_id.last_date_invoiced, + contract_line_id.recurring_next_date, + ) + data["days_invoiced"] = ( + (last_date_invoiced - first_date_invoiced).days + 1 + if first_date_invoiced and last_date_invoiced + else 0 + ) + data["power_acquired"] = (round(self.selfconsumption_id.power * supply_point_assignation.coefficient, 2) + if supply_point_assignation.coefficient else 0.0) + data["total_amount"] = round(data["days_invoiced"] * data["power_acquired"], 2) contract_line_id.write( {"name": contract_line_id.name.format(**data), "main_line": True} diff --git a/energy_selfconsumption/wizards/create_distribution_table_wizard.py b/energy_selfconsumption/wizards/create_distribution_table_wizard.py index 4d604ee621cf02d48434b6e8932a39ac5f962bc6..8116275e52000984acb3856ff79fd0867649574b 100644 --- a/energy_selfconsumption/wizards/create_distribution_table_wizard.py +++ b/energy_selfconsumption/wizards/create_distribution_table_wizard.py @@ -48,6 +48,11 @@ class CreateDistributionTableWizard(models.TransientModel): string="Type distribute excess", ) + @api.onchange('distributed_power') + def _onchange_distributed_power(self): + if self.distributed_power > self.max_distributed_power or self.distributed_power <= 0: + self.distribute_excess = 'yes' + @api.model def default_get(self, default_fields): # OVERRIDE @@ -83,12 +88,6 @@ class CreateDistributionTableWizard(models.TransientModel): / default_fields["max_distributed_power"] ) * 100 - if default_fields["percentage_of_distributed_power"] == 0: - raise ValidationError(_("Your distribution percentage cannot be 0.")) - - if default_fields["percentage_of_distributed_power"] > 100: - raise ValidationError(_("Your distribution percentage cannot exceed 100%.")) - return default_fields def create_distribution_table(self): @@ -133,16 +132,28 @@ class CreateDistributionTableWizard(models.TransientModel): coefficient = inscription.participation_real_quantity if self.distribute_excess == "yes": - distribute_excess_float = ( - self.max_distributed_power - self.distributed_power - ) - - if self.type_distribute_excess == "proportional": - coefficient += distribute_excess_float * ( - inscription.participation_real_quantity / self.distributed_power + if self.distributed_power < self.max_distributed_power: + distribute_excess_float = ( + self.max_distributed_power - self.distributed_power ) + + if self.type_distribute_excess == "proportional": + coefficient += distribute_excess_float * ( + inscription.participation_real_quantity / self.distributed_power + ) + else: + coefficient += distribute_excess_float / len_inscriptions else: - coefficient += distribute_excess_float / len_inscriptions + distribute_excess_float = ( + self.distributed_power - self.max_distributed_power + ) + + if self.type_distribute_excess == "proportional": + coefficient -= distribute_excess_float * ( + inscription.participation_real_quantity / self.distributed_power + ) + else: + coefficient -= distribute_excess_float / len_inscriptions coefficient = coefficient / self.max_distributed_power diff --git a/energy_selfconsumption/wizards/create_distribution_table_wizard_views.xml b/energy_selfconsumption/wizards/create_distribution_table_wizard_views.xml index 170dbc0615a82f72b9aaf5ecbaa6c83a72066a5e..92b25e333e5d2578b2e0a45b605cac9b133b65d2 100644 --- a/energy_selfconsumption/wizards/create_distribution_table_wizard_views.xml +++ b/energy_selfconsumption/wizards/create_distribution_table_wizard_views.xml @@ -13,24 +13,18 @@ <form> <sheet> <group> + <field name="type" /> + </group> + <group attrs="{'invisible':[('type','!=','fixed')]}"> <field name="max_distributed_power" invisible="1" /> <field - name="distributed_power" - widget="progress_bar_widget" - options="{'max_quantity': 'max_distributed_power', 'extra_label': 'kWn'}" - /> - <!-- <field name="distributed_power" widget="progress_bar_widget"> - <options> - <option name="max_quantity" expr="max_distributed_power"/> - <option name="extra_label">kW</option> - </options> - </field> --> - </group> - <group> - <field name="type" /> + name="distributed_power" + widget="progress_bar_widget" + options="{'max_quantity': 'max_distributed_power', 'extra_label': 'kWn'}" + /> <field name="distribute_excess" /> </group> - <group attrs="{'invisible':[('distribute_excess','=','no')]}"> + <group attrs="{'invisible':['|',('type','!=','fixed'),('distribute_excess','=','no')]}"> <field name="type_distribute_excess" /> </group> </sheet> diff --git a/setup/energy_communities/setup.py b/setup/energy_communities/setup.py index 28c57bb640316187aaa53975c0d5c36ee4886195..3aa3a501f8f75d50d6af2369e7d3371eb42d34da 100644 --- a/setup/energy_communities/setup.py +++ b/setup/energy_communities/setup.py @@ -1,6 +1,7 @@ import setuptools setuptools.setup( + name="odoo_addon_energy_communities", setup_requires=['setuptools-odoo'], odoo_addon=True, ) diff --git a/setup/energy_communities_cooperator/setup.py b/setup/energy_communities_cooperator/setup.py index 28c57bb640316187aaa53975c0d5c36ee4886195..aa64cf6701d874f364189b0d099b47dd39737a6b 100644 --- a/setup/energy_communities_cooperator/setup.py +++ b/setup/energy_communities_cooperator/setup.py @@ -1,6 +1,7 @@ import setuptools setuptools.setup( + name="odoo_addon_energy_communities_cooperator", setup_requires=['setuptools-odoo'], odoo_addon=True, ) diff --git a/setup/energy_communities_crm/setup.py b/setup/energy_communities_crm/setup.py index 28c57bb640316187aaa53975c0d5c36ee4886195..27d506ebfdc85d588629b4120af486b42a142f20 100644 --- a/setup/energy_communities_crm/setup.py +++ b/setup/energy_communities_crm/setup.py @@ -1,6 +1,7 @@ import setuptools setuptools.setup( + name="odoo_addon_energy_communities_crm", setup_requires=['setuptools-odoo'], odoo_addon=True, ) diff --git a/setup/energy_communities_service_invoicing/odoo/addons/energy_communities_service_invoicing b/setup/energy_communities_service_invoicing/odoo/addons/energy_communities_service_invoicing new file mode 120000 index 0000000000000000000000000000000000000000..9bc8ee3e2160e895ed767627d2c24eb9cab671b9 --- /dev/null +++ b/setup/energy_communities_service_invoicing/odoo/addons/energy_communities_service_invoicing @@ -0,0 +1 @@ +../../../../energy_communities_service_invoicing \ No newline at end of file diff --git a/setup/energy_communities_service_invoicing/setup.py b/setup/energy_communities_service_invoicing/setup.py new file mode 100644 index 0000000000000000000000000000000000000000..91622926ec52d988597d6c5f4583a345ecc25b36 --- /dev/null +++ b/setup/energy_communities_service_invoicing/setup.py @@ -0,0 +1,7 @@ +import setuptools + +setuptools.setup( + name="odoo_addon_energy_communities_service_invoicing", + setup_requires=['setuptools-odoo'], + odoo_addon=True, +) diff --git a/setup/energy_selfconsumption/setup.py b/setup/energy_selfconsumption/setup.py index 28c57bb640316187aaa53975c0d5c36ee4886195..cf27aff3d073643c7da1233744ccd1e61adf4ac7 100644 --- a/setup/energy_selfconsumption/setup.py +++ b/setup/energy_selfconsumption/setup.py @@ -1,6 +1,7 @@ import setuptools setuptools.setup( + name="odoo_addon_energy_selfconsumption", setup_requires=['setuptools-odoo'], odoo_addon=True, )