{"en_US": "<t t-name=\"purchase.report_purchaseorder_document\">\n    <t t-call=\"web.external_layout\">\n        <t t-set=\"o\" t-value=\"o.with_context(lang=o.partner_id.lang)\"/>\n        <t t-set=\"address\">\n            <div t-field=\"o.partner_id\" t-options=\"{&quot;widget&quot;: &quot;contact&quot;, &quot;fields&quot;: [&quot;address&quot;, &quot;name&quot;, &quot;phone&quot;, &quot;vat&quot;], &quot;no_marker&quot;: True, &quot;phone_icons&quot;: True}\"/>\n        </t>\n        <t t-if=\"o.dest_address_id\">\n            <t t-set=\"information_block\">\n                <strong class=\"d-block mt-3\">Shipping address</strong>\n                <div t-if=\"o.dest_address_id\">\n                    <div t-field=\"o.dest_address_id\" t-options=\"{&quot;widget&quot;: &quot;contact&quot;, &quot;fields&quot;: [&quot;address&quot;, &quot;name&quot;, &quot;phone&quot;], &quot;no_marker&quot;: True, &quot;phone_icons&quot;: True}\" name=\"purchase_shipping_address\"/>\n                </div>\n\n            </t>\n        </t>\n        <div class=\"page\">\n            <div class=\"oe_structure\"/>\n\n            <div class=\"mt-4\">\n                <t t-set=\"layout_document_title\">\n                    <t t-if=\"o.state in ['draft', 'sent', 'to approve']\">Request for Quotation #<span t-field=\"o.name\"/></t>\n                    <t t-if=\"o.state in ['purchase', 'done']\">Purchase Order #<span t-field=\"o.name\"/></t>\n                    <t t-if=\"o.state == 'cancel'\">Cancelled Purchase Order #<span t-field=\"o.name\"/></t>\n                </t>\n            </div>\n\n            <div id=\"informations\" class=\"row mb-4\">\n                <div t-if=\"o.user_id\" class=\"col\">\n                    <strong>Buyer</strong>\n                    <div t-field=\"o.user_id\"/>\n                </div>\n                <div t-if=\"o.partner_ref\" class=\"col\">\n                    <strong>Your Order Reference</strong>\n                    <div t-field=\"o.partner_ref\"/>\n                </div>\n                <div t-if=\"o.state in ['purchase','done'] and o.date_approve\" class=\"col-3 bm-2\">\n                    <strong>Order Date:</strong>\n                    <p t-field=\"o.date_approve\" t-options=\"{'date_only': 'true'}\" class=\"m-0\"/>\n                </div>\n                <div t-elif=\"o.date_order\" class=\"col-2 bm-2\">\n                    <strong>Order Deadline:</strong>\n                    <p t-field=\"o.date_order\" t-options=\"{'date_only': 'true'}\" class=\"m-0\"/>\n                </div>\n                <div t-if=\"o.date_planned\" class=\"col-2 bm-2\">\n                    <strong>Expected Arrival:</strong>\n                    <p t-field=\"o.date_planned\" t-options=\"{'date_only': 'true'}\" class=\"m-0\"/>\n                </div>\n            </div>\n\n            <table class=\"o_has_total_table table o_main_table table-borderless\">\n                <thead style=\"display: table-row-group\">\n                    <tr>\n                        <th name=\"th_description\" class=\"text-start\"><strong>Description</strong></th>\n                        <th name=\"th_quantity\" class=\"text-end\"><strong>Qty</strong></th>\n                        <th name=\"th_price_unit\" class=\"text-end\"><strong>Unit Price</strong></th>\n                        <th name=\"th_discount\" class=\"text-end\"><strong>Disc.</strong></th>\n                        <th name=\"th_taxes\" class=\"text-end\"><strong>Taxes</strong></th>\n                        <th name=\"th_subtotal\" class=\"text-end\">\n                            <strong>Amount</strong>\n                        </th>\n                    </tr>\n                </thead>\n                <tbody>\n                    <t t-set=\"current_subtotal\" t-value=\"0\"/>\n                    <t t-foreach=\"o.order_line\" t-as=\"line\">\n                        <t t-set=\"current_subtotal\" t-value=\"current_subtotal + line.price_subtotal\"/>\n\n                        <tr t-att-class=\"'fw-bold o_line_section' if line.display_type == 'line_section' else 'fst-italic o_line_note' if line.display_type == 'line_note' else ''\">\n                            <t t-if=\"not line.display_type\">\n                                <td id=\"product\" class=\"text-start\">\n                                    <span t-field=\"line.name\"/>\n                                </td>\n                                <td class=\"text-end\">\n                                    <span t-field=\"line.product_qty\"/>\n                                    <span t-field=\"line.product_uom.name\" groups=\"uom.group_uom\"/>\n                                    <span t-if=\"line.product_packaging_id\">\n                                        (<span t-field=\"line.product_packaging_qty\" t-options=\"{&quot;widget&quot;: &quot;integer&quot;}\"/> <span t-field=\"line.product_packaging_id\"/>)\n                                    </span>\n                                </td>\n                                <td class=\"text-end\">\n                                    <span t-field=\"line.price_unit\"/>\n                                </td>\n                                <td class=\"text-end\">\n                                    <span class=\"text-align-bottom\"><span t-field=\"line.discount\"/>%</span>\n                                </td>\n                                <td class=\"text-end\">\n                                    <span t-out=\"', '.join([(tax.invoice_label or tax.name) for tax in line.taxes_id])\"/>\n                                </td>\n                                <td class=\"text-end\">\n                                    <span t-field=\"line.price_subtotal\" t-options=\"{&quot;widget&quot;: &quot;monetary&quot;, &quot;display_currency&quot;: o.currency_id}\"/>\n                                </td>\n                            </t>\n                            <t t-if=\"line.display_type == 'line_section'\">\n                                <td colspan=\"99\" id=\"section\">\n                                    <span t-field=\"line.name\"/>\n                                </td>\n                                <t t-set=\"current_section\" t-value=\"line\"/>\n                                <t t-set=\"current_subtotal\" t-value=\"0\"/>\n                            </t>\n                            <t t-if=\"line.display_type == 'line_note'\">\n                                <td colspan=\"99\" id=\"note\">\n                                    <span t-field=\"line.name\"/>\n                                </td>\n                            </t>\n                        </tr>\n                        <t t-if=\"current_section and (line_last or o.order_line[line_index+1].display_type == 'line_section')\">\n                            <tr class=\"is-subtotal text-end\">\n                                <td colspan=\"99\" id=\"subtotal\">\n                                    <strong class=\"mr16\">Subtotal</strong>\n                                    <span t-out=\"current_subtotal\" t-options=\"{&quot;widget&quot;: &quot;monetary&quot;, &quot;display_currency&quot;: o.currency_id}\"/>\n                                </td>\n                            </tr>\n                        </t>\n                    </t>\n                </tbody>\n            </table>\n\n            <div id=\"total\" class=\"row justify-content-end mt-n3\">\n                <div class=\"col-4\">\n                    <table class=\"o_total_table table table-borderless\">\n                        <t t-call=\"purchase.document_tax_totals\">\n                            <t t-set=\"tax_totals\" t-value=\"o.tax_totals\"/>\n                            <t t-set=\"currency\" t-value=\"o.currency_id\"/>\n                        </t>\n                    </table>\n                </div>\n            </div>\n\n            <p t-field=\"o.notes\" class=\"mt-4\"/>\n            <div class=\"oe_structure\"/>\n\n            <strong>Payment Terms: </strong>\n            <span t-field=\"o.payment_term_id\" class=\"mt-4\"/>\n\n            <t t-set=\"base_address\" t-value=\"o.env['ir.config_parameter'].sudo().get_param('web.base.url')\"/>\n            <t t-set=\"portal_url\" t-value=\"base_address + '/my/purchase/' + str(o.id) + '#portal_connect_software_modal'\"/>\n            <div t-if=\"any(u._is_portal() for u in o.partner_id.user_ids)\" class=\"text-center\">\n                <a t-att-href=\"portal_url\">Connect your software</a> with <t t-out=\"o.company_id.name\"/> to create quotes automatically.\n            </div>\n        </div>\n    </t>\n</t>", "es_ES": "<t t-name=\"purchase.report_purchaseorder_document\">\n    <t t-call=\"web.external_layout\">\n        <t t-set=\"o\" t-value=\"o.with_context(lang=o.partner_id.lang)\"/>\n        <t t-set=\"address\">\n            <div t-field=\"o.partner_id\" t-options=\"{&quot;widget&quot;: &quot;contact&quot;, &quot;fields&quot;: [&quot;address&quot;, &quot;name&quot;, &quot;phone&quot;, &quot;vat&quot;], &quot;no_marker&quot;: True, &quot;phone_icons&quot;: True}\"/>\n        </t>\n        <t t-if=\"o.dest_address_id\">\n            <t t-set=\"information_block\">\n                <strong class=\"d-block mt-3\">Dirección de envío</strong>\n                <div t-if=\"o.dest_address_id\">\n                    <div t-field=\"o.dest_address_id\" t-options=\"{&quot;widget&quot;: &quot;contact&quot;, &quot;fields&quot;: [&quot;address&quot;, &quot;name&quot;, &quot;phone&quot;], &quot;no_marker&quot;: True, &quot;phone_icons&quot;: True}\" name=\"purchase_shipping_address\"/>\n                </div>\n\n            </t>\n        </t>\n        <div class=\"page\">\n            <div class=\"oe_structure\"/>\n\n            <div class=\"mt-4\">\n                <t t-set=\"layout_document_title\">\n                    <t t-if=\"o.state in ['draft', 'sent', 'to approve']\">Solicitud de presupuesto #<span t-field=\"o.name\"/></t>\n                    <t t-if=\"o.state in ['purchase', 'done']\">Pedido de compra nº <span t-field=\"o.name\"/></t>\n                    <t t-if=\"o.state == 'cancel'\">Pedido de compra cancelado #<span t-field=\"o.name\"/></t>\n                </t>\n            </div>\n\n            <div id=\"informations\" class=\"row mb-4\">\n                <div t-if=\"o.user_id\" class=\"col\">\n                    <strong>Comprador</strong>\n                    <div t-field=\"o.user_id\"/>\n                </div>\n                <div t-if=\"o.partner_ref\" class=\"col\">\n                    <strong>La referencia de su pedido</strong>\n                    <div t-field=\"o.partner_ref\"/>\n                </div>\n                <div t-if=\"o.state in ['purchase','done'] and o.date_approve\" class=\"col-3 bm-2\">\n                    <strong>Fecha del pedido:</strong>\n                    <p t-field=\"o.date_approve\" t-options=\"{'date_only': 'true'}\" class=\"m-0\"/>\n                </div>\n                <div t-elif=\"o.date_order\" class=\"col-2 bm-2\">\n                    <strong>Fecha límite del pedido:</strong>\n                    <p t-field=\"o.date_order\" t-options=\"{'date_only': 'true'}\" class=\"m-0\"/>\n                </div>\n                <div t-if=\"o.date_planned\" class=\"col-2 bm-2\">\n                    <strong>Llegada esperada:</strong>\n                    <p t-field=\"o.date_planned\" t-options=\"{'date_only': 'true'}\" class=\"m-0\"/>\n                </div>\n            </div>\n\n            <table class=\"o_has_total_table table o_main_table table-borderless\">\n                <thead style=\"display: table-row-group\">\n                    <tr>\n                        <th name=\"th_description\" class=\"text-start\"><strong>Descripción</strong></th>\n                        <th name=\"th_quantity\" class=\"text-end\"><strong>Ctd.</strong></th>\n                        <th name=\"th_price_unit\" class=\"text-end\"><strong>Precio unitario</strong></th>\n                        <th name=\"th_discount\" class=\"text-end\"><strong>Desc.</strong></th>\n                        <th name=\"th_taxes\" class=\"text-end\"><strong>Impuestos</strong></th>\n                        <th name=\"th_subtotal\" class=\"text-end\">\n                            <strong>Importe</strong>\n                        </th>\n                    </tr>\n                </thead>\n                <tbody>\n                    <t t-set=\"current_subtotal\" t-value=\"0\"/>\n                    <t t-foreach=\"o.order_line\" t-as=\"line\">\n                        <t t-set=\"current_subtotal\" t-value=\"current_subtotal + line.price_subtotal\"/>\n\n                        <tr t-att-class=\"'fw-bold o_line_section' if line.display_type == 'line_section' else 'fst-italic o_line_note' if line.display_type == 'line_note' else ''\">\n                            <t t-if=\"not line.display_type\">\n                                <td id=\"product\" class=\"text-start\">\n                                    <span t-field=\"line.name\"/>\n                                </td>\n                                <td class=\"text-end\">\n                                    <span t-field=\"line.product_qty\"/>\n                                    <span t-field=\"line.product_uom.name\" groups=\"uom.group_uom\"/>\n                                    <span t-if=\"line.product_packaging_id\">\n                                        (<span t-field=\"line.product_packaging_qty\" t-options=\"{&quot;widget&quot;: &quot;integer&quot;}\"/> <span t-field=\"line.product_packaging_id\"/>)\n                                    </span>\n                                </td>\n                                <td class=\"text-end\">\n                                    <span t-field=\"line.price_unit\"/>\n                                </td>\n                                <td class=\"text-end\">\n                                    <span class=\"text-align-bottom\"><span t-field=\"line.discount\"/>%</span>\n                                </td>\n                                <td class=\"text-end\">\n                                    <span t-out=\"', '.join([(tax.invoice_label or tax.name) for tax in line.taxes_id])\"/>\n                                </td>\n                                <td class=\"text-end\">\n                                    <span t-field=\"line.price_subtotal\" t-options=\"{&quot;widget&quot;: &quot;monetary&quot;, &quot;display_currency&quot;: o.currency_id}\"/>\n                                </td>\n                            </t>\n                            <t t-if=\"line.display_type == 'line_section'\">\n                                <td colspan=\"99\" id=\"section\">\n                                    <span t-field=\"line.name\"/>\n                                </td>\n                                <t t-set=\"current_section\" t-value=\"line\"/>\n                                <t t-set=\"current_subtotal\" t-value=\"0\"/>\n                            </t>\n                            <t t-if=\"line.display_type == 'line_note'\">\n                                <td colspan=\"99\" id=\"note\">\n                                    <span t-field=\"line.name\"/>\n                                </td>\n                            </t>\n                        </tr>\n                        <t t-if=\"current_section and (line_last or o.order_line[line_index+1].display_type == 'line_section')\">\n                            <tr class=\"is-subtotal text-end\">\n                                <td colspan=\"99\" id=\"subtotal\">\n                                    <strong class=\"mr16\">Subtotal</strong>\n                                    <span t-out=\"current_subtotal\" t-options=\"{&quot;widget&quot;: &quot;monetary&quot;, &quot;display_currency&quot;: o.currency_id}\"/>\n                                </td>\n                            </tr>\n                        </t>\n                    </t>\n                </tbody>\n            </table>\n\n            <div id=\"total\" class=\"row justify-content-end mt-n3\">\n                <div class=\"col-4\">\n                    <table class=\"o_total_table table table-borderless\">\n                        <t t-call=\"purchase.document_tax_totals\">\n                            <t t-set=\"tax_totals\" t-value=\"o.tax_totals\"/>\n                            <t t-set=\"currency\" t-value=\"o.currency_id\"/>\n                        </t>\n                    </table>\n                </div>\n            </div>\n\n            <p t-field=\"o.notes\" class=\"mt-4\"/>\n            <div class=\"oe_structure\"/>\n\n            <strong>Términos de pago: </strong>\n            <span t-field=\"o.payment_term_id\" class=\"mt-4\"/>\n\n            <t t-set=\"base_address\" t-value=\"o.env['ir.config_parameter'].sudo().get_param('web.base.url')\"/>\n            <t t-set=\"portal_url\" t-value=\"base_address + '/my/purchase/' + str(o.id) + '#portal_connect_software_modal'\"/>\n            <div t-if=\"any(u._is_portal() for u in o.partner_id.user_ids)\" class=\"text-center\">\n                <a t-att-href=\"portal_url\">Conecte su software</a> con <t t-out=\"o.company_id.name\"/> para crear presupuestos automáticamente.\n            </div>\n        </div>\n    </t>\n</t>", "pt_PT": "<t t-name=\"purchase.report_purchaseorder_document\">\n    <t t-call=\"web.external_layout\">\n        <t t-set=\"o\" t-value=\"o.with_context(lang=o.partner_id.lang)\"/>\n        <t t-set=\"address\">\n            <div t-field=\"o.partner_id\" t-options=\"{&quot;widget&quot;: &quot;contact&quot;, &quot;fields&quot;: [&quot;address&quot;, &quot;name&quot;, &quot;phone&quot;, &quot;vat&quot;], &quot;no_marker&quot;: True, &quot;phone_icons&quot;: True}\"/>\n        </t>\n        <t t-if=\"o.dest_address_id\">\n            <t t-set=\"information_block\">\n                <strong class=\"d-block mt-3\">Endereço de entrega</strong>\n                <div t-if=\"o.dest_address_id\">\n                    <div t-field=\"o.dest_address_id\" t-options=\"{&quot;widget&quot;: &quot;contact&quot;, &quot;fields&quot;: [&quot;address&quot;, &quot;name&quot;, &quot;phone&quot;], &quot;no_marker&quot;: True, &quot;phone_icons&quot;: True}\" name=\"purchase_shipping_address\"/>\n                </div>\n\n            </t>\n        </t>\n        <div class=\"page\">\n            <div class=\"oe_structure\"/>\n\n            <div class=\"mt-4\">\n                <t t-set=\"layout_document_title\">\n                    <t t-if=\"o.state in ['draft', 'sent', 'to approve']\">Pedido de Orçamento n.º<span t-field=\"o.name\"/></t>\n                    <t t-if=\"o.state in ['purchase', 'done']\">Nota de encomenda #<span t-field=\"o.name\"/></t>\n                    <t t-if=\"o.state == 'cancel'\">Ordem de Compra Cancelada #<span t-field=\"o.name\"/></t>\n                </t>\n            </div>\n\n            <div id=\"informations\" class=\"row mb-4\">\n                <div t-if=\"o.user_id\" class=\"col\">\n                    <strong>Comprador</strong>\n                    <div t-field=\"o.user_id\"/>\n                </div>\n                <div t-if=\"o.partner_ref\" class=\"col\">\n                    <strong>Referência do seu pedido</strong>\n                    <div t-field=\"o.partner_ref\"/>\n                </div>\n                <div t-if=\"o.state in ['purchase','done'] and o.date_approve\" class=\"col-3 bm-2\">\n                    <strong>Data da Ordem:</strong>\n                    <p t-field=\"o.date_approve\" t-options=\"{'date_only': 'true'}\" class=\"m-0\"/>\n                </div>\n                <div t-elif=\"o.date_order\" class=\"col-2 bm-2\">\n                    <strong>Prazo do pedido:</strong>\n                    <p t-field=\"o.date_order\" t-options=\"{'date_only': 'true'}\" class=\"m-0\"/>\n                </div>\n                <div t-if=\"o.date_planned\" class=\"col-2 bm-2\">\n                    <strong>Chegada prevista:</strong>\n                    <p t-field=\"o.date_planned\" t-options=\"{'date_only': 'true'}\" class=\"m-0\"/>\n                </div>\n            </div>\n\n            <table class=\"o_has_total_table table o_main_table table-borderless\">\n                <thead style=\"display: table-row-group\">\n                    <tr>\n                        <th name=\"th_description\" class=\"text-start\"><strong>Descrição</strong></th>\n                        <th name=\"th_quantity\" class=\"text-end\"><strong>Qtd.</strong></th>\n                        <th name=\"th_price_unit\" class=\"text-end\"><strong>Preço Unitário</strong></th>\n                        <th name=\"th_discount\" class=\"text-end\"><strong>Desc.</strong></th>\n                        <th name=\"th_taxes\" class=\"text-end\"><strong>Impostos</strong></th>\n                        <th name=\"th_subtotal\" class=\"text-end\">\n                            <strong>Montante</strong>\n                        </th>\n                    </tr>\n                </thead>\n                <tbody>\n                    <t t-set=\"current_subtotal\" t-value=\"0\"/>\n                    <t t-foreach=\"o.order_line\" t-as=\"line\">\n                        <t t-set=\"current_subtotal\" t-value=\"current_subtotal + line.price_subtotal\"/>\n\n                        <tr t-att-class=\"'fw-bold o_line_section' if line.display_type == 'line_section' else 'fst-italic o_line_note' if line.display_type == 'line_note' else ''\">\n                            <t t-if=\"not line.display_type\">\n                                <td id=\"product\" class=\"text-start\">\n                                    <span t-field=\"line.name\"/>\n                                </td>\n                                <td class=\"text-end\">\n                                    <span t-field=\"line.product_qty\"/>\n                                    <span t-field=\"line.product_uom.name\" groups=\"uom.group_uom\"/>\n                                    <span t-if=\"line.product_packaging_id\">\n                                        (<span t-field=\"line.product_packaging_qty\" t-options=\"{&quot;widget&quot;: &quot;integer&quot;}\"/> <span t-field=\"line.product_packaging_id\"/>)\n                                    </span>\n                                </td>\n                                <td class=\"text-end\">\n                                    <span t-field=\"line.price_unit\"/>\n                                </td>\n                                <td class=\"text-end\">\n                                    <span class=\"text-align-bottom\"><span t-field=\"line.discount\"/>%</span>\n                                </td>\n                                <td class=\"text-end\">\n                                    <span t-out=\"', '.join([(tax.invoice_label or tax.name) for tax in line.taxes_id])\"/>\n                                </td>\n                                <td class=\"text-end\">\n                                    <span t-field=\"line.price_subtotal\" t-options=\"{&quot;widget&quot;: &quot;monetary&quot;, &quot;display_currency&quot;: o.currency_id}\"/>\n                                </td>\n                            </t>\n                            <t t-if=\"line.display_type == 'line_section'\">\n                                <td colspan=\"99\" id=\"section\">\n                                    <span t-field=\"line.name\"/>\n                                </td>\n                                <t t-set=\"current_section\" t-value=\"line\"/>\n                                <t t-set=\"current_subtotal\" t-value=\"0\"/>\n                            </t>\n                            <t t-if=\"line.display_type == 'line_note'\">\n                                <td colspan=\"99\" id=\"note\">\n                                    <span t-field=\"line.name\"/>\n                                </td>\n                            </t>\n                        </tr>\n                        <t t-if=\"current_section and (line_last or o.order_line[line_index+1].display_type == 'line_section')\">\n                            <tr class=\"is-subtotal text-end\">\n                                <td colspan=\"99\" id=\"subtotal\">\n                                    <strong class=\"mr16\">Subtotal </strong>\n                                    <span t-out=\"current_subtotal\" t-options=\"{&quot;widget&quot;: &quot;monetary&quot;, &quot;display_currency&quot;: o.currency_id}\"/>\n                                </td>\n                            </tr>\n                        </t>\n                    </t>\n                </tbody>\n            </table>\n\n            <div id=\"total\" class=\"row justify-content-end mt-n3\">\n                <div class=\"col-4\">\n                    <table class=\"o_total_table table table-borderless\">\n                        <t t-call=\"purchase.document_tax_totals\">\n                            <t t-set=\"tax_totals\" t-value=\"o.tax_totals\"/>\n                            <t t-set=\"currency\" t-value=\"o.currency_id\"/>\n                        </t>\n                    </table>\n                </div>\n            </div>\n\n            <p t-field=\"o.notes\" class=\"mt-4\"/>\n            <div class=\"oe_structure\"/>\n\n            <strong>Condições de pagamento: </strong>\n            <span t-field=\"o.payment_term_id\" class=\"mt-4\"/>\n\n            <t t-set=\"base_address\" t-value=\"o.env['ir.config_parameter'].sudo().get_param('web.base.url')\"/>\n            <t t-set=\"portal_url\" t-value=\"base_address + '/my/purchase/' + str(o.id) + '#portal_connect_software_modal'\"/>\n            <div t-if=\"any(u._is_portal() for u in o.partner_id.user_ids)\" class=\"text-center\">\n                <a t-att-href=\"portal_url\">Conecte seu software</a> com <t t-out=\"o.company_id.name\"/> para criar cotações automaticamente.\n            </div>\n        </div>\n    </t>\n</t>"}