我在清单.py中编写了 button.xml 和 qweb,但它没有用。
button.xml (静态/src/xml/button.xml)
<?xml version="1.0" encoding="UTF-8"?>
<templates>
<t t-extend="ListView.buttons">
<t t-jquery="button.o_list_button_add" t-operation="after">
<button name="xxx" type="button" t-if='widget.modelName == "billing.info.functions"'
class="btn btn-sm btn-default o_import_button o_import_import">Upload
</button>
</t>
</t>
</templates>
清单.py
'qweb': [
"static/src/xml/button.xml"
],