From e1f9d0a8f90bbb06dbcfd00b19a2490c67278cd7 Mon Sep 17 00:00:00 2001 From: Marcel Savegnago Date: Wed, 5 Mar 2025 11:58:33 -0300 Subject: [PATCH] Revert "[14.0][ADD] bi_sql_editor_mis_builder: add new module" --- bi_sql_editor_mis_builder/README.rst | 103 ---- bi_sql_editor_mis_builder/__init__.py | 1 - bi_sql_editor_mis_builder/__manifest__.py | 21 - .../data/bi_sql_mis_builder_line_cron.xml | 18 - .../i18n/bi_sql_editor_mis_builder.pot | 154 ------ bi_sql_editor_mis_builder/i18n/pt_BR.po | 157 ------ bi_sql_editor_mis_builder/models/__init__.py | 3 - .../models/bi_sql_mis_builder_line.py | 49 -- .../models/bi_sql_view.py | 103 ---- .../models/mis_report.py | 48 -- .../readme/CONTRIBUTORS.rst | 4 - .../readme/DESCRIPTION.rst | 1 - bi_sql_editor_mis_builder/readme/USAGE.rst | 36 -- .../security/ir.model.access.csv | 3 - .../static/description/icon.png | Bin 2873 -> 0 bytes .../static/description/index.html | 460 ------------------ .../views/bi_sql_mis_builder_line.xml | 42 -- .../views/bi_sql_view.xml | 33 -- .../views/mis_report.xml | 21 - .../odoo/addons/bi_sql_editor_mis_builder | 1 - setup/bi_sql_editor_mis_builder/setup.py | 6 - 21 files changed, 1264 deletions(-) delete mode 100644 bi_sql_editor_mis_builder/README.rst delete mode 100644 bi_sql_editor_mis_builder/__init__.py delete mode 100644 bi_sql_editor_mis_builder/__manifest__.py delete mode 100644 bi_sql_editor_mis_builder/data/bi_sql_mis_builder_line_cron.xml delete mode 100644 bi_sql_editor_mis_builder/i18n/bi_sql_editor_mis_builder.pot delete mode 100644 bi_sql_editor_mis_builder/i18n/pt_BR.po delete mode 100644 bi_sql_editor_mis_builder/models/__init__.py delete mode 100644 bi_sql_editor_mis_builder/models/bi_sql_mis_builder_line.py delete mode 100644 bi_sql_editor_mis_builder/models/bi_sql_view.py delete mode 100644 bi_sql_editor_mis_builder/models/mis_report.py delete mode 100644 bi_sql_editor_mis_builder/readme/CONTRIBUTORS.rst delete mode 100644 bi_sql_editor_mis_builder/readme/DESCRIPTION.rst delete mode 100644 bi_sql_editor_mis_builder/readme/USAGE.rst delete mode 100644 bi_sql_editor_mis_builder/security/ir.model.access.csv delete mode 100644 bi_sql_editor_mis_builder/static/description/icon.png delete mode 100644 bi_sql_editor_mis_builder/static/description/index.html delete mode 100644 bi_sql_editor_mis_builder/views/bi_sql_mis_builder_line.xml delete mode 100644 bi_sql_editor_mis_builder/views/bi_sql_view.xml delete mode 100644 bi_sql_editor_mis_builder/views/mis_report.xml delete mode 120000 setup/bi_sql_editor_mis_builder/odoo/addons/bi_sql_editor_mis_builder delete mode 100644 setup/bi_sql_editor_mis_builder/setup.py diff --git a/bi_sql_editor_mis_builder/README.rst b/bi_sql_editor_mis_builder/README.rst deleted file mode 100644 index f86daba..0000000 --- a/bi_sql_editor_mis_builder/README.rst +++ /dev/null @@ -1,103 +0,0 @@ -========================= -BI SQL Editor MIS Builder -========================= - -.. - !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! - !! This file is generated by oca-gen-addon-readme !! - !! changes will be overwritten. !! - !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! - !! source digest: sha256:7e72f704b68e1a9e6f00a118d61e8c595eca44f605fb912f6345339e4c145409 - !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! - -.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png - :target: https://odoo-community.org/page/development-status - :alt: Beta -.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png - :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html - :alt: License: AGPL-3 -.. |badge3| image:: https://img.shields.io/badge/github-Escodoo%2Faccount--addons-lightgray.png?logo=github - :target: https://github.com/Escodoo/account-addons/tree/14.0/bi_sql_editor_mis_builder - :alt: Escodoo/account-addons - -|badge1| |badge2| |badge3| - -This module make the BI SQL Editor query models compatible with MIS Builder. - -**Table of contents** - -.. contents:: - :local: - -Usage -===== - -To use this module, you need to: - -Create a query with SQL BI Editor: - -- Use the BI SQL Editor to create your query. -- Make sure your query includes the required fields: `x_credit`, `x_debit`, `x_account_id`, `x_date` and `x_company_id`. -- Optionally, you can include the `x_analytic_account_id` field for analytical account support. - -Field Requirements: - -- `x_credit`: Must have type float. -- `x_debit`: Must have type float. -- `x_date`: Must have the date type. -- `x_account_id`: Must have the type many2one and be associated with the `account.account` model. -- `x_company_id`: Must have the type many2one and be associated with the `res.company` model. -- `x_analytic_account_id` (optional): Must have the type many2one and be associated with the `account.analytic.account` model. - -Activate MIS Builder in the query model: - -- Once your query meets the above requirements, click the “Activate MIS Builder” button. -- This will signal that the query should be used in the "Update BI SQL MIS Builder rows" cron. -- Refreshing materialized view will also create new lines in the model (if there are new lines). - -Remove MIS Builder in the query model: - -- If you no longer need MIS Builder compatibility, click the "Remove MIS Builder" button. -- This will delete the rows and columns related to your BI SQL model. - -Create MIS Builder report: - -- When creating a MIS Builder Report, select "BI SQL MIS Builder Line" as the source. -- Afterwards, select the BI SQL View you want to use (The view must have MIS Builder activated). -- When creating kpis for this report, you can use MIS expressions to filter the fields in your query. -- To do this, it is necessary to use the name of the BI SQL View. -- Example: `bal[][('x_bi_sql_view_mis.x_name', '=', 'test')]`. -- This will filter out the lines in your query that have the `x_name` field with "test" as the value. - -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 to smash it by providing a detailed and welcomed -`feedback `_. - -Do not contact contributors directly about support or help with technical issues. - -Credits -======= - -Authors -~~~~~~~ - -* Escodoo - -Contributors -~~~~~~~~~~~~ - -* `Escodoo `_: - - * Marcel Savegnago - * Wesley Oliveira - -Maintainers -~~~~~~~~~~~ - -This module is part of the `Escodoo/account-addons `_ project on GitHub. - -You are welcome to contribute. diff --git a/bi_sql_editor_mis_builder/__init__.py b/bi_sql_editor_mis_builder/__init__.py deleted file mode 100644 index 0650744..0000000 --- a/bi_sql_editor_mis_builder/__init__.py +++ /dev/null @@ -1 +0,0 @@ -from . import models diff --git a/bi_sql_editor_mis_builder/__manifest__.py b/bi_sql_editor_mis_builder/__manifest__.py deleted file mode 100644 index 8c4917c..0000000 --- a/bi_sql_editor_mis_builder/__manifest__.py +++ /dev/null @@ -1,21 +0,0 @@ -# Copyright 2025 - TODAY, Escodoo -# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). - -{ - "name": "BI SQL Editor MIS Builder", - "summary": """ - Integrate BI SQL Editor to MIS Builder""", - "version": "14.0.1.0.0", - "license": "AGPL-3", - "author": "Escodoo", - "website": "https://github.com/Escodoo/account-addons", - "depends": ["bi_sql_editor", "mis_builder"], - "data": [ - "views/bi_sql_mis_builder_line.xml", - "views/bi_sql_view.xml", - "views/mis_report.xml", - "security/ir.model.access.csv", - "data/bi_sql_mis_builder_line_cron.xml", - ], - "demo": [], -} diff --git a/bi_sql_editor_mis_builder/data/bi_sql_mis_builder_line_cron.xml b/bi_sql_editor_mis_builder/data/bi_sql_mis_builder_line_cron.xml deleted file mode 100644 index 6a0d393..0000000 --- a/bi_sql_editor_mis_builder/data/bi_sql_mis_builder_line_cron.xml +++ /dev/null @@ -1,18 +0,0 @@ - - - - - - Refresh BI SQL MIS Builder Lines - - code - model._create_bi_sql_mis_builder_lines() - - 1 - days - -1 - - - - diff --git a/bi_sql_editor_mis_builder/i18n/bi_sql_editor_mis_builder.pot b/bi_sql_editor_mis_builder/i18n/bi_sql_editor_mis_builder.pot deleted file mode 100644 index 71d575b..0000000 --- a/bi_sql_editor_mis_builder/i18n/bi_sql_editor_mis_builder.pot +++ /dev/null @@ -1,154 +0,0 @@ -# Translation of Odoo Server. -# This file contains the translation of the following modules: -# * bi_sql_editor_mis_builder -# -msgid "" -msgstr "" -"Project-Id-Version: Odoo Server 14.0\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-02-03 13:07+0000\n" -"PO-Revision-Date: 2025-02-03 13:07+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: bi_sql_editor_mis_builder -#: model:ir.model.fields,field_description:bi_sql_editor_mis_builder.field_bi_sql_mis_builder_line__account_id -msgid "Account" -msgstr "" - -#. module: bi_sql_editor_mis_builder -#: model_terms:ir.ui.view,arch_db:bi_sql_editor_mis_builder.view_bi_sql_view_form -msgid "Activate MIS Builder" -msgstr "" - -#. module: bi_sql_editor_mis_builder -#: model:ir.model.fields,field_description:bi_sql_editor_mis_builder.field_bi_sql_mis_builder_line__analytic_account_id -msgid "Analytic Account" -msgstr "" - -#. module: bi_sql_editor_mis_builder -#: model:ir.model,name:bi_sql_editor_mis_builder.model_bi_sql_mis_builder_line -msgid "BI SQL MIS Builder Line" -msgstr "" - -#. module: bi_sql_editor_mis_builder -#: model:ir.model,name:bi_sql_editor_mis_builder.model_bi_sql_view -#: model:ir.model.fields,field_description:bi_sql_editor_mis_builder.field_mis_report__bi_sql_view -#: model:ir.model.fields,field_description:bi_sql_editor_mis_builder.field_mis_report_instance__bi_sql_view -msgid "BI SQL View" -msgstr "Visão SQL BI" - -#. module: bi_sql_editor_mis_builder -#: model:ir.model.fields,field_description:bi_sql_editor_mis_builder.field_bi_sql_mis_builder_line__bi_sql_model -msgid "Bi Sql Model" -msgstr "" - -#. module: bi_sql_editor_mis_builder -#: model:ir.model.fields,field_description:bi_sql_editor_mis_builder.field_mis_report__bi_sql_view_required -msgid "Bi Sql View Required" -msgstr "" - -#. module: bi_sql_editor_mis_builder -#: model:ir.model.fields,field_description:bi_sql_editor_mis_builder.field_bi_sql_mis_builder_line__company_id -msgid "Company" -msgstr "" - -#. module: bi_sql_editor_mis_builder -#: model:ir.model.fields,field_description:bi_sql_editor_mis_builder.field_bi_sql_mis_builder_line__create_uid -msgid "Created by" -msgstr "" - -#. module: bi_sql_editor_mis_builder -#: model:ir.model.fields,field_description:bi_sql_editor_mis_builder.field_bi_sql_mis_builder_line__create_date -msgid "Created on" -msgstr "" - -#. module: bi_sql_editor_mis_builder -#: model:ir.model.fields,field_description:bi_sql_editor_mis_builder.field_bi_sql_mis_builder_line__credit -msgid "Credit" -msgstr "" - -#. module: bi_sql_editor_mis_builder -#: model:ir.model.fields,field_description:bi_sql_editor_mis_builder.field_bi_sql_mis_builder_line__date -msgid "Date" -msgstr "" - -#. module: bi_sql_editor_mis_builder -#: model:ir.model.fields,field_description:bi_sql_editor_mis_builder.field_bi_sql_mis_builder_line__debit -msgid "Debit" -msgstr "" - -#. module: bi_sql_editor_mis_builder -#: model:ir.model.fields,field_description:bi_sql_editor_mis_builder.field_bi_sql_mis_builder_line__display_name -#: model:ir.model.fields,field_description:bi_sql_editor_mis_builder.field_bi_sql_view__display_name -#: model:ir.model.fields,field_description:bi_sql_editor_mis_builder.field_mis_report__display_name -#: model:ir.model.fields,field_description:bi_sql_editor_mis_builder.field_mis_report_instance__display_name -msgid "Display Name" -msgstr "Nome para Mostrar" - -#. module: bi_sql_editor_mis_builder -#: model:ir.model.fields,field_description:bi_sql_editor_mis_builder.field_bi_sql_mis_builder_line__id -#: model:ir.model.fields,field_description:bi_sql_editor_mis_builder.field_bi_sql_view__id -#: model:ir.model.fields,field_description:bi_sql_editor_mis_builder.field_mis_report__id -#: model:ir.model.fields,field_description:bi_sql_editor_mis_builder.field_mis_report_instance__id -msgid "ID" -msgstr "" - -#. module: bi_sql_editor_mis_builder -#: model:ir.model.fields,field_description:bi_sql_editor_mis_builder.field_bi_sql_mis_builder_line____last_update -#: model:ir.model.fields,field_description:bi_sql_editor_mis_builder.field_bi_sql_view____last_update -#: model:ir.model.fields,field_description:bi_sql_editor_mis_builder.field_mis_report____last_update -#: model:ir.model.fields,field_description:bi_sql_editor_mis_builder.field_mis_report_instance____last_update -msgid "Last Modified on" -msgstr "Última atualização em" - -#. module: bi_sql_editor_mis_builder -#: model:ir.model.fields,field_description:bi_sql_editor_mis_builder.field_bi_sql_mis_builder_line__write_uid -msgid "Last Updated by" -msgstr "" - -#. module: bi_sql_editor_mis_builder -#: model:ir.model.fields,field_description:bi_sql_editor_mis_builder.field_bi_sql_mis_builder_line__write_date -msgid "Last Updated on" -msgstr "" - -#. module: bi_sql_editor_mis_builder -#: model:ir.model,name:bi_sql_editor_mis_builder.model_mis_report_instance -msgid "MIS Report Instance" -msgstr "Instância de Relatório SIG" - -#. module: bi_sql_editor_mis_builder -#: model:ir.model,name:bi_sql_editor_mis_builder.model_mis_report -msgid "MIS Report Template" -msgstr "Modelo do Relatório SIG" - -#. module: bi_sql_editor_mis_builder -#: model:ir.model.fields,field_description:bi_sql_editor_mis_builder.field_bi_sql_view__mis_builder_activated -msgid "Mis Builder Activated" -msgstr "" - -#. module: bi_sql_editor_mis_builder -#: model:ir.model.fields,field_description:bi_sql_editor_mis_builder.field_bi_sql_view__mis_builder_compatible -msgid "Mis Builder Compatible" -msgstr "" - -#. module: bi_sql_editor_mis_builder -#: model:ir.actions.server,name:bi_sql_editor_mis_builder.bi_sql_mis_builder_line_cron_ir_actions_server -#: model:ir.cron,cron_name:bi_sql_editor_mis_builder.bi_sql_mis_builder_line_cron -#: model:ir.cron,name:bi_sql_editor_mis_builder.bi_sql_mis_builder_line_cron -msgid "Refresh BI SQL MIS Builder Lines" -msgstr "" - -#. module: bi_sql_editor_mis_builder -#: model_terms:ir.ui.view,arch_db:bi_sql_editor_mis_builder.view_bi_sql_view_form -msgid "Remove MIS Builder" -msgstr "" - -#. module: bi_sql_editor_mis_builder -#: model:ir.model.fields,field_description:bi_sql_editor_mis_builder.field_bi_sql_mis_builder_line__res_id -msgid "Res" -msgstr "" diff --git a/bi_sql_editor_mis_builder/i18n/pt_BR.po b/bi_sql_editor_mis_builder/i18n/pt_BR.po deleted file mode 100644 index 99ef11b..0000000 --- a/bi_sql_editor_mis_builder/i18n/pt_BR.po +++ /dev/null @@ -1,157 +0,0 @@ -# Translation of Odoo Server. -# This file contains the translation of the following modules: -# * bi_sql_editor_mis_builder -# -# Translators: -# Wesley Oliveira , 2025 -# -msgid "" -msgstr "" -"Project-Id-Version: Odoo Server 14.0\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-02-03 13:07+0000\n" -"PO-Revision-Date: 2025-02-03 13:07+0000\n" -"Last-Translator: Wesley Oliveira, 2025" -"Language-Team: \n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: \n" -"Plural-Forms: \n" - -#. module: bi_sql_editor_mis_builder -#: model:ir.model.fields,field_description:bi_sql_editor_mis_builder.field_bi_sql_mis_builder_line__account_id -msgid "Account" -msgstr "Conta Financeira" - -#. module: bi_sql_editor_mis_builder -#: model_terms:ir.ui.view,arch_db:bi_sql_editor_mis_builder.view_bi_sql_view_form -msgid "Activate MIS Builder" -msgstr "Ativar MIS Builder" - -#. module: bi_sql_editor_mis_builder -#: model:ir.model.fields,field_description:bi_sql_editor_mis_builder.field_bi_sql_mis_builder_line__analytic_account_id -msgid "Analytic Account" -msgstr "Conta Analítica" - -#. module: bi_sql_editor_mis_builder -#: model:ir.model,name:bi_sql_editor_mis_builder.model_bi_sql_mis_builder_line -msgid "BI SQL MIS Builder Line" -msgstr "Linha do SQL BI para MIS Builder" - -#. module: bi_sql_editor_mis_builder -#: model:ir.model,name:bi_sql_editor_mis_builder.model_bi_sql_view -#: model:ir.model.fields,field_description:bi_sql_editor_mis_builder.field_mis_report__bi_sql_view -#: model:ir.model.fields,field_description:bi_sql_editor_mis_builder.field_mis_report_instance__bi_sql_view -msgid "BI SQL View" -msgstr "Visão SQL BI" - -#. module: bi_sql_editor_mis_builder -#: model:ir.model.fields,field_description:bi_sql_editor_mis_builder.field_bi_sql_mis_builder_line__bi_sql_model -msgid "Bi Sql Model" -msgstr "Modelo SQL BI" - -#. module: bi_sql_editor_mis_builder -#: model:ir.model.fields,field_description:bi_sql_editor_mis_builder.field_mis_report__bi_sql_view_required -msgid "Bi Sql View Required" -msgstr "Visão SQL BI Obrigatório" - -#. module: bi_sql_editor_mis_builder -#: model:ir.model.fields,field_description:bi_sql_editor_mis_builder.field_bi_sql_mis_builder_line__company_id -msgid "Company" -msgstr "Empresa" - -#. module: bi_sql_editor_mis_builder -#: model:ir.model.fields,field_description:bi_sql_editor_mis_builder.field_bi_sql_mis_builder_line__create_uid -msgid "Created by" -msgstr "Criado por" - -#. module: bi_sql_editor_mis_builder -#: model:ir.model.fields,field_description:bi_sql_editor_mis_builder.field_bi_sql_mis_builder_line__create_date -msgid "Created on" -msgstr "Criado em" - -#. module: bi_sql_editor_mis_builder -#: model:ir.model.fields,field_description:bi_sql_editor_mis_builder.field_bi_sql_mis_builder_line__credit -msgid "Credit" -msgstr "Crédito" - -#. module: bi_sql_editor_mis_builder -#: model:ir.model.fields,field_description:bi_sql_editor_mis_builder.field_bi_sql_mis_builder_line__date -msgid "Date" -msgstr "Data" - -#. module: bi_sql_editor_mis_builder -#: model:ir.model.fields,field_description:bi_sql_editor_mis_builder.field_bi_sql_mis_builder_line__debit -msgid "Debit" -msgstr "Débito" - -#. module: bi_sql_editor_mis_builder -#: model:ir.model.fields,field_description:bi_sql_editor_mis_builder.field_bi_sql_mis_builder_line__display_name -#: model:ir.model.fields,field_description:bi_sql_editor_mis_builder.field_bi_sql_view__display_name -#: model:ir.model.fields,field_description:bi_sql_editor_mis_builder.field_mis_report__display_name -#: model:ir.model.fields,field_description:bi_sql_editor_mis_builder.field_mis_report_instance__display_name -msgid "Display Name" -msgstr "Nome para Mostrar" - -#. module: bi_sql_editor_mis_builder -#: model:ir.model.fields,field_description:bi_sql_editor_mis_builder.field_bi_sql_mis_builder_line__id -#: model:ir.model.fields,field_description:bi_sql_editor_mis_builder.field_bi_sql_view__id -#: model:ir.model.fields,field_description:bi_sql_editor_mis_builder.field_mis_report__id -#: model:ir.model.fields,field_description:bi_sql_editor_mis_builder.field_mis_report_instance__id -msgid "ID" -msgstr "ID" - -#. module: bi_sql_editor_mis_builder -#: model:ir.model.fields,field_description:bi_sql_editor_mis_builder.field_bi_sql_mis_builder_line____last_update -#: model:ir.model.fields,field_description:bi_sql_editor_mis_builder.field_bi_sql_view____last_update -#: model:ir.model.fields,field_description:bi_sql_editor_mis_builder.field_mis_report____last_update -#: model:ir.model.fields,field_description:bi_sql_editor_mis_builder.field_mis_report_instance____last_update -msgid "Last Modified on" -msgstr "Última modificação em" - -#. module: bi_sql_editor_mis_builder -#: model:ir.model.fields,field_description:bi_sql_editor_mis_builder.field_bi_sql_mis_builder_line__write_uid -msgid "Last Updated by" -msgstr "Última atualização por" - -#. module: bi_sql_editor_mis_builder -#: model:ir.model.fields,field_description:bi_sql_editor_mis_builder.field_bi_sql_mis_builder_line__write_date -msgid "Last Updated on" -msgstr "Última atualização em" - -#. module: bi_sql_editor_mis_builder -#: model:ir.model,name:bi_sql_editor_mis_builder.model_mis_report_instance -msgid "MIS Report Instance" -msgstr "Instância de Relatório SIG" - -#. module: bi_sql_editor_mis_builder -#: model:ir.model,name:bi_sql_editor_mis_builder.model_mis_report -msgid "MIS Report Template" -msgstr "Modelo do Relatório SIG" - -#. module: bi_sql_editor_mis_builder -#: model:ir.model.fields,field_description:bi_sql_editor_mis_builder.field_bi_sql_view__mis_builder_activated -msgid "Mis Builder Activated" -msgstr "MIS Builder Ativado" - -#. module: bi_sql_editor_mis_builder -#: model:ir.model.fields,field_description:bi_sql_editor_mis_builder.field_bi_sql_view__mis_builder_compatible -msgid "Mis Builder Compatible" -msgstr "Compatível com MIS Builder" - -#. module: bi_sql_editor_mis_builder -#: model:ir.actions.server,name:bi_sql_editor_mis_builder.bi_sql_mis_builder_line_cron_ir_actions_server -#: model:ir.cron,cron_name:bi_sql_editor_mis_builder.bi_sql_mis_builder_line_cron -#: model:ir.cron,name:bi_sql_editor_mis_builder.bi_sql_mis_builder_line_cron -msgid "Refresh BI SQL MIS Builder Lines" -msgstr "Refrescar Linhas SQL BI para MIS Builder" - -#. module: bi_sql_editor_mis_builder -#: model_terms:ir.ui.view,arch_db:bi_sql_editor_mis_builder.view_bi_sql_view_form -msgid "Remove MIS Builder" -msgstr "Remover MIS Builder" - -#. module: bi_sql_editor_mis_builder -#: model:ir.model.fields,field_description:bi_sql_editor_mis_builder.field_bi_sql_mis_builder_line__res_id -msgid "Res" -msgstr "Res" diff --git a/bi_sql_editor_mis_builder/models/__init__.py b/bi_sql_editor_mis_builder/models/__init__.py deleted file mode 100644 index 4be7654..0000000 --- a/bi_sql_editor_mis_builder/models/__init__.py +++ /dev/null @@ -1,3 +0,0 @@ -from . import bi_sql_mis_builder_line -from . import bi_sql_view -from . import mis_report diff --git a/bi_sql_editor_mis_builder/models/bi_sql_mis_builder_line.py b/bi_sql_editor_mis_builder/models/bi_sql_mis_builder_line.py deleted file mode 100644 index 05838db..0000000 --- a/bi_sql_editor_mis_builder/models/bi_sql_mis_builder_line.py +++ /dev/null @@ -1,49 +0,0 @@ -# Copyright 2025 - TODAY, Wesley Oliveira -# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). - -from odoo import fields, models - - -class BiSQLMisBuilderLine(models.Model): - _name = "bi.sql.mis.builder.line" - _description = "BI SQL MIS Builder Line" - - credit = fields.Float() - debit = fields.Float() - account_id = fields.Many2one(comodel_name="account.account") - date = fields.Date() - company_id = fields.Many2one(comodel_name="res.company") - analytic_account_id = fields.Many2one(comodel_name="account.analytic.account") - bi_sql_model = fields.Many2one(comodel_name="ir.model") - res_id = fields.Integer() - - def _create_bi_sql_mis_builder_lines(self): - sql_view_ids = self.env["bi.sql.view"].search( - [ - ("mis_builder_compatible", "=", True), - ("mis_builder_activated", "=", True), - ] - ) - for sql_view in sql_view_ids: - res = self.env[sql_view.model_id.model].search([]) - for line in res: - sql_mis_line = self.env["bi.sql.mis.builder.line"].search( - [ - ("bi_sql_model", "=", sql_view.model_id.id), - ("res_id", "=", line.id), - ], - limit=1, - ) - if not sql_mis_line: - vals = { - "credit": line.x_credit, - "debit": line.x_debit, - "account_id": line.x_account_id.id, - "date": line.x_date, - "company_id": line.x_company_id.id, - "analytic_account_id": line.x_analytic_account_id.id or False, - "bi_sql_model": sql_view.model_id.id, - "res_id": line.id, - } - vals[sql_view.view_name] = line.id - self.create(vals) diff --git a/bi_sql_editor_mis_builder/models/bi_sql_view.py b/bi_sql_editor_mis_builder/models/bi_sql_view.py deleted file mode 100644 index db1be85..0000000 --- a/bi_sql_editor_mis_builder/models/bi_sql_view.py +++ /dev/null @@ -1,103 +0,0 @@ -# Copyright 2025 - TODAY, Wesley Oliveira -# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). - -from odoo import api, fields, models - - -class BiSQLView(models.Model): - - _inherit = "bi.sql.view" - - mis_builder_compatible = fields.Boolean( - compute="_compute_mis_builder_compatible", - default=False, - ) - mis_builder_activated = fields.Boolean(default=False) - - @api.depends() - def _compute_mis_builder_compatible(self): - compatible = True - model_sql_fields = self.bi_sql_view_field_ids - credit_field = model_sql_fields.filtered( - lambda x: x.name == "x_credit" and x.ttype == "float" - ) - debit_field = model_sql_fields.filtered( - lambda x: x.name == "x_debit" and x.ttype == "float" - ) - account_field = model_sql_fields.filtered( - lambda x: x.name == "x_account_id" and x.ttype == "many2one" - ) - date_field = model_sql_fields.filtered( - lambda x: x.name == "x_date" and x.ttype == "date" - ) - company_field = model_sql_fields.filtered( - lambda x: x.name == "x_company_id" and x.ttype == "many2one" - ) - analytic_account_field = model_sql_fields.filtered( - lambda x: x.name == "x_analytic_account_id" and x.ttype == "many2one" - ) - - if ( - not credit_field - or not debit_field - or not account_field - or account_field.many2one_model_id.model != "account.account" - or not date_field - or not company_field - or company_field.many2one_model_id.model != "res.company" - or ( - analytic_account_field - and analytic_account_field.many2one_model_id.model - != "account.analytic.account" - ) - ): - compatible = False - - self.mis_builder_compatible = compatible - - def activate_mis_builder(self): - if self.mis_builder_compatible: - model_id = ( - self.env["ir.model"] - .search([("model", "=", "bi.sql.mis.builder.line")]) - .id - ) - self.env["ir.model.fields"].create( - { - "name": self.view_name, - "model_id": model_id, - "state": "manual", - "ttype": "many2one", - "relation": self.model_name, - } - ) - self.mis_builder_activated = True - - def remove_mis_builder(self): - if self.mis_builder_compatible and self.mis_builder_activated: - model_id = ( - self.env["ir.model"] - .search([("model", "=", "bi.sql.mis.builder.line")]) - .id - ) - self.env["ir.model.fields"].search( - [ - ("name", "=", self.view_name), - ("model_id", "=", model_id), - ] - ).unlink() - self.env["bi.sql.mis.builder.line"].search( - [("bi_sql_model", "=", self.model_id.id)] - ).unlink() - self.mis_builder_activated = False - - def button_set_draft(self): - if self.mis_builder_activated: - self.remove_mis_builder() - return super().button_set_draft() - - def button_refresh_materialized_view(self): - super().button_refresh_materialized_view() - if self.mis_builder_activated: - model = self.env["bi.sql.mis.builder.line"] - model._create_bi_sql_mis_builder_lines() diff --git a/bi_sql_editor_mis_builder/models/mis_report.py b/bi_sql_editor_mis_builder/models/mis_report.py deleted file mode 100644 index d2c9e81..0000000 --- a/bi_sql_editor_mis_builder/models/mis_report.py +++ /dev/null @@ -1,48 +0,0 @@ -# Copyright 2025 - TODAY, Wesley Oliveira -# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). - -from odoo import api, fields, models - - -class MisReport(models.Model): - - _inherit = "mis.report" - - bi_sql_view = fields.Many2one( - string="BI SQL View", - comodel_name="bi.sql.view", - domain=[("mis_builder_activated", "=", True)], - ) - bi_sql_view_required = fields.Boolean( - default=False, compute="_compute_bi_sql_view_required" - ) - - @api.depends("move_lines_source") - def _compute_bi_sql_view_required(self): - for record in self: - model_id = ( - self.env["ir.model"] - .search([("model", "=", "bi.sql.mis.builder.line")]) - .id - ) - record.bi_sql_view_required = record.move_lines_source.id == model_id - - -class MisReportInstance(models.Model): - - _inherit = "mis.report.instance" - - bi_sql_view = fields.Many2one( - string="BI SQL View", - comodel_name="bi.sql.view", - related="report_id.bi_sql_view", - ) - - def _context_with_filters(self): - context = super()._context_with_filters() - if self.bi_sql_view: - context["mis_report_filters"]["bi_sql_model"] = { - "value": self.bi_sql_view.model_id.id, - "operator": "=", - } - return context diff --git a/bi_sql_editor_mis_builder/readme/CONTRIBUTORS.rst b/bi_sql_editor_mis_builder/readme/CONTRIBUTORS.rst deleted file mode 100644 index bc15bdc..0000000 --- a/bi_sql_editor_mis_builder/readme/CONTRIBUTORS.rst +++ /dev/null @@ -1,4 +0,0 @@ -* `Escodoo `_: - - * Marcel Savegnago - * Wesley Oliveira diff --git a/bi_sql_editor_mis_builder/readme/DESCRIPTION.rst b/bi_sql_editor_mis_builder/readme/DESCRIPTION.rst deleted file mode 100644 index c004166..0000000 --- a/bi_sql_editor_mis_builder/readme/DESCRIPTION.rst +++ /dev/null @@ -1 +0,0 @@ -This module make the BI SQL Editor query models compatible with MIS Builder. diff --git a/bi_sql_editor_mis_builder/readme/USAGE.rst b/bi_sql_editor_mis_builder/readme/USAGE.rst deleted file mode 100644 index c60b613..0000000 --- a/bi_sql_editor_mis_builder/readme/USAGE.rst +++ /dev/null @@ -1,36 +0,0 @@ -To use this module, you need to: - -Create a query with SQL BI Editor: - -- Use the BI SQL Editor to create your query. -- Make sure your query includes the required fields: `x_credit`, `x_debit`, `x_account_id`, `x_date` and `x_company_id`. -- Optionally, you can include the `x_analytic_account_id` field for analytical account support. - -Field Requirements: - -- `x_credit`: Must have type float. -- `x_debit`: Must have type float. -- `x_date`: Must have the date type. -- `x_account_id`: Must have the type many2one and be associated with the `account.account` model. -- `x_company_id`: Must have the type many2one and be associated with the `res.company` model. -- `x_analytic_account_id` (optional): Must have the type many2one and be associated with the `account.analytic.account` model. - -Activate MIS Builder in the query model: - -- Once your query meets the above requirements, click the “Activate MIS Builder” button. -- This will signal that the query should be used in the "Update BI SQL MIS Builder rows" cron. -- Refreshing materialized view will also create new lines in the model (if there are new lines). - -Remove MIS Builder in the query model: - -- If you no longer need MIS Builder compatibility, click the "Remove MIS Builder" button. -- This will delete the rows and columns related to your BI SQL model. - -Create MIS Builder report: - -- When creating a MIS Builder Report, select "BI SQL MIS Builder Line" as the source. -- Afterwards, select the BI SQL View you want to use (The view must have MIS Builder activated). -- When creating kpis for this report, you can use MIS expressions to filter the fields in your query. -- To do this, it is necessary to use the name of the BI SQL View. -- Example: `bal[][('x_bi_sql_view_mis.x_name', '=', 'test')]`. -- This will filter out the lines in your query that have the `x_name` field with "test" as the value. diff --git a/bi_sql_editor_mis_builder/security/ir.model.access.csv b/bi_sql_editor_mis_builder/security/ir.model.access.csv deleted file mode 100644 index 238d19d..0000000 --- a/bi_sql_editor_mis_builder/security/ir.model.access.csv +++ /dev/null @@ -1,3 +0,0 @@ -id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink -access_bi_sql_mis_builder_line,access_bi_sql_mis_builder_line,model_bi_sql_mis_builder_line,base.group_user,1,0,0,0 -manage_bi_sql_mis_builder_line,manage_bi_sql_mis_builder_line,model_bi_sql_mis_builder_line,account.group_account_manager,1,1,1,1 diff --git a/bi_sql_editor_mis_builder/static/description/icon.png b/bi_sql_editor_mis_builder/static/description/icon.png deleted file mode 100644 index 12ab0051e3b9ac413f0f0016b7cff54f02fc763e..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2873 zcmV-93&!+`P)`uGecH7++*a9tqf=D4K3Mya}O@tpzNQ@yQCf@Kr zF!+nnKqBHT7^8%kXfz5&3vvk;1t}w7Z?N*D?A{ zHrd_G%z4iDJn#2;p6~mP`2CNcJjDNjrs?X8sbe)Nav^9t4K(ppCb-d2d)&lZ>k%SMT{9YBg-a+&W{!hd#wDr8Wl{eXS z*$7*96lqpl{PUr=s8^hIiDg}g*f5f1&&S6&>%w7_k{mf$=0jJV!9`c@;PA^Op1%JL zjvcP7X-sQIgb*+?KF9@EjIw?AMgZbC#&KNql%Q6tlgni}^ZZSmdHyEeJ2=g=55CEv zmnMkgHHh!qH~xB6FC&#;=S7>@bLA+-%~=4VD8ltxIF5^^DFQzvj6#%BWV03ng*-|r z04k*>&p&>cm!5nFzZI@poU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TdKUiy XXqTGI$C0NT00000NkvXXu0mjf?G|(} diff --git a/bi_sql_editor_mis_builder/static/description/index.html b/bi_sql_editor_mis_builder/static/description/index.html deleted file mode 100644 index cd5daee..0000000 --- a/bi_sql_editor_mis_builder/static/description/index.html +++ /dev/null @@ -1,460 +0,0 @@ - - - - - - -BI SQL Editor MIS Builder - - - -
-

BI SQL Editor MIS Builder

- - -

Beta License: AGPL-3 Escodoo/account-addons

-

This module make the BI SQL Editor query models compatible with MIS Builder.

-

Table of contents

- -
-

Usage

-

To use this module, you need to:

-

Create a query with SQL BI Editor:

-
    -
  • Use the BI SQL Editor to create your query.
  • -
  • Make sure your query includes the required fields: x_credit, x_debit, x_account_id, x_date and x_company_id.
  • -
  • Optionally, you can include the x_analytic_account_id field for analytical account support.
  • -
-

Field Requirements:

-
    -
  • x_credit: Must have type float.
  • -
  • x_debit: Must have type float.
  • -
  • x_date: Must have the date type.
  • -
  • x_account_id: Must have the type many2one and be associated with the account.account model.
  • -
  • x_company_id: Must have the type many2one and be associated with the res.company model.
  • -
  • x_analytic_account_id (optional): Must have the type many2one and be associated with the account.analytic.account model.
  • -
-

Activate MIS Builder in the query model:

-
    -
  • Once your query meets the above requirements, click the “Activate MIS Builder” button.
  • -
  • This will signal that the query should be used in the “Update BI SQL MIS Builder rows” cron.
  • -
  • Refreshing materialized view will also create new lines in the model (if there are new lines).
  • -
-

Remove MIS Builder in the query model:

-
    -
  • If you no longer need MIS Builder compatibility, click the “Remove MIS Builder” button.
  • -
  • This will delete the rows and columns related to your BI SQL model.
  • -
-

Create MIS Builder report:

-
    -
  • When creating a MIS Builder Report, select “BI SQL MIS Builder Line” as the source.
  • -
  • Afterwards, select the BI SQL View you want to use (The view must have MIS Builder activated).
  • -
  • When creating kpis for this report, you can use MIS expressions to filter the fields in your query.
  • -
  • To do this, it is necessary to use the name of the BI SQL View.
  • -
  • Example: bal[][(‘x_bi_sql_view_mis.x_name’, ‘=’, ‘test’)].
  • -
  • This will filter out the lines in your query that have the x_name field with “test” as the value.
  • -
-
-
-

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 to smash it by providing a detailed and welcomed -feedback.

-

Do not contact contributors directly about support or help with technical issues.

-
-
-

Credits

-
-

Authors

-
    -
  • Escodoo
  • -
-
-
-

Contributors

- -
-
-

Maintainers

-

This module is part of the Escodoo/account-addons project on GitHub.

-

You are welcome to contribute.

-
-
-
- - diff --git a/bi_sql_editor_mis_builder/views/bi_sql_mis_builder_line.xml b/bi_sql_editor_mis_builder/views/bi_sql_mis_builder_line.xml deleted file mode 100644 index 761be36..0000000 --- a/bi_sql_editor_mis_builder/views/bi_sql_mis_builder_line.xml +++ /dev/null @@ -1,42 +0,0 @@ - - - - - - bi.sql.mis.builder.line.form - bi.sql.mis.builder.line - -
- - - - - - - - - - - - -
-
-
- - - bi.sql.mis.builder.line.tree - bi.sql.mis.builder.line - - - - - - - - - - - - -
diff --git a/bi_sql_editor_mis_builder/views/bi_sql_view.xml b/bi_sql_editor_mis_builder/views/bi_sql_view.xml deleted file mode 100644 index 335ec6d..0000000 --- a/bi_sql_editor_mis_builder/views/bi_sql_view.xml +++ /dev/null @@ -1,33 +0,0 @@ - - - - - - bi.sql.view.form (in bi_sql_editor_mis_builder) - bi.sql.view - - -
-
- - - - - -
- -
diff --git a/bi_sql_editor_mis_builder/views/mis_report.xml b/bi_sql_editor_mis_builder/views/mis_report.xml deleted file mode 100644 index 8d1f1ed..0000000 --- a/bi_sql_editor_mis_builder/views/mis_report.xml +++ /dev/null @@ -1,21 +0,0 @@ - - - - - - mis.report.view.form (in bi_sql_editor_mis_builder) - mis.report - - - - - - - - - - diff --git a/setup/bi_sql_editor_mis_builder/odoo/addons/bi_sql_editor_mis_builder b/setup/bi_sql_editor_mis_builder/odoo/addons/bi_sql_editor_mis_builder deleted file mode 120000 index b6658b3..0000000 --- a/setup/bi_sql_editor_mis_builder/odoo/addons/bi_sql_editor_mis_builder +++ /dev/null @@ -1 +0,0 @@ -../../../../bi_sql_editor_mis_builder \ No newline at end of file diff --git a/setup/bi_sql_editor_mis_builder/setup.py b/setup/bi_sql_editor_mis_builder/setup.py deleted file mode 100644 index 28c57bb..0000000 --- a/setup/bi_sql_editor_mis_builder/setup.py +++ /dev/null @@ -1,6 +0,0 @@ -import setuptools - -setuptools.setup( - setup_requires=['setuptools-odoo'], - odoo_addon=True, -)