Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
1 Відповісти
2411 Переглядів

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
Аватар
Відмінити
Related Posts Відповіді Переглядів Дія
1
серп. 25
544
1
лист. 24
1132
0
бер. 22
1440
1
черв. 20
3077
1
вер. 15
3897