From a82abde90fa2254b87c9297f8b79f6417d67527f Mon Sep 17 00:00:00 2001 From: Juliana <juliana@le-filament.com> Date: Wed, 6 Apr 2022 11:26:33 +0200 Subject: [PATCH] [UPD]Invisible part invoice if counter injection --- views/acc_counter_views.xml | 23 ++--------------------- 1 file changed, 2 insertions(+), 21 deletions(-) diff --git a/views/acc_counter_views.xml b/views/acc_counter_views.xml index a224154..90992fe 100644 --- a/views/acc_counter_views.xml +++ b/views/acc_counter_views.xml @@ -58,7 +58,8 @@ </div> <group name="infos" position="after"> <notebook> - <page string="Facturation" name="account"> + <page string="Facturation" name="account" + attrs="{'invisible': [('is_injection', '!=', True)]}"> <group> <group> <field @@ -73,26 +74,6 @@ /> </group> </group> - <field name="acc_account_delivery_ids" widget="one2many"> - <tree string="Facturation" editable="bottom"> - <field name="acc_operation_id" invisible="1" /> - <field name="name" /> -<!-- <field name="date"/>--> - <field name="acc_injection_id" /> - <field name="acc_delivery_id" /> - <field name="amount_total" /> - </tree> - </field> - <field name="acc_account_injection_ids" widget="one2many"> - <tree string="Facturation" editable="bottom"> - <field name="acc_operation_id" invisible="1" /> - <field name="name" /> -<!-- <field name="date"/>--> - <field name="acc_injection_id" /> - <field name="acc_delivery_id" /> - <field name="amount_total" /> - </tree> - </field> </page> </notebook> </group> -- GitLab