diff --git a/mpf_general/README.rst b/mpf_general/README.rst new file mode 100644 index 0000000..4dc5dd7 --- /dev/null +++ b/mpf_general/README.rst @@ -0,0 +1,29 @@ +.. image:: https://img.shields.io/badge/license-AGPL--3-blue.png + :target: https://www.gnu.org/licenses/agpl + :alt: License: AGPL-3 + +=========== +Mpf general +=========== + +* Customized new objects. + +Bug Tracker +=========== + +Bugs are tracked on `GitHub Issues +`_. In case of trouble, +please check there if your issue has already been reported. If you spotted +it first, help us smash it by providing detailed and welcomed feedback. + +Do not contact contributors directly about support or help with technical issues. + + +Credits +======= + +Contributors +~~~~~~~~~~~~ + +* Ana Juaristi +* Alfredo de la Fuente diff --git a/mpf_general/__init__.py b/mpf_general/__init__.py new file mode 100644 index 0000000..0650744 --- /dev/null +++ b/mpf_general/__init__.py @@ -0,0 +1 @@ +from . import models diff --git a/mpf_general/__manifest__.py b/mpf_general/__manifest__.py new file mode 100644 index 0000000..3dd8fe5 --- /dev/null +++ b/mpf_general/__manifest__.py @@ -0,0 +1,16 @@ +# Copyright 2025 Alfredo de la Fuente - AvanzOSC +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). +{ + "name": "MPF General", + "summary": "Personalizaciones Odoo para MP Fluids", + "version": "18.0.1.0.0", + "category": "Custom Module", + "license": "AGPL-3", + "author": "AvanzOSC", + "website": "https://github.com/avanzosc/custom-addons", + "depends": ["base", "purchase"], + "data": [ + "views/purchase_order_views.xml", + "views/res_partner_views.xml", + ], +} diff --git a/mpf_general/i18n/en_GB.po b/mpf_general/i18n/en_GB.po new file mode 100644 index 0000000..b47ff21 --- /dev/null +++ b/mpf_general/i18n/en_GB.po @@ -0,0 +1,248 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * mpf_general +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 18.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2026-01-08 13:00+0000\n" +"PO-Revision-Date: 2026-01-08 13:00+0000\n" +"Last-Translator: \n" +"Language-Team: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: \n" + +#. module: mpf_general +#: model:ir.model.fields,field_description:mpf_general.field_x_comunidad_autonoma__message_needaction +msgid "Action Needed" +msgstr "" + +#. module: mpf_general +#: model:ir.model.fields,field_description:mpf_general.field_x_comunidad_autonoma__activity_ids +msgid "Activities" +msgstr "" + +#. module: mpf_general +#: model:ir.model.fields,field_description:mpf_general.field_x_comunidad_autonoma__activity_exception_decoration +msgid "Activity Exception Decoration" +msgstr "" + +#. module: mpf_general +#: model:ir.model.fields,field_description:mpf_general.field_x_comunidad_autonoma__activity_state +msgid "Activity State" +msgstr "" + +#. module: mpf_general +#: model:ir.model.fields,field_description:mpf_general.field_x_comunidad_autonoma__activity_type_icon +msgid "Activity Type Icon" +msgstr "" + +#. module: mpf_general +#: model:ir.model.fields,field_description:mpf_general.field_x_comunidad_autonoma__x_active +msgid "Activo" +msgstr "" + +#. module: mpf_general +#: model:ir.model.fields,field_description:mpf_general.field_x_comunidad_autonoma__message_attachment_count +msgid "Attachment Count" +msgstr "" + +#. module: mpf_general +#: model:ir.model.fields,field_description:mpf_general.field_purchase_order__comunidad_autonoma_nombre +#: model:ir.model.fields,field_description:mpf_general.field_res_country_state__x_studio_many2one_field_SUgeq +#: model:ir.model.fields,field_description:mpf_general.field_res_partner__x_studio_comunidad_autnoma +#: model:ir.model.fields,field_description:mpf_general.field_res_users__x_studio_comunidad_autnoma +msgid "Comunidad autónoma" +msgstr "" + +#. module: mpf_general +#: model:ir.model,name:mpf_general.model_x_comunidad_autonoma +msgid "Comunidades autónomas" +msgstr "" + +#. module: mpf_general +#: model:ir.model,name:mpf_general.model_res_partner +msgid "Contact" +msgstr "" + +#. module: mpf_general +#: model:ir.model,name:mpf_general.model_res_country_state +msgid "Country state" +msgstr "" + +#. module: mpf_general +#: model:ir.model.fields,field_description:mpf_general.field_x_comunidad_autonoma__create_uid +msgid "Created by" +msgstr "" + +#. module: mpf_general +#: model:ir.model.fields,field_description:mpf_general.field_x_comunidad_autonoma__create_date +msgid "Created on" +msgstr "" + +#. module: mpf_general +#: model:ir.model.fields,field_description:mpf_general.field_x_comunidad_autonoma__display_name +msgid "Display Name" +msgstr "" + +#. module: mpf_general +#: model:ir.model.fields,field_description:mpf_general.field_x_comunidad_autonoma__message_follower_ids +msgid "Followers" +msgstr "" + +#. module: mpf_general +#: model:ir.model.fields,field_description:mpf_general.field_x_comunidad_autonoma__message_partner_ids +msgid "Followers (Partners)" +msgstr "" + +#. module: mpf_general +#: model:ir.model.fields,help:mpf_general.field_x_comunidad_autonoma__activity_type_icon +msgid "Font awesome icon e.g. fa-tasks" +msgstr "" + +#. module: mpf_general +#: model:ir.model.fields,field_description:mpf_general.field_x_comunidad_autonoma__has_message +msgid "Has Message" +msgstr "" + +#. module: mpf_general +#: model:ir.model.fields,field_description:mpf_general.field_x_comunidad_autonoma__id +msgid "ID" +msgstr "" + +#. module: mpf_general +#: model:ir.model.fields,field_description:mpf_general.field_x_comunidad_autonoma__activity_exception_icon +msgid "Icon" +msgstr "" + +#. module: mpf_general +#: model:ir.model.fields,help:mpf_general.field_x_comunidad_autonoma__activity_exception_icon +msgid "Icon to indicate an exception activity." +msgstr "" + +#. module: mpf_general +#: model:ir.model.fields,help:mpf_general.field_x_comunidad_autonoma__message_needaction +msgid "If checked, new messages require your attention." +msgstr "" + +#. module: mpf_general +#: model:ir.model.fields,help:mpf_general.field_x_comunidad_autonoma__message_has_error +msgid "If checked, some messages have a delivery error." +msgstr "" + +#. module: mpf_general +#: model:ir.model.fields,field_description:mpf_general.field_x_comunidad_autonoma__message_is_follower +msgid "Is Follower" +msgstr "" + +#. module: mpf_general +#: model:ir.model.fields,field_description:mpf_general.field_x_comunidad_autonoma__write_uid +msgid "Last Updated by" +msgstr "" + +#. module: mpf_general +#: model:ir.model.fields,field_description:mpf_general.field_x_comunidad_autonoma__write_date +msgid "Last Updated on" +msgstr "" + +#. module: mpf_general +#: model:ir.model.fields,field_description:mpf_general.field_x_comunidad_autonoma__message_has_error +msgid "Message Delivery error" +msgstr "" + +#. module: mpf_general +#: model:ir.model.fields,field_description:mpf_general.field_x_comunidad_autonoma__message_ids +msgid "Messages" +msgstr "" + +#. module: mpf_general +#: model:ir.model.fields,field_description:mpf_general.field_x_comunidad_autonoma__my_activity_date_deadline +msgid "My Activity Deadline" +msgstr "" + +#. module: mpf_general +#: model:ir.model.fields,field_description:mpf_general.field_x_comunidad_autonoma__activity_calendar_event_id +msgid "Next Activity Calendar Event" +msgstr "" + +#. module: mpf_general +#: model:ir.model.fields,field_description:mpf_general.field_x_comunidad_autonoma__activity_date_deadline +msgid "Next Activity Deadline" +msgstr "" + +#. module: mpf_general +#: model:ir.model.fields,field_description:mpf_general.field_x_comunidad_autonoma__activity_summary +msgid "Next Activity Summary" +msgstr "" + +#. module: mpf_general +#: model:ir.model.fields,field_description:mpf_general.field_x_comunidad_autonoma__activity_type_id +msgid "Next Activity Type" +msgstr "" + +#. module: mpf_general +#: model:ir.model.fields,field_description:mpf_general.field_x_comunidad_autonoma__x_name +msgid "Nombre" +msgstr "" + +#. module: mpf_general +#: model:ir.model.fields,field_description:mpf_general.field_x_comunidad_autonoma__message_needaction_counter +msgid "Number of Actions" +msgstr "" + +#. module: mpf_general +#: model:ir.model.fields,field_description:mpf_general.field_x_comunidad_autonoma__message_has_error_counter +msgid "Number of errors" +msgstr "" + +#. module: mpf_general +#: model:ir.model.fields,help:mpf_general.field_x_comunidad_autonoma__message_needaction_counter +msgid "Number of messages requiring action" +msgstr "" + +#. module: mpf_general +#: model:ir.model.fields,help:mpf_general.field_x_comunidad_autonoma__message_has_error_counter +msgid "Number of messages with delivery error" +msgstr "" + +#. module: mpf_general +#: model:ir.model,name:mpf_general.model_purchase_order +msgid "Purchase Order" +msgstr "" + +#. module: mpf_general +#: model:ir.model.fields,field_description:mpf_general.field_x_comunidad_autonoma__activity_user_id +msgid "Responsible User" +msgstr "" + +#. module: mpf_general +#: model:ir.model.fields,field_description:mpf_general.field_x_comunidad_autonoma__x_studio_sequence +msgid "Secuencia" +msgstr "" + +#. module: mpf_general +#: model:ir.model.fields,help:mpf_general.field_x_comunidad_autonoma__activity_state +msgid "" +"Status based on activities\n" +"Overdue: Due date is already passed\n" +"Today: Activity date is today\n" +"Planned: Future activities." +msgstr "" + +#. module: mpf_general +#: model:ir.model.fields,help:mpf_general.field_x_comunidad_autonoma__activity_exception_decoration +msgid "Type of the exception activity on record." +msgstr "" + +#. module: mpf_general +#: model:ir.model.fields,field_description:mpf_general.field_x_comunidad_autonoma__website_message_ids +msgid "Website Messages" +msgstr "" + +#. module: mpf_general +#: model:ir.model.fields,help:mpf_general.field_x_comunidad_autonoma__website_message_ids +msgid "Website communication history" +msgstr "" diff --git a/mpf_general/i18n/es.po b/mpf_general/i18n/es.po new file mode 100644 index 0000000..cd3047d --- /dev/null +++ b/mpf_general/i18n/es.po @@ -0,0 +1,252 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * mpf_general +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 18.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2026-01-08 13:00+0000\n" +"PO-Revision-Date: 2026-01-08 13:00+0000\n" +"Last-Translator: \n" +"Language-Team: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: \n" + +#. module: mpf_general +#: model:ir.model.fields,field_description:mpf_general.field_x_comunidad_autonoma__message_needaction +msgid "Action Needed" +msgstr "Acción requerida" + +#. module: mpf_general +#: model:ir.model.fields,field_description:mpf_general.field_x_comunidad_autonoma__activity_ids +msgid "Activities" +msgstr "Actividades" + +#. module: mpf_general +#: model:ir.model.fields,field_description:mpf_general.field_x_comunidad_autonoma__activity_exception_decoration +msgid "Activity Exception Decoration" +msgstr "Decoración de Actividad de Excepción" + +#. module: mpf_general +#: model:ir.model.fields,field_description:mpf_general.field_x_comunidad_autonoma__activity_state +msgid "Activity State" +msgstr "Estado actividad" + +#. module: mpf_general +#: model:ir.model.fields,field_description:mpf_general.field_x_comunidad_autonoma__activity_type_icon +msgid "Activity Type Icon" +msgstr "Icono de tipo de actividad" + +#. module: mpf_general +#: model:ir.model.fields,field_description:mpf_general.field_x_comunidad_autonoma__x_active +msgid "Activo" +msgstr "Activo" + +#. module: mpf_general +#: model:ir.model.fields,field_description:mpf_general.field_x_comunidad_autonoma__message_attachment_count +msgid "Attachment Count" +msgstr "Número de archivos adjuntos" + +#. module: mpf_general +#: model:ir.model.fields,field_description:mpf_general.field_purchase_order__comunidad_autonoma_nombre +#: model:ir.model.fields,field_description:mpf_general.field_res_country_state__x_studio_many2one_field_SUgeq +#: model:ir.model.fields,field_description:mpf_general.field_res_partner__x_studio_comunidad_autnoma +#: model:ir.model.fields,field_description:mpf_general.field_res_users__x_studio_comunidad_autnoma +msgid "Comunidad autónoma" +msgstr "Comunidad autónoma" + +#. module: mpf_general +#: model:ir.model,name:mpf_general.model_x_comunidad_autonoma +msgid "Comunidades autónomas" +msgstr "Comunidades autónomas" + +#. module: mpf_general +#: model:ir.model,name:mpf_general.model_res_partner +msgid "Contact" +msgstr "Contacto" + +#. module: mpf_general +#: model:ir.model,name:mpf_general.model_res_country_state +msgid "Country state" +msgstr "Provincia del país" + +#. module: mpf_general +#: model:ir.model.fields,field_description:mpf_general.field_x_comunidad_autonoma__create_uid +msgid "Created by" +msgstr "Creado por" + +#. module: mpf_general +#: model:ir.model.fields,field_description:mpf_general.field_x_comunidad_autonoma__create_date +msgid "Created on" +msgstr "Creado el" + +#. module: mpf_general +#: model:ir.model.fields,field_description:mpf_general.field_x_comunidad_autonoma__display_name +msgid "Display Name" +msgstr "Mostar nombre" + +#. module: mpf_general +#: model:ir.model.fields,field_description:mpf_general.field_x_comunidad_autonoma__message_follower_ids +msgid "Followers" +msgstr "Seguidores" + +#. module: mpf_general +#: model:ir.model.fields,field_description:mpf_general.field_x_comunidad_autonoma__message_partner_ids +msgid "Followers (Partners)" +msgstr "Seguidores (Contactos)" + +#. module: mpf_general +#: model:ir.model.fields,help:mpf_general.field_x_comunidad_autonoma__activity_type_icon +msgid "Font awesome icon e.g. fa-tasks" +msgstr "Icono de Font Awesome p. ej. fa-tasks" + +#. module: mpf_general +#: model:ir.model.fields,field_description:mpf_general.field_x_comunidad_autonoma__has_message +msgid "Has Message" +msgstr "Tiene un mensaje" + +#. module: mpf_general +#: model:ir.model.fields,field_description:mpf_general.field_x_comunidad_autonoma__id +msgid "ID" +msgstr "" + +#. module: mpf_general +#: model:ir.model.fields,field_description:mpf_general.field_x_comunidad_autonoma__activity_exception_icon +msgid "Icon" +msgstr "Icono" + +#. module: mpf_general +#: model:ir.model.fields,help:mpf_general.field_x_comunidad_autonoma__activity_exception_icon +msgid "Icon to indicate an exception activity." +msgstr "Icono para indicar una actividad de excepción." + +#. module: mpf_general +#: model:ir.model.fields,help:mpf_general.field_x_comunidad_autonoma__message_needaction +msgid "If checked, new messages require your attention." +msgstr "Si está marcada, hay nuevos mensajes que requieren su atención." + +#. module: mpf_general +#: model:ir.model.fields,help:mpf_general.field_x_comunidad_autonoma__message_has_error +msgid "If checked, some messages have a delivery error." +msgstr "Si está marcada, algunos mensajes tienen error de envío." + +#. module: mpf_general +#: model:ir.model.fields,field_description:mpf_general.field_x_comunidad_autonoma__message_is_follower +msgid "Is Follower" +msgstr "Es un seguidor" + +#. module: mpf_general +#: model:ir.model.fields,field_description:mpf_general.field_x_comunidad_autonoma__write_uid +msgid "Last Updated by" +msgstr "Última actualización por" + +#. module: mpf_general +#: model:ir.model.fields,field_description:mpf_general.field_x_comunidad_autonoma__write_date +msgid "Last Updated on" +msgstr "Últim actualización el" + +#. module: mpf_general +#: model:ir.model.fields,field_description:mpf_general.field_x_comunidad_autonoma__message_has_error +msgid "Message Delivery error" +msgstr "Error de envío de mensaje" + +#. module: mpf_general +#: model:ir.model.fields,field_description:mpf_general.field_x_comunidad_autonoma__message_ids +msgid "Messages" +msgstr "Mensajes" + +#. module: mpf_general +#: model:ir.model.fields,field_description:mpf_general.field_x_comunidad_autonoma__my_activity_date_deadline +msgid "My Activity Deadline" +msgstr "Fecha límite de mi actividad" + +#. module: mpf_general +#: model:ir.model.fields,field_description:mpf_general.field_x_comunidad_autonoma__activity_calendar_event_id +msgid "Next Activity Calendar Event" +msgstr "Siguiente evento en el calendario de actividades." + +#. module: mpf_general +#: model:ir.model.fields,field_description:mpf_general.field_x_comunidad_autonoma__activity_date_deadline +msgid "Next Activity Deadline" +msgstr "Fecha límite de la siguiente actividad" + +#. module: mpf_general +#: model:ir.model.fields,field_description:mpf_general.field_x_comunidad_autonoma__activity_summary +msgid "Next Activity Summary" +msgstr "Resumen de la siguiente actividad" + +#. module: mpf_general +#: model:ir.model.fields,field_description:mpf_general.field_x_comunidad_autonoma__activity_type_id +msgid "Next Activity Type" +msgstr "Tipo de la siguiente actividad" + +#. module: mpf_general +#: model:ir.model.fields,field_description:mpf_general.field_x_comunidad_autonoma__x_name +msgid "Nombre" +msgstr "Nombre" + +#. module: mpf_general +#: model:ir.model.fields,field_description:mpf_general.field_x_comunidad_autonoma__message_needaction_counter +msgid "Number of Actions" +msgstr "Número de acciones" + +#. module: mpf_general +#: model:ir.model.fields,field_description:mpf_general.field_x_comunidad_autonoma__message_has_error_counter +msgid "Number of errors" +msgstr "Número de errores" + +#. module: mpf_general +#: model:ir.model.fields,help:mpf_general.field_x_comunidad_autonoma__message_needaction_counter +msgid "Number of messages requiring action" +msgstr "Número de mensajes que requieren una acción" + +#. module: mpf_general +#: model:ir.model.fields,help:mpf_general.field_x_comunidad_autonoma__message_has_error_counter +msgid "Number of messages with delivery error" +msgstr "Número de mensajes con error de envío" + +#. module: mpf_general +#: model:ir.model,name:mpf_general.model_purchase_order +msgid "Purchase Order" +msgstr "Pedido de compra" + +#. module: mpf_general +#: model:ir.model.fields,field_description:mpf_general.field_x_comunidad_autonoma__activity_user_id +msgid "Responsible User" +msgstr "Usuario responsable" + +#. module: mpf_general +#: model:ir.model.fields,field_description:mpf_general.field_x_comunidad_autonoma__x_studio_sequence +msgid "Secuencia" +msgstr "Secuencia" + +#. module: mpf_general +#: model:ir.model.fields,help:mpf_general.field_x_comunidad_autonoma__activity_state +msgid "" +"Status based on activities\n" +"Overdue: Due date is already passed\n" +"Today: Activity date is today\n" +"Planned: Future activities." +msgstr "" +"Estado basado en actividades\n" +"Vencida: la fecha límite ya ha pasado\n" +"Hoy: la fecha límite es hoy\n" +"Planificada: actividades futuras." + +#. module: mpf_general +#: model:ir.model.fields,help:mpf_general.field_x_comunidad_autonoma__activity_exception_decoration +msgid "Type of the exception activity on record." +msgstr "Tipo de actividad de excepción en el registro." + +#. module: mpf_general +#: model:ir.model.fields,field_description:mpf_general.field_x_comunidad_autonoma__website_message_ids +msgid "Website Messages" +msgstr "Mensajes del sitio web" + +#. module: mpf_general +#: model:ir.model.fields,help:mpf_general.field_x_comunidad_autonoma__website_message_ids +msgid "Website communication history" +msgstr "Historial de comunicación del sitio web" diff --git a/mpf_general/i18n/mpf_general.pot b/mpf_general/i18n/mpf_general.pot new file mode 100644 index 0000000..b47ff21 --- /dev/null +++ b/mpf_general/i18n/mpf_general.pot @@ -0,0 +1,248 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * mpf_general +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 18.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2026-01-08 13:00+0000\n" +"PO-Revision-Date: 2026-01-08 13:00+0000\n" +"Last-Translator: \n" +"Language-Team: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: \n" + +#. module: mpf_general +#: model:ir.model.fields,field_description:mpf_general.field_x_comunidad_autonoma__message_needaction +msgid "Action Needed" +msgstr "" + +#. module: mpf_general +#: model:ir.model.fields,field_description:mpf_general.field_x_comunidad_autonoma__activity_ids +msgid "Activities" +msgstr "" + +#. module: mpf_general +#: model:ir.model.fields,field_description:mpf_general.field_x_comunidad_autonoma__activity_exception_decoration +msgid "Activity Exception Decoration" +msgstr "" + +#. module: mpf_general +#: model:ir.model.fields,field_description:mpf_general.field_x_comunidad_autonoma__activity_state +msgid "Activity State" +msgstr "" + +#. module: mpf_general +#: model:ir.model.fields,field_description:mpf_general.field_x_comunidad_autonoma__activity_type_icon +msgid "Activity Type Icon" +msgstr "" + +#. module: mpf_general +#: model:ir.model.fields,field_description:mpf_general.field_x_comunidad_autonoma__x_active +msgid "Activo" +msgstr "" + +#. module: mpf_general +#: model:ir.model.fields,field_description:mpf_general.field_x_comunidad_autonoma__message_attachment_count +msgid "Attachment Count" +msgstr "" + +#. module: mpf_general +#: model:ir.model.fields,field_description:mpf_general.field_purchase_order__comunidad_autonoma_nombre +#: model:ir.model.fields,field_description:mpf_general.field_res_country_state__x_studio_many2one_field_SUgeq +#: model:ir.model.fields,field_description:mpf_general.field_res_partner__x_studio_comunidad_autnoma +#: model:ir.model.fields,field_description:mpf_general.field_res_users__x_studio_comunidad_autnoma +msgid "Comunidad autónoma" +msgstr "" + +#. module: mpf_general +#: model:ir.model,name:mpf_general.model_x_comunidad_autonoma +msgid "Comunidades autónomas" +msgstr "" + +#. module: mpf_general +#: model:ir.model,name:mpf_general.model_res_partner +msgid "Contact" +msgstr "" + +#. module: mpf_general +#: model:ir.model,name:mpf_general.model_res_country_state +msgid "Country state" +msgstr "" + +#. module: mpf_general +#: model:ir.model.fields,field_description:mpf_general.field_x_comunidad_autonoma__create_uid +msgid "Created by" +msgstr "" + +#. module: mpf_general +#: model:ir.model.fields,field_description:mpf_general.field_x_comunidad_autonoma__create_date +msgid "Created on" +msgstr "" + +#. module: mpf_general +#: model:ir.model.fields,field_description:mpf_general.field_x_comunidad_autonoma__display_name +msgid "Display Name" +msgstr "" + +#. module: mpf_general +#: model:ir.model.fields,field_description:mpf_general.field_x_comunidad_autonoma__message_follower_ids +msgid "Followers" +msgstr "" + +#. module: mpf_general +#: model:ir.model.fields,field_description:mpf_general.field_x_comunidad_autonoma__message_partner_ids +msgid "Followers (Partners)" +msgstr "" + +#. module: mpf_general +#: model:ir.model.fields,help:mpf_general.field_x_comunidad_autonoma__activity_type_icon +msgid "Font awesome icon e.g. fa-tasks" +msgstr "" + +#. module: mpf_general +#: model:ir.model.fields,field_description:mpf_general.field_x_comunidad_autonoma__has_message +msgid "Has Message" +msgstr "" + +#. module: mpf_general +#: model:ir.model.fields,field_description:mpf_general.field_x_comunidad_autonoma__id +msgid "ID" +msgstr "" + +#. module: mpf_general +#: model:ir.model.fields,field_description:mpf_general.field_x_comunidad_autonoma__activity_exception_icon +msgid "Icon" +msgstr "" + +#. module: mpf_general +#: model:ir.model.fields,help:mpf_general.field_x_comunidad_autonoma__activity_exception_icon +msgid "Icon to indicate an exception activity." +msgstr "" + +#. module: mpf_general +#: model:ir.model.fields,help:mpf_general.field_x_comunidad_autonoma__message_needaction +msgid "If checked, new messages require your attention." +msgstr "" + +#. module: mpf_general +#: model:ir.model.fields,help:mpf_general.field_x_comunidad_autonoma__message_has_error +msgid "If checked, some messages have a delivery error." +msgstr "" + +#. module: mpf_general +#: model:ir.model.fields,field_description:mpf_general.field_x_comunidad_autonoma__message_is_follower +msgid "Is Follower" +msgstr "" + +#. module: mpf_general +#: model:ir.model.fields,field_description:mpf_general.field_x_comunidad_autonoma__write_uid +msgid "Last Updated by" +msgstr "" + +#. module: mpf_general +#: model:ir.model.fields,field_description:mpf_general.field_x_comunidad_autonoma__write_date +msgid "Last Updated on" +msgstr "" + +#. module: mpf_general +#: model:ir.model.fields,field_description:mpf_general.field_x_comunidad_autonoma__message_has_error +msgid "Message Delivery error" +msgstr "" + +#. module: mpf_general +#: model:ir.model.fields,field_description:mpf_general.field_x_comunidad_autonoma__message_ids +msgid "Messages" +msgstr "" + +#. module: mpf_general +#: model:ir.model.fields,field_description:mpf_general.field_x_comunidad_autonoma__my_activity_date_deadline +msgid "My Activity Deadline" +msgstr "" + +#. module: mpf_general +#: model:ir.model.fields,field_description:mpf_general.field_x_comunidad_autonoma__activity_calendar_event_id +msgid "Next Activity Calendar Event" +msgstr "" + +#. module: mpf_general +#: model:ir.model.fields,field_description:mpf_general.field_x_comunidad_autonoma__activity_date_deadline +msgid "Next Activity Deadline" +msgstr "" + +#. module: mpf_general +#: model:ir.model.fields,field_description:mpf_general.field_x_comunidad_autonoma__activity_summary +msgid "Next Activity Summary" +msgstr "" + +#. module: mpf_general +#: model:ir.model.fields,field_description:mpf_general.field_x_comunidad_autonoma__activity_type_id +msgid "Next Activity Type" +msgstr "" + +#. module: mpf_general +#: model:ir.model.fields,field_description:mpf_general.field_x_comunidad_autonoma__x_name +msgid "Nombre" +msgstr "" + +#. module: mpf_general +#: model:ir.model.fields,field_description:mpf_general.field_x_comunidad_autonoma__message_needaction_counter +msgid "Number of Actions" +msgstr "" + +#. module: mpf_general +#: model:ir.model.fields,field_description:mpf_general.field_x_comunidad_autonoma__message_has_error_counter +msgid "Number of errors" +msgstr "" + +#. module: mpf_general +#: model:ir.model.fields,help:mpf_general.field_x_comunidad_autonoma__message_needaction_counter +msgid "Number of messages requiring action" +msgstr "" + +#. module: mpf_general +#: model:ir.model.fields,help:mpf_general.field_x_comunidad_autonoma__message_has_error_counter +msgid "Number of messages with delivery error" +msgstr "" + +#. module: mpf_general +#: model:ir.model,name:mpf_general.model_purchase_order +msgid "Purchase Order" +msgstr "" + +#. module: mpf_general +#: model:ir.model.fields,field_description:mpf_general.field_x_comunidad_autonoma__activity_user_id +msgid "Responsible User" +msgstr "" + +#. module: mpf_general +#: model:ir.model.fields,field_description:mpf_general.field_x_comunidad_autonoma__x_studio_sequence +msgid "Secuencia" +msgstr "" + +#. module: mpf_general +#: model:ir.model.fields,help:mpf_general.field_x_comunidad_autonoma__activity_state +msgid "" +"Status based on activities\n" +"Overdue: Due date is already passed\n" +"Today: Activity date is today\n" +"Planned: Future activities." +msgstr "" + +#. module: mpf_general +#: model:ir.model.fields,help:mpf_general.field_x_comunidad_autonoma__activity_exception_decoration +msgid "Type of the exception activity on record." +msgstr "" + +#. module: mpf_general +#: model:ir.model.fields,field_description:mpf_general.field_x_comunidad_autonoma__website_message_ids +msgid "Website Messages" +msgstr "" + +#. module: mpf_general +#: model:ir.model.fields,help:mpf_general.field_x_comunidad_autonoma__website_message_ids +msgid "Website communication history" +msgstr "" diff --git a/mpf_general/models/__init__.py b/mpf_general/models/__init__.py new file mode 100644 index 0000000..7b09532 --- /dev/null +++ b/mpf_general/models/__init__.py @@ -0,0 +1,4 @@ +from . import purchase_order +from . import res_partner +from . import comunidad_autonoma +from . import res_country_state diff --git a/mpf_general/models/comunidad_autonoma.py b/mpf_general/models/comunidad_autonoma.py new file mode 100644 index 0000000..8284775 --- /dev/null +++ b/mpf_general/models/comunidad_autonoma.py @@ -0,0 +1,13 @@ +# Copyright 2025 Alfredo de la Fuente - AvanzOSC +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). +from odoo import fields, models + + +class ComunidadAutonoma(models.Model): + _name = "x_comunidad_autonoma" + _description = "Comunidades autónomas" + _inherit = ["mail.thread", "mail.activity.mixin"] + + x_name = fields.Char("Nombre", required=True, index=True) + x_active = fields.Boolean("Activo") + x_studio_sequence = fields.Integer("Secuencia") diff --git a/mpf_general/models/purchase_order.py b/mpf_general/models/purchase_order.py new file mode 100644 index 0000000..ad00a09 --- /dev/null +++ b/mpf_general/models/purchase_order.py @@ -0,0 +1,13 @@ +# Copyright 2025 Alfredo de la Fuente - AvanzOSC +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). +from odoo import fields, models + + +class PurchaseOrder(models.Model): + _inherit = "purchase.order" + + comunidad_autonoma_nombre = fields.Many2one( + "x_comunidad_autonoma", + "Comunidad autónoma", + related="partner_id.x_studio_comunidad_autnoma", + ) diff --git a/mpf_general/models/res_country_state.py b/mpf_general/models/res_country_state.py new file mode 100644 index 0000000..db9fce9 --- /dev/null +++ b/mpf_general/models/res_country_state.py @@ -0,0 +1,11 @@ +# Copyright 2025 Alfredo de la Fuente - AvanzOSC +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). +from odoo import fields, models + + +class State(models.Model): + _inherit = "res.country.state" + + x_studio_many2one_field_SUgeq = fields.Many2one( + "x_comunidad_autonoma", "Comunidad autónoma", index=True, ondelete="restrict" + ) diff --git a/mpf_general/models/res_partner.py b/mpf_general/models/res_partner.py new file mode 100644 index 0000000..933f78d --- /dev/null +++ b/mpf_general/models/res_partner.py @@ -0,0 +1,18 @@ +# Copyright 2025 Alfredo de la Fuente - AvanzOSC +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). +from odoo import fields, models + + +class ResPartner(models.Model): + _inherit = "res.partner" + + # ************************************************************************* + # ¡! OJO + # * Campos x_studio se deben mantener exactamente igual a cómo los creó el + # * cliente con Studio para evitar pérdidas o duplicidades de datos + # ******************************************************************************* + x_studio_comunidad_autnoma = fields.Many2one( + "x_comunidad_autonoma", + "Comunidad autónoma", + related="state_id.x_studio_many2one_field_SUgeq", + ) diff --git a/mpf_general/pyproject.toml b/mpf_general/pyproject.toml new file mode 100644 index 0000000..4231d0c --- /dev/null +++ b/mpf_general/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["whool"] +build-backend = "whool.buildapi" diff --git a/mpf_general/views/purchase_order_views.xml b/mpf_general/views/purchase_order_views.xml new file mode 100644 index 0000000..2c0bec0 --- /dev/null +++ b/mpf_general/views/purchase_order_views.xml @@ -0,0 +1,17 @@ + + + + mp.view.purchase.order.filter + purchase.order + + + + + + + + + diff --git a/mpf_general/views/res_partner_views.xml b/mpf_general/views/res_partner_views.xml new file mode 100644 index 0000000..b2f1a34 --- /dev/null +++ b/mpf_general/views/res_partner_views.xml @@ -0,0 +1,14 @@ + + + + mpfluids.base.view.partner.form + res.partner + + 100 + + + + + + +