I am trying to create a new button to process my data in my model mymodule.sales.
<?xml version="1.0" encoding="UTF-8"?>
<template id="template" xml:space="preserve">
<t t-extend="ListView.buttons">
<t t-jquery="button.o_list_button_add" t-operation="after">
<button t-if="widget.model == 'mymodule.sales'" class="btn btn-primary btn-sm" type="button">Process</button>
</t>
</t>
</template>
The new button is not showing but when i remove the block t-if="widget.model == 'mymodule.sales'" the button is shown. What did i miss ? How do i perform a debugging to display or log the value of widget.model ?