Browse Source

[IMP] b_w_shift: Show Next Countdown date on intranet

pull/83/head
Rémy Taymans 6 years ago
parent
commit
10a348df1d
  1. 2
      beesdoo_website_shift/__openerp__.py
  2. 5
      beesdoo_website_shift/views/my_shift_website_templates.xml

2
beesdoo_website_shift/__openerp__.py

@ -16,7 +16,7 @@
'author': 'Rémy Taymans', 'author': 'Rémy Taymans',
'license': 'AGPL-3', 'license': 'AGPL-3',
'version': '9.0.2.1.1',
'version': '9.0.2.2.0',
'website': "https://github.com/beescoop/Obeesdoo", 'website': "https://github.com/beescoop/Obeesdoo",
'category': 'Cooperative management', 'category': 'Cooperative management',

5
beesdoo_website_shift/views/my_shift_website_templates.xml

@ -862,6 +862,11 @@
<t t-esc="status.sr"/> <t t-esc="status.sr"/>
</p> </p>
<p t-if="status.next_countdown_date">
<label>Next Countdown Date:</label>
<t t-esc="time.strftime('%A %d %B %Y', time.strptime(status.next_countdown_date, '%Y-%m-%d'))"/>
</p>
<p t-if="status.future_alert_date"> <p t-if="status.future_alert_date">
<label>Future Date of Alert:</label> <label>Future Date of Alert:</label>
<t t-esc="time.strftime('%A %d %B %Y', time.strptime(status.future_alert_date, '%Y-%m-%d'))"/> <t t-esc="time.strftime('%A %d %B %Y', time.strptime(status.future_alert_date, '%Y-%m-%d'))"/>

Loading…
Cancel
Save