From 1be10f7a63edd5aff79b9d0a2b567d98b5dfd38e Mon Sep 17 00:00:00 2001
From: benjamin <benjamin@le-filament.com>
Date: Tue, 12 Jul 2022 15:47:16 +0200
Subject: [PATCH] [update] picking template

---
 __manifest__.py                               |  2 +-
 ...ap_template.xml => report_delivery_ap.xml} | 19 +++++++++++--------
 2 files changed, 12 insertions(+), 9 deletions(-)
 rename templates/{report_delivery_ap_template.xml => report_delivery_ap.xml} (86%)

diff --git a/__manifest__.py b/__manifest__.py
index 28d253b..ec5f677 100644
--- a/__manifest__.py
+++ b/__manifest__.py
@@ -17,7 +17,7 @@
         "templates/report_sale.xml",
         "templates/report_account.xml",
         "templates/report_composition.xml",
-        "templates/report_delivery_ap_template.xml",
+        "templates/report_delivery_ap.xml",
         # views
         "views/res_company_views.xml",
     ],
diff --git a/templates/report_delivery_ap_template.xml b/templates/report_delivery_ap.xml
similarity index 86%
rename from templates/report_delivery_ap_template.xml
rename to templates/report_delivery_ap.xml
index a8fc384..8f4e678 100644
--- a/templates/report_delivery_ap_template.xml
+++ b/templates/report_delivery_ap.xml
@@ -54,7 +54,7 @@
                                 <th name="th_product">
                                     <strong>Produit</strong>
                                 </th>
-                                <th>
+                                <th colspan="2">
                                     <strong>Quantité</strong>
                                 </th>
                             </tr>
@@ -69,8 +69,8 @@
                             </t>
                             <t t-foreach="set(product_category)" t-as="category">
                                 <tr>
-                                    <td colspan="3">
-                                        <div><strong t-esc="category.name" /></div>
+                                    <td colspan="4">
+                                        <div style="padding-left: 20px;"><strong t-esc="category.name" /></div>
                                     </td>
                                 </tr>
 
@@ -88,7 +88,7 @@
                                                     t-field="l.product_id.description_picking"
                                                 />
                                             </td>
-                                            <td>
+                                            <td class="text-right" style="background-color: #e9ecef; border-right: 0;">
                                                 <span
                                                     t-if="l.state != 'done'"
                                                     t-field="l.product_uom_qty"
@@ -99,10 +99,13 @@
                                                     t-field="l.quantity_done"
                                                     t-options="{'widget': 'float', 'precision': 0}"
                                                 />
-                                                <span
-                                                    t-if="l.product_uom.id != %(uom.product_uom_unit)d"
-                                                    t-field="l.product_uom"
-                                                />
+                                            </td>
+                                            <td style="border-left: 0; width: 40px;">
+                                                <t t-if="l.product_uom.id != %(uom.product_uom_unit)d">
+                                                    <span
+                                                        t-field="l.product_uom"
+                                                    />
+                                                </t>
                                             </td>
                                         </tr>
                                     </t>
-- 
GitLab