From c9a932864c75fb74ab41553c6f3ed00a3c24a87b Mon Sep 17 00:00:00 2001 From: Oihane Crucelaegui Date: Wed, 17 Oct 2018 09:48:57 +0200 Subject: [PATCH] [IMP] project_budget: increase tests --- project_budget/__manifest__.py | 2 +- project_budget/i18n/es.po | 2 +- project_budget/tests/test_project_budget.py | 2 ++ 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/project_budget/__manifest__.py b/project_budget/__manifest__.py index 1e2828dd..c97fdd5b 100644 --- a/project_budget/__manifest__.py +++ b/project_budget/__manifest__.py @@ -3,7 +3,7 @@ { "name": "Project Bugdet", - "version": "11.0.3.0.0", + "version": "11.0.3.1.0", "category": "Custom Module", "license": "AGPL-3", "author": "AvanzOSC", diff --git a/project_budget/i18n/es.po b/project_budget/i18n/es.po index 2a7c97f5..7cd6fe36 100644 --- a/project_budget/i18n/es.po +++ b/project_budget/i18n/es.po @@ -61,7 +61,7 @@ msgstr "Presupuesto" #. module: project_budget #: model:ir.model.fields,field_description:project_budget.field_crossovered_budget_lines_budget_active msgid "Budget Active" -msgstr "Budget Active" +msgstr "Presupuesto activado" #. module: project_budget #: model:ir.model.fields,field_description:project_budget.field_crossovered_budget_budget_date diff --git a/project_budget/tests/test_project_budget.py b/project_budget/tests/test_project_budget.py index eb598f9b..9a36115a 100644 --- a/project_budget/tests/test_project_budget.py +++ b/project_budget/tests/test_project_budget.py @@ -31,6 +31,8 @@ def test_project_creation(self): self.project.mapped('budget_ids.crossovered_budget_line')), 26) self.project.create_initial_project_budget() self.assertEquals(len(self.project.budget_ids), 1) + action_dict = self.project.budget_ids[:1].open_pivot_view() + self.assertEquals(action_dict.get('view_mode'), 'pivot') def test_initial_budget_per_project_year(self): new_budget = self.project.budget_ids.copy()