report_purchaserequisition.xml 30.9 KB
Newer Older
François C. committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574
<?xml version="1.0" encoding="utf-8"?>
<openerp>
  <data>
    <template id="report_purchaserequisitions_document">
      <t t-call="report.internal_layout">
        <div class="page">
          <t t-set="num_of_suppliers" t-value="len(set(bid.partner_id for bid in o.purchase_ids))"/>
          <t t-set="tendering_output" t-value="sum(l.quantity_bid * l.order_id.currency_id.compute(l.price_unit, l.order_id.company_id.currency_id, round=False) for bid in o.eligible_bid_ids for l in bid.order_line if l.state == 'confirmed')"/>
          <t t-if="not o.eligible_bid_ids">
            <p>
              This tender has no eligible bids

              To be valid, a bid must have Eligible bid checked and be in state "Draft Bid" or "Bid encoded"
            </p>
          </t>
          <t t-foreach="range(0, len(o.eligible_bid_ids), 3)" t-as="batch_start">
            <!-- ensure title is not cut -->
            <br/>
            <h2 class="text-center">Comparative Bid analysis</h2>
            <t t-if="not batch_start_last">
              <t t-set="bid_batch" t-value="o.eligible_bid_ids[batch_start:batch_start+3]"/>
            </t>
            <t t-if="batch_start_last">
              <t t-set="bid_batch" t-value="o.eligible_bid_ids[batch_start:]"/>
            </t>
            <small>
              <div class="row mt32">
                <div class="col-xs-6">
                  <strong class="col-xs-6">Quotation Request (QR) No</strong>
                  <span class="col-xs-6 bg-info text-center" t-field="o.name"/>
                </div>
                <div class="col-xs-6">
                  <strong class="col-xs-6 ">Budget availability (<span t-field="o.company_id.currency_id"/>)</strong>
                  <span class="col-xs-6 bg-info text-center" t-field="o.budget"/>
                </div>
              </div>
              <div class="row mt4">
                <div class="col-xs-6">
                  <strong class="col-xs-6">Tender closing date/time</strong>
                  <t t-if="o.date_end">
                    <span class="col-xs-6 bg-info text-center" t-field="o.date_end"/>
                  </t>
                  <t t-if="not o.date_end">
                    <span class="col-xs-6 text-center" t-field="o.date_end">N/A</span>
                  </t>
                </div>
                <div class="col-xs-6">
                  <strong class="col-xs-6">Tendering output (<span t-field="o.company_id.currency_id"/>)</strong>
                  <t t-if="tendering_output > o.budget">
                    <span class="col-xs-6 bg-warning text-center" t-esc="'{:,.2f}'.format(tendering_output)"/>
                  </t>
                  <t t-if="not tendering_output > o.budget">
                    <span class="col-xs-6 bg-info text-center" t-esc="'{:,.2f}'.format(tendering_output)"/>
                  </t>
                </div>
              </div>
              <div class="row mt4 mb32">
                <div class="col-xs-6">
                  <strong class="col-xs-6">Number of Suppliers invited</strong>
                  <span class="col-xs-6 bg-info text-center" t-esc="num_of_suppliers"/>
                </div>
                <div class="col-xs-6">
                  <strong class="col-xs-6">Report date</strong>
                  <span class="col-xs-6 bg-info text-center" t-esc="time.strftime('%Y-%m-%d')"/>
                </div>
              </div>
              <small>
                <small>
                  <small>
                    <table id="bids-info" class="table table-condensed table-bordered" width="100%">
                      <thead>
                        <tr>
                          <t t-foreach="bid_batch" t-as="bid">
                            <t t-if="bid_first">
                              <th colspan="2" class="col-xs-3 info text-center col-separator">
                                Informations
                              </th>
                            </t>
                            <t t-if="any(l.state == 'confirmed' for l in bid.order_line)">
                              <th colspan="5" class="col-xs-3 bg-primary text-center col-separator">
                                <span t-field="bid.partner_id"/> of bid <span t-field="bid.name"/>
                              </th>
                            </t>
                            <t t-if="not any(l.state == 'confirmed' for l in bid.order_line)">
                              <th colspan="5" class="col-xs-3 info text-center col-separator">
                                <span t-field="bid.partner_id"/> of bid <span t-field="bid.name"/>
                              </th>
                            </t>
                          </t>
                        </tr>
                      </thead>
                      <tbody>
                        <tr>
                          <t t-foreach="bid_batch" t-as="bid">
                            <t t-if="bid_first">
                              <td colspan="2" class="col-xs-3 col-separator">
                                Quotations reference and date
                              </td>
                            </t>
                            <td colspan="5" class="text-center col-separator">
                              Bid <span t-field="bid.name"/> / Received on: <span t-field="bid.bid_date"/>
                            </td>
                          </t>
                        </tr>
                        <tr>
                          <t t-foreach="bid_batch" t-as="bid">
                            <t t-if="bid_first">
                              <td colspan="2" class="col-xs-3 col-separator">
                                Currency of bid
                              </td>
                            </t>
                            <td colspan="5" class="text-center col-separator">
                              <span t-field="bid.currency_id"/>
                            </td>
                          </t>
                        </tr>
                        <tr>
                          <t t-foreach="bid_batch" t-as="bid">
                            <t t-if="bid_first">
                              <td colspan="2" class="col-xs-3 col-separator">
                                Rate of exchange
                              </td>
                            </t>
                            <td colspan="5" class="text-center col-separator">
                              <t t-set="bid_conversion_rate" t-value="bid.currency_id._get_conversion_rate(bid.currency_id, o.company_id.currency_id)"/>
                              <span t-esc="bid_conversion_rate"/>
                            </td>
                          </t>
                        </tr>
                        <tr>
                          <t t-foreach="bid_batch" t-as="bid">
                            <t t-if="bid_first">
                              <th class="info">Description of item</th>
                              <th class="info text-center col-separator">Quantity</th>
                            </t>
                            <t t-if="any(l.state == 'confirmed' for l in bid.order_line)">
                              <td class="bg-primary text-center">Selected</td>
                            </t>
                            <t t-if="not any(l.state == 'confirmed' for l in bid.order_line)">
                              <td class="info text-center">Selected</td>
                            </t>
                            <td class="info text-center">Unit Price</td>
                            <th class="info text-center">TOTAL</th>
                            <th class="info text-center"> <span t-field="o.company_id.currency_id"/> Unit price </th>
                            <th class="info text-center col-separator"> <span t-field="o.company_id.currency_id"/> Total </th>
                          </t>
                        </tr>
                        <t t-foreach="o.line_ids" t-as="req_line">
                          <!-- Exclude services as they will appear in incoterms -->
                          <t t-if="req_line.product_id.type != 'service'">
                            <tr>
                              <t t-foreach="bid_batch" t-as="bid">
                                <t t-set="bid_conversion_rate" t-value="bid.currency_id._get_conversion_rate(bid.currency_id, o.company_id.currency_id)"/>
                                <t t-if="bid_first">
                                  <td><span t-field="req_line.product_id"/></td>
                                  <td class="text-right col-separator"><span t-esc="'{:,.2f}'.format(req_line.product_qty)"/></td>
                                </t>
                                <t t-set="bid_line" t-value="[l for l in bid.order_line if l.product_id == req_line.product_id]"/>
                                <t t-if="bid_line">
                                  <t t-set="bid_line" t-value="bid_line[0]"/>
                                  <!--Selected-->
                                  <t t-if="bid_line.state == 'confirmed'">
                                    <td class="text-right bg-success">
                                      <span t-esc="'{:,.2f}'.format(bid_line.quantity_bid)"/>
                                    </td>
                                  </t>
                                  <t t-if="bid_line.state != 'confirmed'">
                                    <td class="text-right">
                                      -
                                    </td>
                                  </t>
                                  <td class="text-right">
                                    <!--Unit Price-->
                                    <span t-field="bid_line.price_unit"/>
                                  </td>
                                  <td class="text-right">
                                    <!--TOTAL-->
                                    <span t-field="bid_line.price_subtotal"/>
                                  </td>
                                  <td class="text-right">
                                    <!--Company Currency Unit Price-->
                                    <span t-esc="'{:,.2f}'.format(bid_line.price_unit * bid_conversion_rate)"/>
                                  </td>
                                  <td class="text-right col-separator">
                                    <!--Company Currency total-->
                                    <span t-esc="'{:,.2f}'.format(bid_line.price_subtotal * bid_conversion_rate)"/>
                                  </td>
                                </t>
                                <t t-if="not bid_line">
                                  <td colspan="5" class="col-separator"/>
                                </t>
                              </t>
                            </tr>
                          </t>
                        </t>
                        <t t-set="all_requested_products" t-value="[l.product_id for l in o.line_ids]"/>
                        <t t-set="non_requested_products" t-value="set(l.product_id for bid in bid_batch for l in bid.order_line if l.product_id.type != 'service')"/>
                        <t t-if="non_requested_products">
                          <t t-foreach="non_requested_products" t-as="non_req_product">
                            <t t-if="non_req_product not in all_requested_products">
                              <tr class="active">
                                <t t-foreach="bid_batch" t-as="bid">
                                  <t t-set="bid_conversion_rate" t-value="bid.currency_id._get_conversion_rate(bid.currency_id, o.company_id.currency_id)"/>
                                  <t t-if="bid_first">
                                    <td><span t-field="non_req_product.name"/></td>
                                    <td class="col-separator text-center">N/A</td>
                                  </t>
                                  <t t-set="bid_line" t-value="[l for l in bid.order_line if l.product_id == non_req_product]"/>
                                  <t t-if="bid_line">
                                    <t t-set="bid_line" t-value="bid_line[0]"/>
                                    <!--Selected-->
                                    <t t-if="bid_line.state == 'confirmed'">
                                      <td class="text-right bg-success">
                                        <span t-esc="'{:,.2f}'.format(bid_line.quantity_bid)"/>
                                      </td>
                                    </t>
                                    <t t-if="bid_line.state != 'confirmed'">
                                      <td class="text-right">
                                        -
                                      </td>
                                    </t>
                                    <td class="text-right">
                                      <!--Unit Price-->
                                      <span t-field="bid_line.price_unit"/>
                                    </td>
                                    <td class="text-right">
                                      <!--TOTAL-->
                                      <span t-field="bid_line.price_subtotal"/>
                                    </td>
                                    <td class="text-right">
                                      <!--Company Currency Unit Price-->
                                      <span t-esc="'{:,.2f}'.format(bid_line.price_unit * bid_conversion_rate)"/>
                                    </td>
                                    <td class="text-right col-separator">
                                      <!--Company Currency total-->
                                      <span t-esc="'{:,.2f}'.format(bid_line.price_subtotal * bid_conversion_rate)"/>
                                    </td>
                                  </t>
                                  <t t-if="not bid_line">
                                    <td colspan="5" class="col-separator"/>
                                  </t>
                                </t>
                              </tr>
                            </t>
                          </t>
                        </t>
                        <tr class="subtotal">
                          <t t-foreach="bid_batch" t-as="bid">
                            <t t-set="bid_conversion_rate" t-value="bid.currency_id._get_conversion_rate(bid.currency_id, o.company_id.currency_id)"/>
                            <t t-if="bid_first">
                              <td colspan="2" class="col-separator"/>
                            </t>
                            <td colspan="2"/>
                            <td class="text-right">
                              <t t-esc="'{:,.2f}'.format(sum(l.price_subtotal for l in bid.order_line if l.product_id.type != 'service'))"/>
                            </td>
                            <td/>
                            <td class="text-right col-separator">
                              <t t-esc="'{:,.2f}'.format(sum(l.price_subtotal for l in bid.order_line if l.product_id.type != 'service') * bid_conversion_rate)"/>
                            </td>
                          </t>
                        </tr>
                        <tr>
                          <t t-foreach="bid_batch" t-as="bid">
                            <t t-if="bid_first">
                              <th colspan="1">
                                Incoterm (2010)
                              </th>
                              <td colspan="1" class="col-separator">
                                <span t-field="o.req_incoterm_id.code"/>
                              </td>
                            </t>
                            <td colspan="5" class="col-separator"/>
                          </t>
                        </tr>
                        <t t-set="service_products" t-value="set(l.product_id for bid in bid_batch for l in bid.order_line if l.product_id.type == 'service')"/>
                        <t t-foreach="service_products" t-as="service">
                          <tr>
                            <t t-foreach="bid_batch" t-as="bid">
                              <t t-set="bid_conversion_rate" t-value="bid.currency_id._get_conversion_rate(bid.currency_id, o.company_id.currency_id)"/>
                              <t t-if="bid_first">
                                <td colspan="2" class="col-separator"><span t-esc="service.name"/></td>
                              </t>
                              <t t-set="service_line" t-value="[l for l in bid.order_line if l.product_id == service]"/>
                              <t t-if="service_line">
                                <t t-set="service_line" t-value="service_line[0]"/>
                                <!--Selected-->
                                <t t-if="service_line.state == 'confirmed'">
                                  <td class="text-right bg-success">
                                    <span t-esc="'{:,.2f}'.format(service_line.quantity_bid)"/>
                                  </td>
                                </t>
                                <t t-if="service_line.state != 'confirmed'">
                                  <td class="text-right">
                                    -
                                  </td>
                                </t>
                                <td colspan="1"/>
                                <td colspan="1" class="text-right">
                                  <span t-field="service_line.price_unit"/>
                                </td>
                                <td colspan="1"/>
                                <td colspan="1" class="text-right col-separator">
                                  <span t-esc="'{:,.2f}'.format(service_line.price_unit * bid_conversion_rate)"/>
                                </td>
                              </t>
                              <t t-if="not service_line">
                                <td colspan="5" class="col-separator"/>
                              </t>
                            </t>
                          </tr>
                        </t>
                        <tr class="subtotal">
                          <t t-foreach="bid_batch" t-as="bid">
                            <t t-set="bid_conversion_rate" t-value="bid.currency_id._get_conversion_rate(bid.currency_id, o.company_id.currency_id)"/>
                            <t t-if="bid_first">
                              <th colspan="2" class="col-separator">
                                Sub-total services
                              </th>
                            </t>
                            <td colspan="2"/>
                            <td class="text-right">
                              <t t-esc="'{:,.2f}'.format(sum(l.price_subtotal for l in bid.order_line if l.product_id.type == 'service'))"/>
                            </td>
                            <td/>
                            <td class="text-right col-separator">
                              <t t-esc="'{:,.2f}'.format(sum(l.price_subtotal for l in bid.order_line if l.product_id.type == 'service') * bid_conversion_rate)"/>
                            </td>
                          </t>
                        </tr>
                        <tr class="total">
                          <t t-foreach="bid_batch" t-as="bid">
                            <t t-set="bid_conversion_rate" t-value="bid.currency_id._get_conversion_rate(bid.currency_id, o.company_id.currency_id)"/>
                            <t t-if="bid_first">
                              <th colspan="2" class="col-separator">
                                GRAND TOTAL
                              </th>
                            </t>
                            <td/>
                            <td class="text-center">
                              <span t-field="bid.currency_id"/>
                            </td>
                            <td class="text-right">
                              <span t-field="bid.amount_total"/>
                            </td>
                            <th class="text-center">
                              <span t-field="o.company_id.currency_id"/>
                            </th>
                            <td class="text-right col-separator">
                              <span t-esc="'{:,.2f}'.format(sum(l.price_subtotal for l in bid.order_line) * bid_conversion_rate)"/>
                            </td>
                          </t>
                        </tr>
                        <tr>
                          <td t-att-colspan="2 + 5 * len(bid_batch)"/>
                        </tr>
                        <tr>
                          <t t-foreach="bid_batch" t-as="bid">
                            <t t-if="bid_first">
                              <td colspan="2" class="col-separator">Country of origin</td>
                            </t>
                            <td colspan="5" class="col-separator">
                              <span t-field="bid.country_of_origin"/>
                            </td>
                          </t>
                        </tr>
                        <tr>
                          <t t-foreach="bid_batch" t-as="bid">
                            <t t-if="bid_first">
                              <td colspan="2" class="col-separator">Weight estimated</td>
                            </t>
                            <td colspan="5" class="col-separator">
                              <span t-field="bid.weight_estimated"/>
                            </td>
                          </t>
                        </tr>
                        <tr>
                          <t t-foreach="bid_batch" t-as="bid">
                            <t t-if="bid_first">
                              <td colspan="2" class="col-separator">Volume estimated</td>
                            </t>
                            <td colspan="5" class="col-separator">
                              <span t-field="bid.volume_estimated"/>
                            </td>
                          </t>
                        </tr>
                        <tr>
                          <t t-foreach="bid_batch" t-as="bid">
                            <t t-if="bid_first">
                              <td colspan="2" class="col-separator">Delivery promised (Incoterms + destination)</td>
                            </t>
                            <td colspan="5" class="col-separator">
                              <span t-field="bid.incoterm_id.code"/> / <span t-field="bid.incoterm_address"/>
                            </td>
                          </t>
                        </tr>
                        <tr>
                          <t t-foreach="bid_batch" t-as="bid">
                            <t t-if="bid_first">
                              <td colspan="2" class="col-separator">Estimated arrival date</td>
                            </t>
                            <td colspan="5" class="col-separator">
                              <span t-field="bid.minimum_planned_date"/>
                            </td>
                          </t>
                        </tr>
                        <tr>
                          <t t-foreach="bid_batch" t-as="bid">
                            <t t-if="bid_first">
                              <td colspan="2" class="col-separator">Terms of payment</td>
                            </t>
                            <td colspan="5" class="col-separator">
                              <span t-field="bid.terms_of_payment"/>
                            </td>
                          </t>
                        </tr>
                        <tr>
                          <t t-foreach="bid_batch" t-as="bid">
                            <t t-if="bid_first">
                              <td colspan="2" class="col-separator">Paymet terms</td>
                            </t>
                            <td colspan="5" class="col-separator">
                              <span t-field="bid.payment_term_id"/>
                            </td>
                          </t>
                        </tr>
                        <tr>
                          <t t-foreach="bid_batch" t-as="bid">
                            <t t-if="bid_first">
                              <td colspan="2" class="col-separator">Bid validity date</td>
                            </t>
                            <td colspan="5" class="col-separator">
                              <span t-field="bid.bid_validity"/>
                            </td>
                          </t>
                        </tr>
                        <tr>
                          <t t-foreach="bid_batch" t-as="bid">
                            <t t-if="bid_first">
                              <td colspan="2" class="col-separator">Meets required specifications</td>
                            </t>
                            <td colspan="5" class="col-separator">
                              <t t-if="bid.meets_specifications">
                                Yes
                              </t>
                              <t t-if="not bid.meets_specifications">
                                No
                              </t>
                            </td>
                          </t>
                        </tr>
                        <tr>
                          <t t-foreach="bid_batch" t-as="bid">
                            <t t-if="bid_first">
                              <td colspan="2" class="col-separator">Internal remarks</td>
                            </t>
                            <td colspan="5" class="col-separator">
                              <span t-field="bid.bid_internal_remark"/>
                            </td>
                          </t>
                        </tr>
                      </tbody>
                    </table>
                    <t t-if="batch_start_last">
                      <t t-set="non_eligible_bids" t-value="[bid for bid in o.bid_ids if not bid.bid_eligible and bid.state in ('draftbid', 'bid')]"/>
                      <t t-if="non_eligible_bids">
                        <h3>Non eligible bids</h3>
                        <table id="bids-non-eligible" class="table table-condensed table-bordered" width="100%">
                          <tbody>
                            <tr>
                              <th class="col-xs-2 info">
                                Supplier name
                              </th>
                              <th class="col-xs-1 info">
                                Bid Date
                              </th>
                              <th class="col-xs-2 info">
                                Bid number
                              </th>
                              <th class="col-xs-2 info">
                                Supplier reference
                              </th>
                              <th class="col-xs-5 info">
                                Internal remark
                              </th>
                            </tr>
                            <t t-foreach="non_eligible_bids" t-as="bid">
                              <tr>
                                <td><span t-field="bid.partner_id"/></td>
                                <td><span t-field="bid.bid_date"/></td>
                                <td><span t-field="bid.name"/></td>
                                <td><span t-field="bid.partner_ref"/></td>
                                <td><span t-field="bid.bid_internal_remark"/></td>
                              </tr>
                            </t>
                          </tbody>
                        </table>
                      </t>
                      <t t-set="canceled_bids" t-value="[bid for bid in o.bid_ids if bid.state == 'cancel']"/>
                      <t t-if="canceled_bids">
                        <h3>Canceled bids</h3>
                        <table id="bids-canceled" class="table table-condensed table-bordered" width="100%">
                          <tbody>
                            <tr>
                              <th class="col-xs-8 info">
                                Supplier name
                              </th>
                              <th class="col-xs-4 info">
                                Internal remark
                              </th>
                            </tr>
                            <t t-foreach="canceled_bids" t-as="bid">
                              <tr>
                                <td><span t-field="bid.partner_id"/></td>
                                <td><span t-field="bid.bid_internal_remark"/></td>
                              </tr>
                            </t>
                          </tbody>
                        </table>
                      </t>
                    </t>
                  </small>
                </small>
                <t t-if="batch_start_last">
                  <div class="row mt32">
                    <div class="col-xs-6">
                      <strong class="col-xs-4">Recommended Supplier(s)</strong>
                      <t t-set="recommended_suppliers" t-value="', '.join(bid.partner_id.name for bid in o.eligible_bid_ids if any(l.state == 'confirmed' for l in bid.order_line))"/>
                      <t t-if="recommended_suppliers">
                        <span class="col-xs-8 bg-info text-center" t-esc="recommended_suppliers"/>
                      </t>
                      <t t-if="not recommended_suppliers">
                        <span class="col-xs-8 text-center">N/A</span>
                      </t>
                    </div>
                    <div class="col-xs-6">
                      <strong class="col-xs-4 ">Prepared and submited by</strong>
                      <span class="col-xs-8 bg-info text-center" t-field="o.user_id"/>
                    </div>
                  </div>
                  <div class="row mt8">
                    <div class="col-xs-6">
                      <strong class="col-xs-4">Reason</strong>
                      <span class="col-xs-8 bg-info text-center large-text" t-field="o.selection_reasons"/>
                    </div>
                    <div class="col-xs-6">
                      <strong class="col-xs-4">Approved by</strong>
                      <span class="col-xs-8 bg-info text-center large-text"><br/></span>
                    </div>
                  </div>
                </t>
              </small>
            </small>
            <p style="page-break-after:always;">   </p>
            <div class="oe_structure"/>
          </t>
        </div>
      </t>
    </template>
    <template id="report_purchaserequisitions">
      <style type="text/css">
        .total { border-top: 5px double darkgrey !important; }
        .subtotal { border-top: 2px solid darkgrey !important; }
        .col-separator { border-right: 3px solid lightgrey !important; }
        .large-text { min-height: 50px !important;}
      </style>
      <t t-call="report.html_container">
        <t t-foreach="doc_ids" t-as="doc_id">
          <t t-raw="translate_doc(doc_id, doc_model, 'user_id.lang', 'purchase_requisition_bid_selection.report_purchaserequisitions_document')"/>
        </t>
      </t>
    </template>
  </data>
</openerp>