From 3432cb44efe08f16c8a67eade454e090396fba59 Mon Sep 17 00:00:00 2001
From: Remi <remi@le-filament.com>
Date: Mon, 9 Dec 2019 16:15:34 +0100
Subject: [PATCH] Afficher code UR dans tous les cas

---
 views/hr_expense.xml | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/views/hr_expense.xml b/views/hr_expense.xml
index 3daadcd..2ea543b 100644
--- a/views/hr_expense.xml
+++ b/views/hr_expense.xml
@@ -11,8 +11,8 @@
             <field name="model">hr.expense</field>
             <field name="inherit_id" ref="hr_expense.view_expenses_tree"/>
             <field name="arch" type="xml">
-                <field name="analytic_account_id" position="attributes" options="{'no_open': True, 'no_create': True}">
-                    <attribute name="groups"></attribute>
+                <field name="analytic_account_id" position="replace">
+                    <field name="analytic_account_id" options="{'no_open': True, 'no_create': True}" string="Code Activité"/>
                 </field>
             </field>
         </record>
@@ -68,7 +68,6 @@
                     <attribute name="groups"></attribute>
                     <attribute name="readonly">True</attribute>
                     <attribute name="options">{'no_open': True, 'no_create': True}</attribute>
-                    <attribute name="attrs">{'invisible': [('timesheet_id', '=', False)]}</attribute>
                 </field>
                 <field name="analytic_account_id" position="after">
                     <field name="coop_id" attrs="{'invisible': [('timesheet_id', '=', False)]}" readonly="True"  options="{'no_open': True, 'no_create': True}" />
-- 
GitLab