From a8a08d72112c22a2ab18210e3d53d226d09571a7 Mon Sep 17 00:00:00 2001 From: Flectra Community Bot Date: Fri, 8 Nov 2024 08:12:33 +0100 Subject: [PATCH] Automatic Update form OCA2FC Migrator --- README.md | 2 +- mis_builder_budget/README.rst | 2 +- mis_builder_budget/__manifest__.py | 2 +- mis_builder_budget/i18n/it.po | 8 ++++---- mis_builder_budget/models/mis_budget_by_account.py | 2 +- mis_builder_budget/models/mis_budget_by_account_item.py | 6 +++--- mis_builder_budget/static/description/index.html | 2 +- 7 files changed, 12 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index 01cc1b5..1de087d 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ Available addons addon | version | summary --- | --- | --- -[mis_builder_budget](mis_builder_budget/) | 3.0.1.1.0| Create budgets for MIS reports +[mis_builder_budget](mis_builder_budget/) | 3.0.1.2.0| Create budgets for MIS reports [mis_builder_demo](mis_builder_demo/) | 3.0.1.0.0| Demo addon for MIS Builder [mis_builder](mis_builder/) | 3.0.1.0.1| Build 'Management Information System' Reports and Dashboards diff --git a/mis_builder_budget/README.rst b/mis_builder_budget/README.rst index 51579a3..3254a82 100644 --- a/mis_builder_budget/README.rst +++ b/mis_builder_budget/README.rst @@ -7,7 +7,7 @@ MIS Builder Budget !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! - !! source digest: sha256:da466f77b5606d5eaa518b43c8b7478dd433bc91f82e18a842a099871c63c578 + !! source digest: sha256:b49fe673329ce72edaf0467f04f6fe7b06edc9e82a11c22b5a57071407a0521c !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! .. |badge1| image:: https://img.shields.io/badge/maturity-Production%2FStable-green.png diff --git a/mis_builder_budget/__manifest__.py b/mis_builder_budget/__manifest__.py index 65af309..bcad12a 100644 --- a/mis_builder_budget/__manifest__.py +++ b/mis_builder_budget/__manifest__.py @@ -4,7 +4,7 @@ { "name": "MIS Builder Budget", "summary": "Create budgets for MIS reports", - "version": "3.0.1.1.0", + "version": "3.0.1.2.0", "license": "AGPL-3", "author": "ACSONE SA/NV, Odoo Community Association (OCA)", "website": "https://gitlab.com/flectra-community/mis-builder", diff --git a/mis_builder_budget/i18n/it.po b/mis_builder_budget/i18n/it.po index 6d0d513..388c0e0 100644 --- a/mis_builder_budget/i18n/it.po +++ b/mis_builder_budget/i18n/it.po @@ -6,7 +6,7 @@ msgid "" msgstr "" "Project-Id-Version: Odoo Server 15.0\n" "Report-Msgid-Bugs-To: \n" -"PO-Revision-Date: 2024-09-12 09:06+0000\n" +"PO-Revision-Date: 2024-10-03 09:06+0000\n" "Last-Translator: mymage \n" "Language-Team: none\n" "Language: it\n" @@ -86,17 +86,17 @@ msgstr "Valore" #. module: mis_builder_budget #: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__analytic_distribution msgid "Analytic Distribution" -msgstr "" +msgstr "Distribuzione analitica" #. module: mis_builder_budget #: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__analytic_distribution_search msgid "Analytic Distribution Search" -msgstr "" +msgstr "Ricerca distribuzione analitica" #. module: mis_builder_budget #: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget_by_account_item__analytic_precision msgid "Analytic Precision" -msgstr "" +msgstr "Precisione analitica" #. module: mis_builder_budget #: model:ir.model.fields,field_description:mis_builder_budget.field_mis_budget__message_attachment_count diff --git a/mis_builder_budget/models/mis_budget_by_account.py b/mis_builder_budget/models/mis_budget_by_account.py index b6e4fc0..5a76eae 100644 --- a/mis_builder_budget/models/mis_budget_by_account.py +++ b/mis_builder_budget/models/mis_budget_by_account.py @@ -12,7 +12,7 @@ class MisBudgetByAccount(models.Model): item_ids = fields.One2many( comodel_name="mis.budget.by.account.item", inverse_name="budget_id", copy=True ) - company_id = fields.Many2one(required=True) + company_id = fields.Many2one(required=False) allow_items_overlap = fields.Boolean( help="If checked, overlap between budget items is allowed" ) diff --git a/mis_builder_budget/models/mis_budget_by_account_item.py b/mis_builder_budget/models/mis_budget_by_account_item.py index 3e6860e..224fb6c 100644 --- a/mis_builder_budget/models/mis_budget_by_account_item.py +++ b/mis_builder_budget/models/mis_budget_by_account_item.py @@ -26,12 +26,13 @@ class MisBudgetByAccountItem(models.Model): ) company_id = fields.Many2one( "res.company", - related="budget_id.company_id", + related="account_id.company_id", + readonly=True, store=True, ) company_currency_id = fields.Many2one( "res.currency", - related="budget_id.company_id.currency_id", + related="account_id.company_id.currency_id", string="Company Currency", help="Utility field to express amount currency", store=True, @@ -40,7 +41,6 @@ class MisBudgetByAccountItem(models.Model): comodel_name="account.account", string="Account", required=True, - # TODO domain (company_id) ) _sql_constraints = [ diff --git a/mis_builder_budget/static/description/index.html b/mis_builder_budget/static/description/index.html index ea3018a..fa3e98b 100644 --- a/mis_builder_budget/static/description/index.html +++ b/mis_builder_budget/static/description/index.html @@ -367,7 +367,7 @@ ul.auto-toc { !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -!! source digest: sha256:da466f77b5606d5eaa518b43c8b7478dd433bc91f82e18a842a099871c63c578 +!! source digest: sha256:b49fe673329ce72edaf0467f04f6fe7b06edc9e82a11c22b5a57071407a0521c !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->

Production/Stable License: AGPL-3 OCA/mis-builder Translate me on Weblate Try me on Runboat

Create budgets for MIS reports.