From 35be2852d7f1a021e1af35c2fa62368c4fce358a Mon Sep 17 00:00:00 2001
From: jordan <jordan@le-filament.com>
Date: Thu, 24 Feb 2022 12:34:48 +0100
Subject: [PATCH] [fix] clean code and change domain for invisible button

---
 views/scop_cotisation_cg_exo.xml | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/views/scop_cotisation_cg_exo.xml b/views/scop_cotisation_cg_exo.xml
index d732a7e..6a6f980 100644
--- a/views/scop_cotisation_cg_exo.xml
+++ b/views/scop_cotisation_cg_exo.xml
@@ -59,8 +59,8 @@
                     </header>
                     <sheet>
                         <div class="oe_button_box" name="button_box">
-                            <button name="action_view_bordereau" type="object" icon="fa-files-o" attrs="{'invisible': [('state', '=', 'done')]}" string="Borderaux en cours"></button>
-                            <button name="action_view_exo" type="object" class="oe_stat_button" icon="fa-list" attrs="{'invisible': [('state', '!=', 'done')]}" string="Bordereaux Exonérés"></button>
+                            <button name="action_view_bordereau" type="object" icon="fa-files-o" attrs="{'invisible': [('state', '=', 'done')]}" string="Borderaux en cours"/>
+                            <button name="action_view_exo" type="object" class="oe_stat_button" icon="fa-list" attrs="{'invisible': [('state', '!=', 'done')]}" string="Bordereaux Exonérés"/>
                         </div>
                         <label for="partner_id" string="Coopérative"/>
                         <h1><field name="partner_id" options="{'no_create': True}"/></h1>
@@ -106,7 +106,7 @@
                                 </div>
                                 <field name="percent_quarter" attrs="{'invisible': [('type_exo', '!=', 'percent')]}"/>
                                 <button name="create_lines" type="object" class="btn btn-info" string="Créer/Mettre à jour les lignes"
-                                        attrs="{'invisible': ['|', '|', ('state', 'in', ('done', 'cancel')), '&amp;', ('amount_quarter', '=', 0), ('type_exo', '=', 'amount'), '&amp;', ('percent_quarter', '=', 0), ('type_exo', '=', 'percent')]}"></button>
+                                        attrs="{'invisible': ['|', '|', ('state', 'in', ('done', 'cancel')), '&amp;', ('amount_quarter', '&lt;', 0), ('type_exo', '=', 'amount'), '&amp;', ('percent_quarter', '=', 0), ('type_exo', '=', 'percent')]}"/>
 
                                 <div colspan="2">
                                     <field name="exo_line_ids" attrs="{'readonly': [('state', 'in', ('done', 'cancel'))]}">
-- 
GitLab