From 21acbd831dbfa670c1dfef00ffdc603eea0bbe17 Mon Sep 17 00:00:00 2001 From: "Pedro M. Baeza" Date: Tue, 22 Aug 2017 11:54:13 +0200 Subject: [PATCH 1/2] [IMP] contract: Copyright in manifest --- contract/__manifest__.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/contract/__manifest__.py b/contract/__manifest__.py index 7bddc43d..9c1aafed 100644 --- a/contract/__manifest__.py +++ b/contract/__manifest__.py @@ -1,11 +1,15 @@ # -*- coding: utf-8 -*- -# © 2004-2010 OpenERP SA -# © 2016 Carlos Dauden +# Copyright 2004-2010 OpenERP SA +# Copyright 2014-2017 Tecnativa - Pedro M. Baeza +# Copyright 2015 Domatix +# Copyright 2016 Tecnativa - Carlos Dauden +# Copyright 2017 Tecnativa - Vicent Cubells +# Copyright 2016-2017 LasLabs Inc. # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). { 'name': 'Contracts Management - Recurring', - 'version': '10.0.2.0.0', + 'version': '10.0.2.1.0', 'category': 'Contract Management', 'license': 'AGPL-3', 'author': "OpenERP SA, " From cf45a72d8c9b241da527f8104691a4501b9122c5 Mon Sep 17 00:00:00 2001 From: "Pedro M. Baeza" Date: Tue, 22 Aug 2017 11:54:35 +0200 Subject: [PATCH 2/2] [FIX] contract: Be totally deterministic about which views to use Having a primary view that is not explicitly declared to be uses and w/o priority makes Odoo to choose between one of them randomly (well, not exactly, but kind of), so we put here which views to use. I have also put tree view as primary and put a large priority for not being selected on other actions that don't have this explicit views. A friendly name in views is also assigned. --- .../views/account_analytic_account_view.xml | 23 ++++++++++++++++--- 1 file changed, 20 insertions(+), 3 deletions(-) diff --git a/contract/views/account_analytic_account_view.xml b/contract/views/account_analytic_account_view.xml index de2fbe86..d56270bc 100644 --- a/contract/views/account_analytic_account_view.xml +++ b/contract/views/account_analytic_account_view.xml @@ -2,10 +2,11 @@ - account.analytic.account.invoice.recurring.form.inherit + Contract form account.analytic.account primary +
@@ -79,9 +80,11 @@ - account.analytic.account.journal.list + Contract list account.analytic.account + primary + @@ -94,7 +97,7 @@ - account.analytic.account.contract.search + Contract search account.analytic.account @@ -130,6 +133,20 @@ + + + tree + + + + + + + form + + + +