Mrp

Label Production View Pdf

Trimada

ID: mint_system.mrp.label_production_view_pdf.trimada

<t t-name="mrp.label_production_view_pdf.trimada">
  <t t-call="web.basic_layout">
    <t t-foreach="docs" t-as="production">
      <t t-foreach="production.move_finished_ids" t-as="move">

        <style>
          . .label {
            font-family: arial;
          }
          .box {
              margin: 0 0 2mm 0;
          }
          .padding {
              padding-bottom: 3mm;
          }
          .title {
              font-size: 11mm;
              margin: 3mm 3mm 0 3mm;
              font-weight: bold;
              text-align: center;
              border-bottom: solid 1px;
              line-height: 30mm;
          }
          .description {
              font-size: 9mm;
              margin: 0 3mm 0 3mm;
              text-align: center;
              height: 23mm;
              line-height: 10mm;
              display: table;
              width: 98%;
              line-height: 10mm;
          }
          .sub1 {
              display: table-cell ;
              vertical-align: middle;
              text-align: center;
          }
          .sub2 {
              display: table-cell ;
              vertical-align: middle;
              text-align: center;
              border-bottom: solid 1px;
          }
          .order {
              font-size: 7mm;
              margin: 10mm 3mm 0 3mm;
              text-align: left;
              border-bottom: solid 1px;
              line-height: 1;
              height: 34mm;
          }
          .info{
              margin-top: 2mm;
          }
          .comment {
              font-size: 5mm;
              text-align: center;
              height: 8mm;
              line-height: 10mm;
          }
        </style>

        <div class="page">
          <div class="label">
            <div class="row title">
              <div class="col-6">
                <span t-esc="move.product_id.default_code"/>
              </div>
              <div t-if="move.product_id.barcode" class="col-6 box text-right">
                <img t-att-src="'/report/barcode/?type=%s&amp;value=%s&amp;width=%s&amp;height=%s&amp;quiet=0' % ('Code128', move.product_id.barcode, 250, 85)" alt="Barcode"/>
              </div>
            </div>
            <div class="description">
              <span class="sub1" t-esc="move.product_id.name"/>
            </div>
            <div class="description">
              <span class="sub2" t-esc="move.product_id.type_description"/>
            </div>
            <div class="row order">
              <div class="col-6 box">
                <div class="padding info">
                  <span t-esc="production.date_planned_finished" t-options="{'widget': 'date'}"/>
                </div>
                <div class="padding">
                  <strong>
                    <span t-esc="production.name"/>
                  </strong>
                </div>
              </div>
              <div class="col-6 box">
                <div t-if="production.name" class="text-right">
                  <img t-att-src="'/report/barcode/?type=%s&amp;value=%s&amp;width=%s&amp;height=%s&amp;quiet=0' % ('Code128', production.name, 250, 80)" alt="Barcode"/>
                </div>
              </div>
            </div>
            <div class="comment">
              <span>Trimada AG, CH-5610 Wohlen – www.trimada.ch</span>
            </div>
          </div>
        </div>
      </t>
    </t>
  </t>
</t>


Source: snippets/mrp.label_production_view_pdf.trimada.xmlopen in new window

Label Production View

Tissa Etikette Ketten

ID: mint_system.mrp.label_production_view.tissa_etikette_ketten

<?xml version="1.0"?>
<t t-name="mrp.label_production_view.tissa_etikette_ketten">
 
    <div class="row">
      <div class="col-2">
        <img class="img-fluid" src="/web/image/2721/230x115mm_1fbg_graustufen_logo%20tissa%20textiles.jpg?access_token=c7d446e2-b48d-438b-afab-eb491dd6fa7a"/>
      </div>
      <div class="col-10" style="font-family: Arial, Helvetica, sans-serif; font-size: 18px">
        <strong t-field="res_company.display_name"/>
        <br/>
        <span t-field="res_company.country_id.code"/>
        <span> - </span>
        <span t-field="res_company.zip"/>
        <span>  </span>
        <span t-field="res_company.city"/>
      </div>
    </div>

    <div class="row">
      <div class="col" style="font-family: Arial, Helvetica, sans-serif; font-size: 84px; font-weight:bold">
        <span t-field="doc.product_id.display_name"/>
      </div>
    </div>

    <div class="row">
      <div class="col">
        <td>
          <img t-if="doc.product_id.display_name" t-att-src="'/report/barcode/?type=%s&amp;value=%s&amp;width=%s&amp;height=%s' % ('Code128', doc.product_id.display_name, 500, 50)"/>
        </td>
      </div>
    </div>

    <div class="row">
      <div class="col" style="font-family: Arial, Helvetica, sans-serif; font-size: 96px; font-weight:bold">
        <span t-field="doc.name"/>
      </div>
    </div>

    <div class="row">
      <div class="col">
        <td>
          <img t-if="doc.name" t-att-src="'/report/barcode/?type=%s&amp;value=%s&amp;width=%s&amp;height=%s' % ('Code128', doc.name, 500, 50)"/>
        </td>
      </div>
    </div>

    <div class="row">
      <div class="col-6" style="font-family: Arial, Helvetica, sans-serif; font-size: 84px; font-weight:bold">
        <span t-field="doc.product_qty"/>
      </div>
      <!--
      <div class="col-6" style="font-family: Arial, Helvetica, sans-serif; font-size: 84px; font-weight:bold">
        <span t-field="doc.product_uom_id.display_name"/>
      </div>
      -->
    </div>

    <div class="row">
      <div class="col-3">
        <span>Einlagerungsdatum: </span>
      </div>
      <div class="col-9">
        <span t-field="doc.create_date"/>
      </div>
    </div>

    <div class="row">
      <div class="col" style="font-family: Arial, Helvetica, sans-serif; font-size: 48px; font-weight:bold">
        <span>kommt an Maschine:</span>
      </div>
    </div>

</t>

Source: snippets/mrp.label_production_view.tissa_etikette_ketten.xmlopen in new window

Tissa

ID: mint_system.mrp.label_production_view.tissa

<t t-name="mrp.label_production_view.tissa">

    <t t-call="web.basic_layout">

        <!-- <span t-esc="docs"/>-->
        <!--<span t-esc="docs.move_finished_ids"/>-->
        <!--<span t-esc="docs.move_finished_ids.lot_ids"/>-->
        <!--<span t-esc="docs.finished_lot_id"/>-->

        <t t-set="lot_ids" t-value="docs.move_finished_ids.lot_ids or docs.finished_lot_id"/>
        <t t-foreach="lot_ids" t-as="lot_id">

            <t t-set="doc" t-value="lot_id" />
            <t t-set="docs" t-value="lot_id" />

            <t t-if="doc.product_id.x_product_label.name == 'Stücketikette Spheretex'">
                <t t-call="studio_customization.studio_report_docume_87f02ec4-1346-4b76-bc5a-41f3abc30448"/>
            </t>

            <t t-if="doc.product_id.x_product_label.name == 'Stücketikette Standard'">
                <t t-call="studio_customization.studio_report_docume_87f02ec4-1346-4b76-bc5a-41f3abc30448_copy_1"/>
            </t>

            <t t-if="doc.product_id.x_product_label.name == 'Stücketikette neutral'">
                <t t-call="studio_customization.studio_report_docume_cd2541fa-1502-4c50-8f76-bf2ae39698a1"/>
            </t>

            <t t-if="doc.product_id.x_product_label.name == 'Stücketikette Sika'">
                <t t-call="studio_customization.studio_report_docume_d6a31795-5d6c-4527-9c76-48ad7356e0ae"/>
            </t>

            <t t-if="lot_id.product_id.x_product_label.name == 'Etikette Ketten'">
                <t t-call="studio_customization.studio_report_docume_e9a56ff9-0143-4e41-ad9d-9817a1f10c4b" />
            </t>

            <p style="page-break-after: always;"/>
        </t>

    </t>
</t>

Source: snippets/mrp.label_production_view.tissa.xmlopen in new window

Mrp Bom Form View

X Note

ID: mint_system.mrp.mrp_bom_form_view.x_note

<?xml version="1.0"?>
<data inherit_id="mrp.mrp_bom_form_view" priority="50">

  <xpath expr="//field[@name='picking_type_id']" position="after">
    <field name="x_note"/>
  </xpath>

</data>

Source: snippets/mrp.mrp_bom_form_view.x_note.xmlopen in new window

Mrp Bom Tree View

Sort Id

ID: mint_system.mrp.mrp_bom_tree_view.sort_id

<?xml version="1.0"?>
<data inherit_id="mrp.mrp_bom_tree_view" priority="50">
  
  <xpath expr="//tree" position="attributes">
        <attribute name="default_order">id desc</attribute>
  </xpath>
	
</data>

Source: snippets/mrp.mrp_bom_tree_view.sort_id.xmlopen in new window

Mrp Production Form View

Add Date Deadline2

ID: mint_system.mrp.mrp_production_form_view.add_date_deadline2

<?xml version="1.0"?>
<data inherit_id="mrp.mrp_production_form_view" priority="50">

  <field name="date_move" position="after">
    <field name="date_deadline" attrs="{'readonly': 0}"/>
  </field>

</data>

Source: snippets/mrp.mrp_production_form_view.add_date_deadline2.xmlopen in new window

Add Date Deadline

ID: mint_system.mrp.mrp_production_form_view.add_date_deadline

<?xml version="1.0"?>
<data inherit_id="mrp.mrp_production_form_view" priority="50">

  <field name="user_id" position="before">
    <field name="date_deadline" />
  </field>

  <data>
    <xpath expr="//field[@name='move_raw_ids']/tree[1]/field[@name='product_id']" position="after">
      <field name="date_deadline"  optional="hide"/>
    </xpath>
  </data>

  <data>
    <xpath expr="//field[@name='move_raw_ids']/tree[1]/field[@name='product_id']" position="after">
      <field name="date"/>
    </xpath>
  </data>

</data>

Source: snippets/mrp.mrp_production_form_view.add_date_deadline.xmlopen in new window

Hide Date Deadline

ID: mint_system.mrp.mrp_production_form_view.hide_date_deadline

<?xml version="1.0"?>
<data inherit_id="mrp.mrp_production_form_view" priority="50">
  
  <xpath expr="//page[@name='miscellaneous']//field[@name='date_deadline']" position="attributes">
    <attribute name="invisible">True</attribute>
  </xpath>  

</data>

Source: snippets/mrp.mrp_production_form_view.hide_date_deadline.xmlopen in new window

Replace Workorder Tree View

ID: mint_system.mrp.mrp_production_form_view.replace_workorder_tree_view

<?xml version="1.0"?>

<data inherit_id="mrp.mrp_production_form_view" priority="50">
<!-- origin_ref: mrp.mrp_production_workorder_tree_editable_view -->
  <xpath expr="//field[@name='workorder_ids']" position="inside">
    <tree editable="bottom" js_class="tablet_list_view">
      <field name="consumption" invisible="1"/>
      <field name="company_id" invisible="1"/>
      <field name="is_produced" invisible="1"/>
      <field name="is_user_working" invisible="1"/>
      <field name="product_uom_id" invisible="1" readonly="0"/>
      <field name="production_state" invisible="1"/>
      <field name="production_bom_id" invisible="1"/>
      <field name="qty_producing" invisible="1"/>
      <field name="time_ids" invisible="1"/>
      <field name="working_state" invisible="1"/>
      <field name="operation_id" invisible="1" domain="['|', ('bom_id', '=', production_bom_id), ('bom_id', '=', False)]" context="{'default_workcenter_id': workcenter_id, 'default_company_id': company_id}"/>
      <field name="name" string="Operation"/>
      <field name="workcenter_id"/>
      <field name="product_id" optional="hide"/>
      <field name="component_id" optional="hide"/>
      <field name="lot_id" optional="hide" domain="[('product_id','=', component_id),'|',('company_id','=',False),('company_id','=',company_id)]"/>
      <field name="date_planned_start" optional="show"/>
      <field name="date_planned_finished" optional="hide"/>
      <field name="date_start" optional="hide" readonly="1"/>
      <field name="date_finished" optional="hide" readonly="1"/>
      <field name="duration_expected" widget="float_time"/>
      <field name="duration" widget="mrp_time_counter" attrs="{'invisible': [('production_state','=', 'draft')], 'readonly': [('is_user_working', '=', True)]}"/>
      <field name="state" widget="badge" decoration-success="state == 'done'" decoration-info="state not in ('done', 'cancel')" attrs="{'invisible': [('production_state', 'in', ('draft', 'done'))]}"/>
      <field name="production_state" invisible="1"/>
      <button name="button_start" type="object" string="Start" class="btn-success" attrs="{'invisible': ['|', '|', '|', ('production_state','in', ('draft', 'done', 'cancel')), ('working_state', '=', 'blocked'), ('state', '=', 'done'), ('is_user_working', '!=', False)]}"/>
      <button name="button_pending" type="object" string="Pause" class="btn-warning" attrs="{'invisible': ['|', '|', ('production_state', 'in', ('draft', 'done', 'cancel')), ('working_state', '=', 'blocked'), ('is_user_working', '=', False)]}"/>
      <button name="button_finish" type="object" string="Done" class="btn-success" attrs="{'invisible': ['|', '|', ('production_state', 'in', ('draft', 'done', 'cancel')), ('working_state', '=', 'blocked'), ('is_user_working', '=', False)]}"/>
      <button name="433" type="action" string="Block" context="{'default_workcenter_id': workcenter_id}" class="btn-danger" attrs="{'invisible': ['|', ('production_state', 'in', ('draft', 'done', 'cancel')), ('working_state', '=', 'blocked')]}"/>
      <button name="button_unblock" type="object" string="Unblock" context="{'default_workcenter_id': workcenter_id}" class="btn-danger" attrs="{'invisible': ['|', ('production_state', 'in', ('draft', 'done', 'cancel')), ('working_state', '!=', 'blocked')]}"/>
      <button name="action_open_wizard" type="object" icon="fa-external-link" class="oe_edit_only" context="{'default_workcenter_id': workcenter_id}"/>
      <button name="open_tablet_view" type="object" icon="fa-tablet" context="{'from_production_order': True}" attrs="{'invisible': ['|', ('production_state', 'in', ('draft', 'cancel', 'done')), ('state', '=', 'done')]}"/>
      <field name="show_json_popover" invisible="1"/>
      <field name="json_popover" widget="mrp_workorder_popover" string=" " width="0.1" attrs="{'invisible': [('show_json_popover', '=', False)]}"/>
    </tree>
  </xpath>

</data>

Source: snippets/mrp.mrp_production_form_view.replace_workorder_tree_view.xmlopen in new window

Show Backorder And Procurement Group

ID: mint_system.mrp.mrp_production_form_view.show_backorder_and_procurement_group

<?xml version="1.0"?>
<data inherit_id="mrp.mrp_production_form_view" priority="50">
  
	<xpath expr="//page[@name='miscellaneous']//field[@name='picking_type_id']" position="after">
    	<field name="procurement_group_id"/>
    	<field name="backorder_sequence"/>
  	</xpath>

</data>

Source: snippets/mrp.mrp_production_form_view.show_backorder_and_procurement_group.xmlopen in new window

Show Date Planned Finished

ID: mint_system.mrp.mrp_production_form_view.show_date_planned_finished

<?xml version="1.0"?>
<data inherit_id="mrp.mrp_production_form_view" priority="50">

  <field name="user_id" position="before">
    <field name="date_planned_finished" readonly="1"/>
  </field>

</data>

Source: snippets/mrp.mrp_production_form_view.show_date_planned_finished.xmlopen in new window

Show X Date Deadline

ID: mint_system.mrp.mrp_production_form_view.show_x_date_deadline

<?xml version="1.0"?>
<data inherit_id="mrp.mrp_production_form_view" priority="50">

  <field name="user_id" position="before">
    <field name="x_date_deadline"/>
  </field>

</data>

Source: snippets/mrp.mrp_production_form_view.show_x_date_deadline.xmlopen in new window

X Note

ID: mint_system.mrp.mrp_production_form_view.x_note

<?xml version="1.0"?>
<data inherit_id="mrp.mrp_production_form_view" priority="50">
  
	<xpath expr="//page[@name='miscellaneous']//field[@name='origin']" position="after">
    	<field name="x_note"/>
  	</xpath>

</data>

Source: snippets/mrp.mrp_production_form_view.x_note.xmlopen in new window

Mrp Production Tree View

Hide Date Deadline

ID: mint_system.mrp.mrp_production_tree_view.hide_date_deadline

<?xml version="1.0"?>
<data inherit_id="mrp.mrp_production_tree_view" priority="50">
  
  <xpath expr="//field[@name='date_deadline']" position="replace">
  </xpath>
	
</data>

Source: snippets/mrp.mrp_production_tree_view.hide_date_deadline.xmlopen in new window

Show X Date Deadline

ID: mint_system.mrp.mrp_production_tree_view.show_x_date_deadline

<?xml version="1.0"?>
<data inherit_id="mrp.mrp_production_tree_view" priority="50">
  
  <xpath expr="//field[@name='date_planned_start']" position="after">
     <field name="x_date_deadline"/>
  </xpath>
	
</data>

Source: snippets/mrp.mrp_production_tree_view.show_x_date_deadline.xmlopen in new window

Sort Date Planned Start

ID: mint_system.mrp.mrp_production_tree_view.sort_date_planned_start

<?xml version="1.0"?>
<data inherit_id="mrp.mrp_production_tree_view" priority="50">
  
  <xpath expr="//tree" position="attributes">
        <attribute name="default_order">date_planned_start asc</attribute>
  </xpath>
	
</data>

Source: snippets/mrp.mrp_production_tree_view.sort_date_planned_start.xmlopen in new window

Mrp Production Workorder Tree Editable View

Add Product Id

ID: mint_system.mrp.mrp_production_workorder_tree_editable_view.add_product_id

<?xml version="1.0"?>
<data inherit_id="mrp.mrp_production_workorder_tree_editable_view" priority="50">

<xpath expr="//field[@name='workcenter_id']" position="after">
   <field name="product_id"/>
</xpath>
</data>

Source: snippets/mrp.mrp_production_workorder_tree_editable_view.add_product_id.xmlopen in new window

Add Production Id

ID: mint_system.mrp.mrp_production_workorder_tree_editable_view.add_production_id

<?xml version="1.0"?>
<data inherit_id="mrp.mrp_production_workorder_tree_editable_view" priority="50">

<xpath expr="//field[@name='workcenter_id']" position="after">
   <field name="production_id"/>
</xpath>

</data>

Source: snippets/mrp.mrp_production_workorder_tree_editable_view.add_production_id.xmlopen in new window

X Reservation State

ID: mint_system.mrp.mrp_production_workorder_tree_editable_view.x_reservation_state

<?xml version="1.0"?>
<data inherit_id="mrp.mrp_production_workorder_tree_editable_view" priority="50">

<xpath expr="//field[@name='date_planned_start']" position="before">
   <field name="x_reservation_state"/>
</xpath>

</data>

Source: snippets/mrp.mrp_production_workorder_tree_editable_view.x_reservation_state.xmlopen in new window

Mrp Production Workorder Tree View

Hide Production Id

ID: mint_system.mrp.mrp_production_workorder_tree_view.hide_production_id

<?xml version="1.0"?>
<data inherit_id="mrp.mrp_production_workorder_tree_view" priority="50">

<xpath expr="//field[@name='production_id']" position="replace">
</xpath>

</data>

Source: snippets/mrp.mrp_production_workorder_tree_view.hide_production_id.xmlopen in new window

Report Mrporder

Add Padding

ID: mint_system.mrp.report_mrporder.add_padding

<?xml version="1.0"?>
<data inherit_id="mrp.report_mrporder" priority="50">

  <!-- First row -->
  <xpath expr="/t/t/t/t/div/div[2]" position="attributes">
    <attribute name="style" add="padding-bottom: 2rem"/>
  </xpath>

  <!-- Header level 3 -->
  <xpath expr="/t/t/t/t/div/div[3]/div[2]" position="attributes">
    <attribute name="class">col-5</attribute>
  </xpath>
  <xpath expr="/t/t/t/t/div/div[3]/div[1]" position="attributes">
    <attribute name="class">col-5</attribute>
  </xpath>
  <xpath expr="/t/t/t/t/div/div[4]/div[1]" position="attributes">
    <attribute name="class">col-5</attribute>
  </xpath>
  <xpath expr="/t/t/t/t/div/div[4]/div[3]" position="attributes">
    <attribute name="class">col-5</attribute>
  </xpath>

  <!-- Header level 3 -->
  <xpath expr="/t/t/t/t/div/div[5]/h3" position="attributes">
    <attribute name="style">padding-top: 2rem</attribute>
  </xpath>
  <xpath expr="/t/t/t/t/div/h3" position="attributes">
    <attribute name="style">padding-top: 2rem</attribute>
  </xpath>

</data>

Source: snippets/mrp.report_mrporder.add_padding.xmlopen in new window

List Quality Points

ID: mint_system.mrp.report_mrporder.list_quality_points

<?xml version="1.0"?>
<!-- List quality points in mrp order -->
<data inherit_id="mrp.report_mrporder" priority="50">

	<xpath expr="/t/t/t/t/div/div[5]/table/tr[2]/td[1]/span" position="after">
		<ul>
		  <li t-foreach="line2.operation_id.quality_point_ids" t-as="quality_point"><span t-field="quality_point.title"/></li>
	  </ul>
  </xpath>

</data>

Source: snippets/mrp.report_mrporder.list_quality_points.xmlopen in new window

Modify Section Consumed Products

ID: mint_system.mrp.report_mrporder.modify_section_consumed_products

<?xml version="1.0"?>
<data inherit_id="mrp.report_mrporder" priority="50">

  <xpath expr="//span[@t-field='o.product_id']/../.." position="after">
    <style>
      table#to_produce {
        width: 100%;
        margin-top: 20px;
        font-size: 10pt;
      }
      table#to_produce th, td {
        padding-left: 5px;
        padding-right: 5px;
      }
    </style>
    <table id='to_produce'>
     	<tr style="border-bottom: 1px solid rgb(220,220,220);">
        	<th width="40%;"><strong>Menge</strong></th>
        	<th width="30%;"><strong>Datum</strong></th>
        	<th width="30%;"></th>
     	</tr>
    	<tr>
        	<td>
          <strong><span t-field="o.product_qty"/>
          <span t-field="o.product_uom_id.name" groups="uom.group_uom"/></strong>
          </td>
        <td>Start: <span t-field="o.date_planned_start" t-options='{"widget": "date"}'/></td>
        <td style="text-align: right"><strong>Termin: <span t-field="o.date_planned_finished" t-options='{"widget": "date"}'/></strong></td>
       </tr>
    </table>
	
  </xpath>  
</data>

Source: snippets/mrp.report_mrporder.modify_section_consumed_products.xmlopen in new window

Modify Section Operations

ID: mint_system.mrp.report_mrporder.modify_section_operations

<?xml version="1.0"?>
<data inherit_id="mrp.report_mrporder" priority="50">

  <xpath expr="//div[@t-if='o.workorder_ids']" position="replace">
    <style>
       h3 {
       font-size: 14pt;
       font-weight: bold;
       margin: 20px 0 0 10px;
       }
      .table {
        margin: 0 0 0 10px;
        width: 98%;
      }
      .th {
      border-bottom: 1px solid rgb(220,220,220);
      font-weight: bold;
      padding: 10px 0 5px 0;
      font-size: 11pt;
    }
    .tdline {
      border-bottom: 1px solid rgb(220,220,220);
      font-size: 10pt;
    }
    
    </style>
    <h3>
      <span t-if="o.state == 'done'">Operations Done</span>
      <span t-else="">Operations Planned</span>
    </h3>
    <div t-if="o.workorder_ids" groups="mrp.group_mrp_routings">
      <div>
        <div class="row table th">
          <div class="col-6">
            <strong>Operation</strong>
          </div>
          <div class="col-2">
            <strong>WorkCenter</strong>
          </div>
          <div class="col-2 text-right">
            <strong>No. Of Minutes</strong>
          </div>
          <div class="col-1 text-center">
            <strong>IST</strong>
          </div>
          <div class="col-1 text-center">
            <strong>Vis</strong>
          </div>
        </div>
        <div class="row table tdline" t-foreach="o.workorder_ids" t-as="line2">
          <div class="col-6">
            <span t-field="line2.name"/>
          </div>
          <div class="col-2">
            <span t-field="line2.workcenter_id.name"/>
          </div>
          <div class="col-2 text-right">
            <span t-if="o.state != 'done'" t-field="line2.duration_expected"/>
            <span t-if="o.state == 'done'" t-field="line2.duration"/>
          </div>
          <div class="col-1"></div>
          <div class="col-1"></div>
        </div>
      </div>
    </div>

  </xpath>

</data>

Source: snippets/mrp.report_mrporder.modify_section_operations.xmlopen in new window

Modify Section Order Definition

ID: mint_system.mrp.report_mrporder.modify_section_order_definition

<?xml version="1.0"?>
<data inherit_id="mrp.report_mrporder" priority="50">

  <xpath expr="//span[@t-field='o.product_id']/../.." position="replace">

    <style>
    .table {
      margin: 0 0 0 10px;
      width: 98%;
    }
    .th {
      border-bottom: 1px solid rgb(220,220,220);
      font-weight: bold;
      padding: 10px 0 5px 0;
      font-size: 11pt;
    }
    .td {
      font-size: 10pt;
    }
    .col-2 {
      padding: 0 0 0 0;
    }
    .col-4 {
      padding: 0 0 0 0;
    }
     .col-6 {
      padding: 0 0 0 0;
    }
    </style>
    <div class="row table th">
      <div class="col-2">
        <span>Produkt</span>
      </div>
      <div class="col-4">
        <span t-field="o.product_id.default_code"/>
      </div>
      <div class="col-6">
        <span>Typenbezeichnung</span>
      </div>
    </div>
    <div class="row table td">
      <div class="col-6">
        <span t-field="o.product_id.name"/>
      </div>
      <div class="col-6">
        <span t-field="o.product_id.type_description"/>
      </div>
    </div>

    <div class="col-3" t-if="o.product_description_variants">
      <strong>Description:</strong>
      <br/>
      <span t-field="o.product_description_variants"/>
    </div>

    <div class="row table th">
      <div class="col-2">
        <span>Menge</span>
      </div>
      <div class="col-4">
      </div>
      <div class="col-6">
        <span>Datum</span>
      </div>
    </div>
    <div class="row table td">
      <div class="col-6">
        <strong>
          <span t-field="o.product_qty"/>
        </strong>
        <strong>
          <span t-field="o.product_uom_id.name" groups="uom.group_uom"/>
        </strong>
      </div>
      <div class="col-4">
        Start: <span t-field="o.date_planned_start" t-options='{"widget": "date"}'/>
      </div>
      <div class="col-2 text-right">
        <strong>Termin: <span t-field="o.date_planned_finished" t-options='{"widget": "date"}'/>
        </strong>
      </div>
    </div>

  </xpath>

</data>

Source: snippets/mrp.report_mrporder.modify_section_order_definition.xmlopen in new window

Modify Section To Consume Products

ID: mint_system.mrp.report_mrporder.modify_section_to_consume_products

<?xml version="1.0"?>
<data inherit_id="mrp.report_mrporder" priority="50">

  <xpath expr="//table[@t-if='o.move_raw_ids']" position="replace">
    <style>
    table#section_consumed_products {
      width: 98%;
      margin: 0 0 10px 10px;
      font-size: 10pt;
    }
    table#section_consumed_products th {
      font-size: 10pt;
      font-weight: bold;
      vertical-align: middle;
      padding-left: 5px;
      padding-bottom: 5px;
    }
    table#section_consumed_products td {
      vertical-align: top;
      padding-left: 5px;
      padding-bottom: 5px;
      padding-top: 5px;
    }
    table#note {
      width: 100%;
      margin-top: 30px;
      font-size: 14pt;
      padding-left:10px;
    }
    </style>

    <table id='section_consumed_products' t-if="o.move_raw_ids">
      <t t-set="has_product_barcode" t-value="any(m.product_id.barcode for m in o.move_raw_ids)"/>
      <thead>
        <tr style="border-bottom: 1px solid rgb(220,220,220);">
          <th width="10%">Art. Nr.</th>
          <th width="31%">Bezeichnung</th>
          <th width="29%">Typenbezeichnung</th>
          <th width="20%" style="text-align: right; padding-right: 20px" t-attf-class="{{ 'text-right' if not has_product_barcode else '' }}">Menge</th>
          <th width="10%" t-if="has_product_barcode" class="text-center">Strichcode</th>
        </tr>
      </thead>
      <body>
        <t t-if="o.move_raw_ids">
          <tr style="border-bottom: 1px solid rgb(220,220,220); vertical-align: top; font-size: 10pt;" t-foreach="o.move_raw_ids" t-as="raw_line">
            <td>
              <span t-field="raw_line.product_id.default_code"/>
            </td>
            <td>
              <span t-field="raw_line.product_id.name"/>
            </td>
            <td>
              <span t-field="raw_line.product_id.type_description"/>
            </td>
            <td style="text-align: right; padding-right: 20px" t-attf-class="{{ 'text-right' if not has_product_barcode else '' }}">
              <span t-field="raw_line.product_uom_qty"/>
              <span t-field="raw_line.product_uom" groups="uom.group_uom"/>
            </td>
            <td t-if="has_product_barcode" width="15%" class="text-center">
              <t t-if="raw_line.product_id.barcode">
                <img t-att-src="'/report/barcode/?type=%s&amp;value=%s&amp;width=%s&amp;height=%s&amp;quiet=0' % ('Code128', raw_line.product_id.barcode, 600, 100)" style="width:100px;height:35px; float:right;" alt="Barcode"/>
              </t>
            </td>
          </tr>
        </t>
      </body>
    </table>

    <table id='note'>
      <thead>
        <tr style="border-bottom: 1px solid rgb(220,220,220);">
          <th>Notiz</th>
        </tr>
      </thead>
      <body>
          <tr style="vertical-align: top; font-size: 10pt;">
            <td>
               <span t-field="o.x_note"/>
            </td>
          </tr>
      </body>      
    </table>

  </xpath>
</data>

Source: snippets/mrp.report_mrporder.modify_section_to_consume_products.xmlopen in new window

Quality Points

ID: mint_system.mrp.report_mrporder.quality_points

<?xml version="1.0"?>
<data inherit_id="mrp.report_mrporder" priority="50">

	<xpath expr="//tr[@t-foreach='o.workorder_ids']/td[1]/span" position="after">
		<ul style="list-style-type:none;">
		  <li t-foreach="line2.operation_id.quality_point_ids" t-as="quality_point"><span t-field="quality_point.title"/></li>
	  </ul>
    </xpath>

</data>

Source: snippets/mrp.report_mrporder.quality_points.xmlopen in new window

Remove Barcode

ID: mint_system.mrp.report_mrporder.remove_barcode

<?xml version="1.0"?>
<!-- Remove barcode from mrp order -->
<data inherit_id="mrp.report_mrporder" priority="50">
  <xpath expr="//table[1]/thead[1]/tr[1]/th[3]" position="replace"/>
  <xpath expr="//table[1]/tbody[1]/t[1]/tr[1]/td[3]" position="replace"/>
</data>

Source: snippets/mrp.report_mrporder.remove_barcode.xmlopen in new window

Remove Responsible

ID: mint_system.mrp.report_mrporder.remove_responsible

<?xml version="1.0"?>
<data inherit_id="mrp.report_mrporder" priority="50">

<xpath expr="//span[@t-field='o.user_id']/../.." position="replace">
</xpath>

</data>

Source: snippets/mrp.report_mrporder.remove_responsible.xmlopen in new window

Replace Title Section To Consume Products

ID: mint_system.mrp.report_mrporder.replace_title_section_to_consume_products

<?xml version="1.0"?>
<data inherit_id="mrp.report_mrporder" priority="50">

  <xpath expr="//h3[@t-if='o.move_raw_ids']" position="replace">
    <style>
      table#consumed_products {
        width:98%;
        margin: 20px 0 10px 10px;
        font-size: 14pt;
        font-weight: bold;
        padding-left: 5px;
      }
    </style>
    <table id='consumed_products'>
      <tr style="border-bottom: 1px solid rgb(220,220,220);">
        <td>Benötigte Produkte
        </td>
      </tr>
    </table>
  </xpath>
</data>

Source: snippets/mrp.report_mrporder.replace_title_section_to_consume_products.xmlopen in new window

Show Expected

ID: mint_system.mrp.report_mrporder.show_expected

<?xml version="1.0"?>
<data inherit_id="mrp.report_mrporder" priority="50">

	<xpath expr="//tr[1]/td[1]/span[1]" position="after">
		<t t-if="raw_line.forecast_expected_date">
			<br/><span>Expected date: </span><span t-field="raw_line.forecast_expected_date" t-options='{"widget": "date"}'/><br/>
		</t>
	</xpath>
</data>

Source: snippets/mrp.report_mrporder.show_expected.xmlopen in new window

Show Lot

ID: mint_system.mrp.report_mrporder.show_lot

<?xml version="1.0"?>
<!-- If lot is not available show forecasted days. -->
<data inherit_id="mrp.report_mrporder" priority="50">

	<xpath expr="/t/t/t/t/div/table/tbody/t/tr/td[1]/span" position="after">
		<t t-if="raw_line.forecast_expected_date">
			<br/><span>Expected date: </span><span t-field="raw_line.forecast_expected_date" t-options='{"widget": "date"}'/><br/>
		</t>

    	<!--
		<span>Qty: </span><span t-field="raw_line.product_uom_qty"/><br/>
    	<span>Forecast: </span><span t-field="raw_line.forecast_availability"/><br/>
    	<span>Available: </span><span t-field="raw_line.availability"/><br/>
		-->

		<t t-if="len(raw_line.move_line_ids) > 0 and raw_line.move_line_ids[0].lot_id">
			<br/><span>Lot(s): </span><span t-foreach="raw_line.move_line_ids" t-as="move_line"><span t-field="move_line.lot_id"/> </span>
		</t>
	</xpath>

</data>

Source: snippets/mrp.report_mrporder.show_lot.xmlopen in new window

Show Planned

ID: mint_system.mrp.report_mrporder.show_planned

<?xml version="1.0"?>
<data inherit_id="mrp.report_mrporder" priority="50">

  <xpath expr="//table/tr[1]/th[2]" position="after">
    <th>
      <strong>Start Date</strong>
    </th>
  </xpath>

  <xpath expr="//table/tr[2]/td[2]" position="after">
    <td>
      <span t-field="line2.date_planned_start"/>
    </td>
  </xpath>

  <xpath expr="//table[1]/tr[2]/td[3]/span[1]" position="attributes">
    <attribute name="t-options-widget">"date"</attribute>
  </xpath>

  <xpath expr="//table/tr[1]/th[3]" position="after">
    <th>
      <strong>End Date</strong>
    </th>
  </xpath>

  <xpath expr="//table/tr[2]/td[3]" position="after">
    <td>
      <span t-field="line2.date_planned_finished"/>
    </td>
  </xpath>

  <xpath expr="//table[1]/tr[2]/td[4]/span[1]" position="attributes">
    <attribute name="t-options-widget">"date"</attribute>
  </xpath>

</data>

Source: snippets/mrp.report_mrporder.show_planned.xmlopen in new window

Show Stock

ID: mint_system.mrp.report_mrporder.show_stock

<?xml version="1.0"?>
<data inherit_id="mrp.report_mrporder" priority="60">
	<xpath expr="//table/thead/tr/th[2]" position="after">
        <th>
            <span>Lagerort (Los) Menge</span>
        </th>
    </xpath>
    <xpath expr="//table/tbody/t/tr/td[2]" position="after">
        <td>
            <span t-foreach="raw_line.move_line_ids" t-as="move_line">
                <span t-field="move_line.location_id.display_name"/>
                <t t-if="move_line.lot_id"> (<span t-field="move_line.lot_id"/>) </t>
                <span t-field="move_line.product_uom_qty"/>
                <br/>
            </span>
        </td>
    </xpath>
    <xpath expr="//div/div[4]/div[1]/span" position="after">
        <span t-if="o.lot_producing_id">
            <br/>Los: <span t-field="o.lot_producing_id.name"/>
        </span>
    </xpath>
</data>

Source: snippets/mrp.report_mrporder.show_stock.xmlopen in new window

Stock Report Delivery Kit Sections

Expand Section Heading

ID: mint_system.mrp.stock_report_delivery_kit_sections.expand_section_heading

<?xml version="1.0"?>
<data inherit_id="mrp.stock_report_delivery_kit_sections" priority="50">
	
    <xpath expr="//span[@t-esc='kit.display_name']" position="after">
        <br/>bestehend aus:       
    </xpath>
</data>

Source: snippets/mrp.stock_report_delivery_kit_sections.expand_section_heading.xmlopen in new window

View Mrp Bom Filter

Add Operation Ids

ID: mint_system.mrp.view_mrp_bom_filter.add_operation_ids

<?xml version="1.0"?>
<data inherit_id="mrp.view_mrp_bom_filter"  priority="50">

	<xpath expr="//field[@name='bom_line_ids']" position="after">
		<filter string="Mit Vorgängen" name="operation" domain="[('operation_ids', '!=', False)]"/>
		<filter string="Ohne Vorgänge" name="operation" domain="[('operation_ids', '=', False)]"/>
	</xpath>

</data>

Source: snippets/mrp.view_mrp_bom_filter.add_operation_ids.xmlopen in new window

Add X Type Description

ID: mint_system.mrp.view_mrp_bom_filter.add_x_type_description

<?xml version="1.0"?>
<data inherit_id="mrp.view_mrp_bom_filter" priority="50">

	<xpath expr="//field[@name='bom_line_ids']" position="after">
		<field name="x_type_description" string="Typenbezeichnung" filter_domain="['|', ('x_type_description', 'ilike', self), ('x_type_description_bom_line', 'ilike', self)]"/>
	</xpath>

</data> 

Source: snippets/mrp.view_mrp_bom_filter.add_x_type_description.xmlopen in new window

View Mrp Production Filter

Add Not Planned

ID: mint_system.mrp.view_mrp_production_filter.add_not_planned

<?xml version="1.0"?>
<data inherit_id="mrp.view_mrp_production_filter" priority="50">

	<xpath expr="//filter[@name='filter_planned']" position="after">
		<filter string="Nicht geplant" name="filter_not_planned" domain="[('is_planned', '!=', True)]" groups="mrp.group_mrp_routings"/>
	</xpath>

</data>

Source: snippets/mrp.view_mrp_production_filter.add_not_planned.xmlopen in new window

View Mrp Production Workorder Form View Filter

Add Date Planned Start Set

ID: mint_system.mrp.view_mrp_production_workorder_form_view_filter.add_date_planned_start_set

<?xml version="1.0"?>
<data inherit_id="mrp.view_mrp_production_workorder_form_view_filter" priority="50">

<xpath expr="//filter[@name='late']" position="after">
   <filter string="Start Date Set" name="start_date_set" domain="[('date_planned_start', '!=', False)]"/>
</xpath>

</data>

Source: snippets/mrp.view_mrp_production_workorder_form_view_filter.add_date_planned_start_set.xmlopen in new window

Add Planned

ID: mint_system.mrp.view_mrp_production_workorder_form_view_filter.add_planned

<?xml version="1.0"?>
<data inherit_id="mrp.view_mrp_production_workorder_form_view_filter" priority="50">

<xpath expr="//filter[@name='progress']" position="before">
   <filter string="Geplant" name="planned" domain="[('date_planned_start', '!=', False)]" context="{'search_default_planned': 1}"/>
   <filter string="Nicht geplant" name="not_planned" domain="[('date_planned_start', '=', False)]"/>
</xpath>

</data>

Source: snippets/mrp.view_mrp_production_workorder_form_view_filter.add_planned.xmlopen in new window

Add Product Id

ID: mint_system.mrp.view_mrp_production_workorder_form_view_filter.add_product_id

<?xml version="1.0"?>
<data inherit_id="mrp.view_mrp_production_workorder_form_view_filter" priority="50">

<xpath expr="//field[@name='production_id']" position="after">
    <field string="Produkt" name="product_id" filter_domain="['|', '|', '|', ('product_id.name', 'like', self), ('product_id.default_code', 'like', self), ('product_id.type_description', 'like', self), ('product_id.type_description2', 'like', self)]"/>
</xpath>
</data>

Source: snippets/mrp.view_mrp_production_workorder_form_view_filter.add_product_id.xmlopen in new window

Add Date Planned Start Set

ID: mint_system.mrp.view_mrp_production_work_order_search.add_date_planned_start_set

<?xml version="1.0"?>
<data inherit_id="mrp.view_mrp_production_work_order_search" priority="50">

<xpath expr="//filter[@name='date_start_filter']" position="after">
   <separator/>
   <filter string="Start Date Set" name="start_date_set" domain="[('date_planned_start', '!=', False)]"/>
</xpath>

</data>

Source: snippets/mrp.view_mrp_production_work_order_search.add_date_planned_start_set.xmlopen in new window

Add Material Is Available

ID: mint_system.mrp.view_mrp_production_work_order_search.add_material_is_available

<?xml version="1.0"?>
<data inherit_id="mrp.view_mrp_production_work_order_search" priority="50">

  <xpath expr="//filter[@name='date_start_filter']" position="after">
    <separator/>
    <filter string="Material is available" name="material_is_available" domain="[('x_reservation_state', '=', 'assigned')]"/>
  </xpath>

</data>

Source: snippets/mrp.view_mrp_production_work_order_search.add_material_is_available.xmlopen in new window

Add Product Id

ID: mint_system.mrp.view_mrp_production_work_order_search.add_product_id

<?xml version="1.0"?>
<data inherit_id="mrp.view_mrp_production_work_order_search" priority="50">

    <xpath expr="//field[@name='workcenter_id']" position="after">
        <field string="Produkt" name="product_id" filter_domain="['|', '|', '|', ('product_id.name', 'like', self), ('product_id.default_code', 'like', self), ('product_id.type_description', 'like', self), ('product_id.type_description2', 'like', self)]"/>
    </xpath>

</data>

Source: snippets/mrp.view_mrp_production_work_order_search.add_product_id.xmlopen in new window

Workcenter Line Kanban

Add Date Planned Start

ID: mint_system.mrp.workcenter_line_kanban.add_date_planned_start

<?xml version="1.0"?>
<data inherit_id="mrp.workcenter_line_kanban"  priority="50">

<xpath expr="//h5" position="replace">
  <h5 class="oe_kanban_bottom_left">
    
    <table>
      <tr>
        <td class="font-weight-bold">
           Start Datum: <field name="date_planned_start" type="date"/>
        </td>
      </tr>
      <tr>
        <td>
         <span><t t-esc="record.product_id.value"/>, </span> <span><t t-esc="record.qty_production.value"/> <t t-esc="record.product_uom_id.value"/></span>
        </td>
      </tr>
    </table>

  </h5>
</xpath>
</data>

Source: snippets/mrp.workcenter_line_kanban.add_date_planned_start.xmlopen in new window

Default Order Date Planned Start

ID: mint_system.mrp.workcenter_line_kanban.default_order_date_planned_start

<?xml version="1.0"?>
<data inherit_id="mrp.workcenter_line_kanban" priority="50">

  <xpath expr="//kanban" position="attributes">
    <attribute name="default_order">date_planned_start</attribute>
  </xpath>

</data>

Source: snippets/mrp.workcenter_line_kanban.default_order_date_planned_start.xmlopen in new window