Sale Blanket Order
Report Blanketorder Document
Add Discount
ID: mint_system.sale_blanket_order.report_blanketorder_document.add_discount
<?xml version="1.0"?>
<data inherit_id="sale_blanket_order.report_blanketorder_document" priority="50">
<xpath expr="//th[@id='price_subtotal']" position="after">
<!-- Is there a discount on at least one line? -->
<t t-set="display_discount" t-value="any(l.discount for l in doc.line_ids)"/>
<th name="th_discount" t-if="display_discount" class="text-right" groups="product.group_discount_per_so_line">
<span>Disc.%</span>
</th>
</xpath>
<xpath expr="//td[@id='price_subtotal']" position="after">
<td t-if="display_discount" class="text-right" groups="product.group_discount_per_so_line"><span t-field="l.discount"/>%
</td>
</xpath>
</data>
Source: snippets/sale_blanket_order.report_blanketorder_document.add_discount.xml
Add Footer
ID: mint_system.sale_blanket_order.report_blanketorder_document.add_footer
<?xml version="1.0"?>
<data inherit_id="sale_blanket_order.report_blanketorder_document" priority="50">
<xpath expr="//table[@id='summary']" position="after">
<style>
table#footer {
width: 100%;
font-size: 8pt;
line-height: 1.5;
border-color: white;
}
table#footer tr, td {
vertical-align: top;
}
</style>
<table id="footer">
<tr>
<td width="40%" t-if="doc.payment_term_id">
<span>Zahlungsbedingungen </span>
<span t-field="doc.payment_term_id"/>
</td>
<td width="60%">
Delivery according to our general delivery conditions
</td>
</tr>
<tr>
<td>
<span>VAT no: </span>
<span t-field="doc.company_id.vat"/>
</td>
<td>
<table width="100%">
<tr>
<td width="35%">
Bank accounts:
</td>
<td width="65%">
UBS AG, 6301 Zug, BLZ 273, SWIFT UBSWCHZH80A
</td>
</tr>
<tr>
<td>
</td>
<td>
(CHF) IBAN CH63 0027 3273 Q978 6962 0
</td>
</tr>
<tr>
<td>
</td>
<td>
(EUR) IBAN CH59 0027 3273 HN10 3698 0
</td>
</tr>
</table>
</td>
</tr>
</table>
</xpath>
</data>
Source: snippets/sale_blanket_order.report_blanketorder_document.add_footer.xml
Add Header And Footer Note
ID: mint_system.sale_blanket_order.report_blanketorder_document.add_header_and_footer_note
<?xml version="1.0"?>
<data inherit_id="sale_blanket_order.report_blanketorder_document" priority="50">
<xpath expr="//table[@id='info']" position="after">
<t t-if="doc.note_header != '<p><br></p>'">
<span class="note" t-field="doc.note_header"/>
</t>
</xpath>
<xpath expr="//table[2]" position="after">
<t t-if="doc.note_footer != '<p><br></p>'">
<span class="note" t-field="doc.note_footer"/>
</t>
</xpath>
<!--
<xpath expr="//div[@id='informations']" position="after">
<t t-if="doc.note_header != '<p><br></p>'">
<span class="note" t-field="doc.note_header"/>
</t>
</xpath>
<xpath expr="//div[@id='summary']" position="after">
<t t-if="doc.note_footer != '<p><br></p>'">
<span class="note" t-field="doc.note_footer"/>
</t>
</xpath>
-->
</data>
Source: snippets/sale_blanket_order.report_blanketorder_document.add_header_and_footer_note.xml
Add Header Space
ID: mint_system.sale_blanket_order.report_blanketorder_document.add_header_space
<?xml version="1.0"?>
<data inherit_id="sale_blanket_order.report_blanketorder_document" priority="50">
<xpath expr="//h2" position="attributes">
<attribute name="style">padding-top: 5rem</attribute>
</xpath>
</data>
Source: snippets/sale_blanket_order.report_blanketorder_document.add_header_space.xml
Add Infotable
ID: mint_system.sale_blanket_order.report_blanketorder_document.add_infotable
<?xml version="1.0"?>
<data inherit_id="sale_blanket_order.report_blanketorder_document" priority="50">
<xpath expr="//h2" position="after">
<style>
table#info {
width: 100%;
margin-bottom: 25px;
font-size: 9pt;
font-family: arial;
}
table#info tr {
line-height: 1.2;
text-align: left;
}
.note {
font-size: 9pt;
}
</style>
<table id="info">
<tr>
<td width="17%">Date</td>
<td width="44%">
<span t-field="doc.date_confirmed" t-options="{ "widget": "date" }"/>
</td>
<td width="14%">Our Reference</td>
<td width="25%">
<span t-field="doc.user_id"/>
</td>
</tr>
<tr>
<td>Customer No.</td>
<td>
<span t-field="doc.partner_id.ref"/>
</td>
<td>Delivery Method</td>
<td>
<span t-field="doc.carrier_id"/>
</td>
</tr>
<tr>
<td>Order</td>
<td>
<span t-field="doc.client_order_ref"/>
</td>
<td>Incoterm</td>
<td>
<span t-field="doc.incoterm"/>
</td>
</tr>
<tr>
<td>Reference</td>
<td>
<span t-field="doc.comment"/>
</td>
<td>Validity Date</td>
<td>
<span t-field="doc.validity_date"/>
</td>
</tr>
</table>
</xpath>
</data>
Source: snippets/sale_blanket_order.report_blanketorder_document.add_infotable.xml
Add Product Uom
ID: mint_system.sale_blanket_order.report_blanketorder_document.add_product_uom
<?xml version="1.0"?>
<data inherit_id="sale_blanket_order.report_blanketorder_document" priority="50">
<xpath expr="//table/thead//th[3]" position="after">
<th name="th_product_uom" class="text-right">ME</th>
</xpath>
<xpath expr="//table/tbody//span[@t-field='l.original_uom_qty']/.." position="after">
<td name="td_product_uom" class="text-right">
<span t-field="l.product_uom"/>
</td>
</xpath>
</data>
Source: snippets/sale_blanket_order.report_blanketorder_document.add_product_uom.xml
Address Block
ID: mint_system.sale_blanket_order.report_blanketorder_document.address_block
<?xml version="1.0"?>
<data inherit_id="sale_blanket_order.report_blanketorder_document" priority="50">>
<xpath expr="/t/t/div/div[2]" position="replace"><t t-set="address"><t t-if="doc.partner_contact_id"><div t-esc="doc.partner_contact_id.parent_id.name"/><div t-esc="doc.partner_contact_id.parent_id.name2"/><span t-esc="doc.partner_contact_id.title.name"/><span t-esc="doc.partner_contact_id.name"/><div t-esc="doc.partner_contact_id.street"/><div t-esc="doc.partner_contact_id.street2"/><span t-esc="doc.partner_contact_id.zip"/><span t-esc="doc.partner_contact_id.city"/><t t-if="doc.partner_contact_id.country_id.code != 'CH'"><div t-esc="doc.partner_contact_id.country_id.name"/></t></t><t t-else=""><div t-field="doc.partner_id" t-options="{"widget": "contact", "fields": ["address", "name"], "no_marker": True}"/><p t-if="doc.partner_id.vat"><t t-esc="doc.company_id.country_id.vat_label or 'Tax ID'"/>
: <span t-field="doc.partner_id.vat"/>
</p></t></t><t t-if="doc.partner_shipping_id == doc.partner_invoice_id and doc.partner_invoice_id != doc.partner_id or doc.partner_shipping_id != doc.partner_invoice_id"><t t-set="information_block"><!--
<strong t-if="doc.partner_shipping_id == doc.partner_invoice_id">Invoicing and Shipping Address:</strong>
<strong t-if="doc.partner_shipping_id != doc.partner_invoice_id">Invoicing Address:</strong>
<div t-field="doc.partner_invoice_id" t-options="{"widget": "contact", "fields": ["address", "name", "phone"], "no_marker": True, "phone_icons": True}"/>
--><t t-if="doc.partner_shipping_id != doc.partner_invoice_id"><strong>Shipping Address:</strong><div t-field="doc.partner_shipping_id" t-options="{"widget": "contact", "fields": ["address", "name"], "no_marker": True, "phone_icons": True}"/></t></t></t></xpath>
</data>
Source: snippets/sale_blanket_order.report_blanketorder_document.address_block.xml
Add Vat
ID: mint_system.sale_blanket_order.report_blanketorder_document.add_vat
<?xml version="1.0"?>
<data inherit_id="sale_blanket_order.report_blanketorder_document" priority="50">
<xpath expr="//div[@name='comment']" position="before">
<p>MwSt.-Nr.:
<span t-field="o.company_id.vat"/>
</p>
</xpath>
</data>
Source: snippets/sale_blanket_order.report_blanketorder_document.add_vat.xml
Extend Title
ID: mint_system.sale_blanket_order.report_blanketorder_document.extend_title
<?xml version="1.0"?>
<data inherit_id="sale_blanket_order.report_blanketorder_document" priority="50">
<xpath expr="//h2" position="replace">
<h2>
<span t-if="doc.state not in ['draft','sent']">Blanket Order # </span>
<span t-if="doc.state in ['draft','sent']">Quotation # </span>
<span t-field="doc.name"/>
</h2>
</xpath>
</data>
Source: snippets/sale_blanket_order.report_blanketorder_document.extend_title.xml
Format Qty With Decimal
ID: mint_system.sale_blanket_order.report_blanketorder_document.format_qty_with_decimal
<?xml version="1.0"?>
<data inherit_id="sale_blanket_order.report_blanketorder_document" priority="60">
<xpath expr="//span[@id='original_uom_qty']" position="replace">
<t t-if="l.product_uom.id == 1">
<span id="original_uom_qty" t-field="l.original_uom_qty" t-options="{'widget': 'integer'}"/>
</t>
<t t-else="">
<span id="original_uom_qty" t-field="l.original_uom_qty"/>
</t>
</xpath>
</data>
Source: snippets/sale_blanket_order.report_blanketorder_document.format_qty_with_decimal.xml
Format Qty
ID: mint_system.sale_blanket_order.report_blanketorder_document.format_qty
<?xml version="1.0"?>
<data inherit_id="sale_blanket_order.report_blanketorder_document" priority="60">
<span id="qty" position="attributes">
<attribute name="t-options-widget">"integer"</attribute>
</span>
</data>
Source: snippets/sale_blanket_order.report_blanketorder_document.format_qty.xml
Get Position
ID: mint_system.sale_blanket_order.report_blanketorder_document.get_position
<?xml version="1.0"?>
<data inherit_id="sale_blanket_order.report_blanketorder_document" priority="50">
<xpath expr="//table/thead/tr/th[1]" position="before">
<th id="position">
<span>Pos</span>
</th>
</xpath>
<xpath expr="//table/tbody//tr/td[1]" position="before">
<td id="position">
<span>0</span>
</td>
</xpath>
</data>
Source: snippets/sale_blanket_order.report_blanketorder_document.get_position.xml
Hide Date Schedule
ID: mint_system.sale_blanket_order.report_blanketorder_document.hide_date_schedule
<?xml version="1.0"?>
<data inherit_id="sale_blanket_order.report_blanketorder_document" priority="50">
<xpath expr="//th[@id='date_schedule']" position="replace"/>
<xpath expr="//td[@id='date_schedule']" position="replace"/>
</data>
Source: snippets/sale_blanket_order.report_blanketorder_document.hide_date_schedule.xml
Modify Information Block
ID: mint_system.sale_blanket_order.report_blanketorder_document.modify_information_block
<?xml version="1.0"?>
<data inherit_id="sale_blanket_order.report_blanketorder_document" priority="50">
<xpath expr="//table[2]/thead//th[3]" position="replace">
</xpath>
<xpath expr="//table[2]/thead//th[4]" position="after">
<th class="text-center">Unit Price</th>
</xpath>
<xpath expr="//table[2]/tbody//td[3]" position="replace">
</xpath>
<xpath expr="//table[2]/tbody//td[4]" position="after">
<td class="text-right">
<span t-field="l.price_unit"/>
</td>
</xpath>
</data>
Source: snippets/sale_blanket_order.report_blanketorder_document.modify_information_block.xml
Relocate Price Unit
ID: mint_system.sale_blanket_order.report_blanketorder_document.relocate_price_unit
<?xml version="1.0"?>
<data inherit_id="sale_blanket_order.report_blanketorder_document" priority="50">
<xpath expr="//table[2]/thead//th[3]" position="replace">
</xpath>
<xpath expr="//table[2]/thead//th[4]" position="after">
<th class="text-center">Unit Price</th>
</xpath>
<xpath expr="//table[2]/tbody//td[3]" position="replace">
</xpath>
<xpath expr="//table[2]/tbody//td[4]" position="after">
<td class="text-right">
<span t-field="l.price_unit"/>
</td>
</xpath>
</data>
Source: snippets/sale_blanket_order.report_blanketorder_document.relocate_price_unit.xml
Remove Date Schedule
ID: mint_system.sale_blanket_order.report_blanketorder_document.remove_date_schedule
<?xml version="1.0"?>
<data inherit_id="sale_blanket_order.report_blanketorder_document" priority="50">
<xpath expr="//table/thead/tr/th[3]" position="replace"/>
<xpath expr="//span[@t-field='l.date_schedule']/.." position="replace"/>
</data>
Source: snippets/sale_blanket_order.report_blanketorder_document.remove_date_schedule.xml
Remove Informations
ID: mint_system.sale_blanket_order.report_blanketorder_document.remove_informations
<?xml version="1.0"?>
<data inherit_id="sale_blanket_order.report_blanketorder_document" priority="50">
<xpath expr="//div[@id='informations']" position="replace">
</xpath>
</data>
Source: snippets/sale_blanket_order.report_blanketorder_document.remove_informations.xml
Remove Vat
ID: mint_system.sale_blanket_order.report_blanketorder_document.remove_vat
<?xml version="1.0"?>
<data inherit_id="sale_blanket_order.report_blanketorder_document" priority="50">
<xpath expr="//p[@t-if='doc.partner_id.vat']" position="replace"/>
</data>
Source: snippets/sale_blanket_order.report_blanketorder_document.remove_vat.xml
Replace Address Block
ID: mint_system.sale_blanket_order.report_blanketorder_document.replace_address_block
<?xml version="1.0"?>
<data inherit_id="sale_blanket_order.report_blanketorder_document" priority="50">>
<xpath expr="//div[@t-field='doc.partner_id']/../.." position="replace"><div class="row"><div class="col-7"/><div class="col-5"><div t-field="doc.partner_id" t-options="{"widget": "contact", "fields": ["address", "name", "fax"], "no_marker": True, "phone_icons": True}"/></div></div></xpath>
</data>
Source: snippets/sale_blanket_order.report_blanketorder_document.replace_address_block.xml
Replace Infoblock
ID: mint_system.sale_blanket_order.report_blanketorder_document.replace_infoblock
<?xml version="1.0"?>
<data inherit_id="sale_blanket_order.report_blanketorder_document" priority="50">
<xpath expr="//div[@id='informations']" position="replace">
<div class="row" id="informations">
<div class="col-auto col-3 mw-100 mb-2" t-if="doc.client_order_ref">
<strong>Your Reference</strong>
<p t-field="doc.client_order_ref"/>
</div>
<div class="col-auto col-3 mw-100 mb-2" t-if="doc.partner_contact_id.name and doc.partner_contact_id.parent_id">
<strong>Contact</strong>
<p t-field="doc.partner_contact_id.name"/>
</div>
<div class="col-auto col-3 mw-100 mb-2">
<strong>Order Date</strong>
<p t-field="doc.create_date" t-options="{"widget": "date"}"/>
</div>
<div class="col-auto col-3 mw-100 mb-2">
<strong>Validity Date</strong>
<p t-field="doc.validity_date"/>
</div>
<div class="col-auto col-3 mw-100 mb-2" t-if="doc.incoterm">
<strong>Incoterm</strong>
<p t-field="doc.incoterm"/>
</div>
<div class="col-auto col-3 mw-100 mb-2" t-if="doc.user_id.name">
<strong>Salesperson</strong>
<p t-field="doc.user_id"/>
</div>
</div>
</xpath>
</data>
Source: snippets/sale_blanket_order.report_blanketorder_document.replace_infoblock.xml
Replace Partner Id
ID: mint_system.sale_blanket_order.report_blanketorder_document.replace_partner_id
<?xml version="1.0"?>
<data inherit_id="sale_blanket_order.report_blanketorder_document" priority="50">>
<xpath expr="//div[@t-field='doc.partner_id']" position="replace"><t t-if="doc.partner_contact_id"><div t-field="doc.partner_contact_id" t-options="{"widget": "contact", "fields": ["address", "name"], "no_marker": True, "phone_icons": False}"/></t><t t-if="not doc.partner_contact_id"><div t-field="doc.partner_id" t-options="{"widget": "contact", "fields": ["address", "name"], "no_marker": True, "phone_icons": False}"/></t></xpath>
</data>
Source: snippets/sale_blanket_order.report_blanketorder_document.replace_partner_id.xml
Replace Product Description
ID: mint_system.sale_blanket_order.report_blanketorder_document.replace_product_description
<?xml version="1.0"?>
<data inherit_id="sale_blanket_order.report_blanketorder_document" priority="50">>
<xpath expr="//span[@t-field='l.product_id']" position="replace"><t t-if="l.product_id.type_description"><span style="font-weight: bold" t-field="l.product_id.type_description"/></t><t t-if="not l.product_id.type_description"><span t-field="l.name"/></t></xpath>
</data>
Source: snippets/sale_blanket_order.report_blanketorder_document.replace_product_description.xml
Replace Product Id
ID: mint_system.sale_blanket_order.report_blanketorder_document.replace_product_id
<?xml version="1.0"?>
<data inherit_id="sale_blanket_order.report_blanketorder_document" priority="50">>
<xpath expr="//span[@t-field='l.product_id']" position="replace"><span t-field="l.name"/></xpath>
</data>
Source: snippets/sale_blanket_order.report_blanketorder_document.replace_product_id.xml
Replace Summary
ID: mint_system.sale_blanket_order.report_blanketorder_document.replace_summary
<?xml version="1.0"?>
<data inherit_id="sale_blanket_order.report_blanketorder_document" priority="50">
<xpath expr="//span[@t-field='doc.amount_untaxed']/../../../../.." position="replace">
<table id="summary" class="table table-condensed trimada table-borderless" style="margin-top:20px; width:100%; color:black; font-family: arial; font-size:9pt; border-top-style:solid; border-bottom-style:solid; border-width:1px; border-color:black">
<tr>
<td style="width:15.5%; text-align:left">
<strong>Subtotal</strong>
</td>
<td style="width:23%; text-align:left">
<span t-field="doc.amount_untaxed" t-options="{"widget": "monetary", "display_currency": doc.currency_id}"/>
</td>
<td style="width:12%; text-align:left">
<span>VAT</span>
</td>
<td style="width:17%; text-align:left">
<span t-field="doc.amount_tax" t-options="{"widget": "monetary", "display_currency": doc.currency_id}"/>
</td>
<td style="width:14%; text-align:right">
<strong>Total</strong>
</td>
<td style="width:18%; text-align:right">
<span t-field="doc.amount_total" t-options="{"widget": "monetary", "display_currency": doc.currency_id}"/>
</td>
</tr>
</table>
</xpath>
</data>
Source: snippets/sale_blanket_order.report_blanketorder_document.replace_summary.xml
Round Price
ID: mint_system.sale_blanket_order.report_blanketorder_document.round_price
<?xml version="1.0"?>
<data inherit_id="sale_blanket_order.report_blanketorder_document" priority="50">
<xpath expr="//span[@t-field='l.price_unit']" position="replace">
<span t-esc="'%g' % l.price_unit if str(l.price_unit)[::-1].find('.') >= 3 else '%.2f' % l.price_unit"/>
</xpath>
</data>
Source: snippets/sale_blanket_order.report_blanketorder_document.round_price.xml
Round Total Price
ID: mint_system.sale_blanket_order.report_blanketorder_document.round_total_price
<?xml version="1.0"?>
<data inherit_id="sale_blanket_order.report_blanketorder_document" priority="50">
<xpath expr="//span[@t-field='l.price_subtotal']" position="replace">
<span t-esc="'{0:,.2f}'.format(float(l.price_subtotal)).replace(',','\'')"/>
</xpath>
</data>
Source: snippets/sale_blanket_order.report_blanketorder_document.round_total_price.xml
Second Row
ID: mint_system.sale_blanket_order.report_blanketorder_document.second_row
<?xml version="1.0"?>
<data inherit_id="sale_blanket_order.report_blanketorder_document" priority="50">
<xpath expr="//tbody[hasclass('sale_tbody')]/t/tr[1]" position="attributes">
<attribute name="t-att-class">"first"</attribute>
</xpath>
<xpath expr="//tbody[hasclass('sale_tbody')]/t/tr[1]" position="after">
<t t-if="l.product_id.type_description">
<tr class="second">
<td/>
<td colspan="6">
<span t-field="l.name"/>
<br/>
<t t-if="l.product_id.country_of_origin_id.code">
Ursprungsland:
<span t-field="l.product_id.country_of_origin_id.code"/>
</t>
<t t-if="l.product_id.hs_code">
/ Zollposition:
<span t-field="l.product_id.hs_code"/>
</t>
</td>
</tr>
</t>
<t t-if="not l.product_id.type_description">
<tr class="second">
<td/>
<td colspan="6">
<t t-if="l.product_id.country_of_origin_id.code">
Ursprungsland:
<span t-field="l.product_id.country_of_origin_id.code"/>
</t>
<t t-if="l.product_id.hs_code">
/ Zollposition:
<span t-field="l.product_id.hs_code"/>
</t>
</td>
</tr>
</t>
</xpath>
</data>
Source: snippets/sale_blanket_order.report_blanketorder_document.second_row.xml
Set Ids Tissa
ID: mint_system.sale_blanket_order.report_blanketorder_document.set_ids_tissa
<?xml version="1.0"?>
<data inherit_id="sale_blanket_order.report_blanketorder_document" priority="50">
<xpath expr="//div[@class='page']/div[2]" position="attributes">
<attribute name="id">address</attribute>
<attribute name="class" separator=" " add="trimada"/>
</xpath>
<xpath expr="//span[@t-field='doc.amount_untaxed']/../../../../.." position="attributes">
<attribute name="id">summary</attribute>
</xpath>
</data>
Source: snippets/sale_blanket_order.report_blanketorder_document.set_ids_tissa.xml
Set Ids
ID: mint_system.sale_blanket_order.report_blanketorder_document.set_ids
<?xml version="1.0"?>
<data inherit_id="sale_blanket_order.report_blanketorder_document" priority="50">
<xpath expr="//table//th[4]" position="attributes">
<attribute name="id">original_uom_qty</attribute>
</xpath>
<xpath expr="//span[@t-field='l.original_uom_qty']" position="attributes">
<attribute name="id">original_uom_qty</attribute>
</xpath>
<!--
<xpath expr="//table[2]//th[1]" position="attributes">
<attribute name="id">default_code</attribute>
</xpath>
<xpath expr="//table[2]//th[2]" position="attributes">
<attribute name="id">description</attribute>
</xpath>
<xpath expr="//table[2]//th[3]" position="attributes">
<attribute name="id">date_schedule</attribute>
</xpath>
<xpath expr="//table[2]//td[3]" position="attributes">
<attribute name="id">date_schedule</attribute>
</xpath>
<xpath expr="//table//th[3]" position="attributes">
<attribute name="id">date_schedule</attribute>
</xpath>
<xpath expr="//table//td[3]" position="attributes">
<attribute name="id">date_schedule</attribute>
</xpath>
<xpath expr="//table[2]//th[4]" position="attributes">
<attribute name="id">original_uom_qty</attribute>
</xpath>
<xpath expr="//table[2]//td[4]/span" position="attributes">
<attribute name="id">qty</attribute>
</xpath>
<xpath expr="//table[2]//th[5]" position="attributes">
<attribute name="id">price_subtotal</attribute>
</xpath>
xpath expr="//table[2]//td[5]" position="attributes">
<attribute name="id">price_subtotal</attribute>
</xpath>
<xpath expr="//table[2]//th[6]" position="attributes">
<attribute name="id">price_total</attribute>
</xpath>
-->
</data>
Source: snippets/sale_blanket_order.report_blanketorder_document.set_ids.xml
Show Default Code
ID: mint_system.sale_blanket_order.report_blanketorder_document.show_default_code
<?xml version="1.0"?>
<data inherit_id="sale_blanket_order.report_blanketorder_document" priority="50">
<xpath expr="//table[2]/thead/tr/th[1]" position="before">
<th id="default_code">
<strong>Part No.</strong>
</th>
</xpath>
<xpath expr="//table[2]/tbody/t/tr/td[1]" position="before">
<td id="default_code">
<span t-field="l.product_id.default_code"/>
</td>
</xpath>
</data>
Source: snippets/sale_blanket_order.report_blanketorder_document.show_default_code.xml
Show Description
ID: mint_system.sale_blanket_order.report_blanketorder_document.show_description
<?xml version="1.0"?>
<data inherit_id="sale_blanket_order.report_blanketorder_document" priority="50">
<xpath expr="//table/thead/tr/th[1]" position="after">
<th id="name">
<span>Description</span>
</th>
</xpath>
<xpath expr="//table/tbody//tr/td[1]" position="after">
<td>
<span t-field="l.name"/>
</td>
</xpath>
</data>
Source: snippets/sale_blanket_order.report_blanketorder_document.show_description.xml
Style Gelso
ID: mint_system.sale_blanket_order.report_blanketorder_document.style_gelso
<?xml version="1.0"?>
<data inherit_id="sale_blanket_order.report_blanketorder_document" priority="60">
<xpath expr="//div[hasclass('page')]" position="before">
<style>
div#informations {
font-size: 16px;
margin-bottom: 0rem;
}
</style>
</xpath>
</data>
Source: snippets/sale_blanket_order.report_blanketorder_document.style_gelso.xml
Style Tissa
ID: mint_system.sale_blanket_order.report_blanketorder_document.style_tissa
<data inherit_id="sale_blanket_order.report_blanketorder_document" priority="60">
<xpath expr="//div[hasclass('page')]" position="before">
<style>
table#info {
font-size: 9pt;
}
h2 {
font-size: 1.2rem;
font-weight: bold;
margin: 50px 0 30px 0
}
body {
font-size: 11pt;
}
.table th {
border-top: 1px solid #dee2e6 !important;
padding: 0.3rem !important;
padding-left: 0.5rem;
}
.table td {
border-top: 1px solid #dee2e6 !important;
}
.note p {
margin-bottom: 0px;
}
.note p:last-child {
margin-bottom: 30px;
}
</style>
</xpath>
<xpath expr="//table/thead//th[1]" position="attributes">
<attribute name="style">text-align: left</attribute>
</xpath>
<xpath expr="//div[@id='summary']/div" position="attributes">
<attribute name="t-attf-class">#{'col-4 offset-8' if report_type != 'html' else 'col-sm-7 col-md-5'} ml-auto</attribute>
</xpath>
</data>
Source: snippets/sale_blanket_order.report_blanketorder_document.style_tissa.xml
Style Trimada
ID: mint_system.sale_blanket_order.report_blanketorder_document.style_trimada
<?xml version="1.0"?>
<data inherit_id="sale_blanket_order.report_blanketorder_document" priority="60">
<xpath expr="//div[hasclass('page')]" position="before">
<style>
.o_company_1_layout {
font-family: Arial;
font-size: 9pt;
}
.table th {
padding: 0.3rem;
}
.table td {
padding: 0.3rem;
}
h2 {
font-size: 13pt;
font-weight: bold;
}
table.trimada thead tr {
border-top:solid 1px;
border-bottom: solid 1px;
color: black;
}
table.trimada thead th#description {
width: 70mm;
}
table.trimada tr.first td {
padding-bottom: 0;
}
table.trimada tr.second td {
padding-top: 0;
}
table.trimada tr.second {
border-bottom: 1px solid rgb(220,220,220);
}
table.trimada thead th#default_code {
width: 27mm;
text-align: left;
}
table.trimada thead th#date_schedule {
text-align: right !important;
}
table.trimada tbody td#date_schedule {
text-align: right !important;
}
table.trimada thead th#price_subtotal {
text-align: right !important;
}
table.trimada tbody td span#qty {
font-weight: bold;
}
</style>
</xpath>
<xpath expr="//table[2]" position="attributes">
<attribute name="class" separator=" " add="trimada table-borderless"/>
</xpath>
</data>
Source: snippets/sale_blanket_order.report_blanketorder_document.style_trimada.xml
Title Margin
ID: mint_system.sale_blanket_order.report_blanketorder_document.title_margin
<?xml version="1.0"?>
<data inherit_id="sale_blanket_order.report_blanketorder_document" priority="50">>
<xpath expr="//h2" position="attributes"><attribute name="style" separator=";" add="margin-top:10mm; margin-bottom:3mm;"/></xpath>
</data>
Source: snippets/sale_blanket_order.report_blanketorder_document.title_margin.xml
View Blanket Order Form
Fiscal Position Id
ID: mint_system.sale_blanket_order.view_blanket_order_form.fiscal_position_id
<?xml version="1.0"?>
<data inherit_id="sale_blanket_order.view_blanket_order_form" priority="50">
<xpath expr="//field[@name='payment_term_id']" position="after">
<field name="fiscal_position_id" invisible="1"/>
</xpath>
</data>
Source: snippets/sale_blanket_order.view_blanket_order_form.fiscal_position_id.xml
Modify Attributes Date Confirmed
ID: mint_system.sale_blanket_order.view_blanket_order_form.modify_attributes_date_confirmed
<?xml version="1.0"?>
<data inherit_id="sale_blanket_order.view_blanket_order_form" priority="50">
<xpath expr="//field[@name='date_confirmed']" position="attributes">
<attribute name="attrs">{"invisible": [["state","in",["cancel"]]], "readonly": [["state","in",["cancel"]]], "required": [["state","in",["sent", "open","done", "expired"]]]}</attribute>
</xpath>
</data>
Source: snippets/sale_blanket_order.view_blanket_order_form.modify_attributes_date_confirmed.xml
Move Client Order Ref
ID: mint_system.sale_blanket_order.view_blanket_order_form.move_client_order_ref
<?xml version="1.0"?>
<data inherit_id="sale_blanket_order.view_blanket_order_form" priority="50">
<xpath expr="//field[@name='validity_date']" position="after">
<xpath expr="//field[@name='client_order_ref']" position="move"/>
</xpath>
</data>
Source: snippets/sale_blanket_order.view_blanket_order_form.move_client_order_ref.xml
X Product Uom Category Id
ID: mint_system.sale_blanket_order.view_blanket_order_form.x_product_uom_category_id
<?xml version="1.0"?>
<data inherit_id="sale_blanket_order.view_blanket_order_form" priority="50">
<xpath expr="//page[@name='order_lines']//field[@name='product_uom']" position="before">
<field name="x_product_uom_category_id" invisible="1"/>
</xpath>
<xpath expr="//page[@name='order_lines']//field[@name='product_uom']" position="attributes">
<attribute name="domain">[["category_id","=",x_product_uom_category_id]]</attribute>
</xpath>
</data>
Source: snippets/sale_blanket_order.view_blanket_order_form.x_product_uom_category_id.xml
X State
ID: mint_system.sale_blanket_order.view_blanket_order_form.x_state
<?xml version="1.0"?>
<data inherit_id="sale_blanket_order.view_blanket_order_form" priority="50">
<xpath expr="//field[@name='user_id']" position="after">
<field name="state" readonly="0"/>
</xpath>
</data>
Source: snippets/sale_blanket_order.view_blanket_order_form.x_state.xml
View Blanket Order Search
Replace Filter
ID: mint_system.sale_blanket_order.view_blanket_order_search.replace_filter
<?xml version="1.0"?>
<data inherit_id="sale_blanket_order.view_blanket_order_search" priority="50">
<xpath expr="/search" position="replace">
<search>
<!-- Filter -->
<filter name="my_orders" string="Meine Aufträge" domain="[('user_id', '=', uid)]"/>
<filter string="Meine Aufträge in Arbeit" name="in_progress" domain="['&',('user_id', '=', uid),('state', 'in', ('draft','sent', 'open', 'expired'))]"/>
<separator/>
<filter string="Entwurf" name="filter_state_draft" domain="[('state', '=', 'draft')]"/>
<filter string="Gesendet" name="filter_state_sent" domain="[('state', '=', 'sent')]"/>
<filter string="Offen" name="filter_state_open" domain="[('state', '=', 'open')]"/>
<filter string="Erledigt" name="filter_state_erledigt" domain="[('state', '=', 'done')]"/>
<filter string="Abgelaufen" name="filter_state_expired" domain="[('state', '=', 'expired')]"/>
<filter string="Abgebrochen" name="filter_state_cancel" domain="[('state', '=', 'cancel')]"/>
<separator/>
<filter string="Auftragsdatum" name="filter_date_confirmed" date="date_confirmed"/>
<!-- Gruppierung -->
<filter string="Verkäufer" name="user_id" domain="[]" context="{'group_by': 'user_id'}"/>
<filter string="Kunde" name="partner_id" domain="[]" context="{'group_by': 'partner_id'}"/>
<filter string="Auftragsdatum" name="date_confirmed" domain="[]" context="{'group_by': 'date_confirmed'}"/>
<filter string="Status" name="state" domain="[]" context="{'group_by': 'state'}"/>
<!-- Suche -->
<group>
<field name="name" string="Order" filter_domain="['|', '|', ('name', 'ilike', self), ('client_order_ref', 'ilike', self), ('partner_id', 'child_of', self)]"/>
<field name="partner_id"/>
<field name="user_id"/>
<field name="team_id"/>
<field name="product_id" filter_domain="['|','|',('line_ids.product_id', 'ilike', self),('line_ids.product_id.type_description', 'ilike', self),('line_ids.product_id.type_description2', 'ilike', self)]"/>
<field name="analytic_account_id" string="Kostenstelle"/>
</group>
</search>
</xpath>
</data>
Source: snippets/sale_blanket_order.view_blanket_order_search.replace_filter.xml
View Blanket Order Tree
Activities
ID: mint_system.sale_blanket_order.view_blanket_order_tree.activities
<?xml version="1.0"?>
<data inherit_id="sale_blanket_order.view_blanket_order_tree" priority="50">
<field name="state" position="after">
<field name="activity_date_deadline"/>
<field name="activity_ids"/>
<field name="activity_state"/>
<field name="my_activity_date_deadline"/>
</field>
</data>
Source: snippets/sale_blanket_order.view_blanket_order_tree.activities.xml
Reset View
ID: mint_system.sale_blanket_order.view_blanket_order_tree.reset_view
<?xml version="1.0"?>
<data inherit_id="sale_blanket_order.view_blanket_order_tree" priority="50">
<xpath expr="//tree" position="attributes">
<attribute name="default_order">id desc</attribute>
</xpath>
<xpath expr="//field[@name='partner_id']" position="replace">
</xpath>
<xpath expr="//field[@name='validity_date']" position="replace">
</xpath>
<xpath expr="//field[@name='user_id']" position="replace">
</xpath>
<field name="name" position="after">
<field name="date_confirmed"/>
<field name="partner_id"/>
<field name="client_order_ref"/>
<field name="comment"/>
<field name="user_id" widget="many2one_avatar_user"/>
<field name="validity_date"/>
<field name="amount_total" widget="monetary" decoration-bf="1"/>
</field>
</data>
Source: snippets/sale_blanket_order.view_blanket_order_tree.reset_view.xml
View Order Form
Modify Attributes Blanket Order Line
ID: mint_system.sale_blanket_order.view_order_form.modify_attributes_blanket_order_line
<?xml version="1.0"?>
<data inherit_id="sale_blanket_order.view_order_form" priority="50">
<xpath expr="//field[@name='blanket_order_line']" position="before">
<field name="order_partner_id" invisible="1"/>
</xpath>
<xpath expr="//field[@name='blanket_order_line']" position="attributes">
<attribute name="domain">[["partner_id","=",order_partner_id]]</attribute>
</xpath>
</data>
Source: snippets/sale_blanket_order.view_order_form.modify_attributes_blanket_order_line.xml