Skip to content

Commit

Permalink
Apr 1 : [UPDT] Updated 'ohrms_holidays_approval'
Browse files Browse the repository at this point in the history
  • Loading branch information
AjmalCybro committed Apr 1, 2023
1 parent d77cbfd commit 22ef927
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
7 changes: 6 additions & 1 deletion ohrms_holidays_approval/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,13 @@
'data': [
'views/leave_request.xml',
'security/ir.model.access.csv',
'security/security.xml'
'security/security.xml',
],
'assets': {
'web.assets_backend': [
'ohrms_holidays_approval/static/src/xml/time_off_card.xml',
],
},
'images': ['static/description/banner.png'],
'license': "AGPL-3",
'installable': True,
Expand Down
11 changes: 11 additions & 0 deletions ohrms_holidays_approval/static/src/xml/time_off_card.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>

<templates id="template_ohrms" xml:space="preserve">
<t t-name="ohrms_holidays_approval.TimeOffCard" t-inherit="hr_holidays.TimeOffCard" t-inherit-mode="extension" owl="1">
<xpath expr="//t[@t-set='duration']" position="replace">
<t t-set="duration" t-value="data.remaining_leaves" />
</xpath>
</t>
</templates>


0 comments on commit 22ef927

Please sign in to comment.