Product

Product Category Form View

X Relevant For Certificate

ID: mint_system.product.product_category_form_view.x_relevant_for_certificate

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

    <field name="parent_id" position="after">
        <field name="x_relevant_for_certificate"/>
    </field>

</data>

Source: snippets/product.product_category_form_view.x_relevant_for_certificate.xmlopen in new window

Product Normal Form View

Add Feeder Id

ID: mint_system.product.product_normal_form_view.add_feeder_id

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

    <xpath expr="//page[@name='general_information']//field[@name='categ_id']" position="after">
        <field name="feeder_id" />
    </xpath>

</data>

Source: snippets/product.product_normal_form_view.add_feeder_id.xmlopen in new window

Hide Default Code

ID: mint_system.product.product_normal_form_view.hide_default_code

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

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

</data>

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

Relocate Barcode

ID: mint_system.product.product_normal_form_view.relocate_barcode

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

    <xpath expr="//page[@name='general_information']//field[@name='barcode']" position="replace"/>

    <xpath expr="//page[@name='general_information']//field[@name='categ_id']" position="after">
        <field name="barcode"/>
    </xpath>

</data>

Source: snippets/product.product_normal_form_view.relocate_barcode.xmlopen in new window

Remove Barcode

ID: mint_system.product.product_normal_form_view.remove_barcode

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

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

</data>

Source: snippets/product.product_normal_form_view.remove_barcode.xmlopen in new window

X Hide On Sale Order

ID: mint_system.product.product_normal_form_view.x_hide_on_sale_order

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

    <field name="description_sale" position="after">
        <field name="x_hide_on_sale_order" />
    </field>

</data>

Source: snippets/product.product_normal_form_view.x_hide_on_sale_order.xmlopen in new window

X Warranty

ID: mint_system.product.product_normal_form_view.x_warranty

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

    <field name="product_tag_ids" position="after">
        <field name="x_warranty"/>
    </field>
    
</data>

Source: snippets/product.product_normal_form_view.x_warranty.xmlopen in new window

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 Description

ID: mint_system.product.product_packaging_form_view.x_description

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

    <field name="product_id" position="before">
        <field name="x_description"/>
    </field>

</data>

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

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

X Print Parent Only

ID: mint_system.product.product_packaging_form_view.x_print_parent_only

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

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

</data>

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

X Print Without Parent

ID: mint_system.product.product_packaging_form_view.x_print_without_parent

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

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

</data>

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

X Qty Description

ID: mint_system.product.product_packaging_form_view.x_qty_description

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

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

</data>

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

Product Packaging Tree View

Show Barcode

ID: mint_system.product.product_packaging_tree_view.show_barcode

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

    <field name="product_id" position="after">
        <field name="barcode" optional="show"/>
    </field>

</data>

Source: snippets/product.product_packaging_tree_view.show_barcode.xmlopen in new window

X Description

ID: mint_system.product.product_packaging_tree_view.x_description

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

    <field name="product_id" position="after">
        <field name="x_description" optional="show"/>
    </field>

</data>

Source: snippets/product.product_packaging_tree_view.x_description.xmlopen in new window

Product Pricelist Item Tree View

Make Editable

ID: mint_system.product.product_pricelist_item_tree_view.make_editable

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

    <tree position="attributes">
        <attribute name="editable">bottom</attribute>
    </tree>

    <field name="price" position="after">
        <field name="fixed_price" />
    </field>

</data>

Source: snippets/product.product_pricelist_item_tree_view.make_editable.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

Remove List Price

ID: mint_system.product.product_template_form_view.remove_list_price

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

    <xpath expr="//group[@name='group_standard_price']//div[@name='pricing']" position="replace" />
    <xpath expr="//group[@name='group_standard_price']//label[@for='list_price']" position="replace" />

</data>

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

Remove Standard Price

ID: mint_system.product.product_template_form_view.remove_standard_price

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

    <xpath expr="//group[@name='group_standard_price']//div[@name='standard_price_uom']" position="replace" />
    <xpath expr="//group[@name='group_standard_price']//label[@for='standard_price']" position="replace" />

</data>

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

Remove Uom Po Id

ID: mint_system.product.product_template_form_view.remove_uom_po_id

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

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

</data>

Source: snippets/product.product_template_form_view.remove_uom_po_id.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

Remove Barcode

ID: mint_system.product.product_template_only_form_view.remove_barcode

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

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

</data>

Source: snippets/product.product_template_only_form_view.remove_barcode.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 Can Be Expensed

ID: mint_system.product.product_template_only_form_view.show_can_be_expensed

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

  <xpath expr="//field[@name='sale_ok']/.." position="after">
    <span class="d-inline-block">
      <field name="can_be_expensed" />
      <label for="can_be_expensed" />
    </span>
  </xpath>

</data>

Source: snippets/product.product_template_only_form_view.show_can_be_expensed.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 Calibre

ID: mint_system.product.product_template_only_form_view.x_calibre

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

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

</data>

Source: snippets/product.product_template_only_form_view.x_calibre.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 Hide On Invoice

ID: mint_system.product.product_template_only_form_view.x_hide_on_invoice

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

    <group name="properties" position="before">
        <group>
            <group>
                <field name="x_hide_on_invoice" widget="boolean_toggle" />
            </group>
        </group>
    </group>

</data>

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

X Hide On Sale Order

ID: mint_system.product.product_template_only_form_view.x_hide_on_sale_order

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

    <field name="description_sale" position="after">
        <field name="x_hide_on_sale_order" widget="boolean_toggle" />
    </field>

</data>

Source: snippets/product.product_template_only_form_view.x_hide_on_sale_order.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

X Warranty

ID: mint_system.product.product_template_only_form_view.x_warranty

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

    <field name="product_tag_ids" position="after">
        <field name="x_warranty"/>
    </field>

</data>

Source: snippets/product.product_template_only_form_view.x_warranty.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

Modify Name

ID: mint_system.product.product_template_search_view.modify_name

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

  <xpath expr="//field[@name='name']" position="replace">
    <field name="name" string="Product" filter_domain="['|', '|', '|', '|','|',('default_code', 'ilike', self), ('product_variant_ids.default_code', 'ilike', self),('name', 'ilike', self), ('barcode', 'ilike', self), ('type_description', 'ilike', self), ('type_description2', 'ilike', self)]"/>
  </xpath>

</data>

Source: snippets/product.product_template_search_view.modify_name.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;
            line-height: 1;
        }
        .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 box2">
                <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