Product¶
Product Category Form View¶
X Relevant For Certificate¶
ID: mint_system.product.product_category_form_view.x_relevant_for_certificate
Inherit ID: product.product_category_form_view
<data priority="50">
<field name="parent_id" position="after">
<field name="x_relevant_for_certificate"/>
</field>
</data>
Product Normal Form View¶
Add Feeder Id¶
ID: mint_system.product.product_normal_form_view.add_feeder_id
Inherit ID: product.product_normal_form_view
<data priority="50">
<xpath expr="//page[@name='general_information']//field[@name='categ_id']" position="after">
<field name="feeder_id"/>
</xpath>
</data>
Hide Default Code¶
ID: mint_system.product.product_normal_form_view.hide_default_code
Inherit ID: product.product_normal_form_view
<data priority="50">
<xpath expr="//page[@name='general_information']//field[@name='default_code']" position="replace"/>
</data>
Relocate Barcode¶
ID: mint_system.product.product_normal_form_view.relocate_barcode
Inherit ID: product.product_normal_form_view
<data 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>
Remove Barcode¶
ID: mint_system.product.product_normal_form_view.remove_barcode
Inherit ID: product.product_normal_form_view
X Hide On Sale Order¶
ID: mint_system.product.product_normal_form_view.x_hide_on_sale_order
Inherit ID: product.product_normal_form_view
<data priority="50">
<field name="description_sale" position="after">
<field name="x_hide_on_sale_order"/>
</field>
</data>
X Warranty¶
ID: mint_system.product.product_normal_form_view.x_warranty
Inherit ID: product.product_normal_form_view
<data priority="50">
<field name="product_tag_ids" position="after">
<field name="x_warranty"/>
</field>
</data>
Product Normal Only Form View¶
Add X Product Label¶
ID: mint_system.product.product_normal_only_form_view.add_x_product_label
Inherit ID: product.product_normal_only_form_view
<data priority="50">
<field name="barcode" position="after">
<field name="x_product_label"/>
</field>
</data>
Product Packaging Form View¶
X Description¶
ID: mint_system.product.product_packaging_form_view.x_description
Inherit ID: product.product_packaging_form_view
<data priority="50">
<field name="product_id" position="before">
<field name="x_description"/>
</field>
</data>
X Packaging Uom Id¶
ID: mint_system.product.product_packaging_form_view.x_packaging_uom_id
Inherit ID: product.product_packaging_form_view
<data priority="50">
<field name="barcode" position="before">
<field name="x_packaging_uom_id"/>
</field>
</data>
X Print Parent Only¶
ID: mint_system.product.product_packaging_form_view.x_print_parent_only
Inherit ID: product.product_packaging_form_view
<data priority="50">
<field name="barcode" position="before">
<field name="x_print_parent_only"/>
</field>
</data>
X Print Without Parent¶
ID: mint_system.product.product_packaging_form_view.x_print_without_parent
Inherit ID: product.product_packaging_form_view
<data priority="50">
<field name="barcode" position="before">
<field name="x_print_without_parent"/>
</field>
</data>
X Qty Description¶
ID: mint_system.product.product_packaging_form_view.x_qty_description
Inherit ID: product.product_packaging_form_view
<data priority="50">
<field name="barcode" position="before">
<field name="x_qty_description"/>
</field>
</data>
Product Packaging Tree View¶
Show Barcode¶
ID: mint_system.product.product_packaging_tree_view.show_barcode
Inherit ID: product.product_packaging_tree_view
<data priority="50">
<field name="product_id" position="after">
<field name="barcode" optional="show"/>
</field>
</data>
X Description¶
ID: mint_system.product.product_packaging_tree_view.x_description
Inherit ID: product.product_packaging_tree_view
<data priority="50">
<field name="product_id" position="after">
<field name="x_description" optional="show"/>
</field>
</data>
Product Pricelist Item Tree View¶
Make Editable¶
ID: mint_system.product.product_pricelist_item_tree_view.make_editable
Inherit ID: product.product_pricelist_item_tree_view
<data priority="50">
<tree position="attributes">
<attribute name="editable">bottom</attribute>
</tree>
<field name="price" position="after">
<field name="fixed_price"/>
</field>
</data>
Product Pricelist View¶
Show Product¶
ID: mint_system.product.product_pricelist_view.show_product
Inherit ID: product.product_pricelist_view
<data priority="50">
<field name="name" position="before">
<field name="product_tmpl_id"/>
</field>
</data>
Product Template Form View¶
Add Type Description¶
ID: mint_system.product.product_template_form_view.add_type_description
Inherit ID: product.product_template_form_view
<data priority="50">
<xpath expr="//h1/field[@name='name']" position="after">
<h2>
<field name="type_description"/>
</h2>
<h3>
<field name="type_description2"/>
</h3>
</xpath>
</data>
Enable Ribbon Field¶
ID: mint_system.product.product_template_form_view.enable_ribbon_field
Inherit ID: product.product_template_form_view
<data priority="50">
<xpath expr="//field[@name='website_ribbon_id']" position="attributes">
<attribute name="groups"/>
</xpath>
</data>
Last Incoming Date¶
ID: mint_system.product.product_template_form_view.last_incoming_date
Inherit ID: product.product_template_form_view
<data priority="50">
<xpath expr="//page[@name='inventory']//field[@name='tracking']" position="after">
<field name="last_incoming_date"/>
</xpath>
</data>
Last Moves¶
ID: mint_system.product.product_template_form_view.last_moves
Inherit ID: product.product_template_form_view
<data priority="50">
<xpath expr="//page[@name='inventory']/group[@name='inventory']" position="after">
<group name="moves" string="Bewegungen" colspan="4">
<field name="last_outgoing_date"/>
<field name="last_incoming_date"/>
</group>
</xpath>
</data>
Last Outgoing Date¶
ID: mint_system.product.product_template_form_view.last_outgoing_date
Inherit ID: product.product_template_form_view
<data priority="50">
<xpath expr="//page[@name='inventory']//field[@name='tracking']" position="after">
<field name="last_outgoing_date"/>
</xpath>
</data>
Remove List Price¶
ID: mint_system.product.product_template_form_view.remove_list_price
Inherit ID: product.product_template_form_view
<data 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>
Remove Standard Price¶
ID: mint_system.product.product_template_form_view.remove_standard_price
Inherit ID: product.product_template_form_view
<data 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>
Remove Uom Po Id¶
ID: mint_system.product.product_template_form_view.remove_uom_po_id
Inherit ID: product.product_template_form_view
<data priority="50">
<xpath expr="//group[@name='group_general']/field[@name='uom_po_id']" position="replace"/>
</data>
Replace Title¶
ID: mint_system.product.product_template_form_view.replace_title
Inherit ID: product.product_template_form_view
<data priority="50">
<xpath expr="//div[@class='oe_title']" position="replace">
<div class="oe_title">
<table style="width:100%">
<tr>
<td style="width:60%">
<h1>
<div class="d-flex">
<field name="priority" widget="priority" class="me-3"/>
<field class="text-break" name="name" options="{'line_breaks': False}" widget="text" placeholder="e.g. Cheese Burger"/>
</div>
</h1>
</td>
<td style="width:40%; vertical-align: bottom; white-space: nowrap;">
<label for="default_code" style="margin-right:10px;"/>
<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>
<xpath expr="//div[@name='options']" position="replace"/>
</data>
Show Purchase Note¶
ID: mint_system.product.product_template_form_view.show_purchase_note
Inherit ID: product.product_template_form_view
<data priority="50">
<xpath expr="//page[@name='purchase']" position="inside">
<group>
<group string="Purchase Notes" name="purchase_note">
<field colspan="2" name="x_purchase_note" nolabel="1" placeholder="This note is internal."/>
</group>
</group>
</xpath>
</data>
Show Sale Note¶
ID: mint_system.product.product_template_form_view.show_sale_note
Inherit ID: product.product_template_form_view
<data priority="50">
<xpath expr="//page[@name='sales']" position="inside">
<group>
<group string="Sale Notes" name="sale_note">
<field colspan="2" name="x_sale_note" nolabel="1" placeholder="This note is internal."/>
</group>
</group>
</xpath>
</data>
Product Template Kanban View¶
Add Product Info¶
ID: mint_system.product.product_template_kanban_view.add_product_info
Inherit ID: product.product_template_kanban_view
<data 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>
Product Template Only Form View¶
Add X Product Label¶
ID: mint_system.product.product_template_only_form_view.add_x_product_label
Inherit ID: product.product_template_only_form_view
<data priority="50">
<field name="barcode" position="after">
<field name="x_product_label"/>
</field>
</data>
Hide Barcode¶
ID: mint_system.product.product_template_only_form_view.hide_barcode
Inherit ID: product.product_template_only_form_view
<data priority="50">
<xpath expr="//field[@name='barcode']" position="attributes">
<attribute name="groups">base.group_erp_manager</attribute>
</xpath>
</data>
Hide Default Code¶
ID: mint_system.product.product_template_only_form_view.hide_default_code
Inherit ID: product.product_template_only_form_view
<data priority="50">
<xpath expr="//page[@name='general_information']//field[@name='default_code']" position="replace"/>
</data>
Hide Intrastat Supplementary¶
ID: mint_system.product.product_template_only_form_view.hide_intrastat_supplementary
Inherit ID: product.product_template_only_form_view
<data priority="50">
<xpath expr="//label[@for='intrastat_supplementary_unit_amount']" position="attributes">
<attribute name="invisible">True</attribute>
</xpath>
<xpath expr="//div/field[@name='intrastat_supplementary_unit_amount']/.." position="attributes">
<attribute name="invisible">True</attribute>
</xpath>
</data>
Remove Barcode¶
ID: mint_system.product.product_template_only_form_view.remove_barcode
Inherit ID: product.product_template_only_form_view
Replace Feeder Id¶
ID: mint_system.product.product_template_only_form_view.replace_feeder_id
Inherit ID: product.product_template_only_form_view
<data priority="50">
<field name="feeder_id" position="replace">
</field>
<field name="barcode" position="before">
<field name="feeder_id"/>
</field>
</data>
Show Can Be Expensed¶
ID: mint_system.product.product_template_only_form_view.show_can_be_expensed
Inherit ID: product.product_template_only_form_view
<data 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>
Show Handle¶
ID: mint_system.product.product_template_only_form_view.show_handle
Inherit ID: product.product_template_only_form_view
<data 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>
Show Search Terms¶
ID: mint_system.product.product_template_only_form_view.show_search_terms
Inherit ID: product.product_template_only_form_view
<field name="barcode" position="after">
<field name="x_beh_search_term_one"/>
<field name="x_beh_search_term_two"/>
</field>
Show Tariff Code¶
ID: mint_system.product.product_template_only_form_view.show_tariff_code
Inherit ID: product.product_template_only_form_view
<data priority="50">
<field name="barcode" position="after">
<field name="x_tariff_code" />
</field>
</data>
X Calibre¶
ID: mint_system.product.product_template_only_form_view.x_calibre
Inherit ID: product.product_template_only_form_view
<data priority="50">
<field name="hs_code" position="after">
<field name="x_calibre"/>
</field>
</data>
X Expiration Days¶
ID: mint_system.product.product_template_only_form_view.x_expiration_days
Inherit ID: product.product_template_only_form_view
<data priority="50">
<field name="hs_code" position="after">
<field name="x_expiration_days"/>
</field>
</data>
X Hide On Delivery¶
ID: mint_system.product.product_template_only_form_view.x_hide_on_delivery
Inherit ID: product.product_template_only_form_view
<data priority="50">
<field name="hs_code" position="after">
<field name="x_hide_on_delivery" widget="boolean_toggle"/>
</field>
</data>
X Hide On Invoice¶
ID: mint_system.product.product_template_only_form_view.x_hide_on_invoice
Inherit ID: product.product_template_only_form_view
<data priority="50">
<group name="properties" position="before">
<group>
<group>
<field name="x_hide_on_invoice" widget="boolean_toggle"/>
</group>
</group>
</group>
</data>
X Hide On Sale Order¶
ID: mint_system.product.product_template_only_form_view.x_hide_on_sale_order
Inherit ID: product.product_template_only_form_view
<data priority="50">
<field name="description_sale" position="after">
<field name="x_hide_on_sale_order" widget="boolean_toggle"/>
</field>
</data>
X Purchase Price¶
ID: mint_system.product.product_template_only_form_view.x_purchase_price
Inherit ID: product.product_template_only_form_view
<data priority="50">
<field name="categ_id" position="before">
<field name="x_purchase_price" widget="float" options="{'currency_field':'currency_id','field_digits':true,'digits':[1,3]}"/>
</field>
</data>
X Storage Temperature¶
ID: mint_system.product.product_template_only_form_view.x_storage_temperature
Inherit ID: product.product_template_only_form_view
<data priority="50">
<field name="hs_code" position="after">
<field name="x_storage_temperature"/>
</field>
</data>
X Warranty¶
ID: mint_system.product.product_template_only_form_view.x_warranty
Inherit ID: product.product_template_only_form_view
<data priority="50">
<field name="product_tag_ids" position="after">
<field name="x_warranty"/>
</field>
</data>
Product Template Search View¶
Add Type Description¶
ID: mint_system.product.product_template_search_view.add_type_description
Inherit ID: product.product_template_search_view
<data priority="50">
<xpath expr="//field[@name='categ_id']" position="after">
<field string="Typenbezeichnung" name="type_description" filter_domain="['|', ('type_description', 'like', self), ('type_description2', 'like', self)]"/>
</xpath>
</data>
Modify Name¶
ID: mint_system.product.product_template_search_view.modify_name
Inherit ID: product.product_template_search_view
<data 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>
Product Template Tree View¶
Add Default Code And Type Description¶
ID: mint_system.product.product_template_tree_view.add_default_code_and_type_description
Inherit ID: product.product_template_tree_view
<data priority="51">
<xpath expr="//field[@name='name']" position="before">
<field name="default_code"/>
<field name="type_description"/>
</xpath>
</data>
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
Inherit ID: product.product_template_tree_view
<data 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>
Add Search Fields¶
ID: mint_system.product.product_template_tree_view.add_search_fields
Inherit ID: product.product_template_tree_view
<data priority="50">
<field name="name" position="after">
<field name="x_beh_search_term_one" string="Suchterm"/>
<field name="x_beh_search_term_two" string="Bezeichnung 2"/>
</field>
</data>
Remove Default Code And Responsible¶
ID: mint_system.product.product_template_tree_view.remove_default_code_and_responsible
Inherit ID: product.product_template_tree_view
<data priority="50">
<xpath expr="//field[@name='default_code']" position="replace">
</xpath>
<xpath expr="//field[@name='responsible_id']" position="replace">
</xpath>
</data>
Set Default Order¶
ID: mint_system.product.product_template_tree_view.set_default_order
Inherit ID: product.product_template_tree_view
<data priority="50">
<xpath expr="/tree" position="attributes">
<attribute name="default_order">default_code asc"</attribute>
</xpath>
</data>
Show Accounts¶
ID: mint_system.product.product_template_tree_view.show_accounts
Inherit ID: product.product_template_tree_view
<data priority="50">
<xpath expr="//field[@name='list_price']" position="before">
<field name="property_account_income_id" optional="hide"/>
<field name="property_account_expense_id" optional="hide"/>
</xpath>
</data>
X Expiration Days¶
ID: mint_system.product.product_template_tree_view.x_expiration_days
Inherit ID: product.product_template_tree_view
<data priority="50">
<field name="list_price" position="after">
<field name="x_expiration_days" optional="show"/>
</field>
</data>
X Storage Temperature¶
ID: mint_system.product.product_template_tree_view.x_storage_temperature
Inherit ID: product.product_template_tree_view
<data priority="50">
<field name="list_price" position="after">
<field name="x_storage_temperature" optional="hide"/>
</field>
</data>
Product Variant Easy Edit View¶
Hide Barcode¶
ID: mint_system.product.product_variant_easy_edit_view.hide_barcode
Inherit ID: product.product_variant_easy_edit_view
<data priority="50">
<xpath expr="//field[@name='barcode']" position="attributes">
<attribute name="groups">base.group_erp_manager</attribute>
</xpath>
</data>
Report Producttemplatelabel¶
Trimada¶
ID: mint_system.product.report_producttemplatelabel.trimada
Inherit ID: product.report_producttemplatelabel
<t t-name="stock.label_transfer_template_view.trimada">
<t t-call="web.basic_layout">
<t t-foreach="docs" t-as="picking">
<t t-foreach="picking.move_line_ids" t-as="move">
<style>
.label {
font-family: arial;
}
.box {
margin: 0mm 0 2mm 0;
}
.box1 {
margin: 9mm 0 2mm 0;
}
.box2 {
margin: 7mm 0 2mm 0;
}
.box3 {
margin: 2mm 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: 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: 6mm;
margin: 3mm 3mm 0 3mm;
text-align: left;
border-bottom: solid 1px;
line-height: 1;
height: 35mm;
}
.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="move.product_id.default_code"/>
</div>
<div t-if="move.product_id.barcode" class="col-6 box2 text-end">
<img t-att-src="'/report/barcode/Code128/%s?width=250&height=85&quiet=0' % move.product_id.barcode" alt="Barcode"/>
</div>
</div>
<div class="frame">
<div class="description">
<span t-esc="move.product_id.name"/>
</div>
<div class="description">
<span t-esc="move.product_id.type_description"/>
</div>
</div>
<div class="row delivery">
<div class="col-6 box">
<div class="padding">
<span t-esc="move.date" t-options="{'widget': 'date'}"/>
</div>
<div class="padding">
<span t-esc="move.origin"/>
</div>
</div>
<div class="col-6 box3">
<div t-if="move.product_id.feeder_id" class="text-end">
<span t-field="move.product_id.feeder_id" t-options="{'widget': 'barcode', 'symbology': 'Code128', 'width': 250,'height': 80,'quiet': 0,'img_style': 'width:250px;height:80px;' }"/>
<br/>
</div>
<div class="text-center">
<span class="text-center" t-esc="move.product_id.feeder_id"/>
</div>
</div>
</div>
<div class="comment">
<span>Trimada AG, CH-5610 Wohlen – www.trimada.ch</span>
</div>
</div>
</div>
<p style="page-break-before:always;"/>
</t>
</t>
</t>
</t>