refactor: remove expense sheet limit and adjust kiosk action selection layout styling
This commit is contained in:
parent
6ec8a90f05
commit
30b7c6a513
@ -88,7 +88,7 @@ class HrExpenseKioskController(http.Controller):
|
|||||||
sheets = request.env['hr.expense.sheet'].sudo().search([
|
sheets = request.env['hr.expense.sheet'].sudo().search([
|
||||||
('employee_id', '=', employee_id),
|
('employee_id', '=', employee_id),
|
||||||
('state', 'not in', ['draft', 'cancel'])
|
('state', 'not in', ['draft', 'cancel'])
|
||||||
], order='create_date desc', limit=10)
|
], order='create_date desc')
|
||||||
|
|
||||||
result = []
|
result = []
|
||||||
state_selection = dict(request.env['hr.expense.sheet']._fields['state']._description_selection(request.env))
|
state_selection = dict(request.env['hr.expense.sheet']._fields['state']._description_selection(request.env))
|
||||||
|
|||||||
@ -64,7 +64,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- ACTION SELECTION -->
|
<!-- ACTION SELECTION -->
|
||||||
<div t-if="state.screen === 'action_selection'" class="d-flex flex-column align-items-center animate-fade-in h-100 justify-content-center">
|
<div t-if="state.screen === 'action_selection'" class="d-flex flex-column align-items-center animate-fade-in py-5">
|
||||||
<h3 class="mb-5">What would you like to do?</h3>
|
<h3 class="mb-5">What would you like to do?</h3>
|
||||||
<div class="d-flex gap-5">
|
<div class="d-flex gap-5">
|
||||||
<div class="action-card card text-center p-5 shadow border-0 cursor-pointer rounded-4 hover-lift" t-on-click="() => this.selectAction('realization')" style="width: 250px;">
|
<div class="action-card card text-center p-5 shadow border-0 cursor-pointer rounded-4 hover-lift" t-on-click="() => this.selectAction('realization')" style="width: 250px;">
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user