Automatic Update form OCA2FC Migrator

This commit is contained in:
Flectra Community Bot 2021-12-26 03:13:34 +00:00 committed by OCA2FC Migrator Bot
parent 79e1ad759a
commit fb2ec2af2b
4 changed files with 11 additions and 10 deletions

View File

@ -23,7 +23,6 @@ test_all_modules:
entrypoint: ["/bin/sh", "-c"] entrypoint: ["/bin/sh", "-c"]
script: script:
- apt-get install -y p7zip-full - apt-get install -y p7zip-full
- apt-get install -y expect-dev
- su - flectra -c "mkdir ~/others" - su - flectra -c "mkdir ~/others"
- su - flectra -c "git clone --branch 20-fixed --depth 1 https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.com/flectra-community/account-analytic.git ~/others/account-analytic" - su - flectra -c "git clone --branch 20-fixed --depth 1 https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.com/flectra-community/account-analytic.git ~/others/account-analytic"
- su - flectra -c "git clone --branch 20-fixed --depth 1 https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.com/flectra-community/account-closing.git ~/others/account-closing" - su - flectra -c "git clone --branch 20-fixed --depth 1 https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.com/flectra-community/account-closing.git ~/others/account-closing"
@ -88,7 +87,6 @@ test_module_mis_builder_budget:
entrypoint: ["/bin/sh", "-c"] entrypoint: ["/bin/sh", "-c"]
script: script:
- apt-get install -y p7zip-full - apt-get install -y p7zip-full
- apt install -y expect-dev
- su - flectra -c "mkdir ~/others" - su - flectra -c "mkdir ~/others"
- su - flectra -c "git clone --branch 20-fixed --depth 1 https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.com/flectra-community/account-analytic.git ~/others/account-analytic" - su - flectra -c "git clone --branch 20-fixed --depth 1 https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.com/flectra-community/account-analytic.git ~/others/account-analytic"
- su - flectra -c "git clone --branch 20-fixed --depth 1 https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.com/flectra-community/account-closing.git ~/others/account-closing" - su - flectra -c "git clone --branch 20-fixed --depth 1 https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.com/flectra-community/account-closing.git ~/others/account-closing"
@ -148,7 +146,6 @@ test_module_mis_builder:
entrypoint: ["/bin/sh", "-c"] entrypoint: ["/bin/sh", "-c"]
script: script:
- apt-get install -y p7zip-full - apt-get install -y p7zip-full
- apt install -y expect-dev
- su - flectra -c "mkdir ~/others" - su - flectra -c "mkdir ~/others"
- su - flectra -c "git clone --branch 20-fixed --depth 1 https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.com/flectra-community/account-analytic.git ~/others/account-analytic" - su - flectra -c "git clone --branch 20-fixed --depth 1 https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.com/flectra-community/account-analytic.git ~/others/account-analytic"
- su - flectra -c "git clone --branch 20-fixed --depth 1 https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.com/flectra-community/account-closing.git ~/others/account-closing" - su - flectra -c "git clone --branch 20-fixed --depth 1 https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.com/flectra-community/account-closing.git ~/others/account-closing"
@ -208,7 +205,6 @@ test_module_mis_builder_demo:
entrypoint: ["/bin/sh", "-c"] entrypoint: ["/bin/sh", "-c"]
script: script:
- apt-get install -y p7zip-full - apt-get install -y p7zip-full
- apt install -y expect-dev
- su - flectra -c "mkdir ~/others" - su - flectra -c "mkdir ~/others"
- su - flectra -c "git clone --branch 20-fixed --depth 1 https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.com/flectra-community/account-analytic.git ~/others/account-analytic" - su - flectra -c "git clone --branch 20-fixed --depth 1 https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.com/flectra-community/account-analytic.git ~/others/account-analytic"
- su - flectra -c "git clone --branch 20-fixed --depth 1 https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.com/flectra-community/account-closing.git ~/others/account-closing" - su - flectra -c "git clone --branch 20-fixed --depth 1 https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.com/flectra-community/account-closing.git ~/others/account-closing"

View File

@ -10,7 +10,7 @@ Available addons
addon | version | summary addon | version | summary
--- | --- | --- --- | --- | ---
[mis_builder_budget](mis_builder_budget/) | 2.0.3.5.1| Create budgets for MIS reports [mis_builder_budget](mis_builder_budget/) | 2.0.3.5.1| Create budgets for MIS reports
[mis_builder](mis_builder/) | 2.0.3.6.7| Build 'Management Information System' Reports and Dashboards [mis_builder](mis_builder/) | 2.0.3.6.8| Build 'Management Information System' Reports and Dashboards
[mis_builder_demo](mis_builder_demo/) | 2.0.3.1.3| Demo addon for MIS Builder [mis_builder_demo](mis_builder_demo/) | 2.0.3.1.3| Demo addon for MIS Builder

View File

@ -3,7 +3,7 @@
{ {
"name": "MIS Builder", "name": "MIS Builder",
"version": "2.0.3.6.7", "version": "2.0.3.6.8",
"category": "Reporting", "category": "Reporting",
"summary": """ "summary": """
Build 'Management Information System' Reports and Dashboards Build 'Management Information System' Reports and Dashboards

View File

@ -13,7 +13,12 @@ import pytz
from flectra import _, api, fields, models from flectra import _, api, fields, models
from flectra.exceptions import UserError, ValidationError from flectra.exceptions import UserError, ValidationError
from flectra.models import expression as osv_expression from flectra.models import expression as osv_expression
from flectra.tools.safe_eval import safe_eval from flectra.tools.safe_eval import (
datetime as safe_datetime,
dateutil as safe_dateutil,
safe_eval,
time as safe_time,
)
from .accounting_none import AccountingNone from .accounting_none import AccountingNone
from .aep import AccountingExpressionProcessor as AEP from .aep import AccountingExpressionProcessor as AEP
@ -583,9 +588,9 @@ class MisReport(models.Model):
model = self.env[query.model_id.model] model = self.env[query.model_id.model]
eval_context = { eval_context = {
"env": self.env, "env": self.env,
"time": time, "time": safe_time,
"datetime": datetime, "datetime": safe_datetime,
"dateutil": dateutil, "dateutil": safe_dateutil,
# deprecated # deprecated
"uid": self.env.uid, "uid": self.env.uid,
"context": self.env.context, "context": self.env.context,