diff --git a/g2p_entitlement_in_kind/__manifest__.py b/g2p_entitlement_in_kind/__manifest__.py index 2bfc35af..caa5a2e2 100644 --- a/g2p_entitlement_in_kind/__manifest__.py +++ b/g2p_entitlement_in_kind/__manifest__.py @@ -10,7 +10,8 @@ "development_status": "Alpha", "depends": ["spp_programs", "spp_entitlement_in_kind", "spp_service_points"], "data": [ - "views/in_kind.xml", + "views/cycle_view.xml", + "views/inkind_view.xml", ], "assets": { "web.assets_backend": [], diff --git a/g2p_entitlement_in_kind/views/cycle_view.xml b/g2p_entitlement_in_kind/views/cycle_view.xml new file mode 100644 index 00000000..cce70c13 --- /dev/null +++ b/g2p_entitlement_in_kind/views/cycle_view.xml @@ -0,0 +1,18 @@ + + + + + inkind_view_cycle_form + g2p.cycle + + + + {'invisible': ['|',('inkind_entitlements_count', '=', 0), ('entitlements_count', '=', 0)]} + + + + diff --git a/g2p_entitlement_in_kind/views/in_kind.xml b/g2p_entitlement_in_kind/views/inkind_view.xml similarity index 100% rename from g2p_entitlement_in_kind/views/in_kind.xml rename to g2p_entitlement_in_kind/views/inkind_view.xml