diff --git a/views/account_invoice.xml b/views/account_invoice.xml index 6eccbf81b7b395b79e1d34c867097b5ed17b06eb..847c279fa730a0bbabcbd704befd1086fd8d67c8 100644 --- a/views/account_invoice.xml +++ b/views/account_invoice.xml @@ -12,14 +12,28 @@ <field name="user_id" position="after"> <field name="partner_ur_id" readonly="1" groups="base.group_no_one"/> <field name="is_contribution" readonly="1" groups="base.group_no_one"/> - <field name="year" readonly="1" attrs="{'invisible': [('is_contribution', '!=', True)]}"/> + <field name="year" readonly="1"/> </field> <xpath expr="//sheet/group[last()]" position="after"> - <group name="cotisations" string="Cotisations" attrs="{'invisible': [('is_contribution', '!=', True)]}"> + <group name="cotisations" string="Cotisations"> <field name="liasse_fiscale_id" readonly="1"/> </group> </xpath> + + <xpath expr="//field[@name='partner_id']" position="attributes"> + <attribute name="string">Adhérent</attribute> + </xpath> + <xpath expr="//field[@name='date_invoice']" position="attributes"> + <attribute name="string">Date de cotisation</attribute> + </xpath> + <xpath expr="//field[@name='user_id']" position="attributes"> + <attribute name="invisible">True</attribute> + </xpath> + <xpath expr="//field[@name='team_id']" position="attributes"> + <attribute name="invisible">True</attribute> + </xpath> + </field> </record> @@ -31,6 +45,12 @@ <field name="inherit_id" ref="account.invoice_tree_with_onboarding"/> <field name="arch" type="xml"> + <xpath expr="//field[@name='partner_id']" position="attributes"> + <attribute name="string">Adhérent</attribute> + </xpath> + <xpath expr="//field[@name='date_invoice']" position="attributes"> + <attribute name="string">Date de cotisation</attribute> + </xpath> <xpath expr="//field[@name='user_id']" position="attributes"> <attribute name="invisible">True</attribute> </xpath>