I have created a custom report in odoo v12, and here is my report action
model="report.wizard"
string="Doc1"
report_type="qweb-pdf"
name="my_module.my_template"
file="my_module.my_template"
menu="False"
multi="False" attachment_use = "False"
paperformat="paperformat_euro_custom"
print_report_name="('Doc2-'+ object.partner_id.name +'.pdf')"/>
/>
Now when the report get printed I wanted to name a file like Doc2-partnet-name I always got the 'Doc1' name declared in the string. Is there any way to achieve this?
Thanks.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- إدارة علاقات العملاء
- e-Commerce
- المحاسبة
- المخزون
- PoS
- Project
- MRP
لقد تم الإبلاغ عن هذا السؤال
Hi,
Did You find any solution to the problem described in first post?
I have the same issue.
Thans
Hi,
I have edited my answer and i find the issue arises when you take the print from the tree view for multiple pdf reports
When you take a single pdf report by opening the form view, you get your print_report_name
If from tree view you get your string
Hope it helps,
Thanks
@Karthikeyan N R, no it's from form view : I got this problem when printing from form view...
@Karthikeyan, from wizard in form view
هل أعجبك النقاش؟ لا تكن مستمعاً فقط. شاركنا!
أنشئ حساباً اليوم لتستمتع بالخصائص الحصرية، وتفاعل مع مجتمعنا الرائع!
تسجيلالمنشورات ذات الصلة | الردود | أدوات العرض | النشاط | |
---|---|---|---|---|
|
0
سبتمبر 23
|
41 | ||
|
4
مارس 23
|
16219 | ||
|
0
مايو 22
|
1529 | ||
|
1
نوفمبر 21
|
17903 | ||
|
2
أكتوبر 21
|
6897 |