[IMP] hr_work_entry: change button style

Allow to set the work entry button as primary or secondary.

closes odoo/odoo#66047

Taskid: 2447940
X-original-commit: ab00e33796e3083714649e46beb0514e9333ce74
Related: odoo/enterprise#16299
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
Signed-off-by: Kevin Baptiste <kba@odoo.com>
This commit is contained in:
Kevin Baptiste
2021-02-12 11:14:48 +00:00
parent 9d43a73394
commit 9580b2607c
@@ -1,7 +1,7 @@
<?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"/>
<button t-if="disabled" disabled="" title="Solve conflicts first" t-attf-class="btn {{primary?'btn-primary':'btn-secondary'}} btn-work-entry {{ event_class }}" type="button" t-esc="button_text"/>
<button t-else="" t-attf-class="btn {{primary?'btn-primary':'btn-secondary'}} btn-work-entry {{ event_class }}" type="button" t-esc="button_text"/>
</t>
</templates>