<?xml version="1.0" encoding="utf-8" ?>
<!--
  Copyright 2019 Ecosoft Co., Ltd.
  License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html).-->
<odoo>
    <record id="report_sale_order_template" model="xlsx.template">
        <field name="res_model">report.sale.order</field>
        <field name="fname">report_sale_order.xlsx</field>
        <field name="name">Report Sale Order Template</field>
        <field name="description">Sample Report Sales Order Tempalte for testing</field>
        <field name="input_instruction">
            {
                '__EXPORT__': {
                    1: {
                        '_HEAD_': {
                            'B2': 'partner_id.display_name${value or ""}#{align=left;style=text}',
                        },
                        '_EXTEND_results': {
                            'A5': 'name${value or ""}#{style=text}',
                            'B5': 'date_order${value or ""}#{style=date}',
                            'C5': 'amount_untaxed${value or 0}#{style=number}@{sum}',
                            'D5': 'amount_tax${value or 0}#{style=number}@{sum}',
                            'E5': 'amount_total${value or 0}#{style=number}@{sum}',
                        },
                    },
                },
            }
        </field>
    </record>
    <function model="xlsx.template" name="load_xlsx_template">
        <value eval="[ref('report_sale_order_template')]" />
    </function>
</odoo>
