|
| 1 | +<?xml version="1.0" encoding="UTF-8"?> |
| 2 | +<odoo> |
| 3 | + <template id="l10n_ar_stock_delivery.custom_label_transfer_template_view_zpl"> |
| 4 | + <t t-foreach="docs" t-as="picking"> |
| 5 | + <t t-set="numero" t-value="0"/> |
| 6 | + <t t-set="qty" t-value="picking.number_of_packages"/> |
| 7 | + <t t-if="qty == 0"> |
| 8 | + <t t-set="qty" t-value="1"/> |
| 9 | + </t> |
| 10 | + <t t-foreach="range(qty)" t-as="item"> |
| 11 | + <t t-set="numero" t-value="numero + 1"/> |
| 12 | + <t t-translation="off"> |
| 13 | +^XA |
| 14 | + <!-- Inicio encabezado --> |
| 15 | +<t t-if="picking.picking_type_id"> |
| 16 | +<t t-if="picking.picking_type_id.report_partner_id"> |
| 17 | +^CF0,60^CI28^FO50,50^FD |
| 18 | +<t t-esc="picking.picking_type_id.report_partner_id.name"/> |
| 19 | +^FS ^CF0,30 ^FO50,110^FD |
| 20 | +<t t-esc="picking.picking_type_id.report_partner_id.street"/> |
| 21 | +^FS ^FO50,145^FD |
| 22 | +(<t t-esc="picking.company_id.zip"/> |
| 23 | +)<t t-esc="picking.picking_type_id.report_partner_id.city"/> |
| 24 | +^FS ^FO50,180^FD |
| 25 | +<t class="oe_inline" t-esc="picking.picking_type_id.report_partner_id.state_id.name"/> |
| 26 | +, |
| 27 | +<t class="oe_inline" t-esc="picking.picking_type_id.report_partner_id.country_id.name"/> |
| 28 | +^FS ^FO50,215^FDTel: |
| 29 | +<t t-esc="picking.company_id.phone"/> |
| 30 | +^FS ^FO50,250^GB700,3,3^FS |
| 31 | +</t> |
| 32 | +<t t-else=""> |
| 33 | +^CF0,60^CI28^FO50,50^FD |
| 34 | +<t t-esc="picking.picking_type_id.company_id.name"/> |
| 35 | +^FS ^CF0,30 ^FO50,110^FD |
| 36 | +<t t-esc="picking.picking_type_id.company_id.street"/> |
| 37 | +^FS ^FO50,145^FD |
| 38 | +(<t t-esc="picking.company_id.zip"/> |
| 39 | +)<t t-esc="picking.picking_type_id.company_id.city"/> |
| 40 | +^FS ^FO50,180^FD |
| 41 | +<t class="oe_inline" t-esc="picking.picking_type_id.company_id.state_id.name"/> |
| 42 | +, |
| 43 | +<t class="oe_inline" t-esc="picking.picking_type_id.company_id.country_id.name"/> |
| 44 | +^FS ^FO50,215^FDTel: |
| 45 | +<t t-esc="picking.company_id.phone"/> |
| 46 | +^FS ^FO50,250^GB700,3,3^FS |
| 47 | +</t> |
| 48 | +</t> |
| 49 | +<t t-else=""> |
| 50 | +^CF0,60 ^FO50,50^FD |
| 51 | +<t t-esc="picking.company_id.name"/> |
| 52 | +^FS ^CF0,30 ^CI28 ^FO50,110^FD |
| 53 | +<t t-esc="picking.company_id.street"/> |
| 54 | +^FS ^FO50,145^FD |
| 55 | +(<t t-esc="picking.company_id.zip"/> |
| 56 | +)<t t-esc="picking.company_id.city"/> |
| 57 | +^FS ^FO50,180^FD |
| 58 | +<t class="oe_inline" t-esc="picking.company_id.state_id.name"/> |
| 59 | +, |
| 60 | +<t class="oe_inline" t-esc="picking.company_id.country_id.name"/> |
| 61 | +^FS ^FO50,215^FDTel: |
| 62 | +<t t-esc="picking.company_id.phone"/> |
| 63 | + |
| 64 | +^FS ^FO50,250^GB700,3,3^FS |
| 65 | +<!-- Fin encabezado --> |
| 66 | +</t> |
| 67 | +<!-- Inicio destino --> |
| 68 | +<t t-if="picking.partner_id.parent_id"> |
| 69 | +^FX Second section with recipient address and permit information. ^CFJ,23 ^FO50,280^FDDestinatario^FS ^CF0,45 ^TBN,700,100 |
| 70 | +^FO50,310^FD |
| 71 | +<t t-esc="picking.partner_id.parent_id.name"/> |
| 72 | +^FS |
| 73 | +</t> |
| 74 | +<t t-else=""> |
| 75 | +^FX Second section with recipient address and permit information. ^CFJ,23 ^FO50,280^FDDestinatario^FS ^CF0,45 ^TBN,700,100 |
| 76 | +^FO50,310^FD |
| 77 | +<t t-esc="picking.partner_id.name"/> |
| 78 | +^FS |
| 79 | +</t> |
| 80 | +^CF0,30 ^FO50,425^FD |
| 81 | +<t t-esc="picking.partner_id.street"/> |
| 82 | +^FS ^FO50,465^FD |
| 83 | +<t class="oe_inline" t-esc="picking.partner_id.zip"/> |
| 84 | +, |
| 85 | +<t class="oe_inline" t-esc="picking.partner_id.city"/> |
| 86 | +^FS ^FO50,505^FD |
| 87 | +<t class="oe_inline" t-esc="picking.partner_id.state_id.name"/> |
| 88 | +, |
| 89 | +<t class="oe_inline" t-esc="picking.partner_id.country_id.name"/> |
| 90 | +^FS ^FO50,545^FDTel: ^FS |
| 91 | +<t t-if="picking.partner_id and (picking.partner_id.phone != False or picking.partner_id.mobile != False)"> |
| 92 | +<t t-if="picking.partner_id.phone"> |
| 93 | +^FO100,545^FD |
| 94 | +<t t-esc="picking.partner_id.phone"/> |
| 95 | +^FS |
| 96 | +</t> |
| 97 | +<t t-else=""> |
| 98 | +^FO100,545^FD |
| 99 | +<t t-esc="picking.partner_id.mobile"/> |
| 100 | +^FS |
| 101 | +</t> |
| 102 | +</t> |
| 103 | +<t t-if="picking.partner_id.parent_id and (picking.partner_id.parent_id.phone != False or picking.partner_id.parent_id.mobile != False) and (picking.partner_id.phone == False and picking.partner_id.mobile == False)"> |
| 104 | +<t t-if="picking.partner_id.parent_id.phone"> |
| 105 | +^FO100,545^FD |
| 106 | +<t t-esc="picking.partner_id.parent_id.phone"/> |
| 107 | +^FS |
| 108 | +</t> |
| 109 | +<t t-else=""> |
| 110 | +^FO100,545^FD |
| 111 | +<t t-esc="picking.partner_id.parent_id.mobile"/> |
| 112 | +^FS |
| 113 | +</t> |
| 114 | +</t> |
| 115 | +<t t-else=""> |
| 116 | +^FS |
| 117 | +</t> |
| 118 | +<!-- Fin destino --> |
| 119 | +<t t-if="picking._fields.get('carrier_id') and picking.carrier_id"> |
| 120 | +Transportista: |
| 121 | +^FX Transportista ^CFJ,30 ^FO50,615^FDTransportista: ^FS ^FO260,615^FD |
| 122 | +<t t-esc="picking.carrier_id.name"/> |
| 123 | +</t> |
| 124 | +<t t-else=""> |
| 125 | +</t> |
| 126 | +^FS^FS ^FO50,655^GB700,3,3^FS |
| 127 | +^FX Referencias Odoo ^CFJ,25 ^FO50,680^FDOrden:^FS ^FO50,720^FDRemito:^FS ^CF0,28 ^FO160,680^FD |
| 128 | +<t t-esc="picking.origin"/> |
| 129 | +^FS ^FO160,720^FD |
| 130 | +<t t-set="voucher_names" t-value="','.join(picking.voucher_ids.mapped('name'))"/> |
| 131 | +<t t-esc="voucher_names"/> |
| 132 | +^FS ^BY3,2,160 ^FO100,765^BC^FD |
| 133 | +<t t-esc="picking.name"/> |
| 134 | +^FS ^FX Fecha y nro de bultos ^FO50,980^GB700,170,3^FS ^FO400,980^GB3,170,3^FS ^CFJ,30 ^FO180,1020^FDBultos^FS |
| 135 | +^CF0,50 ^FO160,1070^FD<t t-esc="numero"/> |
| 136 | + de <t t-if="picking.number_of_packages == 0">1</t> |
| 137 | +<t t-else=""> |
| 138 | +<t t-esc="picking.number_of_packages"/> |
| 139 | +</t>^FS ^CFJ,30 ^FO520,1020^FD |
| 140 | +Fecha |
| 141 | +^FS ^CF0,50 ^FO460,1070^FD |
| 142 | +<t t-esc="picking.date_done" t-options="{'widget': 'date'}"/> |
| 143 | +^FS ^XZ |
| 144 | +</t> |
| 145 | +</t> |
| 146 | +</t> |
| 147 | + </template> |
| 148 | + <template id="l10n_ar_stock_delivery.custom_label_transfer_template_view_pdf"> |
| 149 | + <t t-call="web.basic_layout"> |
| 150 | + <t t-foreach="docs" t-as="picking"> |
| 151 | + <t t-set="numero" t-value="0"/> |
| 152 | + <t t-set="qty" t-value="picking.number_of_packages"/> |
| 153 | + <t t-if="qty == 0"> |
| 154 | + <t t-set="qty" t-value="1"/> |
| 155 | + </t> |
| 156 | + <t t-foreach="range(qty)" t-as="item"> |
| 157 | + <t t-set="numero" t-value="numero + 1"/> |
| 158 | + <t t-translation="off"> |
| 159 | + <!--inicio encabezado--> |
| 160 | + <div class="container" style="page-break-before: always;"> |
| 161 | + <div name="section0" class="row"> |
| 162 | + <div class="col-12" style="page-break-before: always;"> |
| 163 | + <t t-if="picking._fields.get('picking_type_id') and picking.picking_type_id"> |
| 164 | + <t t-if="picking.picking_type_id.report_partner_id"> |
| 165 | + <h4> |
| 166 | + <span t-field="picking.picking_type_id.report_partner_id.name"/> |
| 167 | + </h4> |
| 168 | + <br/> |
| 169 | + <span t-field="picking.picking_type_id.report_partner_id.street"/> |
| 170 | + <br/> |
| 171 | + |
| 172 | +( <span t-field="picking.company_id.zip"/> |
| 173 | +) <span t-field="picking.picking_type_id.report_partner_id.city"/> |
| 174 | + <br/> |
| 175 | + <span class="oe_inline" t-field="picking.picking_type_id.report_partner_id.state_id.name"/> |
| 176 | +, |
| 177 | + <span class="oe_inline" t-field="picking.picking_type_id.report_partner_id.country_id.name"/> |
| 178 | + <br/> |
| 179 | + <label>Tel: </label><span t-field="picking.company_id.phone"/> |
| 180 | + |
| 181 | + </t> |
| 182 | + <t t-else=""> |
| 183 | + <h4> |
| 184 | + <span t-field="picking.picking_type_id.company_id.name"/> |
| 185 | + </h4> |
| 186 | + |
| 187 | + <span t-field="picking.picking_type_id.company_id.street"/> |
| 188 | + <br/> |
| 189 | +( <span t-field="picking.company_id.zip"/> |
| 190 | +) <span t-field="picking.picking_type_id.company_id.city"/> |
| 191 | + <br/> |
| 192 | + <span class="oe_inline" t-field="picking.picking_type_id.company_id.state_id.name"/> |
| 193 | +, |
| 194 | + <span class="oe_inline" t-field="picking.picking_type_id.company_id.country_id.name"/> |
| 195 | + <br/> |
| 196 | + <label>Tel: </label><span t-field="picking.company_id.phone"/> |
| 197 | + </t> |
| 198 | + </t> |
| 199 | + <t t-else=""> |
| 200 | + <h4> |
| 201 | + <span t-field="picking.company_id.name"/> |
| 202 | + </h4> |
| 203 | + <br/> |
| 204 | + <span t-field="picking.company_id.street"/> |
| 205 | + <br/> |
| 206 | +( <span t-field="picking.company_id.zip"/> |
| 207 | +) <span t-field="picking.company_id.city"/> |
| 208 | + <br/> |
| 209 | + <span class="oe_inline" t-field="picking.company_id.state_id.name"/> |
| 210 | +, |
| 211 | + <span class="oe_inline" t-field="picking.company_id.country_id.name"/> |
| 212 | + <br/> |
| 213 | + <label>Tel: </label><span t-field="picking.company_id.phone"/> |
| 214 | + </t> |
| 215 | + |
| 216 | + </div> |
| 217 | + </div> |
| 218 | + |
| 219 | + <!--Fin encabezado--> |
| 220 | + <hr style="border-top: 1px solid black"/> |
| 221 | + <!-- Inicio destino --> |
| 222 | + <div style="font-weight: normal;">Destinatario:</div> |
| 223 | + <h4 style="font-weight: normal;"> |
| 224 | + <t t-if="picking.partner_id.parent_id"> |
| 225 | + <t t-esc="picking.partner_id.parent_id.name"/> |
| 226 | + </t> |
| 227 | + <t t-else=""> |
| 228 | + <t t-esc="picking.partner_id.name"/> |
| 229 | + </t> |
| 230 | + </h4> |
| 231 | + |
| 232 | + <t t-esc="picking.partner_id.street"/> |
| 233 | + <br/> |
| 234 | + [ <t class="oe_inline" t-esc="picking.partner_id.zip"/> |
| 235 | +] |
| 236 | + <t class="oe_inline" t-esc="picking.partner_id.city"/> |
| 237 | + , |
| 238 | + <t class="oe_inline" t-esc="picking.partner_id.state_id.name"/> |
| 239 | +, |
| 240 | + <t class="oe_inline" t-esc="picking.partner_id.country_id.name"/> |
| 241 | + <div style="font-weight: normal;">Tel: |
| 242 | + <t t-if="picking.partner_id and (picking.partner_id.phone != False or picking.partner_id.mobile != False)"> |
| 243 | + <t t-if="picking.partner_id.phone"> |
| 244 | + <t t-esc="picking.partner_id.phone"/> |
| 245 | + </t> |
| 246 | + <t t-else=""> |
| 247 | + <t t-esc="picking.partner_id.mobile"/> |
| 248 | + </t> |
| 249 | + </t> |
| 250 | + <t t-if="picking.partner_id.parent_id and (picking.partner_id.parent_id.phone != False or picking.partner_id.parent_id.mobile != False) and (picking.partner_id.phone == False and picking.partner_id.mobile == False)"> |
| 251 | + <t t-if="picking.partner_id.parent_id.phone"> |
| 252 | + <t t-esc="picking.partner_id.parent_id.phone"/> |
| 253 | + </t> |
| 254 | + <t t-else=""> |
| 255 | + <t t-esc="picking.partner_id.parent_id.mobile"/> |
| 256 | + </t> |
| 257 | + </t> |
| 258 | + <t t-else=""> |
| 259 | + </t> |
| 260 | + </div> |
| 261 | + <!-- Fin destino --> |
| 262 | + <hr style="border-top: 1px solid black"/> |
| 263 | + <!--Inicio pie--> |
| 264 | + |
| 265 | + <t t-if="picking._fields.get('carrier_id') and picking.carrier_id"> |
| 266 | +Transportista: |
| 267 | + <t t-esc="picking.carrier_id.name"/> |
| 268 | + </t> |
| 269 | + <t t-else=""> |
| 270 | + </t> |
| 271 | + <div style="font-weight: normal;">Orden: |
| 272 | + <t t-esc="picking.origin"/> |
| 273 | + </div> |
| 274 | + <div style="font-weight: normal;">Remito/s: |
| 275 | + <t t-set="delivery_guide_names" t-value="picking.l10n_ar_delivery_guide_number"/> |
| 276 | + <t t-esc="delivery_guide_names"/> |
| 277 | + </div> |
| 278 | + <br/> |
| 279 | + <div name="footer_left_column" position="inside"> |
| 280 | + <img t-if="picking.name" t-att-src="'/report/barcode/?barcode_type=%s&value=%s&width=%s&height=%s' % ('Code128', picking.name, 400, 40)" alt="barcode" style="height:40"/> |
| 281 | + </div> |
| 282 | + |
| 283 | + <div style="text-align: center;"> |
| 284 | + <t t-esc="picking.name"/> |
| 285 | + </div> |
| 286 | + |
| 287 | + <br/> |
| 288 | + |
| 289 | + <table class="table table-bordered" style="width:100%; border: 1px solid black;"> |
| 290 | + <thead> |
| 291 | + <tr> |
| 292 | + <th style="width:50%">Número</th> |
| 293 | + <th style="width:50%">Fecha</th> |
| 294 | + </tr> |
| 295 | + </thead> |
| 296 | + <tbody> |
| 297 | + <tr> |
| 298 | + <td style="text-align:center;"> |
| 299 | + <t t-esc="numero"/> |
| 300 | + de <t t-if="picking.number_of_packages == 0">1</t> |
| 301 | + <t t-else=""> |
| 302 | + <t t-esc="picking.number_of_packages"/> |
| 303 | + </t> |
| 304 | + </td> |
| 305 | + <td style="text-align:center;"> |
| 306 | + <t t-esc="picking.date_done" t-options="{'widget': 'date'}"/> |
| 307 | + </td> |
| 308 | + </tr> |
| 309 | + </tbody> |
| 310 | + </table> |
| 311 | + </div> |
| 312 | + <!--Fin pie--> |
| 313 | + |
| 314 | + |
| 315 | + </t> |
| 316 | + </t> |
| 317 | + </t> |
| 318 | + </t> |
| 319 | + </template> |
| 320 | + |
| 321 | +</odoo> |
0 commit comments