跳至内容
菜单
此问题已终结
1 回复
2391 查看

I want to add report to inventory reports. I wrote this code but after upgrading my custom module new report won't show in inventory print dropdown. How should I add a report to existing inventory reports?

<odoo>
<data>
<report
id="report_card_xls"
string="Print xlsx"
model="stock.picking"
report_type="xlsx"
name="stock.print_badge"
file="stock.print_badge"
print_report_name="'Picking Operations - %s - %s' % (object.partner_id.name or '', object.name)"
/>
</data>
</odoo>
形象
丢弃

Can you make sure that the report action is get added in the db ?

最佳答案

Hi,

Can you try after changing the following lines in the code.

name="your_custom_report_module.your_report_custom_template"
file="your_custom_report_module.your_report_custom_template"
Hope it helps
形象
丢弃
相关帖文 回复 查看 活动
1
8月 25
519
1
11月 24
1114
0
3月 22
1419
1
6月 20
3049
1
9月 15
3870