diff --git a/views/scop_cotisation_cg_exo.xml b/views/scop_cotisation_cg_exo.xml index d732a7e5cd4ff59b2bb9f9258198238a18d5e279..6a6f9807e0177d4f1d36866ee651d09215fd20bf 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')), '&', ('amount_quarter', '=', 0), ('type_exo', '=', 'amount'), '&', ('percent_quarter', '=', 0), ('type_exo', '=', 'percent')]}"></button> + attrs="{'invisible': ['|', '|', ('state', 'in', ('done', 'cancel')), '&', ('amount_quarter', '<', 0), ('type_exo', '=', 'amount'), '&', ('percent_quarter', '=', 0), ('type_exo', '=', 'percent')]}"/> <div colspan="2"> <field name="exo_line_ids" attrs="{'readonly': [('state', 'in', ('done', 'cancel'))]}">