From a2c082b7cfada9751593a96e7ecbfbcc8a195db1 Mon Sep 17 00:00:00 2001 From: benjamin <benjamin@le-filament.com> Date: Thu, 23 Jun 2022 18:03:33 +0200 Subject: [PATCH] [update] bordereau & invoice view --- views/account_invoice.xml | 18 +++++++++--------- views/scop_bordereau_cg.xml | 4 ++-- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/views/account_invoice.xml b/views/account_invoice.xml index 0c01505..52d1ae7 100644 --- a/views/account_invoice.xml +++ b/views/account_invoice.xml @@ -36,17 +36,17 @@ <attribute name="readonly">True</attribute> </xpath> - <xpath expr="//field[@name='payment_term_id']" position="attributes"> - <attribute name="invisible">1</attribute> - </xpath> +<!-- <xpath expr="//field[@name='payment_term_id']" position="attributes">--> +<!-- <attribute name="invisible">1</attribute>--> +<!-- </xpath>--> - <xpath expr="//field[@name='date_due']" position="attributes"> - <attribute name="attrs">{'invisible':[('state','=','draft')]}</attribute> - </xpath> +<!-- <xpath expr="//field[@name='date_due']" position="attributes">--> +<!-- <attribute name="attrs">{'invisible':[('state','=','draft')]}</attribute>--> +<!-- </xpath>--> - <xpath expr="//field[@name='payment_mode_id']" position="attributes"> - <attribute name="attrs">{'invisible':[('state','=','draft')]}</attribute> - </xpath> +<!-- <xpath expr="//field[@name='payment_mode_id']" position="attributes">--> +<!-- <attribute name="attrs">{'invisible':[('state','=','draft')]}</attribute>--> +<!-- </xpath>--> </field> </record> diff --git a/views/scop_bordereau_cg.xml b/views/scop_bordereau_cg.xml index 7095fa3..15bc433 100644 --- a/views/scop_bordereau_cg.xml +++ b/views/scop_bordereau_cg.xml @@ -20,7 +20,7 @@ <button name="cancel_ongoing_bordereau" class="oe_highlight" string="Annuler cette nouvelle version" type="object" states="ongoing"/> <button name="action_change_payment_mode" class="btn-info" string="Changer le mode de paiement" - type="object" states="ongoing,validated"/> + type="object"/> <button name="%(cgscop_cotisation_cg.scop_cotisation_regul_wizard_act_window)d" class="btn-warning" string="Effectuer une Régularisation" @@ -85,7 +85,7 @@ <group> <field name="base_cotisation_cg"/> <field name="date_cotisation" attrs="{'readonly':[('state','!=','new')]}"/> - <field name="payment_mode_id" attrs="{'readonly':[('state','!=','new')]}"/> + <field name="payment_mode_id" readonly="1"/> <hr/> <field name="nb_quarter" attrs="{'readonly':[('state','!=','new')]}"/> <button name="update_bordereau_with_liasse" class="btn" string="Recalculer le bordereau" -- GitLab