From 73a759f298b1f9e08f844f84dc82753bfbda6e4d Mon Sep 17 00:00:00 2001
From: Benjamin <benjamin@le-filament.com>
Date: Thu, 5 Mar 2020 19:09:21 +0100
Subject: [PATCH] [update] type readonly

---
 views/res_partner.xml | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/views/res_partner.xml b/views/res_partner.xml
index 9955712..f7291bc 100644
--- a/views/res_partner.xml
+++ b/views/res_partner.xml
@@ -99,7 +99,8 @@
                 </field>
                 <field name="title" position="replace"/>
                 <xpath expr="//field[@name='type']" position="attributes">
-                    <attribute name="groups">base.group_no_one, cgscop_partner.group_cg_administrator</attribute>
+                    <attribute name="groups">base.group_no_one,cgscop_partner.group_cg_administrator</attribute>
+                    <attribute name="readonly">True</attribute>
                 </xpath>
                 <field name="street" position="attributes">
                     <attribute name="placeholder">Rue</attribute>
-- 
GitLab