[IMP] pre-commit: first run on whole repo
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<odoo>
|
||||
|
||||
<template id="report_mrporder" inherit_id="mrp.report_mrporder">
|
||||
@@ -8,12 +8,14 @@
|
||||
</xpath>
|
||||
|
||||
<xpath expr="//table[1]//tbody//td[1]" position="before">
|
||||
<td t-if="has_serial_number"><span t-field="ml.lot_id"/></td>
|
||||
<td t-if="has_serial_number"><span t-field="ml.lot_id" /></td>
|
||||
</xpath>
|
||||
|
||||
<xpath expr="//div[hasclass('oe_structure')][2]" position="after">
|
||||
<t t-set="has_product_unavailable"
|
||||
t-value="any(o.move_raw_ids.filtered(lambda x: x.product_uom_qty > x.reserved_availability))"/>
|
||||
<t
|
||||
t-set="has_product_unavailable"
|
||||
t-value="any(o.move_raw_ids.filtered(lambda x: x.product_uom_qty > x.reserved_availability))"
|
||||
/>
|
||||
<h4 if="has_product_unavailable">
|
||||
These products were unavailable (or partially) while edition of this Manufacturing Order.
|
||||
Here is missing quantities.
|
||||
@@ -26,16 +28,21 @@
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<t t-set="moves"
|
||||
t-value="o.move_raw_ids.filtered(lambda x: x.product_uom_qty > x.reserved_availability)"/>
|
||||
<t
|
||||
t-set="moves"
|
||||
t-value="o.move_raw_ids.filtered(lambda x: x.product_uom_qty > x.reserved_availability)"
|
||||
/>
|
||||
<t t-foreach="moves" t-as="m">
|
||||
<tr>
|
||||
<td>
|
||||
<span t-field="m.product_id"/>
|
||||
<span t-field="m.product_id" />
|
||||
</td>
|
||||
<td>
|
||||
<span t-esc="o.get_stock_move_sold_out_report(m)" t-if="m.state !='done'"/>
|
||||
<span t-field="m.product_uom" groups="uom.group_uom"/>
|
||||
<span
|
||||
t-esc="o.get_stock_move_sold_out_report(m)"
|
||||
t-if="m.state !='done'"
|
||||
/>
|
||||
<span t-field="m.product_uom" groups="uom.group_uom" />
|
||||
</td>
|
||||
</tr>
|
||||
</t>
|
||||
|
||||
Reference in New Issue
Block a user