diff options
| author | William Henrotin <whe@odoo.com> | 2021-04-14 14:31:34 +0000 |
|---|---|---|
| committer | William Henrotin <whe@odoo.com> | 2021-04-19 09:28:46 +0000 |
| commit | 8da349e785b5b461ea19874df9686f8cd26af8ad (patch) | |
| tree | a88d94ab0219f4838522354425f8b345c53583a1 /addons/mrp/static/src/xml/mrp.xml | |
| parent | 985f1bf5b187513f71e65ab7d2b68e25ff1bfdf1 (diff) | |
[FIX] mrp: print bom structure per variants
Commit 044c5c2c81d0b3dd8b4abb8df34f6b1cb0a6e122 removed the context key
`variant` of the bom structure report. This implies to always print
every variant in case a BoM has no product_id.
This commit fix this issue to print only the variant selected in the
report. It also adds a new button to print the report with all variants
in case for some customers this behavior was "not a bug but a feature".
Task : 2504524
closes odoo/odoo#69441
Signed-off-by: William Henrotin <Whenrow@users.noreply.github.com>
Diffstat (limited to 'addons/mrp/static/src/xml/mrp.xml')
| -rw-r--r-- | addons/mrp/static/src/xml/mrp.xml | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/addons/mrp/static/src/xml/mrp.xml b/addons/mrp/static/src/xml/mrp.xml index 3fef9d3c478..ee4eb10e3ca 100644 --- a/addons/mrp/static/src/xml/mrp.xml +++ b/addons/mrp/static/src/xml/mrp.xml @@ -3,6 +3,9 @@ <t t-name="mrp.button"> <div class="o_list_buttons o_mrp_bom_report_buttons"> <button type="button" class="btn btn-primary o_mrp_bom_print">Print</button> + <t t-if="is_variant_applied"> + <button type="button" class="btn btn-primary o_mrp_bom_print_all_variants">Print All Variants</button> + </t> <button type="button" class="btn btn-primary o_mrp_bom_print_unfolded">Print Unfolded</button> </div> </t> |
