[FIX] website_slides: xpath for listview

Part-of: odoo/odoo#116641
This commit is contained in:
stefanorigano (SRI)
2023-05-12 22:59:21 +02:00
committed by Pierre Paridans
parent 8a2875bb38
commit c4fc4af7c0
3 changed files with 2 additions and 2 deletions
@@ -33,3 +33,4 @@ export default class SlideChannelPartnerListController extends ListController {
});
}
}
SlideChannelPartnerListController.template = "website_slides.SlideChannelPartnerListView";
@@ -8,7 +8,6 @@ import SlideChannelPartnerListController from './slide_channel_partner_list_cont
export const SlideChannelPartnerListView = {
...listView,
Controller: SlideChannelPartnerListController,
buttonTemplate: 'website_slides.SlideChannelPartnerListView.buttons',
};
registry.category('views').add('slide_channel_partner_enroll_tree', SlideChannelPartnerListView);
@@ -2,7 +2,7 @@
<templates xml:space="preserve">
<t t-inherit="web.ListView.Buttons" t-inherit-mode="primary" owl="1" t-name="website_slides.SlideChannelPartnerListView.buttons">
<t t-inherit="web.ListView" t-inherit-mode="primary" owl="1" t-name="website_slides.SlideChannelPartnerListView">
<xpath expr="//t[@t-foreach='archInfo.headerButtons']" position="after">
<button t-if="channelId" type="button" class="btn btn-primary" t-on-click="_openEnrollWizard">
New