Skip to Content
Menu
Dette spørgsmål er blevet anmeldt
1 Svar
2585 Visninger

Hello, this question has been asked many times, I checked many of them but still my problem persist and I don't know what the problem is, I would appreciate any help, there must be something I am not seeing, this is the content of my xml file, I just want to make a simple template of my.model in Odoov10.


\https://ibb.co/yPLCb2R



 

 
   

Document


    

 



id="report_my_model" 

string="Document" 

model="my.model" 

report_type="qweb-pdf" 

file="my_module.template_my_model" 

name="my_module.template_my_model" 

print_report_name="'Document_%s.pdf' % (object.name)"/>

UPD: I have updated the question with a link to an external image, this forums doesn't let me upload images and it doesn't show the code as I have pasted it, it renders most of white and I don't know why.

Avatar
Kassér
Bedste svar

There is no  print_report_name field in Odoo 10, Just remove it and you can use attachment

< report id="report_my_model"
string="Document"
model="my.model"
report_type="qweb-pdf"
file="my_module.template_report_my_model"
name="my_module.template_report_my_model"
attachment="'Document_%s.pdf' % (object.name)" />
Avatar
Kassér
Forfatter

Thank you, despiste the question is not all clear, you have solved my issue. I replaced the attribute print_report_name for attachment ✌️