mirror of
https://github.com/bringout/oca-ocb-mrp.git
synced 2026-04-27 08:32:02 +02:00
19.0 vanilla
This commit is contained in:
parent
accf5918df
commit
6e65e8c877
688 changed files with 225434 additions and 199401 deletions
|
|
@ -19,7 +19,7 @@
|
|||
</xpath>
|
||||
<xpath expr="//t[@name='has_packages']" position="after">
|
||||
<!-- Additional use case: group by kits when no packages exist and then apply use case 1. (serial/lot numbers used/printed) -->
|
||||
<t t-elif="has_kits and not has_packages">
|
||||
<t t-elif="has_kits and not packages_count">
|
||||
<t t-call="mrp.stock_report_delivery_kit_sections"/>
|
||||
<t t-call="mrp.stock_report_delivery_no_kit_section"/>
|
||||
</t>
|
||||
|
|
@ -28,7 +28,7 @@
|
|||
|
||||
<template id="stock_report_delivery_kit_sections">
|
||||
<!-- get all kits-related SML, including subkits -->
|
||||
<t t-set="all_kits_move_lines" t-value="o.move_line_ids.filtered(lambda l: l.move_id.bom_line_id.bom_id.type == 'phantom')"/>
|
||||
<t t-set="all_kits_move_lines" t-value="o.move_ids.move_line_ids.filtered(lambda l: l.move_id.bom_line_id.bom_id.type == 'phantom')"/>
|
||||
<!-- do another map to get unique top level kits -->
|
||||
<t t-set="boms" t-value="has_kits.mapped('move_id.bom_line_id.bom_id')"/>
|
||||
<t t-foreach="boms" t-as="bom">
|
||||
|
|
@ -39,7 +39,7 @@
|
|||
<t t-else="">
|
||||
<t t-set="kit_product" t-value="bom.product_tmpl_id"/>
|
||||
</t>
|
||||
<tr t-att-class="'bg-200 fw-bold o_line_section'">
|
||||
<tr t-att-class="'fw-bold o_line_section'">
|
||||
<td colspan="99">
|
||||
<span t-esc="kit_product.display_name"/>
|
||||
</td>
|
||||
|
|
@ -66,9 +66,9 @@
|
|||
<!-- No kit section is expected to only be called in no packages case -->
|
||||
<template id="stock_report_delivery_no_kit_section">
|
||||
<!-- Do another section for kit-less products if they exist -->
|
||||
<t t-set="no_kit_move_lines" t-value="o.move_line_ids.filtered(lambda l: l.move_id.bom_line_id.bom_id.type != 'phantom')"/>
|
||||
<t t-set="no_kit_move_lines" t-value="o.move_ids.move_line_ids.filtered(lambda l: l.move_id.bom_line_id.bom_id.type != 'phantom')"/>
|
||||
<t t-if="no_kit_move_lines">
|
||||
<tr t-att-class="'bg-200 fw-bold o_line_section'">
|
||||
<tr t-att-class="'fw-bold o_line_section'">
|
||||
<td colspan="99">
|
||||
<span>Products not associated with a kit</span>
|
||||
</td>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue