Ethan Vincent d001a3a860 [FIX] hr_attendance: change logo route in kiosk
**Current behavior:**
Creating an additional company then creating an attendance
kiosk link for it will not display this company's logo.

---

**Expected behavior:**
The kiosk page displays the logo for whichever company is
actively selected when the link is generated

---

**Steps to reproduce:**
1. Create a second company, set the logo to anything besides
     the default/fallback image

2. In the HR Attendance application settings, generate a kiosk
     link then paste & go in an incognito window

3. Observe the logo image displayed above the bar code is the
     default/fallback image

---

**Cause of the issue:**
The route being used to get the company's logo does not work
for companies which are not the first/default one generated
with the database. An accessibility check fails due to some
information about the user's access rights not being available
with the request.

---

**Fix:**
Use an alternative route which can properly access the logo
image file of the company that is active when the kiosk link is
generated.

---

opw-3672577

closes odoo/odoo#150628

Signed-off-by: Sofie Gvaladze (sgv) <sgv@odoo.com>
2024-01-30 18:05:57 +00:00
2023-11-02 21:02:44 +00:00
…
…
…
…

Build Status Tech Doc Help Nightly Builds

Odoo

Odoo is a suite of web based open source business apps.

The main Odoo Apps include an Open Source CRM, Website Builder, eCommerce, Warehouse Management, Project Management, Billing & Accounting, Point of Sale, Human Resources, Marketing, Manufacturing, ...

Odoo Apps can be used as stand-alone applications, but they also integrate seamlessly so you get a full-featured Open Source ERP when you install several Apps.

Getting started with Odoo

For a standard installation please follow the Setup instructions from the documentation.

To learn the software, we recommend the Odoo eLearning, or Scale-up, the business game. Developers can start with the developer tutorials

S
Description
No description provided
Readme LGPL-3.0
3.4 GiB
Languages
Python 49.6%
JavaScript 47.8%
SCSS 2%
CSS 0.3%
HTML 0.2%