Before this commit, it was required to always use the widget to edit the consumed quantity of a component when multi-location or packages setting is active. This was not user friendly so this commit relaxes the requirement to only tracked products and gives users the option to still edit the consumed move lines directly if desired. We also distinguish between when using the widget is required or not with the widget button color. Note that if quantity consumed is greater than amount reserved in different locations, the difference will default to the move's source location (this is consistent with what happens when the `qty_producing` is changed in the MO and the consumed quantities are scaled to match.) Task: 2518523 Upgrade PR: odoo/upgrade#2655 closes odoo/odoo#73939 Related: odoo/enterprise#19732 Signed-off-by: Arnold Moyaux <amoyaux@users.noreply.github.com>
20 lines
300 B
SCSS
20 lines
300 B
SCSS
.o_field_widget.o_embed_url_viewer{
|
|
width: 100% !important;
|
|
iframe {
|
|
width: 100%;
|
|
height: 30rem;
|
|
border: none;
|
|
}
|
|
}
|
|
.o_should_consume{
|
|
padding-left: 0.3em;
|
|
}
|
|
|
|
.btn-link.o_optional_button{
|
|
color: gray;
|
|
|
|
&:hover {
|
|
filter: brightness(0.9);
|
|
}
|
|
}
|