3625b1d76186f0c11a89d9aa82af88d9a43baada
The selector `.fa.fa-trash.text-danger` is not enough precise, it could select another element using the same classes, as it's the case in #85682, and at the binding the event `RevokeTrustedDeviceButton` `_onClick` event on that other element. I would have used a dedicated class directly on the element, such as `o_auth_totp_remove_trusted_device`, but since we are in stable and cannot rely on the template being updated, there is no other choice than using what we currently have without the update. In addition, the `remove` method must be called on the model `auth_totp.device`, as since the revision https://github.com/odoo/odoo/commit/2dee29a7dc6db5cd1f9cc62989b905cff5466f3b#diff-6ea780b2956bc89552a57dd3e711fdd7191d1599c246cc9c887bcc38fa7eabacR11-R12 `auth_totp.device` has been added, inheriting from `res.users.apikeys` but with a different `_name` and they therefore do not share the same IDs. Meaning you would end asking the deletion of the `res.users.apikeys` record using the same ID than trusted device record. closes odoo/odoo#87033 X-original-commit: 0aeb0030752e3634218ce7dd3d394447715d403b Signed-off-by: Denis Ledoux (dle) <dle@odoo.com>
…
…
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
Languages
Python
49.6%
JavaScript
47.8%
SCSS
2%
CSS
0.3%
HTML
0.2%