nota_remision_print.xml 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <openerp>
  3. <data>
  4. <report id="nota_remision"
  5. model="sale.nota.remision"
  6. string="Nota Remision"
  7. report_type="qweb-pdf"
  8. name="nota_remision_standard.report_nota_remision"
  9. file="nota_remision_standard.report_nota_remision"
  10. />
  11. <template id="new_external_layout">
  12. <!-- Multicompany -->
  13. <t t-if="o and 'company_id' in o">
  14. <t t-set="company" t-value="o.company_id"></t>
  15. </t>
  16. <t t-if="not o or not 'company_id' in o">
  17. <t t-set="company" t-value="res_company"></t>
  18. </t>
  19. <t t-call="nota_remision_standard.new_external_layout_header" />
  20. <t t-raw="0" />
  21. </template>
  22. <template id="new_external_layout_header">
  23. <div class="header">
  24. <div class="row">
  25. <div class="col-xs-8">
  26. <div>
  27. <strong><span t-field="company.partner_id" style="font-size:20px"/></strong>
  28. </div>
  29. <div t-field="company.rml_header1"/>
  30. <div>
  31. <span>R.U.C:</span>
  32. <span t-field="company.partner_id.ruc"/>
  33. </div>
  34. <div t-field="company.street"/>
  35. <div t-field="company.street2"/>
  36. <div t-field="company.state_id"/>
  37. <div t-field="company.country_id"/>
  38. </div>
  39. <div class="col-xs-4">
  40. <img t-if="company.logo" t-att-src="'data:image/png;base64,%s' % company.logo" style="max-height: 100px; float:right"/>
  41. </div>
  42. </div>
  43. <div class="row zero_min_height">
  44. <div class="col-xs-12">
  45. <div style="border-bottom: 1px solid black;"></div>
  46. </div>
  47. </div>
  48. </div>
  49. </template>
  50. <template id="report_nota_remision">
  51. <t t-call="report.html_container">
  52. <t t-call="nota_remision_standard.new_external_layout">
  53. <t t-foreach="docs" t-as="o">
  54. <div class="page">
  55. <style>
  56. h5{
  57. font-weight: bold;
  58. }
  59. .div_border{
  60. border: 1px solid black;
  61. padding:10px
  62. }
  63. th, td {
  64. width:150px;
  65. padding:4.8px
  66. }
  67. .logo1{
  68. height: 2.1cm;
  69. width: 100%;
  70. top: 0px;
  71. }
  72. .fecha_emision_data{
  73. width: 12.5cm;
  74. padding-left: 8.2cm;
  75. float: left;
  76. min-height: 1.4cm;
  77. }
  78. .blank_space{
  79. height:5px;
  80. }
  81. .cli_nombre_label{
  82. width:4.5cm;
  83. min-height: 1cm;
  84. }
  85. .cli_nombre{
  86. width:3cm;
  87. min-height: 1cm;
  88. }
  89. .cli_ruc_label{
  90. width:3cm;
  91. min-height: 1cm;
  92. }
  93. .cli_ruc{
  94. width:3cm;
  95. min-height: 1cm;
  96. }
  97. .cli_telef_label{
  98. width:3cm;
  99. min-height: 1.6cm;
  100. }
  101. .cli_telef{
  102. width:3cm;
  103. min-height: 1.6cm;
  104. }
  105. .cli_movil_label{
  106. width:3cm;
  107. min-height: 1.6cm;
  108. }
  109. .cli_movil{
  110. width:3cm;
  111. min-height: 1.6cm;
  112. }
  113. .logo{
  114. height: 0.7cm;
  115. width: 100%;
  116. top: 0px;
  117. }
  118. .motivo_data_label{
  119. width:3cm;
  120. min-height: 1.4cm;
  121. }
  122. .motivo_data{
  123. width:3cm;
  124. padding-left: 3.0cm;
  125. min-height: 1.4cm;
  126. }
  127. .comprobante_data_label{
  128. width:1cm;
  129. min-height: 1.4cm;
  130. }
  131. .comprobante_data{
  132. width:3cm;
  133. padding-left: 0.9cm;
  134. min-height: 1.4m;
  135. }
  136. .comprobante_label{
  137. width:0.2cm;
  138. min-height: 1.5cm;
  139. }
  140. .comprobante{
  141. width:3cm;
  142. padding-left: 4.4cm;
  143. min-height: 1.5cm;
  144. }
  145. .timbrado_label{
  146. width:3cm;
  147. min-height: 1.5cm;
  148. }
  149. .timbrado{
  150. width:3cm;
  151. padding-left: 0.2cm;
  152. min-height: 1.5cm;
  153. }
  154. .expedicion_label{
  155. width:1cm;
  156. min-height: 1.5cm;
  157. }
  158. .expedicion{
  159. width:3cm;
  160. padding-left: 3.3cm;
  161. min-height: 1.5cm;
  162. }
  163. .fecha_inicio_label{
  164. width:3cm;
  165. min-height: 1.6cm;
  166. }
  167. .fecha_inicio{
  168. width:3cm;
  169. padding-left: 3.8cm;
  170. min-height: 1.6cm;
  171. }
  172. .fecha_termino_label{
  173. width:3cm;
  174. min-height: 1.6cm;
  175. }
  176. .fecha_termino{
  177. width:3cm;
  178. min-height: 1.6cm;
  179. }
  180. .direccion_partida_label{
  181. width:3cm;
  182. padding-left: 3.9cm;
  183. min-height: 1.5cm;
  184. }
  185. .direccion_partida{
  186. width:3cm;
  187. padding-left: 3.6cm;
  188. min-height: 1.5cm;
  189. }
  190. .ciudad_label{
  191. width:3cm;
  192. min-height: 1.9cm;
  193. }
  194. .ciudad{
  195. width:3cm;
  196. padding-left: 2.2cm;
  197. min-height: 1.9cm;
  198. }
  199. .departamento_label{
  200. width:1cm;
  201. min-height: 1.9cm;
  202. }
  203. .departamento{
  204. width:3cm;
  205. min-height: 1.9cm;
  206. }
  207. .direccion_llegada_label{
  208. width:3cm;
  209. min-height: 1.6cm;
  210. }
  211. .direccion_llegada{
  212. width:3cm;
  213. padding-left: 4.3cm;
  214. min-height: 1.6cm;
  215. }
  216. .ciudad2_label{
  217. width:3cm;
  218. min-height: 1.6cm;
  219. }
  220. .ciudad2{
  221. width:3cm;
  222. min-height: 1.6cm;
  223. }
  224. .departamento2_label{
  225. width:0.2cm;
  226. min-height: 1.6cm;
  227. }
  228. .departamento2{
  229. width:3cm;
  230. min-height: 1.6cm;
  231. }
  232. .km_label{
  233. width:0.1cm;
  234. min-height: 1.7cm;
  235. }
  236. .km{
  237. width:3cm;
  238. padding-left: 3.3cm;
  239. min-height: 1.7cm;
  240. }
  241. .cambio_fecha_label{
  242. width:3cm;
  243. min-height: 1.5cm;
  244. }
  245. .cambio_fecha{
  246. width:3cm;
  247. padding-left: 7.5cm;
  248. min-height: 1.5cm;
  249. }
  250. .espacio{
  251. width:1.1cm;
  252. }
  253. .motivo_cambio_label{
  254. width:3cm;
  255. min-height: 5.9cm;
  256. }
  257. .motivo_cambio{
  258. width:3cm;
  259. padding-left: 1.2cm;
  260. min-height: 5.9cm;
  261. }
  262. .espacio1{
  263. width:1.1cm;
  264. }
  265. .vehiculo_nombre_label{
  266. width:1.5cm;
  267. min-height: 1.4m;
  268. }
  269. .vehiculo_nombre{
  270. width:3cm;
  271. padding-left: 0.2cm;
  272. min-height: 1.4cm;
  273. }
  274. .vehiculo_chapa_label{
  275. width:1cm;
  276. min-height: 1.4cm;
  277. }
  278. .vehiculo_chapa{
  279. width:3cm;
  280. padding-left: 4.8cm;
  281. min-height: 1.4cm;
  282. }
  283. .remolque_chapa_label{
  284. width:10cm;
  285. min-height: 4.5cm;
  286. }
  287. .remolque_chapa{
  288. width:3cm
  289. padding-left: 2.2cm;
  290. min-height: 4.5cm;
  291. }
  292. .conductor_nombre_label{
  293. width:3cm;
  294. min-height: 1.4cm;
  295. }
  296. .conductor_nombre{
  297. width:3cm;
  298. padding-left: 1.8cm;
  299. min-height: 1.4cm;
  300. }
  301. .conductor_ruc_label{
  302. width:2cm;
  303. min-height: 1.4cm;
  304. }
  305. .conductor_ruc{
  306. width:3cm;
  307. min-height: 1.4cm;
  308. }
  309. .conductor_direccion_label{
  310. width:3cm;
  311. min-height: 1.5cm;
  312. }
  313. .conductor_direccion{
  314. width:3cm;
  315. min-height: 1.5cm;
  316. }
  317. .cab-articulos{
  318. height: 2.9cm;
  319. padding-left: 1.4cm;
  320. width: 100%;
  321. clear: both;
  322. }
  323. .articulos{
  324. height: 4.65cm;
  325. padding-left: 1.4cm;
  326. width: 100%;
  327. }
  328. .art-col1{
  329. width:2.2cm;
  330. text-align: center;
  331. }
  332. .art-col2{
  333. padding-left: 1.5cm;
  334. width:1cm;
  335. text-align: center;
  336. }
  337. .art-col3{
  338. padding-left: 1cm;
  339. width:11.4cm;
  340. }
  341. </style>
  342. <div class="logo1"></div>
  343. <!-- <h2><center>NOTA DE REMISIÓN <span t-field="o.name"></span></center></h2> -->
  344. <div class="fecha_emision_data"><span t-field="o.initial_transfer_date" t-field-options='{"format": "dd MMMM yyyy"}'/></div>
  345. <!-- <div class="div_border"> -->
  346. <!-- <h5>1. DESTINATARIO DE LA MERCADERÍA</h5> -->
  347. <table width="100%">
  348. <tr>
  349. <td class="cli_nombre_label"></td>
  350. <td class="cli_nombre"><span t-field="o.partner_id"/></td>
  351. <td class="cli_ruc_label"> </td>
  352. <td class="cli_ruc"><span t-field="o.partner_ruc"/></td>
  353. </tr>
  354. <div class="blank_space"/>
  355. <tr>
  356. <td class="cli_telef_label"> </td>
  357. <td class="cli_telef"><span t-field="o.partner_street"/></td>
  358. <td class="cli_movil_label"> </td>
  359. <td class="cli_movil"><span t-field="o.partner_mobile"/></td>
  360. </tr>
  361. </table>
  362. <!-- </div> -->
  363. <div class="blank_space"/>
  364. <div class="blank_space"/>
  365. <div class="logo"></div>
  366. <div class="blank_space"/>
  367. <!-- <div class="div_border"> -->
  368. <!-- <h5>3. MOTIVO DEL TRANSLADO</h5> -->
  369. <table width="80%">
  370. <tr>
  371. <td class="motivo_data_label">
  372. </td>
  373. <td class="motivo_data">
  374. <t t-if="o.is_sale">
  375. <span>Venta</span>
  376. </t>
  377. <t t-if="o.is_export">
  378. <span>Exportación</span>
  379. </t>
  380. <t t-if="o.is_consignment">
  381. <span>Consignación</span>
  382. </t>
  383. <t t-if="o.is_intertal_transfer">
  384. <span>Traslado entre locales de la misma empresa</span>
  385. </t>
  386. <t t-if="o.is_repair_transfer">
  387. <span>Traslado de Bienes para Reparación</span>
  388. </t>
  389. <t t-if="o.is_exhibition">
  390. <span>Exhibición, demostración</span>
  391. </t>
  392. <t t-if="o.is_purchase">
  393. <span>Compra</span>
  394. </t>
  395. <t t-if="o.is_import">
  396. <span>Importación</span>
  397. </t>
  398. <t t-if="o.is_return">
  399. <span>Devolución</span>
  400. </t>
  401. <t t-if="o.is_transformation_transfer">
  402. <span>Traslado de Bienes para la Transformación</span>
  403. </t>
  404. <t t-if="o.is_movil_transfer">
  405. <span>Traslado por Emisión móvil</span>
  406. </t>
  407. <t t-if="o.is_fair">
  408. <span>Participación en Ferias</span>
  409. </t>
  410. </td>
  411. <td class="comprobante_data_label">
  412. </td>
  413. <td class="comprobante_data"><span t-field="o.sale_voucher"/></td>
  414. </tr>
  415. <tr>
  416. <td class="comprobante_label">
  417. </td>
  418. <td class="comprobante"><span t-field="o.sale_voucher"/></td>
  419. <td class="timbrado_label">
  420. </td>
  421. <td class="timbrado"><span t-field="o.name"/></td>
  422. </tr>
  423. <tr>
  424. <td class="expedicion_label">
  425. </td>
  426. <td class="expedicion"><span t-field="o.name"/></td>
  427. </tr>
  428. </table>
  429. <!-- </div> -->
  430. <!-- <h5>2. DATOS DEL ENVÍO</h5> -->
  431. <table width="75%">
  432. <tr>
  433. <td class="fecha_inicio_label"> </td>
  434. <td class="fecha_inicio"><span t-field="o.initial_transfer_date" t-field-options='{"format": "DD/MM/yyyy"}'/></td>
  435. <td class="fecha_termino_label"> </td>
  436. <td class="fecha_termino"><span t-field="o.finish_transfer_date" t-field-options='{"format": "DD/MM/yyyy"}'/></td>
  437. </tr>
  438. <tr>
  439. <div class="blank_space"/>
  440. </tr>
  441. <tr>
  442. <div class="blank_space"/>
  443. </tr>
  444. <tr>
  445. <td class="direccion_partida_label"> </td>
  446. <td class="direccion_partida" colspan="3"><span t-field="o.partner_company.street"/> <span t-field="o.partner_company.street2"/></td>
  447. </tr>
  448. <tr></tr><tr></tr>
  449. <tr>
  450. <td class="ciudad_label"> </td>
  451. <td class="ciudad"><span t-field="o.partner_company.city"/></td>
  452. <td class="departamento_label"> </td>
  453. <td class="departamento"><span t-field="o.partner_state"/></td>
  454. </tr>
  455. <tr></tr><tr></tr>
  456. <tr>
  457. <td class="direccion_llegada_label"> </td>
  458. <td class="direccion_llegada" colspan="3"><span t-field="o.partner_id.street"/> <span t-field="o.partner_id.street2"/>, <span t-field="o.partner_id.city"/></td>
  459. </tr>
  460. <tr></tr><tr></tr>
  461. <tr>
  462. <td class="ciudad2_label"> </td>
  463. <td class="ciudad2"><span t-field="o.partner_city"/></td>
  464. <td class="departamento2_label"> </td>
  465. <td class="departamento2"><span t-field="o.partner_state"/></td>
  466. </tr>
  467. </table>
  468. <div class="blank_space"/>
  469. <table width="70%">
  470. <tr>
  471. <td class="km_label"> </td>
  472. <td class="km"><span t-field="o.obs_remision"/></td>
  473. </tr>
  474. <tr>
  475. <td class="spacio"> </td>
  476. </tr>
  477. <tr>
  478. <td class="cambio_fecha_label"> </td>
  479. <td class="cambio_fecha"><span t-field="o.obs_remision"/></td>
  480. </tr>
  481. <td class="spacio"> </td>
  482. <tr>
  483. </tr>
  484. <tr>
  485. <td class="motivo_cambio_label"> </td>
  486. <td class="motivo_cambio"><span t-field="o.obs_remision"/></td>
  487. </tr>
  488. </table>
  489. <!-- </div> -->
  490. <div class="blank_space"/>
  491. <div class="blank_space"/>
  492. <div class="blank_space"/>
  493. <div class="blank_space"/>
  494. <!-- <div class="div_border"> -->
  495. <!-- <h5>4. DATOS DEL TRANSPORTISTA Y DEL COMPROBANTE DE VENTA POR EL SERVICIO DE TRANSPORTE</h5> -->
  496. <!-- <table width="100%">
  497. <tr>
  498. <td class="vend_nombre_label">Nombre y Apellido: <span t-field="o.user_id"/></td>
  499. </tr>
  500. <tr>
  501. <td class="vend_telef_label">Teléfono: </td>
  502. <td class="vend_telef"><span t-field="o.user_phone"/> <span t-field="o.user_mobile"/></td>
  503. </tr>
  504. <tr>
  505. <td class="transportista_nombre_label">Nombre o Razón Social del Transportista: <span t-field="o.logistic_company_id"/></td>
  506. </tr>
  507. <tr>
  508. <td class="transportista_ruc_label">R.U.C. del transportista: <span t-field="o.logistic_ruc"/></td>
  509. </tr>
  510. </table> -->
  511. <!-- </div> -->
  512. <!-- <div class="blank_space"/> -->
  513. <!-- <div class="div_border"> -->
  514. <!-- <h5>5. DATOS DEL VEHICULO DE TRANSPORTE</h5> -->
  515. <div class="spacio1"> </div>
  516. <div class="blank_space"/>
  517. <div class="blank_space"/>
  518. <table width="100%">
  519. <tr>
  520. <td class="vehiculo_nombre_label"></td>
  521. <td class="vehiculo_nombre"><span t-field="o.vehicle_name"/></td>
  522. </tr>
  523. <tr>
  524. <td class="vehiculo_chapa_label"></td>
  525. <td class="vehiculo_chapa"><span t-field="o.vehicle_plate"/></td>
  526. </tr>
  527. </table>
  528. <table width="100%">
  529. <tr>
  530. <td class="remolque_chapa_label"></td>
  531. <td class="remolque_chapa"><span t-field="o.vehicle_plate"/></td>
  532. </tr>
  533. </table>
  534. <!-- </div> -->
  535. <div class="blank_space"/>
  536. <div class="blank_space"/>
  537. <div class="blank_space"/>
  538. <div class="blank_space"/>
  539. <div class="blank_space"/>
  540. <!-- <div class="div_border"> -->
  541. <!-- <h5>6. DATOS DEL CONDUCTOR DEL VEHICULO</h5> -->
  542. <table width="100%">
  543. <tr>
  544. <td class="conductor_nombre_label"> </td>
  545. <td class="conductor_nombre"><span t-field="o.driver_id"/></td>
  546. <td class="conductor_ruc_label"> </td>
  547. <td class="conductor_ruc"><span t-field="o.logistic_ruc"/></td>
  548. </tr>
  549. <tr>
  550. <td class="conductor_direccion_label"></td>
  551. <td class="conductor_direccion" colspan="3"><span t-field="o.driver_id.street"/> <span t-field="o.driver_id.street2"/></td>
  552. </tr>
  553. </table>
  554. <!-- </div> -->
  555. <div class="cab-articulos"> </div>
  556. <div class="articulos">
  557. <table class="tab-articulos">
  558. <tr t-foreach="o.nota_line" t-as="l">
  559. <td class="art-col1"><span t-esc="'%.0f'%l.product_uom_qty"/></td>
  560. <td class="art-col2"><span t-field="l.product_id.uom_id"/></td>
  561. <td class="art-col3"><span t-field="l.product_id.name"/></td>
  562. </tr>
  563. </table>
  564. </div>
  565. </div>
  566. </t>
  567. </t>
  568. </t>
  569. </template>
  570. </data>
  571. </openerp>