From 1d41ed5026c51d2009ad684dd8a13baa848ca364 Mon Sep 17 00:00:00 2001 From: benjamin <benjamin@le-filament.com> Date: Fri, 24 Jun 2022 10:46:55 +0200 Subject: [PATCH] [update] invoice form view --- views/account_move.xml | 21 +-------------------- 1 file changed, 1 insertion(+), 20 deletions(-) diff --git a/views/account_move.xml b/views/account_move.xml index 7bda03b..d9e934c 100644 --- a/views/account_move.xml +++ b/views/account_move.xml @@ -46,26 +46,7 @@ </xpath> <xpath expr="//field[@name='partner_id']" position="attributes"> - <attribute name="readonly">True</attribute> - </xpath> - - <xpath - expr="//field[@name='invoice_payment_term_id']" - position="attributes" - > - <attribute name="invisible">1</attribute> - </xpath> - - <xpath expr="//field[@name='invoice_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> + <attribute name="readonly">1</attribute> </xpath> </field> -- GitLab