Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
702 Tampilan

File "/usr/lib/python3/dist-packages/PyPDF2/_reader.py", line 1449, in _basic_validation

    raise EmptyFileError("Cannot read an empty file")

PyPDF2.errors.EmptyFileError: Cannot read an empty file



<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
    <!--    Report Template-->
    <template id="employee_report_template">
        <t t-call="web.html_container">
           <t t-foreach="docs" t-as="o">
                <t t-call="web.external_layout">
                    <div class="page">
                        <div class="oe_structure"/>
                        <h2>Expense Report</h2>
                        <br></br>
                        <p>
                            Name :
                            <span t-field="o.name"/>
                        </p>
                    </div>
                </t>
            </t>
        </t>
    </template>
</odoo>


//otherfile

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

<odoo>

<record id="action_employee_report_template" model="ir.actions.report">

<field name="name">Employee Report</field>

<field name="model">employee.info</field>

<field name="report_type">qweb-pdf</field>

<field name="report_name">office_management.employee_report_template</field>

<field name="report_file">office_management.employee_report_template</field>

<field name="print_report_name">'Employee Report'</field>

<field name="binding_model_id" ref="office_management.model_employee_info"/>

<field name="binding_type">report</field>

</record>

</odoo>




Avatar
Buang
Post Terkait Replies Tampilan Aktivitas
0
Agu 25
115
3
Agu 25
319
3
Agu 25
1625
1
Agu 25
656
0
Agu 25
385