[15.0][MIG] web_select_all_companies: Migration to 15.0

pull/2938/head
BT-mrobles 2023-10-05 11:52:47 +02:00 committed by Anna Janiszewska
parent 22c3964699
commit 4396e4359c
2 changed files with 7 additions and 5 deletions

View File

@ -4,16 +4,18 @@
{
"name": "Web Select All Companies",
"summary": "Allows you to select all companies in one click.",
"version": "16.0.1.0.1",
"version": "15.0.1.0.0",
"category": "Web",
"website": "https://github.com/OCA/web",
"author": "Camptocamp, Odoo Community Association (OCA)",
"license": "LGPL-3",
"depends": ["web"],
"assets": {
"web.assets_qweb": [
"web_select_all_companies/static/src/xml/switch_all_company_menu.xml",
],
"web.assets_backend": [
"web_select_all_companies/static/src/scss/switch_all_company_menu.scss",
"web_select_all_companies/static/src/xml/switch_all_company_menu.xml",
"web_select_all_companies/static/src/js/switch_all_company_menu.esm.js",
],
},

View File

@ -6,15 +6,15 @@
t-inherit-mode="extension"
owl="1"
>
<xpath expr="//t[@t-key='company.id']" position="before">
<DropdownItem class="'p-0 bg-white'">
<xpath expr="//t[@t-as='company']" position="before">
<DropdownItem class="p-0 bg-white">
<div class="d-flex">
<div
role="menuitemcheckbox"
tabindex="0"
t-attf-class="{{isCurrent ? 'border-primary' : ''}}"
class="border-end toggle_company"
t-on-click.stop="() => this.toggleSelectAllCompanies()"
t-on-click.stop="toggleSelectAllCompanies()"
>
<span class="btn btn-light border-0 p-2">
<i