diff --git a/views/acc_counter_views.xml b/views/acc_counter_views.xml index a224154892ad194e40e3e8282b7ab2a3cc6541ff..90992fe6f1f01022599c7fe7b4b9906e9ca56a10 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>