Product

Product Normal Only Form View

Add X Product Label

ID: mint_system.product.product_normal_only_form_view.add_x_product_label

<?xml version="1.0"?>
<data inherit_id="product.product_normal_only_form_view" priority="50">

  <field name="barcode" position="after">
    <field name="x_product_label"/>
  </field>

</data>

Source: snippets/product.product_normal_only_form_view.add_x_product_label.xmlopen in new window

Product Packaging Form View

X Packaging Uom Id

ID: mint_system.product.product_packaging_form_view.x_packaging_uom_id

<?xml version="1.0"?>
<data inherit_id="product.product_packaging_form_view" priority="50">

  <field name="barcode" position="before">
    <field name="x_packaging_uom_id"/>
  </field>

</data>

Source: snippets/product.product_packaging_form_view.x_packaging_uom_id.xmlopen in new window

Product Pricelist View

Show Product

ID: mint_system.product.product_pricelist_view.show_product

<?xml version="1.0"?>
<data inherit_id="product.product_pricelist_view" priority="50">

  <field name="name" position="before">
    <field name="product_tmpl_id"/>
  </field>

</data>

Source: snippets/product.product_pricelist_view.show_product.xmlopen in new window

Product Template Form View

Add Type Description

ID: mint_system.product.product_template_form_view.add_type_description

<?xml version="1.0"?>
<data inherit_id="product.product_template_form_view" priority="50">

  <xpath expr="//h1/field[@name='name']" position="after">
  <h2><field name="type_description"/></h2>
  <h3><field name="type_description2"/></h3>
  </xpath>                
                        
</data>

Source: snippets/product.product_template_form_view.add_type_description.xmlopen in new window

Replace Title

ID: mint_system.product.product_template_form_view.replace_title

<?xml version="1.0"?>
<data inherit_id="product.product_template_form_view" priority="50">

<xpath expr="//div[@class='oe_title']" position="replace">
  <div class='oe_title'>
  <table style="width:100%">
  <tr>
    <td style="width:60%">
      <h1><field name="name" placeholder="Product Name"/></h1>
    </td>
    <td style="width:40%; text-valign: bottom">
      <label for="default_code"/><field name="default_code"/>   
    </td>
  </tr>
  
  <tr>
    <td>
      <h2><field name="type_description"/></h2>
      <h3><field name="type_description2"/></h3>
    </td>
    <td>
      <div>
      <field name="sale_ok"/>
      <label for="sale_ok"/>
      </div>
    <div>
      <field name="purchase_ok"/>
      <label for="purchase_ok"/>
    </div>
    </td>    
  </tr>
  
  </table>
  </div>
  </xpath>              
</data>

Source: snippets/product.product_template_form_view.replace_title.xmlopen in new window

Product Template Kanban View

Add Product Info

ID: mint_system.product.product_template_kanban_view.add_product_info

<?xml version="1.0"?>
<data inherit_id="product.product_template_kanban_view" priority="50">>

  <xpath expr="//div[@class='oe_kanban_details']" position="replace">
     <div class="oe_kanban_details">
        <t t-if="record.default_code.value">[<field name="default_code"/>]</t>
     
     <strong class="o_kanban_record_title">
       <field name="name"/>
     </strong>
     
    <div><field name="type_description"/>
    </div> 
    <div t-if="record.type.raw_value == 'product'">On hand: <field name="qty_available"/> <field name="uom_id"/> / <field name="virtual_available"/> <field name="uom_id"/>
    </div>
    </div>
  </xpath>

</data>

Source: snippets/product.product_template_kanban_view.add_product_info.xmlopen in new window

Product Template Only Form View

Add X Product Label

ID: mint_system.product.product_template_only_form_view.add_x_product_label

<?xml version="1.0"?>
<data inherit_id="product.product_template_only_form_view" priority="50">

    <field name="barcode" position="after">
        <field name="x_product_label"/>
    </field>

</data>

Source: snippets/product.product_template_only_form_view.add_x_product_label.xmlopen in new window

Hide Barcode

ID: mint_system.product.product_template_only_form_view.hide_barcode

<?xml version="1.0"?>
<data inherit_id="product.product_template_only_form_view" priority="50">

  <xpath expr="//field[@name='barcode']" position="attributes">
    <attribute name="groups">base.group_erp_manager</attribute>
  </xpath>

</data>

Source: snippets/product.product_template_only_form_view.hide_barcode.xmlopen in new window

Hide Default Code

ID: mint_system.product.product_template_only_form_view.hide_default_code

<?xml version="1.0"?>
<data inherit_id="product.product_template_only_form_view" priority="50">

<xpath expr="///group[@name='group_general']/field[@name='default_code']" position="replace"/>

</data>

Source: snippets/product.product_template_only_form_view.hide_default_code.xmlopen in new window

Replace Feeder Id

ID: mint_system.product.product_template_only_form_view.replace_feeder_id

<?xml version="1.0"?>
<data inherit_id="product.product_template_only_form_view" priority="50">

  <field name="feeder_id" position="replace">
  </field>

  <field name="barcode" position="before">
    <field name="feeder_id"/>
  </field>

</data>

Source: snippets/product.product_template_only_form_view.replace_feeder_id.xmlopen in new window

Show Handle

ID: mint_system.product.product_template_only_form_view.show_handle

<?xml version="1.0"?>
<data inherit_id="product.product_template_only_form_view" priority="50">

    <data>
        <xpath expr="//field[@name='packaging_ids']" position="inside">
            <tree string="Product Packagings">
                <field name="sequence" widget="handle"/>
                <field name="name" string="Packaging"/>
                <field name="qty"/>
                <field name="product_uom_id" options="{'no_open': True, 'no_create': True}" groups="uom.group_uom"/>
                <field name="company_id" groups="base.group_multi_company"/>
            </tree>
        </xpath>
    </data>

</data>

Source: snippets/product.product_template_only_form_view.show_handle.xmlopen in new window

X Expiration Days

ID: mint_system.product.product_template_only_form_view.x_expiration_days

<?xml version="1.0"?>
<data inherit_id="product.product_template_only_form_view" priority="50">

    <field name="hs_code" position="after">
        <field name="x_expiration_days" />
    </field>

</data>

Source: snippets/product.product_template_only_form_view.x_expiration_days.xmlopen in new window

X Hide On Delivery

ID: mint_system.product.product_template_only_form_view.x_hide_on_delivery

<?xml version="1.0"?>
<data inherit_id="product.product_template_only_form_view" priority="50">

    <field name="hs_code" position="after">
        <field name="x_hide_on_delivery" widget="boolean_toggle" />
    </field>

</data>

Source: snippets/product.product_template_only_form_view.x_hide_on_delivery.xmlopen in new window

X Storage Temperature

ID: mint_system.product.product_template_only_form_view.x_storage_temperature

<?xml version="1.0"?>
<data inherit_id="product.product_template_only_form_view" priority="50">

    <field name="hs_code" position="after">
        <field name="x_storage_temperature" />
    </field>

</data>

Source: snippets/product.product_template_only_form_view.x_storage_temperature.xmlopen in new window

Product Template Search View

Add Type Description

ID: mint_system.product.product_template_search_view.add_type_description

<?xml version="1.0"?>
<data inherit_id="product.product_template_search_view" priority="50">

  <xpath expr="//field[@name='pricelist_id']" position="after">
    <separator/>
    <field string="Typenbezeichnung" name="type_description" filter_domain="['|', ('type_description', 'like', self), ('type_description2', 'like', self)]"/>
  </xpath>

</data>

Source: snippets/product.product_template_search_view.add_type_description.xmlopen in new window

Product Template Tree View

Add Default Code And Type Description

ID: mint_system.product.product_template_tree_view.add_default_code_and_type_description

<?xml version="1.0"?>
<data inherit_id="product.product_template_tree_view" priority="51">

<xpath expr="//field[@name='name']" position="before">
  <field name="default_code"/>
  <field name="type_description"/>
</xpath>

</data>

Source: snippets/product.product_template_tree_view.add_default_code_and_type_description.xmlopen in new window

Add Last Update Create Date And X Xml Id

ID: mint_system.product.product_template_tree_view.add_last_update_create_date_and_x_xml_id

<?xml version="1.0"?>
<data inherit_id="product.product_template_tree_view" priority="50">

<xpath expr="//field[@name='list_price']" position="before">
  <field name="x_xml_id" optional="show"/>
  <field name="__last_update" optional="show"/>
  <field name="create_date" optional="show"/>  
</xpath>

</data>

Source: snippets/product.product_template_tree_view.add_last_update_create_date_and_x_xml_id.xmlopen in new window

Remove Default Code And Responsible

ID: mint_system.product.product_template_tree_view.remove_default_code_and_responsible

<?xml version="1.0"?>
<data inherit_id="product.product_template_tree_view" priority="50">

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

    </xpath>

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

    </xpath>

</data>

Source: snippets/product.product_template_tree_view.remove_default_code_and_responsible.xmlopen in new window

Set Default Order

ID: mint_system.product.product_template_tree_view.set_default_order

<?xml version="1.0"?>
<data inherit_id="product.product_template_tree_view" priority="50">

<xpath expr="/tree" position="attributes">
<attribute name="default_order">default_code asc"</attribute>
</xpath>

</data>

Source: snippets/product.product_template_tree_view.set_default_order.xmlopen in new window

X Expiration Days

ID: mint_system.product.product_template_tree_view.x_expiration_days

<?xml version="1.0"?>
<data inherit_id="product.product_template_tree_view" priority="50">

    <field name="list_price" position="after">
        <field name="x_expiration_days" optional="show" />
    </field>

</data>

Source: snippets/product.product_template_tree_view.x_expiration_days.xmlopen in new window

X Storage Temperature

ID: mint_system.product.product_template_tree_view.x_storage_temperature

<?xml version="1.0"?>
<data inherit_id="product.product_template_tree_view" priority="50">

    <field name="list_price" position="after">
        <field name="x_storage_temperature" optional="hide" />
    </field>

</data>

Source: snippets/product.product_template_tree_view.x_storage_temperature.xmlopen in new window

Product Variant Easy Edit View

Hide Barcode

ID: mint_system.product.product_variant_easy_edit_view.hide_barcode

<?xml version="1.0"?>
<data inherit_id="product.product_variant_easy_edit_view" priority="50">

  <xpath expr="//field[@name='barcode']" position="attributes">
    <attribute name="groups">base.group_erp_manager</attribute>
  </xpath>

</data>

Source: snippets/product.product_variant_easy_edit_view.hide_barcode.xmlopen in new window

Report Producttemplatelabel

Trimada

ID: mint_system.product.report_producttemplatelabel.trimada

<t t-name="product.report_producttemplatelabel.trimada">
  <t t-call="web.basic_layout">
    <t t-foreach="docs" t-as="template">
      <t t-foreach="template.product_variant_ids" t-as="product">
        <style>
        .label {
            font-family: arial;
        }
        .box1 {
            margin: 9mm 0 2mm 0;
        }
        .box2 {
            margin: 7mm 0 2mm 0;
        }
        .box3 {
            margin: 2mm 0 2mm 0;
        }
        .title {
            font-size: 11mm;
            margin: 3mm 3mm 0 3mm;
            font-weight: bold;
            text-align: center;
            border-bottom: solid 1px;
        }
        .frame {
            border-bottom: solid 1px;
            margin: 0 3mm 0 3mm;
        }
        .description {
            font-size: 7mm;
            height: 23mm;
            width: 98%;
            overflow: hidden;
            text-overflow: ellipsis;
            text-align: center;
            padding: 10px;
            display: flex;
            justify-content: center;
            align-items: center;
        }
        .delivery {
            font-size: 7mm;
            margin: 3mm 3mm 0 3mm;
            text-align: left;
            border-bottom: solid 1px;
            line-height: 1;
            height: 34mm;
        }
        .comment {
            font-size: 5mm;
            text-align: center;
            height: 8mm;
            line-height: 10mm;
        }
        .col-6 {
            padding-right: 0;
            padding-left: 0;
        }
        </style>
        
        <div class="page">
          <div class="label">
            <div class="row title">
              <div class="col-6 box1">
                <span t-esc="product.default_code"/>
              </div>
              <div t-if="product.barcode" class="col-6 box2 text-right">
                <img t-att-src="'/report/barcode/?type=%s&amp;value=%s&amp;width=%s&amp;height=%s&amp;quiet=0' % ('Code128', product.barcode, 250, 85)" alt="Barcode"/>
              </div>
            </div>
            <div class="frame">
            <div class="description">
                <span class="sub1" t-esc="product.name"/>
            </div>
             <div class="description">
                <span class="sub1" t-esc="product.type_description"/>
            </div>
            </div>
            <div class="row delivery">
              <div class="col-12 box3 text-center">
                  <div t-if="product.feeder_id">
                      <img t-att-src="'/report/barcode/?type=%s&amp;value=%s&amp;width=%s&amp;height=%s&amp;quiet=0' % ('Code128', product.feeder_id, 250, 80)" alt="Barcode"/>
                      <br/>
                  </div>
                  <div class="text-center">
                      <span class="text-center" t-esc="product.feeder_id"></span>
                  </div>
              </div>
            </div>
            <div class="comment">
              <span>Trimada AG, CH-5610 Wohlen – www.trimada.ch</span>
            </div>
          </div>
          <p style="page-break-before:always;" />
          
          </div>
        </t>
      </t>
    
  </t>
</t>

Source: snippets/product.report_producttemplatelabel.trimada.xmlopen in new window