Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
2420 Lượt xem

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>
Ảnh đại diện
Huỷ bỏ

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

Câu trả lời hay nhất

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
Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 8 25
554
1
thg 11 24
1142
0
thg 3 22
1446
1
thg 6 20
3085
1
thg 9 15
3916