From cf45a72d8c9b241da527f8104691a4501b9122c5 Mon Sep 17 00:00:00 2001 From: "Pedro M. Baeza" Date: Tue, 22 Aug 2017 11:54:35 +0200 Subject: [PATCH] [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 + + + +