Skip to content

Commit

Permalink
Entitlement InKind: Fixed the To approve button in cycle view.
Browse files Browse the repository at this point in the history
  • Loading branch information
mkumar-02 committed Jan 18, 2024
1 parent d839eaf commit 684e40f
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 1 deletion.
3 changes: 2 additions & 1 deletion g2p_entitlement_in_kind/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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": [],
Expand Down
18 changes: 18 additions & 0 deletions g2p_entitlement_in_kind/views/cycle_view.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!--
Part of OpenG2P. See LICENSE file for full copyright and licensing details.
-->
<odoo>
<record id="inkind_view_cycle_form" model="ir.ui.view">
<field name="name">inkind_view_cycle_form</field>
<field name="model">g2p.cycle</field>
<field name="inherit_id" ref="g2p_programs.view_cycle_form" />
<field name="arch" type="xml">
<xpath expr="//button[@name='to_approve']" position="attributes">
<attribute
name="attrs"
>{'invisible': ['|',('inkind_entitlements_count', '=', 0), ('entitlements_count', '=', 0)]}</attribute>
</xpath>
</field>
</record>
</odoo>
File renamed without changes.

0 comments on commit 684e40f

Please sign in to comment.