forked from OpenG2P/openg2p-program
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Entitlement InKind: Fixed the To approve button in cycle view.
- Loading branch information
Showing
3 changed files
with
20 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.