summaryrefslogtreecommitdiff
path: root/addons/mrp/static/src/xml/mrp.xml
diff options
context:
space:
mode:
authorPrakash Prajapati <ppr@odoo.com>2018-08-01 10:17:06 +0530
committerAlexandre Kühn <aku@odoo.com>2018-08-10 10:15:20 +0200
commitc69a6c6509fb3c0c44455b83676a415fde8bb403 (patch)
tree7ec7aa3a8ae5ef891784a16cef9ea9424518b064 /addons/mrp/static/src/xml/mrp.xml
parentaf35aea6b0d6ff52126141ab0e3754a0427553fc (diff)
[FIX] mrp: see full name of 'report' option in BoM 'Structure & Cost' report
Before this commit, when we opened the report "Structure & Cost" of a Bill of Materials of a product without any variant, the dropdown option selection 'report' had the current selection name cut. For instance, the selection "BoM Structure & Cost" was displayed as "BoM Structure". This was due to each option having a width determined by the bootstrap classname `col-md-4`, independently on the number of options that are available. There are either 2 or 3 options at the top of this report, depending on whether the product of the BoM has variants or not. When there are 3 options, there is not problem. However, with 2 options (i.e., without variants), each option available horizontal space is reduced, so that the 'report' option is shrunk, which cuts the text selection as a result. This commit fixes this problem when there are 2 options (= "no variant"), so that the 'report' option uses more horizontal space. Task-ID 1864490 Closes #25643
Diffstat (limited to 'addons/mrp/static/src/xml/mrp.xml')
-rw-r--r--addons/mrp/static/src/xml/mrp.xml2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/mrp/static/src/xml/mrp.xml b/addons/mrp/static/src/xml/mrp.xml
index 75c2ce15422..9c250bcfbdd 100644
--- a/addons/mrp/static/src/xml/mrp.xml
+++ b/addons/mrp/static/src/xml/mrp.xml
@@ -25,7 +25,7 @@
</option>
</select>
</div>
- <div class="form-group col-md-4">
+ <div t-attf-class="form-group #{is_variant_applied ? 'col-md-4' : 'col-md-8'}">
<label>Report:</label>
<select class="o_input o_mrp_bom_report_type">
<option t-att-data-type="'all'">BoM Structure &amp; Cost</option>