summaryrefslogtreecommitdiff
path: root/addons/hr_work_entry/static/src
diff options
context:
space:
mode:
authorlbs-odoo <lbs@odoo.com>2019-06-17 11:14:38 +0000
committerYannick Tivisse <yti@odoo.com>2019-07-05 07:40:06 +0000
commit981907fd43a0c589a0dcd9653b0eb06faa1f62c2 (patch)
treedab0839363ad8b275274264d41b38ab6df38df47 /addons/hr_work_entry/static/src
parent3fc2a27808ca4e4ce74884580543e70537d5ce3b (diff)
[ADD] hr_work_entry: Move work entries mechanism into its own module
Purpose ======= We would like to re-use the work entries in the attendance module. As hr_attendance is not dependant on hr_payroll, we move the whole mechanism into its own module. This could be reused too into others modules, like forecasting or whatever. TaskID: 1904850 closes odoo/odoo#34434 Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
Diffstat (limited to 'addons/hr_work_entry/static/src')
-rw-r--r--addons/hr_work_entry/static/src/xml/work_entry_templates.xml15
1 files changed, 15 insertions, 0 deletions
diff --git a/addons/hr_work_entry/static/src/xml/work_entry_templates.xml b/addons/hr_work_entry/static/src/xml/work_entry_templates.xml
new file mode 100644
index 00000000000..ad1f6d9e523
--- /dev/null
+++ b/addons/hr_work_entry/static/src/xml/work_entry_templates.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<templates>
+ <t t-name="hr_work_entry.work_entry_button">
+ <button t-if="disabled" disabled="" title="Solve conflicts first" t-attf-class="btn btn-primary btn-work-entry {{ event_class }}" type="button" t-esc="button_text"/>
+ <button t-else="" t-attf-class="btn btn-primary btn-work-entry {{ event_class }}" type="button" t-esc="button_text"/>
+ </t>
+
+ <t t-name="hr_work_entry.work_entry_error_message">
+ <div role='alertdialog' class='alert alert-info'>We found some conflicts,
+ <strong>
+ <a role='button' type="action" name='hr_work_entry.hr_work_entry_action_conflict'>click here to revise them</a>
+ </strong>
+ </div>
+ </t>
+</templates>