[FIX] mrp: bom structure text align
This commit is contained in:
@@ -25,10 +25,10 @@
|
||||
<tr>
|
||||
<th>Product</th>
|
||||
<th>BoM</th>
|
||||
<th>Quantity</th>
|
||||
<th groups="uom.group_uom">Unit of Measure</th>
|
||||
<th t-if="data['report_structure'] != 'bom_cost'" class="o_mrp_prod_cost" title="This is the cost defined on the product.">Product Cost</th>
|
||||
<th t-if="data['report_structure'] != 'bom_structure'" class="o_mrp_bom_cost" title="This is the cost based on the BoM of the product. It is computed by summing the costs of the components and operations needed to build the product.">BoM Cost</th>
|
||||
<th class="text-right">Quantity</th>
|
||||
<th class="text-left" groups="uom.group_uom">Unit of Measure</th>
|
||||
<th t-if="data['report_structure'] != 'bom_cost'" class="o_mrp_prod_cost text-right" title="This is the cost defined on the product.">Product Cost</th>
|
||||
<th t-if="data['report_structure'] != 'bom_structure'" class="o_mrp_bom_cost text-right" title="This is the cost based on the BoM of the product. It is computed by summing the costs of the components and operations needed to build the product.">BoM Cost</th>
|
||||
<th t-if="data['report_type'] == 'html' and data['has_attachments']" class="o_mrp_has_attachments" title="Files attached to the product">Attachments</th>
|
||||
</tr>
|
||||
</thead>
|
||||
@@ -40,12 +40,12 @@
|
||||
<td>
|
||||
<span><a t-if="data['report_type'] == 'html'" t-att-data-res-id="data['bom'].id" t-att-data-model="'mrp.bom'" class="o_mrp_bom_action"><t t-esc="data['code']"/></a><t t-else="" t-esc="data['code']"/></span>
|
||||
</td>
|
||||
<td><span><t t-esc="data['bom_qty']" t-options='{"widget": "float", "decimal_precision": "Product Unit of Measure"}'/></span></td>
|
||||
<td class="text-right"><span><t t-esc="data['bom_qty']" t-options='{"widget": "float", "decimal_precision": "Product Unit of Measure"}'/></span></td>
|
||||
<td groups="uom.group_uom"><span><t t-esc="data['bom'].product_uom_id.name"/></span></td>
|
||||
<td t-if="data['report_structure'] != 'bom_cost'" class="o_mrp_prod_cost">
|
||||
<td t-if="data['report_structure'] != 'bom_cost'" class="o_mrp_prod_cost text-right">
|
||||
<span><t t-esc="data['price']" t-options='{"widget": "monetary", "display_currency": currency}'/></span>
|
||||
</td>
|
||||
<td t-if="data['report_structure'] != 'bom_structure'" class="o_mrp_bom_cost">
|
||||
<td t-if="data['report_structure'] != 'bom_structure'" class="o_mrp_bom_cost text-right">
|
||||
<span><t t-esc="data['total']" t-options='{"widget": "monetary", "display_currency": currency}'/></span>
|
||||
</td>
|
||||
<td t-if="data['report_type'] == 'html'">
|
||||
@@ -63,12 +63,12 @@
|
||||
<tr>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td><span><strong>Unit Cost</strong></span></td>
|
||||
<td class="text-right"><span><strong>Unit Cost</strong></span></td>
|
||||
<td groups="uom.group_uom"></td>
|
||||
<td t-if="data['report_structure'] != 'bom_cost'" class="o_mrp_prod_cost">
|
||||
<td t-if="data['report_structure'] != 'bom_cost'" class="o_mrp_prod_cost text-right">
|
||||
<span><t t-esc="data['price']/data['bom_qty']" t-options='{"widget": "monetary", "display_currency": currency}'/></span>
|
||||
</td>
|
||||
<td t-if="data['report_structure'] != 'bom_structure'" class="o_mrp_bom_cost">
|
||||
<td t-if="data['report_structure'] != 'bom_structure'" class="o_mrp_bom_cost text-right">
|
||||
<span><t t-esc="data['total']/data['bom_qty']" t-options='{"widget": "monetary", "display_currency": currency}'/></span>
|
||||
</td>
|
||||
</tr>
|
||||
@@ -106,12 +106,12 @@
|
||||
<a t-att-data-res-id="l['child_bom']" t-att-data-model="'mrp.bom'" class="o_mrp_bom_action"><t t-esc="l['code']"/></a>
|
||||
</span>
|
||||
</td>
|
||||
<td><span><t t-esc="l['prod_qty']" t-options='{"widget": "float", "decimal_precision": "Product Unit of Measure"}'/></span></td>
|
||||
<td class="text-right"><span><t t-esc="l['prod_qty']" t-options='{"widget": "float", "decimal_precision": "Product Unit of Measure"}'/></span></td>
|
||||
<td groups="uom.group_uom"><span><t t-esc="l['prod_uom']"/></span></td>
|
||||
<td class="o_mrp_prod_cost">
|
||||
<td class="o_mrp_prod_cost text-right">
|
||||
<span t-esc="l['prod_cost']" t-options='{"widget": "monetary", "display_currency": currency}'/>
|
||||
</td>
|
||||
<td class="o_mrp_bom_cost">
|
||||
<td class="o_mrp_bom_cost text-right">
|
||||
<span t-esc="l['total']" t-options='{"widget": "monetary", "display_currency": currency}'/>
|
||||
</td>
|
||||
<td>
|
||||
@@ -132,13 +132,13 @@
|
||||
Operations
|
||||
</td>
|
||||
<td/>
|
||||
<td>
|
||||
<td class="text-right">
|
||||
<span t-esc="data['operations_time']" t-options='{"widget": "float_time"}'/>
|
||||
</td>
|
||||
<td groups="uom.group_uom"><span>Minutes</span></td>
|
||||
<td class="o_mrp_prod_cost">
|
||||
</td>
|
||||
<td class="o_mrp_bom_cost">
|
||||
<td class="o_mrp_bom_cost text-right">
|
||||
<span t-esc="data['operations_cost']" t-options='{"widget": "monetary", "display_currency": currency}'/>
|
||||
</td>
|
||||
<td/>
|
||||
@@ -156,12 +156,12 @@
|
||||
<a href="#" t-att-data-res-id="op['operation'].id" t-att-data-model="'mrp.routing.workcenter'" class="o_mrp_bom_action"><t t-esc="op['name']"/></a>
|
||||
</td>
|
||||
<td/>
|
||||
<td>
|
||||
<td class="text-right">
|
||||
<span t-esc="op['duration_expected']" t-options='{"widget": "float_time"}'/>
|
||||
</td>
|
||||
<td groups="uom.group_uom"><span>Minutes</span></td>
|
||||
<td class="o_mrp_prod_cost"></td>
|
||||
<td class="o_mrp_bom_cost">
|
||||
<td class="o_mrp_bom_cost text-right">
|
||||
<span t-esc="op['total']" t-options='{"widget": "monetary", "display_currency": currency}'/>
|
||||
</td>
|
||||
<td/>
|
||||
@@ -188,17 +188,17 @@
|
||||
<td>
|
||||
<span t-if="l.get('code')" t-esc="l['code']" />
|
||||
</td>
|
||||
<td>
|
||||
<td class="text-right">
|
||||
<span>
|
||||
<t t-if="l['type'] == 'operation'" t-esc="l['quantity']" t-options='{"widget": "float_time"}'/>
|
||||
<t t-if="l['type'] == 'bom'" t-esc="l['quantity']" t-options='{"widget": "float", "decimal_precision": "Product Unit of Measure"}'/>
|
||||
</span>
|
||||
</td>
|
||||
<td groups="uom.group_uom"><span><t t-esc="l['uom']"/></span></td>
|
||||
<td t-if="data['report_structure'] != 'bom_cost'" class="o_mrp_prod_cost">
|
||||
<td t-if="data['report_structure'] != 'bom_cost'" class="o_mrp_prod_cost text-right">
|
||||
<span t-if="'prod_cost' in l" t-esc="l['prod_cost']" t-options='{"widget": "monetary", "display_currency": currency}'/>
|
||||
</td>
|
||||
<td t-if="data['report_structure'] != 'bom_structure'" class="o_mrp_bom_cost">
|
||||
<td t-if="data['report_structure'] != 'bom_structure'" class="o_mrp_bom_cost text-right">
|
||||
<span t-esc="l['bom_cost']" t-options='{"widget": "monetary", "display_currency": currency}'/>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
Reference in New Issue
Block a user