Skip to content
Extraits de code Groupes Projets
Valider 81b99683 rédigé par Juliana's avatar Juliana
Parcourir les fichiers

Change report compo + add cat in préparation report

parent 725a75aa
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
<field name="page_height">0</field> <field name="page_height">0</field>
<field name="page_width">0</field> <field name="page_width">0</field>
<field name="orientation">Landscape</field> <field name="orientation">Landscape</field>
<field name="margin_top">40</field> <field name="margin_top">30</field>
<field name="margin_bottom">32</field> <field name="margin_bottom">32</field>
<field name="margin_left">7</field> <field name="margin_left">7</field>
<field name="margin_right">7</field> <field name="margin_right">7</field>
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
<h1 class="mt0 text-center">Compositions</h1> <h1 class="mt0 text-center">Compositions</h1>
<div class="page"> <div class="page">
<div class="row"> <div class="row">
<div class="col-6" name="div_outgoing_address"> <div class="col-8" name="div_outgoing_address">
<h2> <h2>
<t <t
t-if="not (env.context.get('proforma', False) or is_pro_forma)" t-if="not (env.context.get('proforma', False) or is_pro_forma)"
...@@ -37,7 +37,7 @@ ...@@ -37,7 +37,7 @@
/></p> /></p>
</div> </div>
</div> </div>
<div class="col-6" name="div_outgoing_address"> <div class="col-4" name="div_outgoing_address">
<div> <div>
<div <div
t-field="doc.partner_id" t-field="doc.partner_id"
......
...@@ -41,38 +41,54 @@ ...@@ -41,38 +41,54 @@
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
<t t-foreach="o.move_ids_without_package" t-as="move"> <t t-set="product_category" t-value="[]"/>
<t
t-foreach="move.move_line_ids.sorted(key=lambda ml: ml.location_id.id)" <t t-foreach="o.move_ids_without_package" t-as="l">
t-as="ml"
> <t t-set="product_category" t-value="product_category+[l.product_id.categ_id]"/>
</t>
<t t-foreach="set(product_category)" t-as="category">
<tr>
<td />
<td>
<div><strong t-esc="category.name"/></div>
</td>
<td>
</td>
</tr>
<t t-foreach="o.move_ids_without_package" t-as="l">
<t t-if="category.id==l.product_id.categ_id.id">
<tr> <tr>
<td /> <td />
<td> <td>
<span <span
t-field="ml.product_id.display_name" t-field="l.product_id.display_name"
/><br /> /><br />
<span <span
t-field="ml.product_id.description_picking" t-field="l.product_id.description_picking"
/> />
</td> </td>
<td> <td>
<span <span
t-if="o.state != 'done'" t-if="l.state != 'done'"
t-field="ml.product_uom_qty" t-field="l.product_uom_qty"
/>
<span
t-if="o.state == 'done'"
t-field="ml.qty_done"
/> />
<span <span
t-field="ml.product_uom_id" t-if="l.state == 'done'"
groups="uom.group_uom" t-field="l.qty_done"
/> />
</td> </td>
</tr> </tr>
</t> </t>
</t> </t>
</t>
</tbody> </tbody>
</table> </table>
</div> </div>
......
...@@ -108,7 +108,7 @@ ...@@ -108,7 +108,7 @@
<img <img
t-if="company.logo" t-if="company.logo"
t-att-src="image_data_uri(company.logo)" t-att-src="image_data_uri(company.logo)"
style="max-height: 45px;" style="max-height: 80px;"
alt="Logo" alt="Logo"
/> />
</div> </div>
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter