I want to hide
delete button
from Export Data form view in odoo. Button that i want to hide also highlighted in attached image.
我想在odoo中的Export Data表单视图中隐藏删除按钮。我想要隐藏的按钮也在附加图像中突出显示。
I'll be very thankful...
我会非常感激的......
1 个解决方案
#1
1
You will need to override Odoo's QWeb templates for such customizations.
您需要覆盖Odoo的QWeb模板以进行此类自定义。
Create a xml under mymodule/static/src/xml (e.g. your_customization.xml) with following content:
在mymodule / static / src / xml(例如your_customization.xml)下创建一个包含以下内容的xml:
<template>
<t t-extend="Exists.ExportList">
<t t-jquery="button[id|='delete_export_list']" t-operation="replace" />
</t>
</template>
And then don't forget to call that file in your manifest (__openerp__.py) like
然后不要忘记在清单(__openerp__.py)中调用该文件
{
# other things like author, name, data
'qweb': ['static/src/xml/your_customization.xml'],
}
#1
1
You will need to override Odoo's QWeb templates for such customizations.
您需要覆盖Odoo的QWeb模板以进行此类自定义。
Create a xml under mymodule/static/src/xml (e.g. your_customization.xml) with following content:
在mymodule / static / src / xml(例如your_customization.xml)下创建一个包含以下内容的xml:
<template>
<t t-extend="Exists.ExportList">
<t t-jquery="button[id|='delete_export_list']" t-operation="replace" />
</t>
</template>
And then don't forget to call that file in your manifest (__openerp__.py) like
然后不要忘记在清单(__openerp__.py)中调用该文件
{
# other things like author, name, data
'qweb': ['static/src/xml/your_customization.xml'],
}