hunk.code_window:                                     <field name="has_move_lines" invisible="1"/>
                                       <field name="location_dest_id" domain="[('id', 'child_of', parent.location_dest_id)]" invisible="1"/>
                                       <field name="state" invisible="1" force_save="1"/>
                                       <field name="should_consume_qty" invisible="1"/>
                                       <field name="product_uom_qty" widget="mrp_should_consume" string="To Consume" attrs="{'readonly': ['&amp;', ('parent.state', '!=', 'draft'), '|', ('parent.state', 'not in', ('confirmed', 'planned', 'progress', 'to_close')), ('parent.is_locked', '=', True)]}" width="1"/>
                                       <field name="reserved_availability" attrs="{'invisible': [('is_done', '=', True)], 'column_invisible': [('parent.state', 'in', ('draft', 'done'))]}" string="Reserved" decoration-danger="not is_done and reserved_availability &lt; product_uom_qty and product_uom_qty - reserved_availability &gt; 0.0001"/>
                                       <field name="is_quantity_done_editable" invisible="1"/>
                                       <field name="quantity_done" string="Consumed"
                                           decoration-success="not is_done and (quantity_done - should_consume_qty == 0)"
                                           decoration-warning="not is_done and (quantity_done - should_consume_qty &gt; 0.0001)"
  
hunk.labels: keep keep keep keep keep replace keep keep keep keep
hunk.after_edit:                                     <field name="json_forecast" string="Reserved" attrs="{'column_invisible': [('parent.state', 'in', ['draft', 'done'])]}" widget="forecast_widget"/>
  
hunk.file_path: addons/mrp/views/mrp_production_views.xml
hunk.type: replace
file: <?xml version="1.0" encoding="utf-8"?>
  <odoo>
  
      <template id="report_pricelist_page">
          <div class="container bg-white p-4 my-4">
              <div class="row my-3">
                  <div class="col-12">
                      <h2 t-if="is_html_type">
                          Pricelist:
                          <a href="#" class="o_action" data-model="product.pricelist" t-att-data-res-id="pricelist.id">
                              <t t-esc="pricelist.display_name"/>
                          </a>
                      </h2>
                      <h2 t-else="">
                          Pricelist: <t t-esc="pricelist.display_name"/>
                      </h2>
                  </div>
              </div>
              <div class="row">
                  <div class="col-12">
                      <table class="table table-sm">
                          <thead>
                              <tr>
                                  <th>Products</th>
                                  <t t-foreach="quantities" t-as="qty">
                                      <th class="text-right"><t t-esc="qty"/> Units</th>
                                  </t>
                              </tr>
                          </thead>
                          <tbody>
                              <t t-foreach="products" t-as="product">
                                  <tr>
                                      <td t-att-class="is_product_tmpl and 'font-weight-bold' or None">
                                          <a t-if="is_html_type" href="#" class="o_action" t-att-data-model="is_product_tmpl and 'product.template' or 'product.product'" t-att-data-res-id="product['id']">
                                              <t t-esc="product['name']"/>
                                          </a>
                                          <t t-else="">
                                              <t t-esc="product['name']"/>
                                          </t>
                                      </td>
                                      <t t-foreach="quantities" t-as="qty">
                                          <td class="text-right">
                                              <t t-esc="product['price'][qty]" t-options='{"widget": "monetary", "display_currency": pricelist.currency_id}'/>
                                          </td>
                                      </t>
                                  </tr>
                                  <t t-if="is_product_tmpl">
                                      <tr t-foreach="product['variants']" t-as="variant">
                                          <td>
                                              <a t-if="is_html_type" href="#" class="o_action ml-4" data-model="product.product" t-att-data-res-id="variant['id']">
                                                  <t t-esc="variant['name']"/>
                                              </a>
                                              <span t-else="" class="ml-4" t-esc="variant['name']"/>
                                          </td>
                                          <t t-foreach="quantities" t-as="qty">
                                              <td class="text-right">
                                                  <t t-esc="variant['price'][qty]" t-options='{"widget": "monetary", "display_currency": pricelist.currency_id}'/>
                                              </td>
                                          </t>
                                      </tr>
                                  </t>
                              </t>
                          </tbody>
                      </table>
                  </div>
              </div>
          </div>
      </template>
  
      <template id="report_pricelist">
          <t t-call="web.basic_layout">
              <div class="page">
                  <t t-call="product.report_pricelist_page"/>
              </div>
              <p style="page-break-before:always;"> </p>
          </t>
      </template>
  
  </odoo>
  