<?xml version="1.0" encoding="utf-8"?>
<odoo>
<template id="report_mrp_workorder">
    <t t-call="web.html_container">
        <t t-foreach="docs" t-as="o">
            <t t-call="web.internal_layout">
                <div class="page">
                    <div class="oe_structure"/>
                    <div class="row">
                        <div class="col-7">
                            <h2><span t-field="o.name"/></h2>
                        </div>
                        <div class="col-5">
                            <span class="text-end">
                                <div t-field="o.name" t-options="{'widget': 'barcode', 'width': 600, 'height': 100, 'img_style': 'width:350px;height:60px'}"/>
                            </span>
                        </div>
                    </div>
                    <br/>
                    <div class="row mt32 mb32">
                        <div class="col-3">
                            <strong>Responsible:</strong><br/>
                            <span t-field="o.production_id.user_id"/>
                        </div>
                        <div class="col-3">
                            <strong>Manufacturing Order:</strong><br/>
                            <span t-field="o.production_id.name"/>
                        </div>
                    </div>
                    <br/>
                    <div class="row mt32 mb32">
                        <div class="col-3">
                            <strong>Finished Product:</strong><br/>
                            <span t-field="o.product_id"/>
                        </div>
                        <div class="col-3">
                            <strong>Quantity to Produce:</strong><br/>
                            <span t-field="o.qty_production"/>
                            <span t-field="o.product_uom_id.name" groups="uom.group_uom"/>
                        </div>
                    </div>
                    <br/>

                    <t t-call="mrp.report_mrp_production_components" t-if="o.move_raw_ids"/>

                    <div class="oe_structure"/>
                </div>
            </t>
        </t>
    </t>
</template>
</odoo>
