Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
2 Odpowiedzi
1879 Widoki

Cost Advance Report cost.advance qweb-pdf baba_multi_approval.report_cost_advance baba_multi_approval.report_cost_advance here is my report action

?xml version="1.0" encoding="utf-8"?>  

Evaluation A4 A4 0 0 Portrait 10 13 5 5 43 90  
here is my report
Element '' cannot be located in parent view View name: report_cost_advance Error context: view: ir.ui.view(1166,) xmlid: report_cost_advance view.model: hr.employee view.parent: ir.ui.view(458,) file: f:\odoo-14.0\djit\baba_multi_approval\reports\report_cost_advance.xml here is my error

Awatar
Odrzuć
Najlepsza odpowiedź

Hi,


Include the binding_view_types to specify the report action, enabling the addition of a report option to the action menu within the form.


<record id="action_student_id_card" model="ir.actions.report">
   <field name="name">Student ID Card</field>
<field name="model">education.student</field>
<field name="report_type">qweb-pdf</field>
<field name="report_name">education.report_student_id_card</field>
<field name="report_file">education.report_student_id_card</field>
<field name="print_report_name">'Student Card - %s' % (http://object.name" target="_blank" data-saferedirecturl="object.name)</field>

" rel="ugc">https://www.google.com/url?q=http://object.name&source=gmail&ust=1707797613838000&usg=AOvVaw1eYEr3aEBo3wsEz1pWzOEf">object.name)</field>

 <field name="binding_view_types">form</field>
<field name="binding_model_id" ref="model_education_student"/>
</record>


Please go through our blog to know about How to Create a PDF Report in Odoo 14

https://www.cybrosys.com/blog/how-to-create-pdf-report-odoo-14" target="_blank" data-saferedirecturl="https://www.cybrosys.com/blog/how-to-create-pdf-report-odoo-14

" rel="ugc">https://www.google.com/url?q=https://www.cybrosys.com/blog/how-to-create-pdf-report-odoo-14&source=gmail&ust=1707797613838000&usg=AOvVaw27c1jkqeL0Iji-b7ipVxz9">https://www.cybrosys.com/blog/how-to-create-pdf-report-odoo-14


Hope it helps

Awatar
Odrzuć
Najlepsza odpowiedź

Hi,
If you are looking to create a new report in the system, either you can do from the user interface using the studio if you are an enterprise user. If you are using the community, you wont have the studio, you can develop the needed report from the custom module.

To create a report from the scratch, you can refer to this video explaining the same:  How To Create PDF Reports In Odoo

Thanks

Awatar
Odrzuć