5592 lines
217 KiB
Markdown
5592 lines
217 KiB
Markdown
# Account
|
|
|
|
## Document Tax Totals
|
|
|
|
### Replace Summary
|
|
|
|
ID: `mint_system.account.document_tax_totals.replace_summary`
|
|
|
|
```xml
|
|
<data inherit_id="account.document_tax_totals" priority="50">
|
|
<xpath expr="//t/t[1]" position="replace">
|
|
<style>
|
|
table.trimada_summary tr {
|
|
border-top: solid 1px !important;
|
|
border-bottom: solid 1px;
|
|
}
|
|
table.trimada_summary td {
|
|
padding-top: 8px;
|
|
}
|
|
table.trimada_details tr {
|
|
border-top: 0px !important;
|
|
border-bottom: 0px;
|
|
line-height: 0.7;
|
|
}
|
|
table.trimada_summary #amount_untaxed_label {
|
|
width: 15.5%;
|
|
text-align: left;
|
|
}
|
|
table.trimada_summary #amount_untaxed {
|
|
width: 23%;
|
|
text-align: left;
|
|
}
|
|
table.trimada_summary #amount_by_group_label {
|
|
width: 12%;
|
|
text-align: left;
|
|
}
|
|
table.trimada_summary #amount_by_group {
|
|
width: 17%;
|
|
text-align: left;
|
|
}
|
|
table.trimada_summary #current_subtotal_label {
|
|
width: 14%;
|
|
text-align: right;
|
|
}
|
|
table.trimada_summary #current_subtotal {
|
|
width: 18%;
|
|
text-align: right;
|
|
}
|
|
</style>
|
|
<table class="table table-borderless table-sm trimada trimada_summary o_main_table">
|
|
<tr>
|
|
<t t-foreach="tax_totals['subtotals']" t-as="subtotal">
|
|
<td id="amount_untaxed_label">
|
|
<strong>Warenwert</strong>
|
|
</td>
|
|
<td>
|
|
<span t-att-class="oe_subtotal_footer_separator" t-esc="subtotal['formatted_amount']"/>
|
|
</td>
|
|
<t t-set="subtotal_to_show" t-value="subtotal['name']"/>
|
|
<t t-foreach="tax_totals['groups_by_subtotal'][subtotal_to_show]" t-as="amount_by_group">
|
|
<t t-if="tax_totals['display_tax_base']">
|
|
<td>
|
|
<span t-esc="amount_by_group['tax_group_name']"/>
|
|
</td>
|
|
<td>
|
|
<span t-if="not amount_by_group['hide_base_amount']" class="text-nowrap"> on
|
|
<t t-esc="amount_by_group['formatted_tax_group_base_amount']"/>
|
|
</span>
|
|
</td>
|
|
<td class="text-end o_price_total">
|
|
<span class="text-nowrap" t-esc="amount_by_group['formatted_tax_group_amount']"/>
|
|
</td>
|
|
</t>
|
|
<t t-else="">
|
|
<td>
|
|
<span style="padding-right: 10px" class="text-nowrap" t-esc="amount_by_group['tax_group_name']"/>
|
|
<span class="text-nowrap" t-esc="amount_by_group['formatted_tax_group_amount']"/>
|
|
</td>
|
|
</t>
|
|
</t>
|
|
<t t-if="'formatted_rounding_amount' in tax_totals and tax_totals['rounding_amount'] != 0">
|
|
<td>Rounding</td>
|
|
<td class="text-end">
|
|
<span t-esc="tax_totals['formatted_rounding_amount']"/>
|
|
</td>
|
|
</t>
|
|
<td>
|
|
<strong>Total</strong>
|
|
</td>
|
|
<td class="text-end">
|
|
<span t-esc="tax_totals['formatted_amount_total_rounded']" t-if="'formatted_amount_total_rounded' in tax_totals"/>
|
|
<span t-esc="tax_totals['formatted_amount_total']" t-else=""/>
|
|
</td>
|
|
</t>
|
|
</tr>
|
|
</table>
|
|
</xpath>
|
|
<xpath expr="//tr[@class='border-black o_total']" position="replace">
|
|
</xpath>
|
|
</data>
|
|
|
|
```
|
|
Source: [snippets/account.document_tax_totals.replace_summary.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/account.document_tax_totals.replace_summary.xml)
|
|
|
|
## Portal Invoice Page
|
|
|
|
### Convert Html Note
|
|
|
|
ID: `mint_system.account.portal_invoice_page.convert_html_note`
|
|
|
|
```xml
|
|
<data inherit_id="account.portal_invoice_page" priority="50">
|
|
<t t-if="line.display_type == 'line_note'" position="replace">
|
|
<t t-if="line.display_type == 'line_note' and '<!DOCTYPE html>' in line.name">
|
|
<td colspan="99">
|
|
<t t-raw="line.name.replace('<!DOCTYPE html>', '')"/>
|
|
</td>
|
|
</t>
|
|
<t t-elif="line.display_type == 'line_note' and '<!DOCTYPE html>' not in line.name">
|
|
<td colspan="99">
|
|
<span t-field="line.name"/>
|
|
</td>
|
|
</t>
|
|
</t>
|
|
</data>
|
|
|
|
```
|
|
Source: [snippets/account.portal_invoice_page.convert_html_note.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/account.portal_invoice_page.convert_html_note.xml)
|
|
|
|
## Report Invoice
|
|
|
|
### Print With Payments
|
|
|
|
ID: `mint_system.account.report_invoice.print_with_payments`
|
|
|
|
```xml
|
|
<data inherit_id="account.report_invoice" priority="50">
|
|
<xpath expr="/t[1]/t[1]/t[1]/t[1]" position="after">
|
|
<t t-set="print_with_payments" t-value="True"/>
|
|
</xpath>
|
|
</data>
|
|
|
|
```
|
|
Source: [snippets/account.report_invoice.print_with_payments.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/account.report_invoice.print_with_payments.xml)
|
|
|
|
## Report Invoice Document
|
|
|
|
### Add Address
|
|
|
|
ID: `mint_system.account.report_invoice_document.add_address`
|
|
|
|
```xml
|
|
<data inherit_id="account.report_invoice_document" priority="50">
|
|
|
|
<xpath expr="//div[@class='row']" position="after">
|
|
|
|
<table style="margin-left: 0px; margin-top: 30px; border: transparent">
|
|
|
|
<style>
|
|
.company_invoice_line {
|
|
margin-top: 1mm;
|
|
margin-bottom: 2mm;
|
|
}
|
|
span {
|
|
line-height: 1.3;
|
|
}
|
|
</style>
|
|
|
|
<tr style="height: 80px;">
|
|
<td style="width: 290px; vertical-align: top; padding-left: 5mm; ">
|
|
<span style="font-size: 7pt">Recipient of goods</span>
|
|
<hr class="company_invoice_line"/>
|
|
<div>
|
|
<t>
|
|
<span t-field="o.partner_shipping_id.parent_id"/>
|
|
<t t-if="not o.partner_shipping_id.parent_id">
|
|
<span t-field="o.partner_shipping_id.name"/><br/>
|
|
</t>
|
|
<span t-field="o.partner_shipping_id.street"/><br/>
|
|
<span t-field="o.partner_shipping_id.street2"/>
|
|
<div>
|
|
<span t-field="o.partner_shipping_id.zip"/>
|
|
<span t-field="o.partner_shipping_id.city"/>
|
|
</div>
|
|
<span t-field="o.partner_shipping_id.country_id"/>
|
|
</t>
|
|
</div>
|
|
</td>
|
|
<td style="width: 70px"/>
|
|
<td style="width: 260px; vertical-align: top;">
|
|
<span style="font-size: 7pt">Shipper of goods</span>
|
|
<hr class="company_invoice_line"/>
|
|
<t t-if="o.x_sale_order_id">
|
|
<span t-field="o.x_sale_order_id and o.env['sale.order'].browse(o.x_sale_order_id).warehouse_id.partner_id.name"/><br/>
|
|
<span t-field="o.x_sale_order_id and o.env['sale.order'].browse(o.x_sale_order_id).warehouse_id.partner_id.street"/><br/>
|
|
<span t-field="o.x_sale_order_id and o.env['sale.order'].browse(o.x_sale_order_id).warehouse_id.partner_id.street2"/>
|
|
<div>
|
|
<span t-field="o.x_sale_order_id and o.env['sale.order'].browse(o.x_sale_order_id).warehouse_id.partner_id.zip"/>
|
|
<span t-field="o.x_sale_order_id and o.env['sale.order'].browse(o.x_sale_order_id).warehouse_id.partner_id.city"/>
|
|
</div>
|
|
<span t-field="o.x_sale_order_id and o.env['sale.order'].browse(o.x_sale_order_id).warehouse_id.partner_id.country_id"/>
|
|
</t>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
|
|
<table name="detailed_information" style="margin-left: 0px; margin-top: 20px; margin-bottom: 50px; border: transparent; line-height: 1.3;">
|
|
|
|
<tr>
|
|
<td style="width: 120px; vertical-align: top; padding-left: 5mm;">
|
|
<t t-if="o.partner_shipping_id.vat">
|
|
<div>USt-IdNr.</div>
|
|
</t>
|
|
<t t-if="o.partner_shipping_id.x_vat">
|
|
<div>MWST Nr.</div>
|
|
</t>
|
|
<t t-if="o.partner_shipping_id.x_eori">
|
|
<div>EORI Nr.</div>
|
|
</t>
|
|
<t t-if="o.partner_shipping_id.x_zaz">
|
|
<div>ZAZ Konto Nr.</div>
|
|
</t>
|
|
</td>
|
|
<td style="width: 180px; vertical-align: top">
|
|
<t t-if="o.partner_shipping_id.vat">
|
|
<div t-field="o.partner_shipping_id.vat"/>
|
|
</t>
|
|
<t t-if="o.partner_shipping_id.x_vat">
|
|
<div t-field="o.partner_shipping_id.x_vat"/>
|
|
</t>
|
|
<t t-if="o.partner_shipping_id.x_eori">
|
|
<div t-field="o.partner_shipping_id.x_eori"/>
|
|
</t>
|
|
<t t-if="o.partner_shipping_id.x_zaz">
|
|
<div t-field="o.partner_shipping_id.x_zaz"/>
|
|
</t>
|
|
</td>
|
|
<td style="width: 60px"/>
|
|
<td style="width: 100px; vertical-align: top">
|
|
<t t-if="o.x_sale_order_id and o.env['sale.order'].browse(o.x_sale_order_id).warehouse_id.partner_id.vat">
|
|
<div>USt-IdNr.</div>
|
|
</t>
|
|
<t t-if="o.x_sale_order_id and o.env['sale.order'].browse(o.x_sale_order_id).warehouse_id.partner_id.x_vat">
|
|
<div>MWST Nr.</div>
|
|
</t>
|
|
<t t-if="o.x_sale_order_id and o.env['sale.order'].browse(o.x_sale_order_id).warehouse_id.partner_id.x_eori">
|
|
<div>EORI Nr.</div>
|
|
</t>
|
|
<t t-if="o.x_sale_order_id and o.env['sale.order'].browse(o.x_sale_order_id).warehouse_id.partner_id.x_zaz">
|
|
<div>ZAZ Konto Nr.</div>
|
|
</t>
|
|
</td>
|
|
<td style="width: 180px; vertical-align: top">
|
|
<t t-if="o.x_sale_order_id and o.env['sale.order'].browse(o.x_sale_order_id).warehouse_id.partner_id.vat">
|
|
<div t-field="o.x_sale_order_id and o.env['sale.order'].browse(o.x_sale_order_id).warehouse_id.partner_id.vat"/>
|
|
</t>
|
|
<t t-if="o.x_sale_order_id and o.env['sale.order'].browse(o.x_sale_order_id).warehouse_id.partner_id.x_vat">
|
|
<div t-field="o.x_sale_order_id and o.env['sale.order'].browse(o.x_sale_order_id).warehouse_id.partner_id.x_vat"/>
|
|
</t>
|
|
<t t-if="o.x_sale_order_id and o.env['sale.order'].browse(o.x_sale_order_id).warehouse_id.partner_id.x_eori">
|
|
<div t-field="o.x_sale_order_id and o.env['sale.order'].browse(o.x_sale_order_id).warehouse_id.partner_id.x_eori"/>
|
|
</t>
|
|
<t t-if="o.x_sale_order_id and o.env['sale.order'].browse(o.x_sale_order_id).warehouse_id.partner_id.x_zaz">
|
|
<div t-field="o.x_sale_order_id and o.env['sale.order'].browse(o.x_sale_order_id).warehouse_id.partner_id.x_zaz"/>
|
|
</t>
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td style="width: 280px; padding-top: 20px; vertical-align: top; padding-left: 5mm;" colspan="2">
|
|
<t t-if="o.partner_shipping_id.x_remarks">
|
|
<div t-field="o.partner_shipping_id.x_remarks"/>
|
|
</t>
|
|
</td>
|
|
|
|
<td style="width: 60px"/>
|
|
|
|
<td style="width: 280px; padding-top: 20px; vertical-align: top; padding-left: 0;" colspan="2">
|
|
<t t-if="o.x_sale_order_id and o.env['sale.order'].browse(o.x_sale_order_id).warehouse_id.partner_id.x_remarks">
|
|
<div t-field="o.x_sale_order_id and o.env['sale.order'].browse(o.x_sale_order_id).warehouse_id.partner_id.x_remarks"/>
|
|
</t>
|
|
</td>
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</xpath>
|
|
</data>
|
|
```
|
|
Source: [snippets/account.report_invoice_document.add_address.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/account.report_invoice_document.add_address.xml)
|
|
|
|
### Add Address Space
|
|
|
|
ID: `mint_system.account.report_invoice_document.add_address_space`
|
|
|
|
```xml
|
|
<data inherit_id="account.report_invoice_document" priority="50">
|
|
<t t-set="address" position="before">
|
|
<style>
|
|
div.address {
|
|
padding-top: 3rem
|
|
}
|
|
</style>
|
|
</t>
|
|
</data>
|
|
|
|
```
|
|
Source: [snippets/account.report_invoice_document.add_address_space.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/account.report_invoice_document.add_address_space.xml)
|
|
|
|
### Add Bocco Id
|
|
|
|
ID: `mint_system.account.report_invoice_document.add_bocco_id`
|
|
|
|
```xml
|
|
<data inherit_id="account.report_invoice_document" priority="50">
|
|
<xpath expr="//div[@id='informations']/div[@name='invoice_date']" position="before">
|
|
<div class="col-auto mw-100 mb-2" t-if="o.partner_id.bocco_id" name="bocco_id">
|
|
<strong>Bocco ID:</strong>
|
|
<p class="m-0" t-field="o.partner_id.bocco_id" t-options="{"widget": "char"}"/>
|
|
</div>
|
|
</xpath>
|
|
</data>
|
|
```
|
|
Source: [snippets/account.report_invoice_document.add_bocco_id.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/account.report_invoice_document.add_bocco_id.xml)
|
|
|
|
### Add Comment Space
|
|
|
|
ID: `mint_system.account.report_invoice_document.add_comment_space`
|
|
|
|
```xml
|
|
<data inherit_id="account.report_invoice_document" priority="50">
|
|
<div name="comment" position="before">
|
|
<style>
|
|
div[name="comment"] {
|
|
padding-top: 50px;
|
|
padding-left: 75px;
|
|
padding-right: 75px;
|
|
}
|
|
</style>
|
|
</div>
|
|
</data>
|
|
|
|
```
|
|
Source: [snippets/account.report_invoice_document.add_comment_space.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/account.report_invoice_document.add_comment_space.xml)
|
|
|
|
### Add Company Vat
|
|
|
|
ID: `mint_system.account.report_invoice_document.add_company_vat`
|
|
|
|
```xml
|
|
<data inherit_id="account.report_invoice_document" priority="50">
|
|
<div name="payment_term" position="after">
|
|
<!-- <strong>MWST-Nr.:</strong> -->
|
|
<p>
|
|
<strong>Tax ID:</strong>
|
|
<span t-field="o.company_id.vat"/>
|
|
</p>
|
|
</div>
|
|
</data>
|
|
|
|
```
|
|
Source: [snippets/account.report_invoice_document.add_company_vat.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/account.report_invoice_document.add_company_vat.xml)
|
|
|
|
### Add Current Subtotal Space
|
|
|
|
ID: `mint_system.account.report_invoice_document.add_current_subtotal_space`
|
|
|
|
```xml
|
|
<data inherit_id="account.report_invoice_document" priority="50">
|
|
<xpath expr="//span[@t-esc='current_subtotal']/../.." position="after">
|
|
<tr>
|
|
<td name="td_current_subtotal_space" colspan="99" height="25px"/>
|
|
</tr>
|
|
</xpath>
|
|
</data>
|
|
|
|
```
|
|
Source: [snippets/account.report_invoice_document.add_current_subtotal_space.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/account.report_invoice_document.add_current_subtotal_space.xml)
|
|
|
|
### Add General Information
|
|
|
|
ID: `mint_system.account.report_invoice_document.add_general_information`
|
|
|
|
```xml
|
|
<data inherit_id="account.report_invoice_document" priority="50">
|
|
|
|
<xpath expr="//div[@id='total']/../.." position="after">
|
|
|
|
<table style="margin-left: 0px; margin-top: 30px; border: transparent">
|
|
<tr style="height: 100px;">
|
|
<td style="width: 325px; font-size: 6pt; padding-bottom: 0px">
|
|
<span>Es gelten die Allgemeinen Verkaufs- und Lieferbedingungen der Xinomer AG</span><br/>
|
|
<span>Aktuelle Version siehe www.xinomer.ch</span>
|
|
</td>
|
|
<td style="width: 50px"/>
|
|
<td style="width: 300px; vertical-align: top">
|
|
<div style="font-weight: bold; padding-bottom: 15px">
|
|
<span>Zahlbar bis: </span>
|
|
<span t-field="o.invoice_payment_term_id"/>
|
|
</div>
|
|
<div>
|
|
<t>
|
|
<div t-field="o.company_id.partner_id" t-options="{"widget": "contact", "fields": ["address", "name"], "no_marker": True}"/>
|
|
<span>IBAN</span>
|
|
<span t-field="o.company_id.partner_id.bank_ids[0].acc_number"/>
|
|
<span>(</span>
|
|
<span t-field="o.company_id.partner_id.bank_ids[0].currency_id"/>
|
|
<span>)</span>
|
|
</t>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
|
|
</xpath>
|
|
</data>
|
|
```
|
|
Source: [snippets/account.report_invoice_document.add_general_information.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/account.report_invoice_document.add_general_information.xml)
|
|
|
|
### Add Head
|
|
|
|
ID: `mint_system.account.report_invoice_document.add_head`
|
|
|
|
```xml
|
|
<data inherit_id="account.report_invoice_document" priority="50">
|
|
<xpath expr="//div[contains(@class, 'page')]/h2" position="after">
|
|
<h4>
|
|
<span t-if="o.inv_head_add" t-field="o.inv_head_add"/>
|
|
</h4>
|
|
</xpath>
|
|
</data>
|
|
```
|
|
Source: [snippets/account.report_invoice_document.add_head.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/account.report_invoice_document.add_head.xml)
|
|
|
|
### Add Header And Footer Note
|
|
|
|
ID: `mint_system.account.report_invoice_document.add_header_and_footer_note`
|
|
|
|
```xml
|
|
<data inherit_id="account.report_invoice_document" priority="50">
|
|
<xpath expr="//table[@id='info']" position="after">
|
|
<t t-if="o.note_header != '<p><br></p>'">
|
|
<span class="note" t-field="o.note_header"/>
|
|
</t>
|
|
</xpath>
|
|
<xpath expr="//table[2]" position="after">
|
|
<t t-if="o.note_footer != '<p><br></p>'">
|
|
<span class="note" t-field="o.note_footer"/>
|
|
</t>
|
|
</xpath>
|
|
</data>
|
|
|
|
```
|
|
Source: [snippets/account.report_invoice_document.add_header_and_footer_note.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/account.report_invoice_document.add_header_and_footer_note.xml)
|
|
|
|
### Add Header Padding
|
|
|
|
ID: `mint_system.account.report_invoice_document.add_header_padding`
|
|
|
|
```xml
|
|
<data inherit_id="account.report_invoice_document" priority="50">
|
|
<xpath expr="//h2" position="attributes">
|
|
<attribute name="style">padding-top: 2rem</attribute>
|
|
</xpath>
|
|
</data>
|
|
|
|
```
|
|
Source: [snippets/account.report_invoice_document.add_header_padding.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/account.report_invoice_document.add_header_padding.xml)
|
|
|
|
### Add Header Space
|
|
|
|
ID: `mint_system.account.report_invoice_document.add_header_space`
|
|
|
|
```xml
|
|
<data inherit_id="account.report_invoice_document" priority="50">
|
|
<xpath expr="//h2" position="attributes">
|
|
<attribute name="style">padding-top: 5rem</attribute>
|
|
</xpath>
|
|
</data>
|
|
|
|
```
|
|
Source: [snippets/account.report_invoice_document.add_header_space.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/account.report_invoice_document.add_header_space.xml)
|
|
|
|
### Add Iban
|
|
|
|
ID: `mint_system.account.report_invoice_document.add_iban`
|
|
|
|
```xml
|
|
<data inherit_id="account.report_invoice_document" priority="50">
|
|
<!-- Odoo 17.0 -->
|
|
<xpath expr="//span[@id='payment_terms_note_id']/.." position="after">
|
|
<div class="row">
|
|
<div class="col">
|
|
<span>IBAN: </span>
|
|
<span t-field="o.partner_bank_id.acc_number"/>
|
|
</div>
|
|
</div>
|
|
</xpath>
|
|
<!-- Odoo 14.0 -->
|
|
<!--
|
|
<xpath expr="/t/t/div/p[2]" position="before">
|
|
<t t-if="not o.partner_bank_id._eligible_for_qr_code('ch_qr', o.partner_id, o.currency_id)">
|
|
<p>
|
|
<span>IBAN: </span>
|
|
<b>
|
|
<span t-field="o.partner_bank_id.acc_number"/>
|
|
</b>
|
|
<br/>
|
|
<span>Bank/BIC: </span>
|
|
<b>
|
|
<span t-field="o.partner_bank_id.bank_id.display_name"/>
|
|
</b>
|
|
</p>
|
|
</t>
|
|
</xpath> -->
|
|
<!-- Odoo 13.0 -->
|
|
<!-- <xpath expr="/t/t/div/p[2]" position="after">
|
|
<div class="row">
|
|
<div class="col">
|
|
<span>IBAN: </span>
|
|
<span t-field="o.invoice_partner_bank_id.acc_number"/>
|
|
</div>
|
|
</div>
|
|
</xpath>
|
|
<xpath expr="/t/t/div/div[3]" position="after">
|
|
<div class="row">
|
|
<div class="col">
|
|
<span>Bank/BIC: </span>
|
|
<span t-field="o.invoice_partner_bank_id.bank_id.display_name"/>
|
|
<br/>
|
|
<br/>
|
|
</div>
|
|
</div>
|
|
</xpath> -->
|
|
</data>
|
|
|
|
```
|
|
Source: [snippets/account.report_invoice_document.add_iban.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/account.report_invoice_document.add_iban.xml)
|
|
|
|
### Add Iban And Bank
|
|
|
|
ID: `mint_system.account.report_invoice_document.add_iban_and_bank`
|
|
|
|
```xml
|
|
<data inherit_id="account.report_invoice_document" priority="50">
|
|
<xpath expr="//span[@id='payment_terms_note_id']/.." position="after">
|
|
<div class="row">
|
|
<div class="col">
|
|
<span>IBAN: </span>
|
|
<span t-field="o.partner_bank_id.acc_number"/>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col">
|
|
<span>Bank/BIC: </span>
|
|
<span t-field="o.partner_bank_id.bank_id"/>
|
|
<br/>
|
|
<br/>
|
|
</div>
|
|
</div>
|
|
</xpath>
|
|
</data>
|
|
|
|
```
|
|
Source: [snippets/account.report_invoice_document.add_iban_and_bank.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/account.report_invoice_document.add_iban_and_bank.xml)
|
|
|
|
### Add Information Space
|
|
|
|
ID: `mint_system.account.report_invoice_document.add_information_space`
|
|
|
|
```xml
|
|
<data inherit_id="account.report_invoice_document" priority="50">
|
|
<xpath expr="//div[@id='informations']" position="before">
|
|
<style>
|
|
div#informations {
|
|
padding-top: 1rem;
|
|
padding-bottom: 1rem
|
|
}
|
|
</style>
|
|
</xpath>
|
|
</data>
|
|
|
|
```
|
|
Source: [snippets/account.report_invoice_document.add_information_space.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/account.report_invoice_document.add_information_space.xml)
|
|
|
|
### Add Membership Note
|
|
|
|
ID: `mint_system.account.report_invoice_document.add_membership_note`
|
|
|
|
```xml
|
|
<data inherit_id="account.report_invoice_document" priority="50">
|
|
<p name="payment_communication" position="before">
|
|
<t t-set="is_recurring" t-value="o.invoice_line_ids.product_id.filtered('membership_ok')"/>
|
|
<t t-set="membership_partner_id" t-value="o.partner_id.parent_id.address_get(['membership'])['membership'] or o.partner_id.address_get(['membership'])['membership']"/>
|
|
<t t-if="membership_partner_id != o.partner_id.id" t-set="membership_partner" t-value="env['res.partner'].browse(membership_partner_id)"/>
|
|
<t t-if="is_recurring and membership_partner">
|
|
<p>Als Kontaktperson für diese Mitgliedschaft sind bei uns folgende Angaben hinterlegt: <span t-esc="membership_partner.name"/> (<span t-esc="membership_partner.email"/>)</p>
|
|
<p>Diese Person bekommt auch die Einladung für die Mitgliederversammlung. Bitte melden Sie uns allfällige Mutationen umgehend.</p>
|
|
</t>
|
|
</p>
|
|
</data>
|
|
|
|
```
|
|
Source: [snippets/account.report_invoice_document.add_membership_note.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/account.report_invoice_document.add_membership_note.xml)
|
|
|
|
### Add Note
|
|
|
|
ID: `mint_system.account.report_invoice_document.add_note`
|
|
|
|
```xml
|
|
<data inherit_id="account.report_invoice_document" priority="50">
|
|
<xpath expr="//div[@name='comment']" position="replace">
|
|
<div style="margin-top: 50px">
|
|
<div>
|
|
<t t-if="not is_html_empty(o.narration)" name="narration">
|
|
<span t-field="o.narration"/>
|
|
</t>
|
|
<t t-elif="o.company_id.id == 2">
|
|
<span style="font-weight: bold">Incoterms: DDP / Tax free intracommunity delivery acc. to UstG §6a.</span>
|
|
<br/>
|
|
<span>The exporter of the products covered by this document declares that, except where otherwise clearly indicated, these products are of swiss preferential origin.</span>
|
|
<br/>
|
|
<span style="font-style: italic">"The total quantity of delivered products is missing from delivery note"</span>
|
|
</t>
|
|
<t t-elif="o.partner_id.country_id.code == 'CH'">
|
|
<span>The exporter of the products covered by this document declares that, except where otherwise clearly indicated, these products are of swiss preferential origin.</span>
|
|
<br/>
|
|
<span style="font-style: italic">"The total quantity of delivered products is missing from delivery note"</span>
|
|
</t>
|
|
<t t-elif="o.partner_id.country_id.code == 'DE'">
|
|
<span style="font-weight: bold">EORI: DE379461566911068 / Incoterms: DAP</span>
|
|
<br/>
|
|
<span>The exporter of the products covered by this document declares that, except where otherwise clearly indicated, these products are of swiss preferential origin.</span>
|
|
<br/>
|
|
<span style="font-style: italic">"The total quantity of delivered products is missing from delivery note"</span>
|
|
</t>
|
|
<t t-elif="o.partner_id.country_id.code in ['GR', 'AL', 'HR', 'MNE', 'MC']">
|
|
<span style="font-weight: bold">EORI: DE379461566911068 / Incoterms: Ex-works / Tax free intracommunity delivery acc. to UstG §6a.</span>
|
|
<br/>
|
|
<span>The exporter of the products covered by this document declares that, except where otherwise clearly indicated, these products are of swiss preferential origin.</span>
|
|
<br/>
|
|
<span style="font-style: italic">"The total quantity of delivered products is missing from delivery note"</span>
|
|
</t>
|
|
<t t-elif="o.partner_id.parent_id.country_id.country_group_ids and o.partner_id.parent_id.country_id.country_group_ids[0].id == 1">
|
|
<span style="font-weight: bold">EORI: DE379461566911068 / Incoterms: DDP / Tax free intracommunity delivery acc. to UstG §6a.</span>
|
|
<br/>
|
|
<span>The exporter of the products covered by this document declares that, except where otherwise clearly indicated, these products are of swiss preferential origin.</span>
|
|
<br/>
|
|
<span style="font-style: italic">"The total quantity of delivered products is missing from delivery note"</span>
|
|
</t>
|
|
<t t-else="">
|
|
<span style="font-weight: bold">Incoterms: Ex-works</span>
|
|
<br/>
|
|
<span>The exporter of the products covered by this document declares that, except where otherwise clearly indicated, these products are of swiss preferential origin.</span>
|
|
<br/>
|
|
<span style="font-style: italic">"The total quantity of delivered products is missing from delivery note"</span>
|
|
</t>
|
|
</div>
|
|
</div>
|
|
</xpath>
|
|
</data>
|
|
|
|
```
|
|
Source: [snippets/account.report_invoice_document.add_note.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/account.report_invoice_document.add_note.xml)
|
|
|
|
### Add Percentage Sign
|
|
|
|
ID: `mint_system.account.report_invoice_document.add_percentage_sign`
|
|
|
|
```xml
|
|
<data inherit_id="account.report_invoice_document" priority="50">
|
|
<xpath expr="//span[@t-field='line.discount']" position="replace">
|
|
<span t-field="line.discount"/>
|
|
<span>%</span>
|
|
</xpath>
|
|
</data>
|
|
|
|
```
|
|
Source: [snippets/account.report_invoice_document.add_percentage_sign.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/account.report_invoice_document.add_percentage_sign.xml)
|
|
|
|
### Add Picking Date
|
|
|
|
ID: `mint_system.account.report_invoice_document.add_picking_date`
|
|
|
|
```xml
|
|
<data inherit_id="account.report_invoice_document" priority="50">
|
|
<xpath expr="//table[@name='invoice_line_table']//th[@name='th_description']" position="before">
|
|
<th name="th_picking_date" class="text-right">
|
|
<span>Delivery Date</span>
|
|
</th>
|
|
</xpath>
|
|
<xpath expr="//table[@name='invoice_line_table']//td[@name='account_invoice_line_name']" position="before">
|
|
<td name="td_picking_name" class="text-right">
|
|
<span t-esc="line.sale_line_ids.move_ids.picking_id.date_done" t-options="{'widget': 'date'}"/>
|
|
</td>
|
|
</xpath>
|
|
</data>
|
|
|
|
```
|
|
Source: [snippets/account.report_invoice_document.add_picking_date.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/account.report_invoice_document.add_picking_date.xml)
|
|
|
|
### Add Picking Name
|
|
|
|
ID: `mint_system.account.report_invoice_document.add_picking_name`
|
|
|
|
```xml
|
|
<data inherit_id="account.report_invoice_document" priority="50">
|
|
<xpath expr="//table[@name='invoice_line_table']//th[@name='th_description']" position="before">
|
|
<th name="th_picking_name" class="text-right">
|
|
<span>Delivery Bill</span>
|
|
</th>
|
|
</xpath>
|
|
<xpath expr="//table[@name='invoice_line_table']//td[@name='account_invoice_line_name']" position="before">
|
|
<td name="td_picking_name" class="text-right">
|
|
<span t-esc="line.sale_line_ids.move_ids.picking_id.name"/>
|
|
</td>
|
|
</xpath>
|
|
</data>
|
|
|
|
```
|
|
Source: [snippets/account.report_invoice_document.add_picking_name.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/account.report_invoice_document.add_picking_name.xml)
|
|
|
|
### Add Qr Iban
|
|
|
|
ID: `mint_system.account.report_invoice_document.add_qr_iban`
|
|
|
|
```xml
|
|
<data inherit_id="account.report_invoice_document" priority="50">
|
|
<div name="payment_term" position="after">
|
|
<p><!-- <strong>Bankkonto:</strong> --><strong>Bank account:</strong><span t-field="o.partner_bank_id.bank_id.name"/>
|
|
(<span t-field="o.partner_bank_id.bank_id.bic"/>)
|
|
<span t-field="o.partner_bank_id.l10n_ch_qr_iban"/>
|
|
</p>
|
|
</div>
|
|
</data>
|
|
|
|
```
|
|
Source: [snippets/account.report_invoice_document.add_qr_iban.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/account.report_invoice_document.add_qr_iban.xml)
|
|
|
|
### Add Sale Order Contact Name
|
|
|
|
ID: `mint_system.account.report_invoice_document.add_sale_order_contact_name`
|
|
|
|
```xml
|
|
<data inherit_id="account.report_invoice_document" priority="50">
|
|
|
|
<xpath expr="//div[@id='informations']//div[@name='reference']" position="before">
|
|
<div class="col-2" style="margin-bottom: 10px;">
|
|
<strong>Your contact</strong>
|
|
<div t-field="o.partner_sale_id.name"/>
|
|
<div t-field="o.partner_sale_id.email" style="font-size: 12px;" />
|
|
</div>
|
|
</xpath>
|
|
|
|
</data>
|
|
```
|
|
Source: [snippets/account.report_invoice_document.add_sale_order_contact_name.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/account.report_invoice_document.add_sale_order_contact_name.xml)
|
|
|
|
### Add Sale Person
|
|
|
|
ID: `mint_system.account.report_invoice_document.add_sale_person`
|
|
|
|
```xml
|
|
<data inherit_id="account.report_invoice_document" priority="50">
|
|
<!-- Remove reference -->
|
|
<xpath expr="/t/t/div/div[1]/div[5]" position="replace">
|
|
</xpath>
|
|
<!-- Add sales person -->
|
|
<xpath expr="/t/t/div/div[1]/div[1]" position="after">
|
|
<div class="col-auto mw-100 mb-2" t-if="o.invoice_user_id" name="invoice_user_id">
|
|
<strong>Salesperson:</strong>
|
|
<p class="m-0" t-field="o.invoice_user_id.name"/>
|
|
</div>
|
|
</xpath>
|
|
<!-- Add referencce to new line -->
|
|
<xpath expr="//div[@id='informations']" position="after">
|
|
<div id="informations2" class="row mt32 mb32" t-if="o.ref">
|
|
<div class="col-auto mw-100 mb-2" name="reference">
|
|
<strong>Reference:</strong>
|
|
<p class="m-0" t-field="o.ref"/>
|
|
</div>
|
|
</div>
|
|
</xpath>
|
|
</data>
|
|
|
|
```
|
|
Source: [snippets/account.report_invoice_document.add_sale_person.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/account.report_invoice_document.add_sale_person.xml)
|
|
|
|
### Add Salesperson
|
|
|
|
ID: `mint_system.account.report_invoice_document.add_salesperson`
|
|
|
|
```xml
|
|
<data inherit_id="account.report_invoice_document" priority="50">
|
|
<xpath expr="//div[@name='invoice_date']" position="after">
|
|
<div class="col-3 bm-2" t-if="o.invoice_user_id" name="invoice_user_id">
|
|
<strong>Contact:</strong>
|
|
<p class="m-0" t-field="o.invoice_user_id.email"/>
|
|
<p class="m-0" t-field="o.invoice_user_id.phone"/>
|
|
</div>
|
|
</xpath>
|
|
<!-- <xpath expr="/t/t/div/div[1]/div[1]" position="after">
|
|
<div class="col-auto mw-100 mb-2" t-if="o.invoice_user_id" name="invoice_user_id">
|
|
<strong>Contact:</strong>
|
|
<p class="m-0" t-field="o.invoice_user_id.email"/>
|
|
<p class="m-0" t-field="o.invoice_user_id.phone"/>
|
|
</div>
|
|
</xpath> -->
|
|
<!-- <xpath expr="/t/t/div/div[1]/div[1]" position="after">
|
|
<div class="col-auto mw-100 mb-2" t-if="o.invoice_user_id" name="invoice_user_id">
|
|
<strong>Salesperson:</strong>
|
|
<p class="m-0" t-field="o.invoice_user_id.name"/>
|
|
</div>
|
|
</xpath> -->
|
|
</data>
|
|
```
|
|
Source: [snippets/account.report_invoice_document.add_salesperson.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/account.report_invoice_document.add_salesperson.xml)
|
|
|
|
### Add Taxes
|
|
|
|
ID: `mint_system.account.report_invoice_document.add_taxes`
|
|
|
|
```xml
|
|
<data inherit_id="account.report_invoice_document" priority="60">
|
|
<xpath expr="//div[hasclass('page')]" position="before">
|
|
<style>
|
|
.o_company_1_layout {
|
|
font-family: Dobra-Book;
|
|
font-size: 80%;
|
|
}
|
|
.mb-4 {
|
|
margin-bottom: 0rem !important;
|
|
}
|
|
#total {
|
|
margin-bottom: 2rem;
|
|
}
|
|
h2 {
|
|
font-size: 1.5rem;
|
|
}
|
|
</style>
|
|
</xpath>
|
|
</data>
|
|
|
|
```
|
|
Source: [snippets/account.report_invoice_document.add_taxes.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/account.report_invoice_document.add_taxes.xml)
|
|
|
|
### Align Taxes
|
|
|
|
ID: `mint_system.account.report_invoice_document.align_taxes`
|
|
|
|
```xml
|
|
<!-- Align invoice tax row right -->
|
|
<data inherit_id="account.report_invoice_document" priority="50">
|
|
<xpath expr="//th[@name='th_taxes']" position="attributes">
|
|
<attribute name="t-attf-class" separator=" " remove="text-right" add="text-right"/>
|
|
</xpath>
|
|
<xpath expr="//span[@id='line_tax_ids']/.." position="attributes">
|
|
<attribute name="t-attf-class" separator=" " remove="text-right" add="text-right"/>
|
|
</xpath>
|
|
</data>
|
|
|
|
```
|
|
Source: [snippets/account.report_invoice_document.align_taxes.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/account.report_invoice_document.align_taxes.xml)
|
|
|
|
### Bank Account
|
|
|
|
ID: `mint_system.account.report_invoice_document.bank_account`
|
|
|
|
```xml
|
|
<data inherit_id="account.report_invoice_document" priority="50">
|
|
<xpath expr="/t/t/div/p[2]" position="after">
|
|
<t t-if="o.company_id.id==1">
|
|
<t t-if="o.currency_id.name=='CHF'">
|
|
<t t-set="account" t-value="o.company_id.bank_ids.browse(4)"/>
|
|
</t>
|
|
<t t-if="o.currency_id.name=='EUR'">
|
|
<t t-set="account" t-value="o.company_id.bank_ids.browse(5)"/>
|
|
</t>
|
|
</t>
|
|
<t t-if="o.company_id.id==3">
|
|
<t t-set="account" t-value="o.company_id.bank_ids.browse(21)"/>
|
|
</t>
|
|
<div class="row">
|
|
<div class="col">
|
|
<span>IBAN: </span>
|
|
<span t-field="account.acc_number"/>
|
|
<br/>
|
|
<span>Bank/BIC: </span>
|
|
<span t-field="account.bank_id.display_name"/>
|
|
<br/>
|
|
<br/>
|
|
</div>
|
|
</div>
|
|
</xpath>
|
|
</data>
|
|
|
|
```
|
|
Source: [snippets/account.report_invoice_document.bank_account.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/account.report_invoice_document.bank_account.xml)
|
|
|
|
### Convert Html Note
|
|
|
|
ID: `mint_system.account.report_invoice_document.convert_html_note`
|
|
|
|
```xml
|
|
<data inherit_id="account.report_invoice_document" priority="50">
|
|
<t t-if="line.display_type == 'line_note'" position="replace">
|
|
<t t-if="line.display_type == 'line_note' and '<!DOCTYPE html>' in line.name">
|
|
<td colspan="99">
|
|
<t t-raw="line.name.replace('<!DOCTYPE html>', '')"/>
|
|
</td>
|
|
</t>
|
|
<t t-elif="line.display_type == 'line_note' and '<!DOCTYPE html>' not in line.name">
|
|
<td colspan="99">
|
|
<span t-field="line.name"/>
|
|
</td>
|
|
</t>
|
|
</t>
|
|
</data>
|
|
|
|
```
|
|
Source: [snippets/account.report_invoice_document.convert_html_note.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/account.report_invoice_document.convert_html_note.xml)
|
|
|
|
### Custom Address
|
|
|
|
ID: `mint_system.account.report_invoice_document.custom_address`
|
|
|
|
```xml
|
|
<data inherit_id="account.report_invoice_document" priority="50">
|
|
<xpath expr="//t[@t-set='address']//address" position="replace">
|
|
<address>
|
|
<t t-if="o.partner_id.invoice_name">
|
|
<div>
|
|
<span t-esc="o.partner_id.invoice_name"/>
|
|
</div>
|
|
</t>
|
|
<t t-if="o.partner_id.address_addition">
|
|
<div>
|
|
<span t-esc="o.partner_id.address_addition"/>
|
|
</div>
|
|
</t>
|
|
<t t-if="o.partner_id.street">
|
|
<div>
|
|
<span t-esc="o.partner_id.street"/>
|
|
</div>
|
|
</t>
|
|
<t t-if="o.partner_id.street2">
|
|
<div>
|
|
<span t-esc="o.partner_id.street2"/>
|
|
</div>
|
|
</t>
|
|
<t t-if="o.partner_id.city and o.partner_id.city">
|
|
<div>
|
|
<span t-esc="o.partner_id.zip"/>
|
|
<span t-esc="o.partner_id.city"/>
|
|
</div>
|
|
</t>
|
|
<t t-if="o.partner_id.country_id">
|
|
<div>
|
|
<span t-esc="o.partner_id.country_id.name"/>
|
|
</div>
|
|
</t>
|
|
</address>
|
|
</xpath>
|
|
|
|
<!-- Odoo 17+: Odoo does not replace all matches,
|
|
so you have to specify certain match or
|
|
find loop solution. -->
|
|
</data>
|
|
|
|
```
|
|
Source: [snippets/account.report_invoice_document.custom_address.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/account.report_invoice_document.custom_address.xml)
|
|
|
|
### Custom Payment Term
|
|
|
|
ID: `mint_system.account.report_invoice_document.custom_payment_term`
|
|
|
|
```xml
|
|
<data inherit_id="account.report_invoice_document" priority="50">
|
|
<xpath expr="//p[@name='payment_term']" position="replace">
|
|
<p t-if="o.invoice_payment_term_id" name="payment_term">
|
|
Payment terms: <strong t-field="o.invoice_payment_term_id.name"/>
|
|
</p>
|
|
</xpath>
|
|
</data>
|
|
<!-- Version 16
|
|
<data inherit_id="account.report_invoice_document" priority="50">
|
|
<xpath expr="//div[@name='payment_term']" position="replace">
|
|
<p t-if="o.invoice_payment_term_id" name="payment_term">
|
|
Payment terms: <strong t-field="o.invoice_payment_term_id.name"/>
|
|
</p>
|
|
</xpath>
|
|
</data>
|
|
-->
|
|
|
|
```
|
|
Source: [snippets/account.report_invoice_document.custom_payment_term.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/account.report_invoice_document.custom_payment_term.xml)
|
|
|
|
### Custom Taxes
|
|
|
|
ID: `mint_system.account.report_invoice_document.custom_taxes`
|
|
|
|
```xml
|
|
<data inherit_id="account.report_invoice_document" priority="50">
|
|
<xpath expr="//th[@name='th_taxes']" position="replace">
|
|
<th name="th_taxes" t-attf-class="text-right {{ 'd-none d-md-table-cell' if report_type == 'html' else '' }}">
|
|
<span>Steuern</span>
|
|
</th>
|
|
</xpath>
|
|
<xpath expr="//t[@name='account_invoice_line_accountable']/td[5]" position="replace">
|
|
<td t-attf-class="text-right {{ 'd-none d-md-table-cell' if report_type == 'html' else '' }}">
|
|
<span t-esc="', '.join(map(lambda x: (x.description or x.name), line.tax_ids))" id="line_tax_ids"/>
|
|
</td>
|
|
</xpath>
|
|
</data>
|
|
|
|
```
|
|
Source: [snippets/account.report_invoice_document.custom_taxes.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/account.report_invoice_document.custom_taxes.xml)
|
|
|
|
### Display Shipping Address
|
|
|
|
ID: `mint_system.account.report_invoice_document.display_shipping_address`
|
|
|
|
```xml
|
|
<data inherit_id="account.report_invoice_document" priority="50">
|
|
<xpath expr="/t/t/t" position="after">
|
|
<t t-if="o.partner_shipping_id">
|
|
<t t-set="information_block">
|
|
<strong>Shipping address:</strong>
|
|
<div t-if="o.partner_shipping_id" style="margin-bottom: 1rem;">
|
|
<div t-field="o.partner_shipping_id" t-options="{'widget': 'contact', 'fields': ['address', 'name'], 'no_marker': True, 'phone_icons': True}" name="invoice_shipping_address"/>
|
|
</div>
|
|
</t>
|
|
</t>
|
|
</xpath>
|
|
</data>
|
|
|
|
```
|
|
Source: [snippets/account.report_invoice_document.display_shipping_address.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/account.report_invoice_document.display_shipping_address.xml)
|
|
|
|
### Force Company Vat
|
|
|
|
ID: `mint_system.account.report_invoice_document.force_company_vat`
|
|
|
|
```xml
|
|
<data inherit_id="account.report_invoice_document" priority="60">
|
|
<t t-set="forced_vat" position="replace">
|
|
<t t-set="forced_vat" t-value="o.company_id.vat"/>
|
|
</t>
|
|
</data>
|
|
|
|
```
|
|
Source: [snippets/account.report_invoice_document.force_company_vat.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/account.report_invoice_document.force_company_vat.xml)
|
|
|
|
### Format Address Blocks
|
|
|
|
ID: `mint_system.account.report_invoice_document.format_address_blocks`
|
|
|
|
```xml
|
|
<data inherit_id="account.report_invoice_document" priority="50">
|
|
<xpath expr="//t[@t-set='address']/div" position="attributes">
|
|
<attribute name="style">font-size:10pt; line-height: 1.2; padding-bottom:33mm</attribute>
|
|
</xpath>
|
|
</data>
|
|
|
|
```
|
|
Source: [snippets/account.report_invoice_document.format_address_blocks.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/account.report_invoice_document.format_address_blocks.xml)
|
|
|
|
### Format Clearfix
|
|
|
|
ID: `mint_system.account.report_invoice_document.format_clearfix`
|
|
|
|
```xml
|
|
<data inherit_id="account.report_invoice_document" priority="50">
|
|
<xpath expr="//div[@id='total']/div" position="attributes">
|
|
<attribute name="t-attf-class"/>
|
|
</xpath>
|
|
</data>
|
|
|
|
```
|
|
Source: [snippets/account.report_invoice_document.format_clearfix.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/account.report_invoice_document.format_clearfix.xml)
|
|
|
|
### Format Description
|
|
|
|
ID: `mint_system.account.report_invoice_document.format_description`
|
|
|
|
```xml
|
|
<data inherit_id="account.report_invoice_document" priority="50">
|
|
<xpath expr="//td[@name='account_invoice_line_name']/span" position="attributes">
|
|
<attribute name="style">white-space: pre-wrap;</attribute>
|
|
</xpath>
|
|
</data>
|
|
|
|
```
|
|
Source: [snippets/account.report_invoice_document.format_description.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/account.report_invoice_document.format_description.xml)
|
|
|
|
### Format Discount
|
|
|
|
ID: `mint_system.account.report_invoice_document.format_discount`
|
|
|
|
```xml
|
|
<data inherit_id="account.report_invoice_document" priority="50">
|
|
<span t-field="line.discount" position="replace">
|
|
<span class="text-nowrap" t-esc="'{0:.2f}'.format(line.discount)"/>
|
|
</span>
|
|
</data>
|
|
|
|
```
|
|
Source: [snippets/account.report_invoice_document.format_discount.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/account.report_invoice_document.format_discount.xml)
|
|
|
|
### Format Line Total
|
|
|
|
ID: `mint_system.account.report_invoice_document.format_line_total`
|
|
|
|
```xml
|
|
<data inherit_id="account.report_invoice_document" priority="50">
|
|
<xpath expr="//span[@t-field='line.price_subtotal']" position="replace">
|
|
<span class="text-nowrap" t-esc="('{:,.2f}'.format(line.price_subtotal)).replace(',','\'')" groups="account.group_show_line_subtotals_tax_excluded"/>
|
|
</xpath>
|
|
<xpath expr="//span[@t-field='line.price_total']" position="replace">
|
|
<span class="text-nowrap" t-esc="'{:,.2f}'.format(line.price_total).replace(',','\'')" groups="account.group_show_line_subtotals_tax_included"/>
|
|
</xpath>
|
|
</data>
|
|
|
|
```
|
|
Source: [snippets/account.report_invoice_document.format_line_total.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/account.report_invoice_document.format_line_total.xml)
|
|
|
|
### Format Payment Term
|
|
|
|
ID: `mint_system.account.report_invoice_document.format_payment_term`
|
|
|
|
```xml
|
|
<data inherit_id="account.report_invoice_document" priority="50">
|
|
<div name="payment_term" position="replace">
|
|
<div name="payment_term">
|
|
<p>
|
|
<!-- <strong>Zahlungsbedingungen:</strong> -->
|
|
<strong>Payment term:</strong>
|
|
<span t-field="o.invoice_payment_term_id.name"/>
|
|
</p>
|
|
</div>
|
|
</div>
|
|
</data>
|
|
|
|
```
|
|
Source: [snippets/account.report_invoice_document.format_payment_term.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/account.report_invoice_document.format_payment_term.xml)
|
|
|
|
### Format Pos
|
|
|
|
ID: `mint_system.account.report_invoice_document.format_pos`
|
|
|
|
```xml
|
|
<data inherit_id="account.report_invoice_document" priority="50">
|
|
<xpath expr="//t[@t-if='o.sale_order_id']/td" position="attributes">
|
|
<attribute name="style">text-align: right; width: 5mm</attribute>
|
|
</xpath>
|
|
</data>
|
|
|
|
```
|
|
Source: [snippets/account.report_invoice_document.format_pos.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/account.report_invoice_document.format_pos.xml)
|
|
|
|
### Format Qty Without Decimal
|
|
|
|
ID: `mint_system.account.report_invoice_document.format_qty_without_decimal`
|
|
|
|
```xml
|
|
<data inherit_id="account.report_invoice_document" priority="50">
|
|
<span t-field="line.quantity" position="replace">
|
|
<t t-if="line.quantity.is_integer()">
|
|
<span t-field="line.quantity" t-options="{'widget': 'integer'}"/>
|
|
</t>
|
|
<t t-else="">
|
|
<span t-field="line.quantity"/>
|
|
</t>
|
|
</span>
|
|
</data>
|
|
|
|
```
|
|
Source: [snippets/account.report_invoice_document.format_qty_without_decimal.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/account.report_invoice_document.format_qty_without_decimal.xml)
|
|
|
|
### Format Table Border
|
|
|
|
ID: `mint_system.account.report_invoice_document.format_table_border`
|
|
|
|
```xml
|
|
<data inherit_id="account.report_invoice_document" priority="50">
|
|
<xpath expr="//table[@name='invoice_line_table']" position="before">
|
|
<style>
|
|
.border-solid-black td {
|
|
border-top: 1px solid black !important;
|
|
border-bottom: none !important;
|
|
}
|
|
thead th {
|
|
color: #5c516e;
|
|
}
|
|
</style>
|
|
</xpath>
|
|
<xpath expr="//span[@t-esc='current_subtotal']/../.." position="attributes">
|
|
<attribute name="class" separator=" " add="border-solid-black"/>
|
|
</xpath>
|
|
</data>
|
|
|
|
```
|
|
Source: [snippets/account.report_invoice_document.format_table_border.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/account.report_invoice_document.format_table_border.xml)
|
|
|
|
### Format Title
|
|
|
|
ID: `mint_system.account.report_invoice_document.format_title`
|
|
|
|
```xml
|
|
<data inherit_id="account.report_invoice_document" priority="50">
|
|
<xpath expr="//h2" position="attributes">
|
|
<attribute name="style">color: black; font-size:13pt; font-weight:bold; margin-top:10mm; margin-bottom:3mm</attribute>
|
|
</xpath>
|
|
</data>
|
|
|
|
```
|
|
Source: [snippets/account.report_invoice_document.format_title.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/account.report_invoice_document.format_title.xml)
|
|
|
|
### Format Units
|
|
|
|
ID: `mint_system.account.report_invoice_document.format_units`
|
|
|
|
```xml
|
|
<data inherit_id="account.report_invoice_document" priority="50">
|
|
<xpath expr="//t[@name='account_invoice_line_accountable']/td[2]" position="attributes">
|
|
<attribute name="class">text-nowrap text-end</attribute>
|
|
</xpath>
|
|
</data>
|
|
|
|
```
|
|
Source: [snippets/account.report_invoice_document.format_units.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/account.report_invoice_document.format_units.xml)
|
|
|
|
### Get Position
|
|
|
|
ID: `mint_system.account.report_invoice_document.get_position`
|
|
|
|
```xml
|
|
<data inherit_id="account.report_invoice_document" priority="51">
|
|
|
|
<xpath expr="//table[@name='invoice_line_table']//th[1]" position="before">
|
|
<t t-if="o.invoice_line_ids.sale_line_ids or o.invoice_line_ids.purchase_line_id">
|
|
<th id="position">
|
|
<span>Pos</span>
|
|
</th>
|
|
</t>
|
|
</xpath>
|
|
|
|
<xpath expr="//table[@name='invoice_line_table']//t[1]/td[1]" position="before">
|
|
<td id="position">
|
|
<span t-esc="line.position"/>
|
|
</td>
|
|
</xpath>
|
|
|
|
</data>
|
|
```
|
|
Source: [snippets/account.report_invoice_document.get_position.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/account.report_invoice_document.get_position.xml)
|
|
|
|
### Get Position2
|
|
|
|
ID: `mint_system.account.report_invoice_document.get_position2`
|
|
|
|
```xml
|
|
<data inherit_id="account.report_invoice_document" priority="51">
|
|
<xpath expr="//table[@name='invoice_line_table']//th[1]" position="before">
|
|
|
|
<th id="position" class="text-start">
|
|
<span>Pos.</span>
|
|
</th>
|
|
</xpath>
|
|
<xpath expr="//table[@name='invoice_line_table']//t[1]/td[1]" position="before">
|
|
|
|
<td id="position">
|
|
<span t-esc="line.position"/>
|
|
</td>
|
|
</xpath>
|
|
</data>
|
|
```
|
|
Source: [snippets/account.report_invoice_document.get_position2.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/account.report_invoice_document.get_position2.xml)
|
|
|
|
### Group By Pickings
|
|
|
|
ID: `mint_system.account.report_invoice_document.group_by_pickings`
|
|
|
|
```xml
|
|
<data inherit_id="account.report_invoice_document" priority="50">
|
|
<xpath expr="//h2" position="before">
|
|
<!-- Get all pickings without duplicates -->
|
|
<t t-set="pickings" t-value="list(set(o.invoice_line_ids.picking_ids.filtered(lambda p: p.state != 'cancel')))"/>
|
|
<!--<t t-set="pickings" t-value="list(set(o.invoice_line_ids.picking_ids))"/>-->
|
|
<t t-set="pickings" t-value="sorted(pickings, key=lambda p: p.scheduled_date)"/>
|
|
<!-- Store if has pickings -->
|
|
<t t-set="has_pickings" t-value="len(pickings) > 0"/>
|
|
<!-- Store if has multiple pickings -->
|
|
<t t-set="has_multiple_pickings" t-value="len(pickings) > 1"/>
|
|
<!-- Store if has lines without pickings -->
|
|
<t t-set="has_lines_without_pickings" t-value="len(o.invoice_line_ids.filtered(lambda l: not l.picking_ids)) > 0"/>
|
|
</xpath>
|
|
<xpath expr="//h2/span[1]" position="replace">
|
|
<span t-if="o.move_type == 'out_invoice' and o.state == 'posted' and not has_multiple_pickings">Rechnung</span>
|
|
<span t-if="o.move_type == 'out_invoice' and o.state == 'posted' and has_multiple_pickings">Sammelrechnung</span>
|
|
</xpath>
|
|
<xpath expr="//t[@t-foreach='lines']" position="replace">
|
|
<!-- Add empty picking if there are lines without pickings -->
|
|
<t t-if="not has_pickings or has_lines_without_pickings">
|
|
<t t-set="null" t-value="pickings.append(False)"/>
|
|
</t>
|
|
<!--<p t-esc="pickings"/>-->
|
|
<!-- <p t-esc="has_pickings"/> -->
|
|
<!-- <p t-esc="has_multiple_pickings"/> -->
|
|
<!-- <p t-esc="has_lines_without_pickings"/> -->
|
|
<t t-foreach="pickings" t-as="picking">
|
|
<tr t-if="has_pickings and picking" class="o_line_note">
|
|
<td colspan="99" style="padding-top: 1rem;">
|
|
<strong>
|
|
<span>Lieferung </span>
|
|
<span t-esc="picking.name.replace('WH/OUT/','')"/>
|
|
</strong>
|
|
<!--<strong><span>Lieferung </span><span t-esc="picking.name.replace('WH/OUT/','')"/><span> / Bestellung </span><span t-esc="picking.group_id.name"/></strong>-->
|
|
<span> vom </span>
|
|
<span t-esc="picking.scheduled_date" t-options="{'widget': 'date'}"/>
|
|
<span>:</span>
|
|
</td>
|
|
</tr>
|
|
<tr t-if="not picking" class="o_line_note">
|
|
<td colspan="99" style="padding-top: 1rem;">
|
|
<strong>
|
|
<span>Weitere Positionen: </span>
|
|
</strong>
|
|
</td>
|
|
</tr>
|
|
<t t-foreach="lines" t-as="line">
|
|
<!-- Show line if picking is set and linked or not picking is set and line is unlinked -->
|
|
<t t-if="(picking and picking in line.picking_ids) or (not line.picking_ids and not picking)">
|
|
<t t-set="current_subtotal" t-value="current_subtotal + line.price_subtotal" groups="account.group_show_line_subtotals_tax_excluded"/>
|
|
<t t-set="current_subtotal" t-value="current_subtotal + line.price_total" groups="account.group_show_line_subtotals_tax_included"/>
|
|
<tr t-att-class="'bg-200 font-weight-bold o_line_section' if line.display_type == 'line_section' else 'font-italic o_line_note' if line.display_type == 'line_note' else ''">
|
|
<t t-if="not line.display_type" name="account_invoice_line_accountable">
|
|
<td name="account_invoice_line_name">
|
|
<span t-field="line.name" t-options="{'widget': 'text'}"/>
|
|
</td>
|
|
<td class="text-right">
|
|
<span t-field="line.quantity"/>
|
|
<span t-field="line.product_uom_id" groups="uom.group_uom"/>
|
|
</td>
|
|
<td t-attf-class="text-right {{ 'd-none d-md-table-cell' if report_type == 'html' else '' }}">
|
|
<span class="text-nowrap" t-field="line.price_unit"/>
|
|
</td>
|
|
<td t-if="display_discount" t-attf-class="text-right {{ 'd-none d-md-table-cell' if report_type == 'html' else '' }}">
|
|
<span class="text-nowrap" t-field="line.discount"/>
|
|
</td>
|
|
<td t-attf-class="text-left {{ 'd-none d-md-table-cell' if report_type == 'html' else '' }}">
|
|
<span t-esc="', '.join(map(lambda x: (x.description or x.name), line.tax_ids))" id="line_tax_ids"/>
|
|
</td>
|
|
<td class="text-right o_price_total">
|
|
<span class="text-nowrap" t-field="line.price_subtotal" groups="account.group_show_line_subtotals_tax_excluded"/>
|
|
<span class="text-nowrap" t-field="line.price_total" groups="account.group_show_line_subtotals_tax_included"/>
|
|
</td>
|
|
</t>
|
|
<t t-if="line.display_type == 'line_section'">
|
|
<td colspan="99">
|
|
<span t-field="line.name" t-options="{'widget': 'text'}"/>
|
|
</td>
|
|
<t t-set="current_section" t-value="line"/>
|
|
<t t-set="current_subtotal" t-value="0"/>
|
|
</t>
|
|
<t t-if="line.display_type == 'line_note'">
|
|
<td colspan="99">
|
|
<span t-field="line.name" t-options="{'widget': 'text'}"/>
|
|
</td>
|
|
</t>
|
|
</tr>
|
|
<t t-if="current_section and (line_last or lines[line_index+1].display_type == 'line_section')">
|
|
<tr class="is-subtotal text-right">
|
|
<td colspan="99">
|
|
<strong class="mr16">Subtotal</strong>
|
|
<span t-esc="current_subtotal" t-options="{"widget": "monetary", "display_currency": o.currency_id}"/>
|
|
</td>
|
|
</tr>
|
|
</t>
|
|
</t>
|
|
</t>
|
|
<tr t-if="picking and picking.sale_id.note" class="o_line_note">
|
|
<td colspan="99" style="padding-bottom: 1rem;">
|
|
<span t-esc="picking.sale_id.note"/>
|
|
</td>
|
|
</tr>
|
|
</t>
|
|
</xpath>
|
|
</data>
|
|
|
|
```
|
|
Source: [snippets/account.report_invoice_document.group_by_pickings.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/account.report_invoice_document.group_by_pickings.xml)
|
|
|
|
### Group By Product
|
|
|
|
ID: `mint_system.account.report_invoice_document.group_by_product`
|
|
|
|
```xml
|
|
<data inherit_id="account.report_invoice_document" priority="50">
|
|
<xpath expr="//tbody" position="replace">
|
|
<tbody class="invoice_tbody">
|
|
<t t-set="current_subtotal" t-value="0"/>
|
|
<t t-set="lines" t-value="o.invoice_line_ids.sorted(key=lambda l: (-l.sequence, l.date, l.move_name, -l.id), reverse=True)"/>
|
|
<t t-set="consolidated_products" t-value="{}"/>
|
|
<t t-foreach="lines" t-as="line">
|
|
<t t-set="current_subtotal" t-value="current_subtotal + line.price_subtotal" groups="account.group_show_line_subtotals_tax_excluded"/>
|
|
<t t-set="current_subtotal" t-value="current_subtotal + line.price_total" groups="account.group_show_line_subtotals_tax_included"/>
|
|
<t t-set="product_name" t-value="line.product_id.display_name"/>
|
|
<t t-set="line_quantity" t-value="line.quantity"/>
|
|
<t t-set="line_price_unit" t-value="line.price_unit"/>
|
|
<t t-set="line_discount" t-value="line.discount"/>
|
|
<t t-set="line_subtotal" t-value="line.price_subtotal"/>
|
|
<t t-set="line_price_total" t-value="line.price_total"/>
|
|
<t t-set="consolidated_product" t-value="consolidated_products.get(product_name, {'quantity': 0, 'price_unit': 0, 'discount': 0, 'subtotal': 0, 'price_total': 0})"/>
|
|
<t t-set="consolidated_products" t-value="consolidated_products | dict({product_name: {'quantity': consolidated_product['quantity'] + line_quantity, 'price_unit': consolidated_product['price_unit'] + line_price_unit, 'discount': consolidated_product['discount'] + line_discount, 'subtotal': consolidated_product['subtotal'] + line_subtotal, 'price_total': consolidated_product['price_total'] + line_price_total}})"/>
|
|
</t>
|
|
<tr t-att-class="'bg-200 fw-bold o_line_section' if line.display_type == 'line_section' else 'fst-italic o_line_note' if line.display_type == 'line_note' else ''">
|
|
<t t-if="line.display_type == 'product'" name="account_invoice_line_accountable">
|
|
<t t-foreach="consolidated_products.items()" t-as="product_data">
|
|
<tr>
|
|
<td name="account_invoice_line_name">
|
|
<span t-esc="product_data[0]" t-options="{'widget': 'text'}"/>
|
|
</td>
|
|
<td class="text-end">
|
|
<span t-esc="product_data[1]['quantity']" t-options="{'widget': 'float', 'precision': 2}"/>
|
|
<span t-field="line.product_uom_id" groups="uom.group_uom"/>
|
|
</td>
|
|
<td t-attf-class="text-end {{ 'd-none d-md-table-cell' if report_type == 'html' else '' }}">
|
|
<t t-set="unit_price" t-value="product_data[1]['subtotal'] / product_data[1]['quantity'] "/>
|
|
<span class="text-nowrap" t-esc="unit_price" t-options="{'widget': 'float', 'precision': 3}"/>
|
|
</td>
|
|
<td t-if="display_discount" t-attf-class="text-end {{ 'd-none d-md-table-cell' if report_type == 'html' else '' }}">
|
|
<span class="text-nowrap" t-esc="product_data[1]['discount']"/>
|
|
</td>
|
|
<td t-attf-class="text-start {{ 'd-none d-md-table-cell' if report_type == 'html' else '' }}">
|
|
<span t-esc="', '.join(map(lambda x: (x.description or x.name), line.tax_ids))" id="line_tax_ids"/>
|
|
</td>
|
|
<td class="text-end o_price_total">
|
|
<span class="text-nowrap" t-esc="product_data[1]['subtotal']" groups="account.group_show_line_subtotals_tax_excluded" t-options="{'widget': 'monetary', 'display_currency': o.currency_id}"/>
|
|
<span class="text-nowrap" t-esc="product_data[1]['price_total']" groups="account.group_show_line_subtotals_tax_included"/>
|
|
</td>
|
|
</tr>
|
|
</t>
|
|
</t>
|
|
</tr>
|
|
</tbody>
|
|
</xpath>
|
|
</data>
|
|
|
|
```
|
|
Source: [snippets/account.report_invoice_document.group_by_product.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/account.report_invoice_document.group_by_product.xml)
|
|
|
|
### Group By Sale Order
|
|
|
|
ID: `mint_system.account.report_invoice_document.group_by_sale_order`
|
|
|
|
```xml
|
|
<data inherit_id="account.report_invoice_document" priority="50">
|
|
<xpath expr="//h2" position="before">
|
|
<!-- Get all sale orders without duplicates -->
|
|
<t t-set="sale_orders" t-value="list(set([line.order_id for line in o.invoice_line_ids.sale_line_ids]))"/>
|
|
<!-- Store if has sale orders -->
|
|
<t t-set="has_sale_orders" t-value="len(sale_orders) > 0"/>
|
|
<!-- Store if has multiple sale orders -->
|
|
<t t-set="has_multiple_sale_orders" t-value="len(sale_orders) > 1"/>
|
|
<!-- Store if has lines without sale orders -->
|
|
<t t-set="has_lines_without_sale_orders" t-value="len(o.invoice_line_ids.filtered(lambda l: not l.sale_line_ids)) > 0"/>
|
|
</xpath>
|
|
|
|
<xpath expr="//h2/span[3]" position="replace">
|
|
<span t-if="o.move_type == 'out_invoice' and o.state == 'posted' and not has_multiple_sale_orders">Rechnung</span>
|
|
<span t-if="o.move_type == 'out_invoice' and o.state == 'posted' and has_multiple_sale_orders">Sammelrechnung</span>
|
|
</xpath>
|
|
|
|
<xpath expr="//t[@t-foreach='lines']" position="replace">
|
|
<!-- Add empty sale order if there are lines without sale orders -->
|
|
<t t-if="not has_sale_orders or has_lines_without_sale_orders">
|
|
<t t-set="null" t-value="sale_orders.append(False)"/>
|
|
</t>
|
|
<!-- <p t-esc="sale_orders"/> -->
|
|
<!-- <p t-esc="has_sale_orders"/> -->
|
|
<!-- <p t-esc="has_multiple_sale_orders"/> -->
|
|
<!-- <p t-esc="has_lines_without_sale_orders"/> -->
|
|
<t t-foreach="sale_orders" t-as="sale_order">
|
|
<tr t-if="has_sale_orders and sale_order" class="o_line_note">
|
|
<td colspan="99" style="padding-top: 1rem;">
|
|
<strong>
|
|
<span>Verkaufsauftrag </span>
|
|
<span t-esc="sale_order.name"/>
|
|
<span t-if="sale_order.client_order_ref">/</span>
|
|
<span t-if="sale_order.client_order_ref" t-esc="sale_order.client_order_ref"/>
|
|
<span> vom </span>
|
|
<span t-esc="sale_order.date_order" t-options="{'widget': 'date'}"/>
|
|
<span>:</span>
|
|
</strong>
|
|
</td>
|
|
</tr>
|
|
<tr t-if="not sale_order" class="o_line_note">
|
|
<td colspan="99" style="padding-top: 1rem;">
|
|
<strong>
|
|
<span>Weitere Positionen: </span>
|
|
</strong>
|
|
</td>
|
|
</tr>
|
|
|
|
<t t-foreach="lines" t-as="line">
|
|
<!-- Show line if sale order is set and linked or not sale order is set and line is unlinked -->
|
|
|
|
<t t-if="(sale_order and sale_order in line.sale_line_ids.order_id) or (not line.sale_line_ids and not sale_order)">
|
|
<t t-set="current_subtotal" t-value="current_subtotal + line.price_subtotal" groups="account.group_show_line_subtotals_tax_excluded"/>
|
|
<t t-set="current_subtotal" t-value="current_subtotal + line.price_total" groups="account.group_show_line_subtotals_tax_included"/>
|
|
<tr t-att-class="'bg-200 font-weight-bold o_line_section' if line.display_type == 'line_section' else 'font-italic o_line_note' if line.display_type == 'line_note' else ''">
|
|
|
|
<t t-if="line.display_type == 'product'" name="account_invoice_line_accountable">
|
|
<td id="position">
|
|
<span t-field="line.position"/>
|
|
</td>
|
|
<td name="account_invoice_line_name">
|
|
<span t-field="line.name" t-options="{'widget': 'text'}"/>
|
|
<t t-if="line.product_id.country_of_origin.code">
|
|
<br/>
|
|
<span>Country of Origin: </span>
|
|
<span t-field="line.product_id.country_of_origin.code"/>
|
|
</t>
|
|
<t t-if="line.product_id.hs_code">
|
|
<br/>
|
|
<span>HS Code: </span>
|
|
<span t-field="line.product_id.hs_code"/>
|
|
</t>
|
|
<t t-if="line.product_id.weight">
|
|
<br/>
|
|
<span>Weight: <span t-field="line.product_id.weight"/>
|
|
</span>
|
|
<span t-field="line.product_id.weight_uom_id.display_name"/>
|
|
</t>
|
|
</td>
|
|
<td class="text-end">
|
|
<t t-if="line.product_uom_id.id == 1">
|
|
<span id="product_qty" t-field="line.quantity" t-options="{'widget': 'integer'}"/>
|
|
</t>
|
|
<t t-else="">
|
|
<span id="product_qty" t-field="line.quantity"/>
|
|
</t>
|
|
<span t-field="line.product_uom_id" groups="uom.group_uom"/>
|
|
</td>
|
|
<td t-attf-class="text-end {{ 'd-none d-md-table-cell' if report_type == 'html' else '' }}">
|
|
<span class="text-nowrap" t-field="line.price_unit"/>
|
|
</td>
|
|
<td t-if="display_discount" t-attf-class="text-right {{ 'd-none d-md-table-cell' if report_type == 'html' else '' }}">
|
|
<span class="text-nowrap" t-field="line.discount"/>
|
|
</td>
|
|
<td t-attf-class="text-left {{ 'd-none d-md-table-cell' if report_type == 'html' else '' }}">
|
|
<span t-esc="', '.join(map(lambda x: (x.description or x.name), line.tax_ids))" id="line_tax_ids"/>
|
|
</td>
|
|
<td class="text-end o_price_total">
|
|
<span class="text-nowrap" t-field="line.price_subtotal"/>
|
|
</td>
|
|
</t>
|
|
<t t-if="line.display_type == 'line_section'">
|
|
<td colspan="99">
|
|
<span t-field="line.name" t-options="{'widget': 'text'}"/>
|
|
</td>
|
|
<t t-set="current_section" t-value="line"/>
|
|
<t t-set="current_subtotal" t-value="0"/>
|
|
</t>
|
|
<t t-if="line.display_type == 'line_note'">
|
|
<td colspan="99">
|
|
<span t-field="line.name" t-options="{'widget': 'text'}"/>
|
|
</td>
|
|
</t>
|
|
</tr>
|
|
<t t-if="current_section and (line_last or lines[line_index+1].display_type == 'line_section')">
|
|
<tr class="is-subtotal text-end">
|
|
<td colspan="99">
|
|
<strong class="mr16">Subtotal</strong>
|
|
<span t-esc="current_subtotal" t-options="{"widget": "monetary", "display_currency": o.currency_id}"/>
|
|
</td>
|
|
</tr>
|
|
</t>
|
|
</t>
|
|
</t>
|
|
</t>
|
|
</xpath>
|
|
</data>
|
|
```
|
|
Source: [snippets/account.report_invoice_document.group_by_sale_order.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/account.report_invoice_document.group_by_sale_order.xml)
|
|
|
|
### Group By Sale Order2
|
|
|
|
ID: `mint_system.account.report_invoice_document.group_by_sale_order2`
|
|
|
|
```xml
|
|
<data inherit_id="account.report_invoice_document" priority="50">
|
|
|
|
<xpath expr="//table[@name='invoice_line_table']//th[1]" position="before">
|
|
<t t-if="o.invoice_line_ids.sale_line_ids or o.invoice_line_ids.purchase_line_id">
|
|
<th id="position" class="text-start">
|
|
<span>Pos</span>
|
|
</th>
|
|
</t>
|
|
</xpath>
|
|
|
|
<xpath expr="//h2" position="before">
|
|
<!-- Get all sale orders without duplicates -->
|
|
<t t-set="sale_orders" t-value="list(set([line.order_id for line in o.invoice_line_ids.sale_line_ids]))"/>
|
|
<!-- Store if has sale orders -->
|
|
<t t-set="has_sale_orders" t-value="len(sale_orders) > 0"/>
|
|
<!-- Store if has multiple sale orders -->
|
|
<t t-set="has_multiple_sale_orders" t-value="len(sale_orders) > 1"/>
|
|
<!-- Store if has lines without sale orders -->
|
|
<t t-set="has_lines_without_sale_orders" t-value="len(o.invoice_line_ids.filtered(lambda l: not l.sale_line_ids)) > 0"/>
|
|
</xpath>
|
|
|
|
<xpath expr="//h2/span[3]" position="replace">
|
|
<span t-if="o.move_type == 'out_invoice' and o.state == 'posted' and not has_multiple_sale_orders">Rechnung</span>
|
|
<span t-if="o.move_type == 'out_invoice' and o.state == 'posted' and has_multiple_sale_orders">Sammelrechnung</span>
|
|
</xpath>
|
|
|
|
<xpath expr="//t[@t-foreach='lines']" position="replace">
|
|
<!-- Add empty sale order if there are lines without sale orders -->
|
|
<t t-if="not has_sale_orders or has_lines_without_sale_orders">
|
|
<t t-set="null" t-value="sale_orders.append(False)"/>
|
|
</t>
|
|
<!-- <p t-esc="sale_orders"/> -->
|
|
<!-- <p t-esc="has_sale_orders"/> -->
|
|
<!-- <p t-esc="has_multiple_sale_orders"/> -->
|
|
<!-- <p t-esc="has_lines_without_sale_orders"/> -->
|
|
<t t-foreach="sale_orders" t-as="sale_order">
|
|
<tr t-if="has_sale_orders and sale_order" class="o_line_note">
|
|
<td colspan="99" style="padding-top: 1rem;">
|
|
<strong>
|
|
<span>Verkaufsauftrag </span>
|
|
<span t-esc="sale_order.name"/>
|
|
<span t-if="sale_order.client_order_ref">/</span>
|
|
<span t-if="sale_order.client_order_ref" t-esc="sale_order.client_order_ref"/>
|
|
<span> vom </span>
|
|
<span t-esc="sale_order.date_order" t-options="{'widget': 'date'}"/>
|
|
<span>:</span>
|
|
</strong>
|
|
</td>
|
|
</tr>
|
|
<tr t-if="not sale_order" class="o_line_note">
|
|
<td colspan="99" style="padding-top: 1rem;">
|
|
<strong>
|
|
<span>Weitere Positionen: </span>
|
|
</strong>
|
|
</td>
|
|
</tr>
|
|
|
|
<t t-foreach="lines" t-as="line">
|
|
<!-- Show line if sale order is set and linked or not sale order is set and line is unlinked -->
|
|
|
|
<t t-if="(sale_order and sale_order in line.sale_line_ids.order_id) or (not line.sale_line_ids and not sale_order)">
|
|
<t t-set="current_subtotal" t-value="current_subtotal + line.price_subtotal" groups="account.group_show_line_subtotals_tax_excluded"/>
|
|
<t t-set="current_subtotal" t-value="current_subtotal + line.price_total" groups="account.group_show_line_subtotals_tax_included"/>
|
|
<tr t-att-class="'bg-200 font-weight-bold o_line_section' if line.display_type == 'line_section' else 'font-italic o_line_note' if line.display_type == 'line_note' else ''">
|
|
|
|
<t t-if="line.display_type == 'product'" name="account_invoice_line_accountable">
|
|
<td id="position">
|
|
<span t-field="line.position"/>
|
|
</td>
|
|
<td name="account_invoice_line_name">
|
|
<span t-field="line.name" t-options="{'widget': 'text'}"/>
|
|
<t t-if="line.product_id.country_of_origin.code">
|
|
<br/>
|
|
<span>Country of Origin: </span>
|
|
<span t-field="line.product_id.country_of_origin.code"/>
|
|
</t>
|
|
<t t-if="line.product_id.hs_code">
|
|
<br/>
|
|
<span>HS Code: </span>
|
|
<span t-field="line.product_id.hs_code"/>
|
|
</t>
|
|
<t t-if="line.product_id.weight">
|
|
<br/>
|
|
<span>Weight: <span t-field="line.product_id.weight"/>
|
|
</span>
|
|
<span t-field="line.product_id.weight_uom_id.display_name"/>
|
|
</t>
|
|
</td>
|
|
<td class="text-end">
|
|
<t t-if="line.product_uom_id.id == 1">
|
|
<span id="product_qty" t-field="line.quantity" t-options="{'widget': 'integer'}"/>
|
|
</t>
|
|
<t t-else="">
|
|
<span id="product_qty" t-field="line.quantity"/>
|
|
</t>
|
|
<span t-field="line.product_uom_id" groups="uom.group_uom"/>
|
|
</td>
|
|
<td t-attf-class="text-end {{ 'd-none d-md-table-cell' if report_type == 'html' else '' }}">
|
|
<span class="text-nowrap" t-field="line.price_unit"/>
|
|
</td>
|
|
<td t-if="display_discount" t-attf-class="text-right {{ 'd-none d-md-table-cell' if report_type == 'html' else '' }}">
|
|
<span class="text-nowrap" t-field="line.discount"/>
|
|
</td>
|
|
<td t-attf-class="text-left {{ 'd-none d-md-table-cell' if report_type == 'html' else '' }}">
|
|
<span t-esc="', '.join(map(lambda x: (x.description or x.name), line.tax_ids))" id="line_tax_ids"/>
|
|
</td>
|
|
<td class="text-end o_price_total">
|
|
<span class="text-nowrap" t-field="line.price_subtotal"/>
|
|
</td>
|
|
</t>
|
|
<t t-if="line.display_type == 'line_section'">
|
|
<td colspan="99">
|
|
<span t-field="line.name" t-options="{'widget': 'text'}"/>
|
|
</td>
|
|
<t t-set="current_section" t-value="line"/>
|
|
<t t-set="current_subtotal" t-value="0"/>
|
|
</t>
|
|
<t t-if="line.display_type == 'line_note'">
|
|
<td colspan="99">
|
|
<span t-field="line.name" t-options="{'widget': 'text'}"/>
|
|
</td>
|
|
</t>
|
|
</tr>
|
|
<t t-if="current_section and (line_last or lines[line_index+1].display_type == 'line_section')">
|
|
<tr class="is-subtotal text-end">
|
|
<td colspan="99">
|
|
<strong class="mr16">Subtotal</strong>
|
|
<span t-esc="current_subtotal" t-options="{"widget": "monetary", "display_currency": o.currency_id}"/>
|
|
</td>
|
|
</tr>
|
|
</t>
|
|
</t>
|
|
</t>
|
|
</t>
|
|
</xpath>
|
|
</data>
|
|
```
|
|
Source: [snippets/account.report_invoice_document.group_by_sale_order2.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/account.report_invoice_document.group_by_sale_order2.xml)
|
|
|
|
### Hide Delivery Date
|
|
|
|
ID: `mint_system.account.report_invoice_document.hide_delivery_date`
|
|
|
|
```xml
|
|
<data inherit_id="account.report_invoice_document" priority="50">
|
|
<xpath expr="//div[@name='delivery_date']" position="replace"/>
|
|
</data>
|
|
|
|
```
|
|
Source: [snippets/account.report_invoice_document.hide_delivery_date.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/account.report_invoice_document.hide_delivery_date.xml)
|
|
|
|
### Hide Incoterm
|
|
|
|
ID: `mint_system.account.report_invoice_document.hide_incoterm`
|
|
|
|
```xml
|
|
<data inherit_id="account.report_invoice_document" priority="50">
|
|
<xpath expr="//p[@name='incoterm']" position="replace"/>
|
|
</data>
|
|
|
|
```
|
|
Source: [snippets/account.report_invoice_document.hide_incoterm.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/account.report_invoice_document.hide_incoterm.xml)
|
|
|
|
### Hide Partner Id Ref
|
|
|
|
ID: `mint_system.account.report_invoice_document.hide_partner_id_ref`
|
|
|
|
```xml
|
|
<data inherit_id="account.report_invoice_document" priority="50">
|
|
<xpath expr="//span[@t-field='o.partner_id.ref']/.." position="replace"/>
|
|
</data>
|
|
|
|
```
|
|
Source: [snippets/account.report_invoice_document.hide_partner_id_ref.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/account.report_invoice_document.hide_partner_id_ref.xml)
|
|
|
|
### Hide Payment Term
|
|
|
|
ID: `mint_system.account.report_invoice_document.hide_payment_term`
|
|
|
|
```xml
|
|
<data inherit_id="account.report_invoice_document" priority="50">
|
|
<xpath expr="//p[@name='payment_term']" position="replace"/>
|
|
</data>
|
|
```
|
|
Source: [snippets/account.report_invoice_document.hide_payment_term.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/account.report_invoice_document.hide_payment_term.xml)
|
|
|
|
### Hide Payment Term2
|
|
|
|
ID: `mint_system.account.report_invoice_document.hide_payment_term2`
|
|
|
|
```xml
|
|
<data inherit_id="account.report_invoice_document" priority="50">
|
|
<xpath expr="//span[@id='payment_terms_note_id']" position="replace"/>
|
|
</data>
|
|
```
|
|
Source: [snippets/account.report_invoice_document.hide_payment_term2.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/account.report_invoice_document.hide_payment_term2.xml)
|
|
|
|
### Hide Totals Company Currency
|
|
|
|
ID: `mint_system.account.report_invoice_document.hide_totals_company_currency`
|
|
|
|
```xml
|
|
<data inherit_id="account.report_invoice_document" priority="50">
|
|
<xpath expr="//t[@t-call='account.document_tax_totals_company_currency_template']" position="replace"/>
|
|
</data>
|
|
|
|
```
|
|
Source: [snippets/account.report_invoice_document.hide_totals_company_currency.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/account.report_invoice_document.hide_totals_company_currency.xml)
|
|
|
|
### Hide Vat
|
|
|
|
ID: `mint_system.account.report_invoice_document.hide_vat`
|
|
|
|
```xml
|
|
<data inherit_id="account.report_invoice_document" priority="50">
|
|
|
|
<xpath expr="//div[@id='partner_vat_address_not_same_as_shipping']" position="replace"/>
|
|
<xpath expr="//div[@id='partner_vat_address_same_as_shipping']" position="replace"/>
|
|
|
|
</data>
|
|
|
|
```
|
|
Source: [snippets/account.report_invoice_document.hide_vat.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/account.report_invoice_document.hide_vat.xml)
|
|
|
|
### Margin After Title
|
|
|
|
ID: `mint_system.account.report_invoice_document.margin_after_title`
|
|
|
|
```xml
|
|
<data inherit_id="account.report_invoice_document" priority="50">
|
|
<xpath expr="//h2" position="attributes">
|
|
<attribute name="style" separator=";" add="margin-bottom: 1rem"/>
|
|
</xpath>
|
|
</data>
|
|
|
|
```
|
|
Source: [snippets/account.report_invoice_document.margin_after_title.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/account.report_invoice_document.margin_after_title.xml)
|
|
|
|
### Margin Before Invoice Table
|
|
|
|
ID: `mint_system.account.report_invoice_document.margin_before_invoice_table`
|
|
|
|
```xml
|
|
<data inherit_id="account.report_invoice_document" priority="50">
|
|
<table name="invoice_line_table" position="attributes">
|
|
<attribute name="style" separator=";" add="margin-top: 1rem"/>
|
|
</table>
|
|
</data>
|
|
|
|
```
|
|
Source: [snippets/account.report_invoice_document.margin_before_invoice_table.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/account.report_invoice_document.margin_before_invoice_table.xml)
|
|
|
|
### Margin Before Title
|
|
|
|
ID: `mint_system.account.report_invoice_document.margin_before_title`
|
|
|
|
```xml
|
|
<data inherit_id="account.report_invoice_document" priority="50">
|
|
<xpath expr="//h2" position="attributes">
|
|
<attribute name="style" separator=";" add="margin-top: 1rem"/>
|
|
</xpath>
|
|
</data>
|
|
|
|
```
|
|
Source: [snippets/account.report_invoice_document.margin_before_title.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/account.report_invoice_document.margin_before_title.xml)
|
|
|
|
### Modify Main Table
|
|
|
|
ID: `mint_system.account.report_invoice_document.modify_main_table`
|
|
|
|
```xml
|
|
<data inherit_id="account.report_invoice_document" priority="50">
|
|
<!-- add default_code -->
|
|
<xpath expr="//table[@class='table table-sm o_main_table']/thead/tr/th[1]" position="before">
|
|
<th style="text-align: right; width: 27mm; padding-right: 10px">
|
|
<span>Part No.</span>
|
|
</th>
|
|
</xpath>
|
|
<xpath expr="//table[@class='table table-sm o_main_table']/tbody/t/tr/t[1]/td[1]" position="before">
|
|
<td style="text-align: right; padding-right: 10px">
|
|
<span t-field="line.product_id.default_code"/>
|
|
</td>
|
|
</xpath>
|
|
<!-- Header desriptin -->
|
|
<xpath expr="//table[@class='table table-sm o_main_table']/thead/tr/th[2]" position="attributes">
|
|
<attribute name="style">width: 70mm</attribute>
|
|
</xpath>
|
|
<!-- add delivery date -->
|
|
<xpath expr="//table[@class='table table-sm o_main_table']/thead/tr/th[3]" position="before">
|
|
<th style="text-align: right; width: 27mm; padding-right: 10px">
|
|
<span/>
|
|
</th>
|
|
</xpath>
|
|
<xpath expr="//table[@class='table table-sm o_main_table']/tbody/t/tr/t[1]/td[3]" position="before">
|
|
<td style="text-align: right; padding-right: 10px"/>
|
|
</xpath>
|
|
<xpath expr="//td[@name='account_invoice_line_name']" position="replace">
|
|
<td>
|
|
<span style="font-weight: bold" t-field="line.product_id.type_description"/>
|
|
</td>
|
|
</xpath>
|
|
<!-- add second row -->
|
|
<xpath expr="//table[@class='table table-sm o_main_table']/tbody//tr[1]" position="after">
|
|
<tr>
|
|
<td style="padding-bottom :10px; padding-left:3px; line-height: 1.2"/>
|
|
<td style="padding:0; padding-left:3px; line-height: 1.2"/>
|
|
<td style="padding:0; padding-left:3px; line-height: 1.2" colspan="4">
|
|
<span t-field="line.sale_line_ids.name"/>
|
|
<br/>
|
|
<t t-if="line.product_id.country_of_origin_id.code and line.product_id.hs_code">
|
|
Country of origin:
|
|
<span t-esc="line.product_id.country_of_origin_id.code"/>
|
|
/ HS Code:
|
|
<span t-esc="line.product_id.hs_code"/>
|
|
<br/>
|
|
</t>
|
|
<t t-if="line.product_id.hs_code and not line.product_id.country_of_origin_id.code">
|
|
HS Code:
|
|
<span t-esc="line.product_id.hs_code"/>
|
|
</t>
|
|
<t t-if="line.product_id.country_of_origin_id.code and not line.product_id.hs_code">
|
|
Country of origin:
|
|
<span t-esc="line.product_id.country_of_origin_id.code"/>
|
|
</t>
|
|
</td>
|
|
<td/>
|
|
</tr>
|
|
<tr style="border-bottom: 1px solid rgb(220,220,220)">
|
|
<td colspan="8"/>
|
|
</tr>
|
|
</xpath>
|
|
<!-- format main_table -->
|
|
<xpath expr="//table[@class='table table-sm o_main_table']" position="attributes">
|
|
<attribute name="style">width: 100%; font-size:9pt</attribute>
|
|
<attribute name="class">table table-borderless table-sm</attribute>
|
|
</xpath>
|
|
<!-- header-->
|
|
<xpath expr="//table[@class='table table-borderless table-sm']/thead/tr" position="attributes">
|
|
<attribute name="style">border-top:solid 1px; border-bottom: solid 1px; color: black;</attribute>
|
|
</xpath>
|
|
<xpath expr="//table[@name='invoice_line_table']" position="after">
|
|
<table class="table table-borderless table-sm" 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">
|
|
<t t-if="o.note_footer != '<p><br></p>'">
|
|
<span class="note" t-field="o.note_footer"/>
|
|
</t>
|
|
<t t-foreach="o.amount_by_group" t-as="amount_by_group">
|
|
<tr>
|
|
<td style="width:15.5%; text-align:left">
|
|
<Strong>Warenwert</Strong>
|
|
</td>
|
|
<td style="width:23%; text-align:left">
|
|
<span t-field="o.amount_untaxed"/>
|
|
</td>
|
|
<td style="width:12%; text-align:left">
|
|
<span t-esc="amount_by_group[0]"/>
|
|
</td>
|
|
<td style="width:17%; text-align:left">
|
|
<span t-esc="amount_by_group[3]"/>
|
|
</td>
|
|
<td style="width:14%; text-align:right">
|
|
<Strong>Rechnungsbetrag</Strong>
|
|
</td>
|
|
<td style="width:18%; text-align:right">
|
|
<span t-field="o.amount_total"/>
|
|
</td>
|
|
</tr>
|
|
</t>
|
|
</table>
|
|
</xpath>
|
|
</data>
|
|
|
|
```
|
|
Source: [snippets/account.report_invoice_document.modify_main_table.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/account.report_invoice_document.modify_main_table.xml)
|
|
|
|
### Move Incoterm
|
|
|
|
ID: `mint_system.account.report_invoice_document.move_incoterm`
|
|
|
|
```xml
|
|
<data inherit_id="account.report_invoice_document" priority="60">
|
|
|
|
<xpath expr="//p[@name='incoterm']" position="replace"/>
|
|
<xpath expr="//p[2]" position="after">
|
|
<p style="margin-bottom: 0;" t-if="o.invoice_incoterm_id" name="incoterm">Incoterm:
|
|
<strong t-field="o.invoice_incoterm_id.display_name"/>
|
|
</p>
|
|
</xpath>
|
|
|
|
</data>
|
|
```
|
|
Source: [snippets/account.report_invoice_document.move_incoterm.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/account.report_invoice_document.move_incoterm.xml)
|
|
|
|
### Move Narration
|
|
|
|
ID: `mint_system.account.report_invoice_document.move_narration`
|
|
|
|
```xml
|
|
<data inherit_id="account.report_invoice_document" priority="50">
|
|
<xpath expr="//div[@name='comment']/.." position="after">
|
|
<xpath expr="//div/div[@name='comment']" position="move"/>
|
|
</xpath>
|
|
</data>
|
|
|
|
```
|
|
Source: [snippets/account.report_invoice_document.move_narration.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/account.report_invoice_document.move_narration.xml)
|
|
|
|
### Net Value Summary
|
|
|
|
ID: `mint_system.account.report_invoice_document.net_value_summary`
|
|
|
|
```xml
|
|
<data inherit_id="account.report_invoice_document" priority="50">
|
|
<xpath expr="//div[@id='total']//table/t[1]" position="before">
|
|
|
|
<t t-set="net_value_of_goods" t-value="sum(o.invoice_line_ids.filtered(lambda l: l.product_id.type == 'product').mapped('price_subtotal'))"/>
|
|
<t t-set="additional_expenses" t-value="sum(o.invoice_line_ids.filtered(lambda l: l.product_id.type != 'product').mapped('price_subtotal'))"/>
|
|
<tr>
|
|
<!-- de_CH: Nettowarenwert -->
|
|
<td>Net Value of Goods</td>
|
|
<td class="text-end">
|
|
<span t-esc="net_value_of_goods" t-options="{'widget': 'monetary', 'display_currency': o.currency_id}"/>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<!-- de_CH: Zusatzaufwendungen -->
|
|
<td>Additional Expenses</td>
|
|
<td class="text-end">
|
|
<span t-esc="additional_expenses" t-options="{'widget': 'monetary', 'display_currency': o.currency_id}"/>
|
|
</td>
|
|
</tr>
|
|
</xpath>
|
|
</data>
|
|
|
|
```
|
|
Source: [snippets/account.report_invoice_document.net_value_summary.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/account.report_invoice_document.net_value_summary.xml)
|
|
|
|
### Product Hs Code And Origin
|
|
|
|
ID: `mint_system.account.report_invoice_document.product_hs_code_and_origin`
|
|
|
|
```xml
|
|
<!-- Show custom field country of origin and hs code -->
|
|
<data inherit_id="account.report_invoice_document" priority="50">
|
|
<xpath expr="//span[@t-field='line.name']" position="after">
|
|
<t t-if="line.product_id.country_of_origin.code"><br/>
|
|
Country of Origin: <span t-field="line.product_id.country_of_origin.code"/>
|
|
</t>
|
|
<t t-if="line.product_id.hs_code"><br/>
|
|
HS Code: <span t-field="line.product_id.hs_code"/>
|
|
</t>
|
|
</xpath>
|
|
</data>
|
|
|
|
```
|
|
Source: [snippets/account.report_invoice_document.product_hs_code_and_origin.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/account.report_invoice_document.product_hs_code_and_origin.xml)
|
|
|
|
### Product Weight
|
|
|
|
ID: `mint_system.account.report_invoice_document.product_weight`
|
|
|
|
```xml
|
|
<data inherit_id="account.report_invoice_document" priority="50">
|
|
<xpath expr="//table/tbody/t[3]/tr/t[1]/td[1]/span" position="after">
|
|
<t t-if="line.product_id.weight"><br/>
|
|
Weight: <span t-field="line.product_id.weight"/>
|
|
<span t-field="line.product_id.weight_uom_id.display_name"/>
|
|
</t>
|
|
</xpath>
|
|
</data>
|
|
|
|
```
|
|
Source: [snippets/account.report_invoice_document.product_weight.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/account.report_invoice_document.product_weight.xml)
|
|
|
|
### Remove Incoterm
|
|
|
|
ID: `mint_system.account.report_invoice_document.remove_incoterm`
|
|
|
|
```xml
|
|
<data inherit_id="account.report_invoice_document" priority="50">
|
|
<xpath expr="//p[@name='incoterm']" position="replace">
|
|
</xpath>
|
|
</data>
|
|
|
|
```
|
|
Source: [snippets/account.report_invoice_document.remove_incoterm.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/account.report_invoice_document.remove_incoterm.xml)
|
|
|
|
### Remove Origin
|
|
|
|
ID: `mint_system.account.report_invoice_document.remove_origin`
|
|
|
|
```xml
|
|
<data inherit_id="account.report_invoice_document" priority="50">
|
|
<div name="origin" position="replace"/>
|
|
</data>
|
|
|
|
```
|
|
Source: [snippets/account.report_invoice_document.remove_origin.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/account.report_invoice_document.remove_origin.xml)
|
|
|
|
### Remove Payment Communication
|
|
|
|
ID: `mint_system.account.report_invoice_document.remove_payment_communication`
|
|
|
|
```xml
|
|
<data inherit_id="account.report_invoice_document" priority="50">
|
|
<xpath expr="//p[@name='payment_communication']" position="replace"/>
|
|
</data>
|
|
|
|
```
|
|
Source: [snippets/account.report_invoice_document.remove_payment_communication.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/account.report_invoice_document.remove_payment_communication.xml)
|
|
|
|
### Remove Payment Term
|
|
|
|
ID: `mint_system.account.report_invoice_document.remove_payment_term`
|
|
|
|
```xml
|
|
<data inherit_id="account.report_invoice_document" priority="50">
|
|
<p name="payment_term" position="replace"/>
|
|
</data>
|
|
|
|
```
|
|
Source: [snippets/account.report_invoice_document.remove_payment_term.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/account.report_invoice_document.remove_payment_term.xml)
|
|
|
|
### Remove Reference
|
|
|
|
ID: `mint_system.account.report_invoice_document.remove_reference`
|
|
|
|
```xml
|
|
<data inherit_id="account.report_invoice_document" priority="50">
|
|
<div name="reference" position="replace"/>
|
|
</data>
|
|
|
|
```
|
|
Source: [snippets/account.report_invoice_document.remove_reference.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/account.report_invoice_document.remove_reference.xml)
|
|
|
|
### Remove Shipping Address
|
|
|
|
ID: `mint_system.account.report_invoice_document.remove_shipping_address`
|
|
|
|
```xml
|
|
<data inherit_id="account.report_invoice_document" priority="50">
|
|
<xpath expr="//div[@t-field='o.partner_shipping_id']/.. " position="replace"/>
|
|
</data>
|
|
|
|
```
|
|
Source: [snippets/account.report_invoice_document.remove_shipping_address.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/account.report_invoice_document.remove_shipping_address.xml)
|
|
|
|
### Remove Summary Table
|
|
|
|
ID: `mint_system.account.report_invoice_document.remove_summary_table`
|
|
|
|
```xml
|
|
<data inherit_id="account.report_invoice_document" priority="50">
|
|
<xpath expr="//div[@class='clearfix']" position="replace">
|
|
</xpath>
|
|
</data>
|
|
|
|
```
|
|
Source: [snippets/account.report_invoice_document.remove_summary_table.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/account.report_invoice_document.remove_summary_table.xml)
|
|
|
|
### Remove Tax Currency
|
|
|
|
ID: `mint_system.account.report_invoice_document.remove_tax_currency`
|
|
|
|
```xml
|
|
<data inherit_id="account.report_invoice_document" priority="50">
|
|
<xpath expr="//t[@t-call='account.document_tax_totals_company_currency_template']"
|
|
position="replace"/>
|
|
</data>
|
|
|
|
```
|
|
Source: [snippets/account.report_invoice_document.remove_tax_currency.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/account.report_invoice_document.remove_tax_currency.xml)
|
|
|
|
### Remove Taxes
|
|
|
|
ID: `mint_system.account.report_invoice_document.remove_taxes`
|
|
|
|
```xml
|
|
<data inherit_id="account.report_invoice_document" priority="50">
|
|
<xpath expr="//th[@name='th_taxes']" position="replace"/>
|
|
<xpath expr="//span[@id='line_tax_ids']/.." position="replace"/>
|
|
</data>
|
|
|
|
```
|
|
Source: [snippets/account.report_invoice_document.remove_taxes.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/account.report_invoice_document.remove_taxes.xml)
|
|
|
|
### Remove Vat Id
|
|
|
|
ID: `mint_system.account.report_invoice_document.remove_vat_id`
|
|
|
|
```xml
|
|
<data inherit_id="account.report_invoice_document" priority="50">
|
|
<div id="partner_vat_address_same_as_shipping" position="replace"/>
|
|
<div id="partner_vat_address_not_same_as_shipping" position="replace"/>
|
|
</data>
|
|
|
|
```
|
|
Source: [snippets/account.report_invoice_document.remove_vat_id.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/account.report_invoice_document.remove_vat_id.xml)
|
|
|
|
### Replace Address
|
|
|
|
ID: `mint_system.account.report_invoice_document.replace_address`
|
|
|
|
```xml
|
|
<data inherit_id="account.report_invoice_document" priority="50">
|
|
<xpath expr="//t[@t-set='information_block']/.." position="replace">
|
|
<div class="col-6">
|
|
<t t-set="information_block">
|
|
<div groups="account.group_delivery_invoice_address" name="shipping_address_block">
|
|
<div style="font-weight: bold; font-size: 8pt; padding-bottom: 5px">Shipping Address:</div>
|
|
<div t-field="o.partner_shipping_id" t-options="{"widget": "contact", "fields": ["address", "name"], "no_marker": True}"/>
|
|
</div>
|
|
</t>
|
|
</div>
|
|
</xpath>
|
|
<xpath expr="//div[@name='address_not_same_as_shipping']" position="replace">
|
|
<div class="col-6" name="address_not_same_as_shipping">
|
|
<t t-set="address">
|
|
<address class="mb-0" t-field="o.partner_invoice_id" t-options="{"widget": "contact", "fields": ["address", "name"], "no_marker": True}"/>
|
|
</t>
|
|
</div>
|
|
</xpath>
|
|
<xpath expr="//div[@name='address_same_as_shipping']" position="replace">
|
|
<div class="offset-col-6 col-6" name="address_same_as_shipping">
|
|
<t t-set="address">
|
|
<address class="mb-0" t-field="o.partner_invoice_id" t-options="{"widget": "contact", "fields": ["address", "name"], "no_marker": True}"/>
|
|
</t>
|
|
</div>
|
|
</xpath>
|
|
</data>
|
|
|
|
```
|
|
Source: [snippets/account.report_invoice_document.replace_address.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/account.report_invoice_document.replace_address.xml)
|
|
|
|
### Replace Address And Information Block
|
|
|
|
ID: `mint_system.account.report_invoice_document.replace_address_and_information_block`
|
|
|
|
```xml
|
|
<data inherit_id="account.report_invoice_document" priority="50">
|
|
<xpath expr="//t[@t-set='address']" position="replace">
|
|
<div class="row text-900 o_bold">
|
|
<div class="col-7">Customer</div>
|
|
<div class="col-5">Invoice Address</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-7">
|
|
<span t-field="o.partner_id" t-options-widget=""contact"" t-options-fields="['name', 'address']" t-options-no_marker="True"/>
|
|
</div>
|
|
<div class="col-5">
|
|
<span t-field="o.partner_id" t-options-widget=""contact"" t-options-fields="['name', 'address']" t-options-no_marker="True"/>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-5 text-900 o_bold offset-7" style="margin-top:25px">Delivery Address</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-5 offset-7">
|
|
<span t-field="o.partner_shipping_id" t-options-widget=""contact"" t-options-fields="['name', 'address']" t-options-no_marker="True"/>
|
|
</div>
|
|
</div>
|
|
<div class="row o_bold text-900" style="margin-top:25px">
|
|
<div class="col-7">Your Contact</div>
|
|
<div class="col-5">Our Contact</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-7">
|
|
<span t-field="o.partner_id.name"/>
|
|
</div>
|
|
<div class="col-5">
|
|
<span t-field="o.user_id.name"/>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-7" style="margin-bottom:25px">
|
|
<span t-field="o.partner_id" t-options-widget=""contact"" t-options-fields="['phone', 'email']" t-options-no_marker="True"/>
|
|
</div>
|
|
<div class="col-5">
|
|
<span t-field="o.user_id" t-options-widget=""contact"" t-options-fields="['phone', 'email']" t-options-no_marker="True"/>
|
|
</div>
|
|
</div>
|
|
</xpath>
|
|
</data>
|
|
|
|
```
|
|
Source: [snippets/account.report_invoice_document.replace_address_and_information_block.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/account.report_invoice_document.replace_address_and_information_block.xml)
|
|
|
|
### Replace Footer
|
|
|
|
ID: `mint_system.account.report_invoice_document.replace_footer`
|
|
|
|
```xml
|
|
<data inherit_id="account.report_invoice_document" priority="50">
|
|
<xpath expr="//p[@name='payment_communication']" position="replace">
|
|
</xpath>
|
|
<p t-if="o.invoice_payment_term_id" name="payment_term">
|
|
<span t-field="o.invoice_payment_term_id.note"/>
|
|
</p>
|
|
<xpath expr="//p[@t-if='o.invoice_incoterm_id']" position="replace">
|
|
<style>
|
|
table#footer {
|
|
width: 100%;
|
|
font-size: 8pt;
|
|
}
|
|
table#footer tr, td {
|
|
vertical-align: top;
|
|
}
|
|
</style>
|
|
<table id="footer">
|
|
<tr>
|
|
<td t-if="o.invoice_payment_term_id" name="payment_term">
|
|
Zahlungsbedingungen: <span t-field="o.invoice_payment_term_id.note"/>
|
|
</td>
|
|
<td width="50%">
|
|
Lieferung gemäss unseren allgemeinen Lieferbedingungen
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>MWST-Nr:
|
|
<span t-field="o.company_id.vat"/>
|
|
</td>
|
|
<td>
|
|
<table width="100%">
|
|
<tr>
|
|
<td width="35%">
|
|
Bankverbindungen:
|
|
</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>
|
|
<xpath expr="//p[@name='payment_term']" position="replace">
|
|
</xpath>
|
|
</data>
|
|
|
|
```
|
|
Source: [snippets/account.report_invoice_document.replace_footer.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/account.report_invoice_document.replace_footer.xml)
|
|
|
|
### Replace Information Table
|
|
|
|
ID: `mint_system.account.report_invoice_document.replace_information_table`
|
|
|
|
```xml
|
|
<data inherit_id="account.report_invoice_document" priority="50">
|
|
<xpath expr="//*[@id='informations']" position="replace">
|
|
<style>
|
|
table#informations{
|
|
white-space: nowrap;
|
|
}
|
|
</style>
|
|
<table id="informations" class="table table-borderless table-sm">
|
|
<tr>
|
|
<td>
|
|
<strong>Rechnungsdatum: </strong>
|
|
<span t-field="o.invoice_date"/>
|
|
</td>
|
|
<td>
|
|
<strong>Kontakt Rechnung: </strong>
|
|
<t t-foreach="res_company.partner_id.child_ids.filtered(lambda c: c.type == 'invoice' and c.name)" t-as="delivery_partner">
|
|
<span t-esc="delivery_partner.name"/>
|
|
</t>
|
|
</td>
|
|
<td>
|
|
<strong>Zahlbar innert: </strong>
|
|
<span t-field="o.invoice_payment_term_id"/>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<strong>Kontakt Verkauf: </strong>
|
|
<span t-field="o.invoice_user_id"/>
|
|
</td>
|
|
<td>
|
|
<strong>Tel. Direkt: </strong>
|
|
<t t-foreach="res_company.partner_id.child_ids.filtered(lambda c: c.type == 'invoice' and c.phone)" t-as="delivery_partner">
|
|
<span t-esc="delivery_partner.phone"/>
|
|
</t>
|
|
</td>
|
|
<td>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<strong>Kunden-Nr.: </strong>
|
|
<span t-field="o.partner_id.ref"/>
|
|
</td>
|
|
<td>
|
|
<strong>E-Mail:</strong>
|
|
<t t-foreach="res_company.partner_id.child_ids.filtered(lambda c: c.type == 'invoice' and c.email)" t-as="delivery_partner">
|
|
<span t-esc="delivery_partner.email"/>
|
|
</t>
|
|
</td>
|
|
<td>
|
|
<!-- <strong>MWST: </strong>
|
|
<span t-field="res_company.vat" /> -->
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</xpath>
|
|
</data>
|
|
|
|
```
|
|
Source: [snippets/account.report_invoice_document.replace_information_table.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/account.report_invoice_document.replace_information_table.xml)
|
|
|
|
### Replace Information Table2
|
|
|
|
ID: `mint_system.account.report_invoice_document.replace_information_table2`
|
|
|
|
```xml
|
|
<data inherit_id="account.report_invoice_document" priority="50">
|
|
<xpath expr="//*[@id='informations']" position="replace">
|
|
<style>
|
|
table#informations {
|
|
white-space: nowrap;
|
|
}
|
|
table#informations td:nth-child(odd) {
|
|
text-align: left;
|
|
}
|
|
table#informations td:nth-child(even) {
|
|
text-align: left;
|
|
padding-right: 3rem;
|
|
}
|
|
</style>
|
|
<table id="informations" class="table table-borderless table-sm">
|
|
<tr>
|
|
<td>
|
|
<strong>Rechnungsdatum: </strong>
|
|
</td>
|
|
<td>
|
|
<span t-field="o.invoice_date"/>
|
|
</td>
|
|
<td>
|
|
<strong>Kontakt Rechnung: </strong>
|
|
</td>
|
|
<td>
|
|
<t t-foreach="res_company.partner_id.child_ids.filtered(lambda c: c.type == 'invoice' and c.name)" t-as="delivery_partner">
|
|
<span t-esc="delivery_partner.name"/>
|
|
</t>
|
|
</td>
|
|
<td>
|
|
<strong>Zahlbar innert: </strong>
|
|
</td>
|
|
<td>
|
|
<span t-field="o.invoice_payment_term_id"/>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<strong>Kontakt Verkauf: </strong>
|
|
</td>
|
|
<td>
|
|
<span t-field="o.invoice_user_id"/>
|
|
</td>
|
|
<td>
|
|
<strong>Tel. Direkt: </strong>
|
|
</td>
|
|
<td>
|
|
<t t-foreach="res_company.partner_id.child_ids.filtered(lambda c: c.type == 'invoice' and c.phone)" t-as="delivery_partner">
|
|
<span t-esc="delivery_partner.phone"/>
|
|
</t>
|
|
</td>
|
|
<td>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<strong>Kunden-Nr.: </strong>
|
|
</td>
|
|
<td>
|
|
<span t-field="o.partner_id.ref"/>
|
|
</td>
|
|
<td>
|
|
<strong>E-Mail:</strong>
|
|
</td>
|
|
<td>
|
|
<t t-foreach="res_company.partner_id.child_ids.filtered(lambda c: c.type == 'invoice' and c.email)" t-as="delivery_partner">
|
|
<span t-esc="delivery_partner.email"/>
|
|
</t>
|
|
</td>
|
|
<td>
|
|
<!-- <strong>MWST: </strong> -->
|
|
</td>
|
|
<td>
|
|
<!-- <span t-field="res_company.vat" /> -->
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</xpath>
|
|
</data>
|
|
|
|
```
|
|
Source: [snippets/account.report_invoice_document.replace_information_table2.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/account.report_invoice_document.replace_information_table2.xml)
|
|
|
|
### Replace Information Table3
|
|
|
|
ID: `mint_system.account.report_invoice_document.replace_information_table3`
|
|
|
|
```xml
|
|
<data inherit_id="account.report_invoice_document" priority="50">
|
|
|
|
<xpath expr="//div[@id='informations']" position="replace">
|
|
|
|
<style>
|
|
table#info {
|
|
width: 100%;
|
|
margin-bottom: 25px;
|
|
border: transparent;
|
|
}
|
|
table#info td {
|
|
color: black;
|
|
border: transparent;
|
|
}
|
|
table#info td:last-child {
|
|
background-color: transparent;
|
|
}
|
|
table#info tr {
|
|
text-align: top;
|
|
}
|
|
</style>
|
|
|
|
<table id="info" style="width: 700px; margin-bottom: 50px">
|
|
<tr>
|
|
<t t-if="o.invoice_date">
|
|
<td width="200px">Invoice Date</td>
|
|
<td width="500px">
|
|
|
|
<span id="invoice_date" t-field="o.invoice_date" t-options="{ "widget": "date" }"/>
|
|
|
|
</td>
|
|
</t>
|
|
</tr>
|
|
<tr>
|
|
<t t-if="o.ref">
|
|
<td>Your Reference</td>
|
|
<td>
|
|
|
|
<span t-field="o.ref"/>
|
|
|
|
</td>
|
|
</t>
|
|
</tr>
|
|
|
|
<!-- Get all sale orders without duplicates -->
|
|
<t t-set="sale_orders" t-value="list(set([line.order_id for line in o.invoice_line_ids.sale_line_ids]))"/>
|
|
<!-- Store if has sale orders -->
|
|
<t t-set="has_sale_orders" t-value="len(sale_orders) > 0"/>
|
|
<!-- Store if has multiple sale orders -->
|
|
<t t-set="has_multiple_sale_orders" t-value="len(sale_orders) > 1"/>
|
|
<!-- Store if has lines without sale orders -->
|
|
<t t-set="has_lines_without_sale_orders" t-value="len(o.invoice_line_ids.filtered(lambda l: not l.sale_line_ids)) > 0"/>
|
|
|
|
<t t-foreach="sale_orders" t-as="sale_order">
|
|
<tr t-if="has_sale_orders and sale_order">
|
|
<tr>
|
|
<t t-if="o.invoice_date">
|
|
<td width="200px">Order Reference</td>
|
|
<td width="500px">
|
|
<span id="sale_order_name" t-esc="sale_order.name"/>
|
|
</td>
|
|
</t>
|
|
</tr>
|
|
</tr>
|
|
</t>
|
|
|
|
<tr>
|
|
<t t-if="o.partner_id.parent_id">
|
|
<td>Your Contact</td>
|
|
<td>
|
|
<span t-field="o.partner_id.name"/>
|
|
</td>
|
|
</t>
|
|
</tr>
|
|
<tr>
|
|
<t t-if="o.invoice_incoterm_id">
|
|
<td>Incoterm</td>
|
|
<td>
|
|
<span t-field="o.invoice_incoterm_id"/>
|
|
</td>
|
|
</t>
|
|
</tr>
|
|
<tr>
|
|
<t t-if="o.invoice_payment_term_id">
|
|
<td>Payment terms</td>
|
|
<td>
|
|
<span t-field="o.invoice_payment_term_id"/>
|
|
</td>
|
|
</t>
|
|
</tr>
|
|
<tr>
|
|
<t t-if="o.user_id">
|
|
<td>Our Contact</td>
|
|
<td>
|
|
<span t-field="o.user_id"/>
|
|
<t t-if="o.user_id.email">
|
|
, <span t-field="o.user_id.email"/>
|
|
</t>
|
|
<t t-if="o.user_id.phone">
|
|
, <span t-field="o.user_id.phone"/>
|
|
</t>
|
|
</td>
|
|
</t>
|
|
</tr>
|
|
</table>
|
|
</xpath>
|
|
</data>
|
|
```
|
|
Source: [snippets/account.report_invoice_document.replace_information_table3.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/account.report_invoice_document.replace_information_table3.xml)
|
|
|
|
### Replace Informations
|
|
|
|
ID: `mint_system.account.report_invoice_document.replace_informations`
|
|
|
|
```xml
|
|
<data inherit_id="account.report_invoice_document" priority="50">
|
|
<div id="informations" position="replace">
|
|
<style>
|
|
div#informations p {
|
|
margin-bottom: 0rem;
|
|
}
|
|
div#informations div {
|
|
display: inline-block;
|
|
vertical-align: top;
|
|
}
|
|
</style>
|
|
<div id="informations">
|
|
<table class="table table-borderless table-sm">
|
|
<tr>
|
|
<td>
|
|
<t t-if="o.move_type == 'out_invoice'">
|
|
<strong class="mr-2">Rechnungsdatum:</strong>
|
|
</t>
|
|
<t t-elif="o.move_type == 'out_refund'">
|
|
<strong class="mr-2">Gutschriftdatum:</strong>
|
|
</t>
|
|
<t t-elif="o.move_type == 'out_receipt'">
|
|
<strong class="mr-2">Quittungsdatum:</strong>
|
|
</t>
|
|
<t t-else="">
|
|
<strong>Datum:</strong>
|
|
</t>
|
|
<span t-field="o.invoice_date" t-options="{"widget": "date"}"/>
|
|
</td>
|
|
<td>
|
|
<strong class="mr-2">Zahlungsbedingungen:</strong>
|
|
<span t-field="o.invoice_payment_term_id"/>
|
|
</td>
|
|
<!--<t t-set="partner_contact_id" t-value="o.invoice_line_ids.sale_line_ids.order_id.mapped('partner_contact_id')[:1]" />-->
|
|
<td t-if="o.partner_sale_id">
|
|
<strong class="mr-2">     Ihr Kontakt:</strong>
|
|
<span t-field="o.partner_sale_id.name"/>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td t-if="o.invoice_date_due and o.move_type == 'out_invoice' and o.state == 'posted'">
|
|
<strong class="mr-2"> Fälligkeitsdatum:</strong>
|
|
<span t-field="o.invoice_date_due" t-options="{"widget": "date"}"/>
|
|
</td>
|
|
<td t-else=""/>
|
|
<td>
|
|
<strong class="mr-2">Unser Kontakt:</strong>
|
|
<span t-field="o.invoice_user_id.name"/>
|
|
</td>
|
|
<td t-if="o.ref" rowspan="2">
|
|
<div>
|
|
<strong class="mr-2">Ihre Referenz:</strong>
|
|
</div>
|
|
<div t-field="o.ref"/>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<t t-set="order_id" t-value="o.invoice_line_ids.sale_line_ids.mapped('order_id')[:1]"/>
|
|
<td t-if="order_id" colspan="2">
|
|
<strong class="mr-2"> Unsere Referenz:</strong>
|
|
<span t-if="order_id.project_id.code" t-esc="'[' + order_id.project_id.code + '] ' + order_id.name"/>
|
|
<span t-else="" t-field="order_id.name"/>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</data>
|
|
|
|
```
|
|
Source: [snippets/account.report_invoice_document.replace_informations.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/account.report_invoice_document.replace_informations.xml)
|
|
|
|
### Replace Informations2
|
|
|
|
ID: `mint_system.account.report_invoice_document.replace_informations2`
|
|
|
|
```xml
|
|
<data inherit_id="account.report_invoice_document" priority="50">
|
|
|
|
<xpath expr="//div[@id='informations']" position="replace">
|
|
|
|
<style>
|
|
table#info {
|
|
width: 100%;
|
|
margin-bottom: 25px;
|
|
border: transparent;
|
|
}
|
|
table#info td {
|
|
color: black;
|
|
border: transparent;
|
|
}
|
|
table#info td:last-child {
|
|
background-color: transparent;
|
|
}
|
|
table#info tr {
|
|
text-align: top;
|
|
}
|
|
</style>
|
|
|
|
<table id="info" style="width: 700px; margin-bottom: 50px">
|
|
<tr>
|
|
<t t-if="o.date_order">
|
|
<td width="200px">Order Date</td>
|
|
<td width="500px">
|
|
|
|
<span id="date_order" t-field="o.date_order" t-options="{ "widget": "date" }"/>
|
|
|
|
</td>
|
|
</t>
|
|
</tr>
|
|
<tr>
|
|
<t t-if="o.client_order_ref">
|
|
<td>Your Reference</td>
|
|
<td>
|
|
|
|
<span t-field="o.client_order_ref"/>
|
|
|
|
</td>
|
|
</t>
|
|
</tr>
|
|
<tr>
|
|
<t t-if="o.partner_id.parent_id">
|
|
<td>Your Contact</td>
|
|
<td>
|
|
<span t-field="o.partner_id.name"/>
|
|
</td>
|
|
</t>
|
|
</tr>
|
|
<tr>
|
|
<t t-if="o.commitment_date">
|
|
<td>Delivery Date</td>
|
|
<td>
|
|
<span t-field="o.commitment_date" t-options="{ "widget": "date" }"/>
|
|
</td>
|
|
</t>
|
|
</tr>
|
|
<tr>
|
|
<t t-if="o.incoterm">
|
|
<td>Incoterm</td>
|
|
<td>
|
|
<span t-field="o.incoterm.name"/>
|
|
</td>
|
|
</t>
|
|
</tr>
|
|
<tr>
|
|
<t t-if="o.payment_term_id">
|
|
<td>Payment terms</td>
|
|
<td>
|
|
<span t-field="o.payment_term_id"/>
|
|
</td>
|
|
</t>
|
|
</tr>
|
|
<tr>
|
|
<t t-if="o.user_id">
|
|
<td>Our Contact</td>
|
|
<td>
|
|
<span t-field="o.user_id"/>
|
|
<t t-if="o.user_id.email">
|
|
, <span t-field="o.user_id.email"/>
|
|
</t>
|
|
<t t-if="o.user_id.phone">
|
|
, <span t-field="o.user_id.phone"/>
|
|
</t>
|
|
</td>
|
|
</t>
|
|
</tr>
|
|
</table>
|
|
</xpath>
|
|
</data>
|
|
|
|
```
|
|
Source: [snippets/account.report_invoice_document.replace_informations2.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/account.report_invoice_document.replace_informations2.xml)
|
|
|
|
### Replace Infotable
|
|
|
|
ID: `mint_system.account.report_invoice_document.replace_infotable`
|
|
|
|
```xml
|
|
<data inherit_id="account.report_invoice_document" priority="50">
|
|
<xpath expr="//div[@id='informations']" position="replace">
|
|
<style>
|
|
table#info {
|
|
width: 100%;
|
|
margin-bottom: 25px;
|
|
font-size: 9pt;
|
|
border-color: white;
|
|
}
|
|
table#info span {
|
|
line-height: 1.2;
|
|
}
|
|
table#info tr {
|
|
line-height: 1.2;
|
|
text-align: left;
|
|
}
|
|
.note {
|
|
font-size: 9pt;
|
|
}
|
|
</style>
|
|
<table id="info">
|
|
<tr>
|
|
<td/>
|
|
<td/>
|
|
<td>Order No.</td>
|
|
<td>
|
|
<span t-field="o.invoice_origin"/>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td width="17%">Invoice date</td>
|
|
<td width="41%">
|
|
<span t-field="o.invoice_date" t-options="{ "widget": "date" }"/>
|
|
</td>
|
|
<td width="17%">Our Reference</td>
|
|
<td width="25%">
|
|
<span t-field="o.user_id"/>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>Customer No.</td>
|
|
<td>
|
|
<span t-field="o.partner_id.ref"/>
|
|
</td>
|
|
<td>Delivery Method</td>
|
|
<td>
|
|
<span t-field="o.carrier_id"/>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>Order</td>
|
|
<td>
|
|
<span t-field="o.ref"/>
|
|
</td>
|
|
<td>Incoterm</td>
|
|
<td>
|
|
<span t-field="o.invoice_incoterm_id"/>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>Reference</td>
|
|
<td>
|
|
<span t-field="o.comment"/>
|
|
</td>
|
|
<td>Delivery Date</td>
|
|
<td>
|
|
<span t-field="o.x_date_done" t-options="{ "widget": "date" }"/>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</xpath>
|
|
</data>
|
|
|
|
```
|
|
Source: [snippets/account.report_invoice_document.replace_infotable.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/account.report_invoice_document.replace_infotable.xml)
|
|
|
|
### Replace Partner Bank Id
|
|
|
|
ID: `mint_system.account.report_invoice_document.replace_partner_bank_id`
|
|
|
|
```xml
|
|
<data inherit_id="account.report_invoice_document" priority="50">
|
|
|
|
<xpath expr="//p[@name='payment_communication']/t" position="replace">
|
|
<t t-if="o.partner_bank_id.l10n_ch_qr_iban">
|
|
<br/>
|
|
on this account: <span t-field="o.partner_bank_id.l10n_ch_qr_iban" class="fw-bold"/>
|
|
- <span t-field="o.partner_bank_id.bank_id.name" class="fw-bold"/>
|
|
</t>
|
|
</xpath>
|
|
|
|
</data>
|
|
```
|
|
Source: [snippets/account.report_invoice_document.replace_partner_bank_id.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/account.report_invoice_document.replace_partner_bank_id.xml)
|
|
|
|
### Replace Payment Communication
|
|
|
|
ID: `mint_system.account.report_invoice_document.replace_payment_communication`
|
|
|
|
```xml
|
|
<data inherit_id="account.report_invoice_document" priority="50">
|
|
<xpath expr="//p[@name='payment_communication']" position="replace">
|
|
|
|
<p t-if="o.move_type in ('out_invoice', 'in_refund') and o.payment_reference" name="payment_communication" class="mt-4">
|
|
Please use the following communication for your payment : <b>
|
|
<span t-field="o.payment_reference"/>
|
|
</b>
|
|
</p>
|
|
|
|
</xpath>
|
|
</data>
|
|
|
|
```
|
|
Source: [snippets/account.report_invoice_document.replace_payment_communication.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/account.report_invoice_document.replace_payment_communication.xml)
|
|
|
|
### Replace Payment Term
|
|
|
|
ID: `mint_system.account.report_invoice_document.replace_payment_term`
|
|
|
|
```xml
|
|
<data inherit_id="account.report_invoice_document" priority="50">
|
|
<xpath expr="//div[@name='payment_term']" position="replace">
|
|
|
|
<t t-if="o.invoice_payment_term_id.note and o.company_id.id == 8">
|
|
<br/>
|
|
<div>
|
|
Zahlungsbedingungen: <span t-field="o.invoice_payment_term_id.note"/>
|
|
</div>
|
|
</t>
|
|
<t t-else="">
|
|
<div t-field="o.invoice_payment_term_id.note" name="payment_term"/>
|
|
</t>
|
|
|
|
</xpath>
|
|
</data>
|
|
```
|
|
Source: [snippets/account.report_invoice_document.replace_payment_term.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/account.report_invoice_document.replace_payment_term.xml)
|
|
|
|
### Replace Product Description
|
|
|
|
ID: `mint_system.account.report_invoice_document.replace_product_description`
|
|
|
|
```xml
|
|
<data inherit_id="account.report_invoice_document" priority="50">
|
|
<xpath expr="//td[@name='account_invoice_line_name']" position="replace">
|
|
<t t-if="line.product_id.type_description">
|
|
<td>
|
|
<span style="font-weight: bold" t-field="line.product_id.type_description"/>
|
|
</td>
|
|
</t>
|
|
<t t-if="not line.product_id.type_description">
|
|
<td>
|
|
<span t-field="line.external_name"/>
|
|
</td>
|
|
</t>
|
|
<!---
|
|
<xpath expr="//td[@name='account_invoice_line_name']" position="replace">
|
|
<td name="td_name">
|
|
<span class="o_bold" t-field="line.product_id.name"/><br/>
|
|
<span t-field="line.name"/>
|
|
</td>
|
|
</xpath>
|
|
-->
|
|
</xpath>
|
|
</data>
|
|
|
|
```
|
|
Source: [snippets/account.report_invoice_document.replace_product_description.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/account.report_invoice_document.replace_product_description.xml)
|
|
|
|
### Replace Summary
|
|
|
|
ID: `mint_system.account.report_invoice_document.replace_summary`
|
|
|
|
```xml
|
|
<data inherit_id="account.report_invoice_document" priority="50">
|
|
<xpath expr="//table[@name='invoice_line_table']" position="after">
|
|
<style>
|
|
table.trimada_summary tr {
|
|
border-top: solid 1px !important;
|
|
border-bottom: solid 1px;
|
|
page-break-inside: avoid;
|
|
}
|
|
table.trimada_details tr {
|
|
border-top: 0px !important;
|
|
border-bottom: 0px;
|
|
line-height: 0.7;
|
|
}
|
|
table.trimada_summary #amount_untaxed_label {
|
|
width: 11.5%;
|
|
text-align: left;
|
|
}
|
|
table.trimada_details td#amount_by_group0 {
|
|
width: 8%;
|
|
text-align: left;
|
|
}
|
|
table.trimada_details td#amount_by_group3 {
|
|
width: 21%;
|
|
text-align: right;
|
|
padding-right: 10%;
|
|
}
|
|
table.trimada_details td#amount_by_group4 {
|
|
width: 27%;
|
|
text-align: right;
|
|
padding-right: 15%;
|
|
}
|
|
table.trimada_summary td#amount_by_group_label {
|
|
width: 12%;
|
|
text-align: left;
|
|
}
|
|
table.trimada_summary td#amount_by_group {
|
|
width: 17%;
|
|
text-align: left;
|
|
}
|
|
table.trimada_summary #amount_total_label {
|
|
width: 14%;
|
|
text-align: right;
|
|
}
|
|
table.trimada_summary #amount_total {
|
|
width: 18%;
|
|
text-align: right;
|
|
}
|
|
</style>
|
|
<table class="table table-borderless table-sm trimada trimada_summary">
|
|
<td id="amount_untaxed_label">
|
|
<Strong>Warenwert</Strong>
|
|
</td>
|
|
<td>
|
|
<table class="trimada_details">
|
|
<t t-foreach="o.amount_by_group" t-as="amount_by_group">
|
|
<tr style="">
|
|
<td id="amount_by_group4">
|
|
<span>
|
|
<t t-esc="amount_by_group[4]"/>
|
|
</span>
|
|
</td>
|
|
<t t-if="len(o.line_ids.filtered(lambda line: line.tax_line_id)) in [0, 1] and o.amount_untaxed == amount_by_group[2]">
|
|
<td id="amount_by_group0">
|
|
<span class="text-nowrap" t-esc="amount_by_group[0]"/>
|
|
</td>
|
|
<td id="amount_by_group3" class="text-right o_price_total">
|
|
<span class="text-nowrap" t-esc="amount_by_group[3]"/>
|
|
</td>
|
|
</t>
|
|
<t t-else="">
|
|
<td id="amount_by_group0">
|
|
<span t-esc="amount_by_group[0]"/>
|
|
</td>
|
|
<td id="amount_by_group3" class="text-right o_price_total">
|
|
<span class="text-nowrap" t-esc="amount_by_group[3]"/>
|
|
</td>
|
|
</t>
|
|
</tr>
|
|
</t>
|
|
<t t-if="print_with_payments">
|
|
<t t-if="o.payment_state != 'invoicing_legacy'">
|
|
<t t-set="payments_vals" t-value="o.sudo()._get_reconciled_info_JSON_values()"/>
|
|
<t t-foreach="payments_vals" t-as="payment_vals">
|
|
<tr>
|
|
<td>
|
|
<i class="oe_form_field text-right oe_payment_label">Paid on <t t-esc="payment_vals['date']" t-options="{"widget": "date"}"/>
|
|
</i>
|
|
</td>
|
|
<td class="text-right">
|
|
<span t-esc="payment_vals['amount']" t-options="{"widget": "monetary", "display_currency": o.currency_id}"/>
|
|
</td>
|
|
</tr>
|
|
</t>
|
|
<t t-if="len(payments_vals) > 0">
|
|
<tr class="border-black">
|
|
<td>
|
|
<strong>Amount Due</strong>
|
|
</td>
|
|
<td class="text-right">
|
|
<span t-field="o.amount_residual"/>
|
|
</td>
|
|
</tr>
|
|
</t>
|
|
</t>
|
|
</t>
|
|
</table>
|
|
</td>
|
|
<td id="amount_total_label">
|
|
<strong>Total</strong>
|
|
</td>
|
|
<td id="amount_total">
|
|
<span class="text-nowrap" t-field="o.amount_total"/>
|
|
</td>
|
|
</table>
|
|
</xpath>
|
|
</data>
|
|
|
|
```
|
|
Source: [snippets/account.report_invoice_document.replace_summary.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/account.report_invoice_document.replace_summary.xml)
|
|
|
|
### Reset Address
|
|
|
|
ID: `mint_system.account.report_invoice_document.reset_address`
|
|
|
|
```xml
|
|
<data inherit_id="account.report_invoice_document" priority="50">
|
|
<xpath expr="//t[@t-set='address']" position="replace">
|
|
<t t-set="address">
|
|
<div>
|
|
<address t-field="o.partner_invoice_id" t-options="{"widget": "contact", "fields": ["address", "name"], "no_marker": True}"/>
|
|
</div>
|
|
</t>
|
|
</xpath>
|
|
</data>
|
|
|
|
```
|
|
Source: [snippets/account.report_invoice_document.reset_address.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/account.report_invoice_document.reset_address.xml)
|
|
|
|
### Round Price
|
|
|
|
ID: `mint_system.account.report_invoice_document.round_price`
|
|
|
|
```xml
|
|
<data inherit_id="account.report_invoice_document" priority="50">
|
|
<xpath expr="//span[@t-field='line.price_unit']" position="replace">
|
|
<span t-esc="'%g' % line.price_unit if str(line.price_unit)[::-1].find('.') >= 3 else '{0:,.2f}'.format(float(line.price_unit)).replace(',','\'')"/>
|
|
</xpath>
|
|
</data>
|
|
|
|
```
|
|
Source: [snippets/account.report_invoice_document.round_price.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/account.report_invoice_document.round_price.xml)
|
|
|
|
### Round Price Unit
|
|
|
|
ID: `mint_system.account.report_invoice_document.round_price_unit`
|
|
|
|
```xml
|
|
<data inherit_id="account.report_invoice_document" priority="50">
|
|
<xpath expr="//span[@t-field='line.price_unit']" position="replace">
|
|
<span class="text-nowrap" t-esc="'{0:,.2f}'.format(float(line.price_unit)).replace(',','\'')"/>
|
|
</xpath>
|
|
</data>
|
|
|
|
```
|
|
Source: [snippets/account.report_invoice_document.round_price_unit.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/account.report_invoice_document.round_price_unit.xml)
|
|
|
|
### Round Quantity
|
|
|
|
ID: `mint_system.account.report_invoice_document.round_quantity`
|
|
|
|
```xml
|
|
<data inherit_id="account.report_invoice_document" priority="50">
|
|
<xpath expr="//span[@t-field='line.quantity']" position="replace">
|
|
<span t-esc="'%.2f' % line.quantity"/>
|
|
</xpath>
|
|
</data>
|
|
|
|
```
|
|
Source: [snippets/account.report_invoice_document.round_quantity.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/account.report_invoice_document.round_quantity.xml)
|
|
|
|
### Round Total Price
|
|
|
|
ID: `mint_system.account.report_invoice_document.round_total_price`
|
|
|
|
```xml
|
|
<data inherit_id="account.report_invoice_document" priority="50">
|
|
<xpath expr="//span[@t-field='line.price_subtotal']" position="replace">
|
|
<span t-esc="'{0:,.2f}'.format(float(line.price_subtotal)).replace(',','\'')"/>
|
|
</xpath>
|
|
</data>
|
|
|
|
```
|
|
Source: [snippets/account.report_invoice_document.round_total_price.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/account.report_invoice_document.round_total_price.xml)
|
|
|
|
### Second Row
|
|
|
|
ID: `mint_system.account.report_invoice_document.second_row`
|
|
|
|
```xml
|
|
<data inherit_id="account.report_invoice_document" priority="50">
|
|
<xpath expr="//tbody[hasclass('invoice_tbody')]//tr" position="attributes">
|
|
<attribute name="class" separator=" " add="first"/>
|
|
</xpath>
|
|
<xpath expr="//tbody[hasclass('invoice_tbody')]//tr" position="after">
|
|
<t t-if="line.product_id.type_description">
|
|
<tr class="second">
|
|
<td/>
|
|
<td/>
|
|
<td colspan="5">
|
|
<span t-field="line.external_name"/>
|
|
<br/>
|
|
<t t-if="line.product_id.country_of_origin_id.code">
|
|
Ursprungsland:
|
|
<span t-field="line.product_id.country_of_origin_id.code"/>
|
|
</t>
|
|
<t t-if="line.product_id.hs_code">
|
|
/ Zollposition:
|
|
<span t-field="line.product_id.hs_code"/>
|
|
</t>
|
|
</td>
|
|
</tr>
|
|
</t>
|
|
<t t-if="not line.product_id.type_description">
|
|
<tr class="second">
|
|
<td/>
|
|
<td/>
|
|
<td colspan="5">
|
|
<t t-if="line.product_id.country_of_origin_id.code">
|
|
Ursprungsland:
|
|
<span t-field="line.product_id.country_of_origin_id.code"/>
|
|
</t>
|
|
<t t-if="line.product_id.hs_code">
|
|
/ Zollposition:
|
|
<span t-field="line.product_id.hs_code"/>
|
|
</t>
|
|
</td>
|
|
</tr>
|
|
</t>
|
|
</xpath>
|
|
</data>
|
|
|
|
```
|
|
Source: [snippets/account.report_invoice_document.second_row.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/account.report_invoice_document.second_row.xml)
|
|
|
|
### Second Row2
|
|
|
|
ID: `mint_system.account.report_invoice_document.second_row2`
|
|
|
|
```xml
|
|
<data inherit_id="account.report_invoice_document" priority="50">
|
|
|
|
<xpath expr="//td[@name='account_invoice_line_name']/../.." position="after">
|
|
<t t-if="line.position">
|
|
<tr style="border-top: solid white !important">
|
|
<td/>
|
|
<td colspan="3">
|
|
<span t-field="line.name"/>
|
|
<t t-if="line.product_id.hs_code">
|
|
<br/>
|
|
<span>HS-Code: </span>
|
|
<span t-field="line.product_id.hs_code"/>
|
|
</t>
|
|
</td>
|
|
<td/>
|
|
</tr>
|
|
</t>
|
|
</xpath>
|
|
|
|
<xpath expr="//td[@name='account_invoice_line_name']" position="replace">
|
|
<td name="td_name">
|
|
<strong t-field="line.product_id"/>
|
|
</td>
|
|
</xpath>
|
|
|
|
</data>
|
|
```
|
|
Source: [snippets/account.report_invoice_document.second_row2.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/account.report_invoice_document.second_row2.xml)
|
|
|
|
### Sequence In Table
|
|
|
|
ID: `mint_system.account.report_invoice_document.sequence_in_table`
|
|
|
|
```xml
|
|
<data inherit_id="account.report_invoice_document" priority="60">
|
|
<xpath expr="//table/thead/tr/th[1]" position="before">
|
|
<th>
|
|
<span>Pos</span>
|
|
</th>
|
|
</xpath>
|
|
<xpath expr="//t[@t-foreach='lines']" position="before">
|
|
<t t-set="index" t-value="1"/>
|
|
</xpath>
|
|
<xpath expr="//table/tbody//tr/t[1]/td[1]" position="before">
|
|
<td>
|
|
<span t-esc="index"/>
|
|
<t t-set="index" t-value="index+1"/>
|
|
</td>
|
|
</xpath>
|
|
</data>
|
|
|
|
```
|
|
Source: [snippets/account.report_invoice_document.sequence_in_table.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/account.report_invoice_document.sequence_in_table.xml)
|
|
|
|
### Set Ids
|
|
|
|
ID: `mint_system.account.report_invoice_document.set_ids`
|
|
|
|
```xml
|
|
<data inherit_id="account.report_invoice_document" priority="50">
|
|
<xpath expr="//th[@name='th_quantity']" position="attributes">
|
|
<attribute name="id">th_quantity</attribute>
|
|
</xpath>
|
|
<xpath expr="//th[@name='th_description']" position="attributes">
|
|
<attribute name="id">description</attribute>
|
|
</xpath>
|
|
<xpath expr="//table[@name='invoice_line_table']//td[2]" position="attributes">
|
|
<attribute name="id">quantity</attribute>
|
|
</xpath>
|
|
<xpath expr="//table[@name='invoice_line_table']//td[2]/span[1]" position="attributes">
|
|
<attribute name="id">qty</attribute>
|
|
</xpath>
|
|
<xpath expr="//table[@name='invoice_line_table']//td[3]/span[1]" position="attributes">
|
|
<attribute name="id">price</attribute>
|
|
</xpath>
|
|
</data>
|
|
|
|
```
|
|
Source: [snippets/account.report_invoice_document.set_ids.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/account.report_invoice_document.set_ids.xml)
|
|
|
|
### Set Page Font Size
|
|
|
|
ID: `mint_system.account.report_invoice_document.set_page_font_size`
|
|
|
|
```xml
|
|
<data inherit_id="account.report_invoice_document" priority="50">
|
|
<xpath expr="//div[hasclass('page')]" position="inside">
|
|
<style>
|
|
body {
|
|
font-size: 0.9rem;
|
|
}
|
|
</style>
|
|
</xpath>
|
|
</data>
|
|
|
|
```
|
|
Source: [snippets/account.report_invoice_document.set_page_font_size.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/account.report_invoice_document.set_page_font_size.xml)
|
|
|
|
### Set Table Font Size
|
|
|
|
ID: `mint_system.account.report_invoice_document.set_table_font_size`
|
|
|
|
```xml
|
|
<data inherit_id="account.report_invoice_document" priority="50">
|
|
<xpath expr="//table[hasclass('o_main_table')]" position="before">
|
|
<style>
|
|
table.o_main_table th,
|
|
table.o_main_table td {
|
|
font-size: 0.8rem;
|
|
}
|
|
</style>
|
|
</xpath>
|
|
</data>
|
|
|
|
```
|
|
Source: [snippets/account.report_invoice_document.set_table_font_size.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/account.report_invoice_document.set_table_font_size.xml)
|
|
|
|
### Set Title Font Size
|
|
|
|
ID: `mint_system.account.report_invoice_document.set_title_font_size`
|
|
|
|
```xml
|
|
<data inherit_id="account.report_invoice_document" priority="50">
|
|
<xpath expr="//div[hasclass('page')]" position="inside">
|
|
<style>
|
|
h2 {
|
|
font-size: 1.5rem;
|
|
}
|
|
</style>
|
|
</xpath>
|
|
</data>
|
|
|
|
```
|
|
Source: [snippets/account.report_invoice_document.set_title_font_size.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/account.report_invoice_document.set_title_font_size.xml)
|
|
|
|
### Show Categ Id
|
|
|
|
ID: `mint_system.account.report_invoice_document.show_categ_id`
|
|
|
|
```xml
|
|
<data inherit_id="account.report_invoice_document" priority="50">
|
|
<xpath expr="//span[@t-field='line.name']" position="after">
|
|
<div>
|
|
<span t-field="line.product_id.categ_id"/>
|
|
</div>
|
|
</xpath>
|
|
</data>
|
|
|
|
```
|
|
Source: [snippets/account.report_invoice_document.show_categ_id.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/account.report_invoice_document.show_categ_id.xml)
|
|
|
|
### Show Country Of Origin
|
|
|
|
ID: `mint_system.account.report_invoice_document.show_country_of_origin`
|
|
|
|
```xml
|
|
<data inherit_id="account.report_invoice_document" priority="60">
|
|
<xpath expr="//table[@name='invoice_line_table']//th[@name='th_quantity']" position="before">
|
|
<th name="th_country_of_origin" class="text-right">
|
|
<span>Origin</span>
|
|
</th>
|
|
</xpath>
|
|
<xpath expr="//table[@name='invoice_line_table']//span[@t-field='line.quantity']/.." position="before">
|
|
<td name="td_country_of_origin" class="text-right">
|
|
<span t-esc="line.product_id.country_of_origin"/>
|
|
</td>
|
|
</xpath>
|
|
</data>
|
|
|
|
```
|
|
Source: [snippets/account.report_invoice_document.show_country_of_origin.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/account.report_invoice_document.show_country_of_origin.xml)
|
|
|
|
### Show Credit Note
|
|
|
|
ID: `mint_system.account.report_invoice_document.show_credit_note`
|
|
|
|
```xml
|
|
<data inherit_id="account.report_invoice_document" priority="60">
|
|
<p name="payment_communication" position="before">
|
|
<t t-if="print_with_payments and (o.payment_state != 'invoicing_legacy')">
|
|
<t t-set="payments_vals" t-value="o.sudo().invoice_payments_widget and o.sudo().invoice_payments_widget['content'] or []"/>
|
|
<t t-foreach="payments_vals" t-as="payment_vals">
|
|
<t t-set="move_id" t-value="o.browse(payment_vals['move_id'])"/>
|
|
<t t-if="move_id.move_type == 'out_refund'">
|
|
<!-- <span>Diese Rechnung wurde mit Ihrer Gutschrift -->
|
|
<!-- beglichen. Der neue Saldo auf Ihrer Gutschrift beträgt </span> -->
|
|
<p><span>This invoice has been paid with a customer credit </span>(<span t-field="move_id.name"/>). <span>The residual amount of this credit is </span><span t-field="move_id.amount_residual"/>.</p>
|
|
</t>
|
|
</t>
|
|
</t>
|
|
</p>
|
|
</data>
|
|
|
|
```
|
|
Source: [snippets/account.report_invoice_document.show_credit_note.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/account.report_invoice_document.show_credit_note.xml)
|
|
|
|
### Show Customer Info Product Code
|
|
|
|
ID: `mint_system.account.report_invoice_document.show_customer_info_product_code`
|
|
|
|
```xml
|
|
<data inherit_id="account.report_invoice_document" priority="50">
|
|
<span t-field="line.name" position="before">
|
|
<t t-if="line.product_id" t-set="customer_info" t-value="line.product_id._select_customerinfo(partner=o.commercial_partner_id)"/>
|
|
<t t-if="customer_info">
|
|
<span t-esc="'[%s] ' % customer_info[0].product_code"/>
|
|
</t>
|
|
</span>
|
|
</data>
|
|
|
|
```
|
|
Source: [snippets/account.report_invoice_document.show_customer_info_product_code.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/account.report_invoice_document.show_customer_info_product_code.xml)
|
|
|
|
### Show Default Code
|
|
|
|
ID: `mint_system.account.report_invoice_document.show_default_code`
|
|
|
|
```xml
|
|
<data inherit_id="account.report_invoice_document" priority="50">
|
|
<xpath expr="//table[@name='invoice_line_table']" position="before">
|
|
<style>
|
|
th#default_code,
|
|
td#default_code {
|
|
white-space: nowrap;
|
|
}
|
|
</style>
|
|
</xpath>
|
|
<xpath expr="//table[@name='invoice_line_table']//th[@name='th_description']" position="before">
|
|
<th id="default_code">
|
|
<span>Referenz</span>
|
|
</th>
|
|
</xpath>
|
|
<xpath expr="//table[@name='invoice_line_table']//td[@name='account_invoice_line_name']" position="before">
|
|
<td id="default_code">
|
|
<span t-field="line.product_id.default_code"/>
|
|
</td>
|
|
</xpath>
|
|
</data>
|
|
|
|
```
|
|
Source: [snippets/account.report_invoice_document.show_default_code.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/account.report_invoice_document.show_default_code.xml)
|
|
|
|
### Show Hs Code
|
|
|
|
ID: `mint_system.account.report_invoice_document.show_hs_code`
|
|
|
|
```xml
|
|
<data inherit_id="account.report_invoice_document" priority="60">
|
|
<xpath expr="//table[@name='invoice_line_table']//th[@name='th_quantity']" position="after">
|
|
<th name="th_hs_code" class="text-right">
|
|
<span>HS-Code</span>
|
|
</th>
|
|
</xpath>
|
|
<xpath expr="//table[@name='invoice_line_table']//span[@t-field='line.quantity']/.." position="after">
|
|
<td name="td_hs_code" class="text-right">
|
|
<span t-esc="line.product_id.intrastat_id.code"/>
|
|
</td>
|
|
</xpath>
|
|
</data>
|
|
|
|
```
|
|
Source: [snippets/account.report_invoice_document.show_hs_code.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/account.report_invoice_document.show_hs_code.xml)
|
|
|
|
### Show Hs Code2
|
|
|
|
ID: `mint_system.account.report_invoice_document.show_hs_code2`
|
|
|
|
```xml
|
|
<data inherit_id="account.report_invoice_document" priority="60">
|
|
<xpath expr="//table[@name='invoice_line_table']//th[@name='th_quantity']" position="before">
|
|
<th name="th_hs_code" class="text-start">
|
|
<span>HS-Code</span>
|
|
</th>
|
|
</xpath>
|
|
<xpath expr="//table[@name='invoice_line_table']//span[@t-field='line.quantity']/.." position="before">
|
|
<td name="td_hs_code" class="text-right">
|
|
<span t-esc="line.product_id.hs_code"/>
|
|
</td>
|
|
</xpath>
|
|
</data>
|
|
```
|
|
Source: [snippets/account.report_invoice_document.show_hs_code2.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/account.report_invoice_document.show_hs_code2.xml)
|
|
|
|
### Show License Names
|
|
|
|
ID: `mint_system.account.report_invoice_document.show_license_names`
|
|
|
|
```xml
|
|
<data inherit_id="account.report_invoice_document" priority="50">
|
|
<xpath expr="//table[@name='invoice_line_table']//td[@name='account_invoice_line_name']/span[1]" position="after">
|
|
<t t-set="license_ids" t-value="line.sale_line_ids.mapped('license_ids')"/>
|
|
<t t-if="license_ids">
|
|
<br />
|
|
<span>Licenses: <t t-esc="', '.join(license_ids.mapped('name'))"/></span>
|
|
</t>
|
|
</xpath>
|
|
</data>
|
|
|
|
```
|
|
Source: [snippets/account.report_invoice_document.show_license_names.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/account.report_invoice_document.show_license_names.xml)
|
|
|
|
### Show Lot Ids
|
|
|
|
ID: `mint_system.account.report_invoice_document.show_lot_ids`
|
|
|
|
```xml
|
|
<data inherit_id="account.report_invoice_document" priority="50">
|
|
<xpath expr="//table[@name='invoice_line_table']//td[@name='account_invoice_line_name']/span[1]" position="after">
|
|
<t t-set="lot_ids" t-value="o.picking_ids.move_line_ids.lot_id.filtered(lambda l: l.product_id == line.product_id)"/>
|
|
<t t-if="lot_ids">
|
|
<br/>
|
|
<span>Seriennummern:</span>
|
|
<t t-esc="', '.join(lot_ids.mapped('name'))"/>
|
|
<!-- <ul class="list-unstyled">
|
|
<t t-foreach="lot_ids" t-as="lot">
|
|
<li t-esc="lot.name" />
|
|
</t>
|
|
</ul> -->
|
|
</t>
|
|
</xpath>
|
|
</data>
|
|
|
|
```
|
|
Source: [snippets/account.report_invoice_document.show_lot_ids.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/account.report_invoice_document.show_lot_ids.xml)
|
|
|
|
### Show Order Id
|
|
|
|
ID: `mint_system.account.report_invoice_document.show_order_id`
|
|
|
|
```xml
|
|
<data inherit_id="account.report_invoice_document" priority="60">
|
|
<xpath expr="//td[@name='account_invoice_line_name']" position="replace">
|
|
<td name="account_invoice_line_name">
|
|
<t t-if="not line.sale_line_ids.task_id.sale_line_id.order_id">
|
|
<span class="o_bold" t-field="line.product_id.name"/>
|
|
<br/>
|
|
<span t-field="line.name"/>
|
|
</t>
|
|
<t t-if="line.sale_line_ids.task_id.sale_line_id.order_id">
|
|
Dienstleistung gemäss Rapport # <span t-field="line.sale_line_ids.task_id.sale_line_id.order_id"/>
|
|
</t>
|
|
</td>
|
|
</xpath>
|
|
</data>
|
|
|
|
```
|
|
Source: [snippets/account.report_invoice_document.show_order_id.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/account.report_invoice_document.show_order_id.xml)
|
|
|
|
### Show Parent Partner Reference
|
|
|
|
ID: `mint_system.account.report_invoice_document.show_parent_partner_reference`
|
|
|
|
```xml
|
|
<data inherit_id="account.report_invoice_document" priority="50">
|
|
<p t-field="o.partner_id.ref" position="replace">
|
|
<p class="m-0" t-esc="o.partner_id.ref or o.partner_id.parent_id.ref"/>
|
|
</p>
|
|
<div t-if="o.partner_id.ref" position="attributes">
|
|
<attribute name="t-if">o.partner_id.ref or o.partner_id.parent_id.ref</attribute>
|
|
</div>
|
|
</data>
|
|
|
|
```
|
|
Source: [snippets/account.report_invoice_document.show_parent_partner_reference.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/account.report_invoice_document.show_parent_partner_reference.xml)
|
|
|
|
### Show Product Name
|
|
|
|
ID: `mint_system.account.report_invoice_document.show_product_name`
|
|
|
|
```xml
|
|
<data inherit_id="account.report_invoice_document" priority="60">
|
|
<xpath expr="//td[@name='account_invoice_line_name']" position="replace">
|
|
<td name="account_invoice_line_name">
|
|
<t t-if="line.product_id">
|
|
<span t-field="line.product_id.name"/>
|
|
<br/>
|
|
</t>
|
|
<span class="o_italic" t-field="line.name" t-options="{'widget': 'text'}"/>
|
|
</td>
|
|
</xpath>
|
|
</data>
|
|
|
|
```
|
|
Source: [snippets/account.report_invoice_document.show_product_name.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/account.report_invoice_document.show_product_name.xml)
|
|
|
|
### Show Ref External
|
|
|
|
ID: `mint_system.account.report_invoice_document.show_ref_external`
|
|
|
|
```xml
|
|
<data inherit_id="account.report_invoice_document" priority="50">
|
|
<div id="partner_vat_address_not_same_as_shipping" position="after">
|
|
<div t-if="o.partner_id.ref_external">Ref: <span t-field="o.partner_id.ref_external"/></div>
|
|
</div>
|
|
<div id="partner_vat_address_same_as_shipping" position="after">
|
|
<div t-if="o.partner_id.ref_external">Ref: <span t-field="o.partner_id.ref_external"/></div>
|
|
</div>
|
|
<div id="partner_vat_no_shipping" position="after">
|
|
<div t-if="o.partner_id.ref_external">Ref: <span t-field="o.partner_id.ref_external"/></div>
|
|
</div>
|
|
</data>
|
|
|
|
```
|
|
Source: [snippets/account.report_invoice_document.show_ref_external.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/account.report_invoice_document.show_ref_external.xml)
|
|
|
|
### Show Sale Line Ids
|
|
|
|
ID: `mint_system.account.report_invoice_document.show_sale_line_ids`
|
|
|
|
```xml
|
|
<data inherit_id="account.report_invoice_document" priority="60">
|
|
<xpath expr="//table[@name='invoice_line_table']//th[@name='th_quantity']" position="after">
|
|
<th name="th_hs_code" class="text-right">
|
|
<span>H.S. Code</span>
|
|
</th>
|
|
</xpath>
|
|
<xpath expr="//table[@name='invoice_line_table']//span[@t-field='line.quantity']/.." position="after">
|
|
<td name="td_hs_code" class="text-right">
|
|
<span t-esc="line.product_id.intrastat_id.code"/>
|
|
</td>
|
|
</xpath>
|
|
</data>
|
|
|
|
```
|
|
Source: [snippets/account.report_invoice_document.show_sale_line_ids.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/account.report_invoice_document.show_sale_line_ids.xml)
|
|
|
|
### Show Shipping Address
|
|
|
|
ID: `mint_system.account.report_invoice_document.show_shipping_address`
|
|
|
|
```xml
|
|
<data inherit_id="account.report_invoice_document" priority="50">
|
|
<xpath expr="//t[@t-set='address']" position="after">
|
|
<t t-set="information_block">
|
|
<!-- <t t-if="o.partner_shipping_id != o.partner_id"> -->
|
|
<strong>Lieferadresse:</strong>
|
|
<div t-field="o.partner_shipping_id" t-options="{"widget": "contact", "fields": ["address", "name"], "no_marker": True, "phone_icons": True}"/>
|
|
<!-- </t> -->
|
|
</t>
|
|
</xpath>
|
|
</data>
|
|
|
|
```
|
|
Source: [snippets/account.report_invoice_document.show_shipping_address.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/account.report_invoice_document.show_shipping_address.xml)
|
|
|
|
### Show Triple Discount
|
|
|
|
ID: `mint_system.account.report_invoice_document.show_triple_discount`
|
|
|
|
```xml
|
|
<data inherit_id="account.report_invoice_document" priority="50">
|
|
<t t-set="display_discount" position="replace">
|
|
<t t-set="display_discount" t-value="any(l.discount or l.discount2 or l.discount3 for l in o.invoice_line_ids)"/>
|
|
</t>
|
|
<span t-field="line.discount" position="replace">
|
|
<t t-if="line.discount"><span class="text-nowrap" t-field="line.discount"/><br /></t>
|
|
<t t-if="line.discount2"><span class="text-nowrap" t-field="line.discount2"/><br /></t>
|
|
<t t-if="line.discount3"><span class="text-nowrap" t-field="line.discount3"/></t>
|
|
</span>
|
|
</data>
|
|
|
|
```
|
|
Source: [snippets/account.report_invoice_document.show_triple_discount.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/account.report_invoice_document.show_triple_discount.xml)
|
|
|
|
### Show Weight
|
|
|
|
ID: `mint_system.account.report_invoice_document.show_weight`
|
|
|
|
```xml
|
|
<data inherit_id="account.report_invoice_document" priority="60">
|
|
<xpath expr="//table[@name='invoice_line_table']//th[@name='th_quantity']" position="inside">
|
|
<br/>
|
|
<i>Weight</i>
|
|
</xpath>
|
|
<xpath expr="//table[@name='invoice_line_table']//th[@name='th_subtotal']" position="inside">
|
|
<br/>
|
|
<i>Total Weight</i>
|
|
</xpath>
|
|
<xpath expr="//table[@name='invoice_line_table']//span[@t-field='line.quantity']/.." position="inside">
|
|
<br/>
|
|
<i>
|
|
<span t-field="line.product_id.weight"/>
|
|
<span t-field="line.product_id.weight_uom_name"/>
|
|
</i>
|
|
</xpath>
|
|
<xpath expr="//table[@name='invoice_line_table']//span[@t-field='line.price_subtotal']/.." position="inside">
|
|
<br/>
|
|
<i>
|
|
<span t-esc="line.product_id.weight * line.quantity" t-options="{"widget": "float", "decimal_precision": "Stock Weight"}"/>
|
|
<span t-field="line.product_id.weight_uom_name"/>
|
|
</i>
|
|
</xpath>
|
|
</data>
|
|
|
|
```
|
|
Source: [snippets/account.report_invoice_document.show_weight.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/account.report_invoice_document.show_weight.xml)
|
|
|
|
### Style Airwork
|
|
|
|
ID: `mint_system.account.report_invoice_document.style_airwork`
|
|
|
|
```xml
|
|
<data inherit_id="account.report_invoice_document" priority="60">
|
|
<xpath expr="//table[2]" position="attributes">
|
|
<attribute name="class">table table-sm o_main_table mt-4</attribute>
|
|
</xpath>
|
|
</data>
|
|
```
|
|
Source: [snippets/account.report_invoice_document.style_airwork.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/account.report_invoice_document.style_airwork.xml)
|
|
|
|
### Style Carbo Link
|
|
|
|
ID: `mint_system.account.report_invoice_document.style_carbo_link`
|
|
|
|
```xml
|
|
<data inherit_id="account.report_invoice_document" priority="60">
|
|
<xpath expr="//div[hasclass('page')]" position="before">
|
|
<style>
|
|
.o_company_1_layout {
|
|
font-family: Dobra-Book;
|
|
font-size: 80%;
|
|
}
|
|
.mb-4 {
|
|
margin-bottom: 0rem !important;
|
|
}
|
|
#total {
|
|
margin-bottom: 2rem;
|
|
}
|
|
h2 {
|
|
font-size: 1.5rem;
|
|
}
|
|
</style>
|
|
</xpath>
|
|
</data>
|
|
|
|
```
|
|
Source: [snippets/account.report_invoice_document.style_carbo_link.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/account.report_invoice_document.style_carbo_link.xml)
|
|
|
|
### Style Gelso
|
|
|
|
ID: `mint_system.account.report_invoice_document.style_gelso`
|
|
|
|
```xml
|
|
<data inherit_id="account.report_invoice_document" priority="60">
|
|
|
|
<xpath expr="//div[@id='right-elements']" position="attributes">
|
|
<attribute name="t-attf-class">d-flex justify-content-end w-100</attribute>
|
|
</xpath>
|
|
|
|
<xpath expr="//div[@id='total']" position="attributes">
|
|
<attribute name="class">col-5 clearfix row</attribute>
|
|
</xpath>
|
|
|
|
</data>
|
|
```
|
|
Source: [snippets/account.report_invoice_document.style_gelso.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/account.report_invoice_document.style_gelso.xml)
|
|
|
|
### Style Kunststoffsammelsack
|
|
|
|
ID: `mint_system.account.report_invoice_document.style_kunststoffsammelsack`
|
|
|
|
```xml
|
|
<data inherit_id="account.report_invoice_document" priority="60">
|
|
<xpath expr="//div[hasclass('page')]" position="before">
|
|
<style>
|
|
.table td {
|
|
border-bottom-width: 0;
|
|
}
|
|
</style>
|
|
</xpath>
|
|
|
|
<xpath expr="//table[@class='table table-sm o_main_table table-borderless']" position="attributes">
|
|
<attribute name="class">table table-sm o_main_table mt-4 custom-border</attribute>
|
|
</xpath>
|
|
|
|
</data>
|
|
|
|
```
|
|
Source: [snippets/account.report_invoice_document.style_kunststoffsammelsack.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/account.report_invoice_document.style_kunststoffsammelsack.xml)
|
|
|
|
### Style Lapp
|
|
|
|
ID: `mint_system.account.report_invoice_document.style_lapp`
|
|
|
|
```xml
|
|
<data inherit_id="account.report_invoice_document" priority="60">
|
|
|
|
<xpath expr="//tbody[@class='invoice_tbody']" position="after">
|
|
<style>
|
|
td {
|
|
vertical-align: top !important;
|
|
}
|
|
</style>
|
|
</xpath>
|
|
|
|
<xpath expr="//table[@class='table table-sm o_main_table table-borderless']" position="attributes">
|
|
<attribute name="class">table table-sm o_main_table mt-4 custom-border</attribute>
|
|
<attribute name="style">border-top-width: 1px</attribute>
|
|
</xpath>
|
|
|
|
<xpath expr="//th[@name='th_description']" position="attributes">
|
|
<attribute name="style">width: 110px</attribute>
|
|
</xpath>
|
|
|
|
<xpath expr="//div[@id='right-elements']" position="attributes">
|
|
<attribute name="t-attf-class">float-end</attribute>
|
|
<attribute name="style">width: 280px</attribute>
|
|
</xpath>
|
|
|
|
<xpath expr="//span[@t-field='line.price_unit']" position="attributes">
|
|
<attribute name="t-options">{"widget": "monetary", "display_currency": o.currency_id}</attribute>
|
|
</xpath>
|
|
|
|
</data>
|
|
```
|
|
Source: [snippets/account.report_invoice_document.style_lapp.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/account.report_invoice_document.style_lapp.xml)
|
|
|
|
### Style Moser
|
|
|
|
ID: `mint_system.account.report_invoice_document.style_moser`
|
|
|
|
```xml
|
|
<data inherit_id="account.report_invoice_document" priority="60">
|
|
<xpath expr="//div[hasclass('page')]" position="before">
|
|
<style>
|
|
.o_company_1_layout {
|
|
font-family: arial;
|
|
}
|
|
.o_company_1_layout.o_report_layout_standard h2 {
|
|
color: black;
|
|
font-size: 1.4rem;
|
|
font-weight: bold;
|
|
}
|
|
.o_company_1_layout.o_report_layout_standard #total strong {
|
|
color: black;
|
|
}
|
|
div#informations {
|
|
margin-top: 30px;
|
|
margin-bottom: 60px;
|
|
}
|
|
h2.mt-4 {
|
|
margin-top: 70px !important;
|
|
}
|
|
th#tax_amount {
|
|
text-align: right;
|
|
}
|
|
td#tax_amount {
|
|
text-align: right;
|
|
}
|
|
</style>
|
|
</xpath>
|
|
<xpath expr="//table[@name='invoice_line_table']" position="attributes">
|
|
<attribute name="class">table table-sm o_main_table mt-4</attribute>
|
|
</xpath>
|
|
</data>
|
|
|
|
```
|
|
Source: [snippets/account.report_invoice_document.style_moser.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/account.report_invoice_document.style_moser.xml)
|
|
|
|
### Style Swissfragrance
|
|
|
|
ID: `mint_system.account.report_invoice_document.style_swissfragrance`
|
|
|
|
```xml
|
|
<data inherit_id="account.report_invoice_document" priority="60">
|
|
<xpath expr="//table[@name='invoice_line_table']" position="attributes">
|
|
<attribute name="class">table table-sm o_main_table</attribute>
|
|
</xpath>
|
|
</data>
|
|
|
|
```
|
|
Source: [snippets/account.report_invoice_document.style_swissfragrance.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/account.report_invoice_document.style_swissfragrance.xml)
|
|
|
|
### Style Tissa
|
|
|
|
ID: `mint_system.account.report_invoice_document.style_tissa`
|
|
|
|
```xml
|
|
<data inherit_id="account.report_invoice_document" priority="60">
|
|
<xpath expr="//div[hasclass('page')]" position="before">
|
|
<style>
|
|
table#info {
|
|
font-size: 9pt;
|
|
font-family: arial;
|
|
}
|
|
h2 {
|
|
font-size: 1.2rem;
|
|
font-weight: bold;
|
|
margin: 50px 0 30px 0
|
|
}
|
|
body {
|
|
font-size: 11pt;
|
|
font-family: arial;
|
|
}
|
|
</style>
|
|
</xpath>
|
|
|
|
<xpath expr="//table[@name='invoice_line_table']" position="attributes">
|
|
<attribute name="class">table table-sm o_main_table</attribute>
|
|
</xpath>
|
|
|
|
<xpath expr="//table[@name='invoice_line_table']//th[@id='position']" position="attributes">
|
|
<attribute name="class">text-start</attribute>
|
|
</xpath>
|
|
|
|
<xpath expr="//table[@name='invoice_line_table']/thead/tr/th[5]" position="attributes">
|
|
<attribute name="t-attf-class">text-end {{ 'd-none d-md-table-cell' if report_type == 'html' else '' }}</attribute>
|
|
</xpath>
|
|
<xpath expr="//table[@name='invoice_line_table']/tbody/t/tr/t/td[5]" position="attributes">
|
|
<attribute name="t-attf-class">text-end {{ 'd-none d-md-table-cell' if report_type == 'html' else '' }}</attribute>
|
|
</xpath>
|
|
<xpath expr="//p[@name='payment_communication']" position="attributes">
|
|
<attribute name="style">margin-bottom: 0px</attribute>
|
|
</xpath>
|
|
|
|
<!--
|
|
<xpath expr="//p[@name='payment_term']" position="attributes">
|
|
<attribute name="style">margin-bottom: 0px</attribute>
|
|
</xpath>
|
|
-->
|
|
|
|
</data>
|
|
```
|
|
Source: [snippets/account.report_invoice_document.style_tissa.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/account.report_invoice_document.style_tissa.xml)
|
|
|
|
### Style Trimada
|
|
|
|
ID: `mint_system.account.report_invoice_document.style_trimada`
|
|
|
|
```xml
|
|
<data inherit_id="account.report_invoice_document" priority="60">
|
|
<xpath expr="//div[hasclass('page')]" position="before">
|
|
<style>
|
|
.o_company_1_layout {
|
|
font-family: arial;
|
|
}
|
|
table.trimada {
|
|
font-size: 9pt;
|
|
font-family: arial;
|
|
color: black;
|
|
}
|
|
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 tr {
|
|
border-top:solid 1px;
|
|
border-bottom: solid 1px;
|
|
}
|
|
table.trimada thead th#position {
|
|
width: 5mm;
|
|
}
|
|
table.trimada thead th#default_code {
|
|
width: 27mm;
|
|
text-align: right;
|
|
}
|
|
table.trimada thead th#open_quantity {
|
|
width: 30mm;
|
|
text-align: right;
|
|
}
|
|
table.trimada thead th#quantity {
|
|
width: 25mm;
|
|
text-align: right !important;
|
|
}
|
|
table.trimada tbody td#position {
|
|
text-align: right;
|
|
}
|
|
table.trimada tbody td#default_code {
|
|
text-align: right;
|
|
}
|
|
table.trimada tbody td#open_quantity {
|
|
text-align: right !important;
|
|
}
|
|
table.trimada tbody td#quantity {
|
|
text-align: right;
|
|
}
|
|
table.trimada tbody span#qty {
|
|
font-weight: bold;
|
|
}
|
|
table.trimada tbody span#open_qty {
|
|
font-weight: bold;
|
|
}
|
|
address {
|
|
line-height: 1.2;
|
|
}
|
|
.mb-0 span {
|
|
line-height: 1.2;
|
|
}
|
|
.address {
|
|
font-size: 10pt;
|
|
line-height: 1.2 !important;
|
|
padding-bottom:33mm;
|
|
}
|
|
.subtitel {
|
|
font-size: 11pt;
|
|
font-family: arial;
|
|
margin-top: 10mm;
|
|
}
|
|
.note {
|
|
font-size: 9pt;
|
|
font-family: arial;
|
|
}
|
|
</style>
|
|
</xpath>
|
|
<table name="invoice_line_table" position="attributes">
|
|
<attribute name="class" separator=" " add="trimada table-borderless"/>
|
|
</table>
|
|
<table name="invoice_line_table" position="attributes">
|
|
<attribute name="class" separator=" " add="trimada table-borderless"/>
|
|
</table>
|
|
<span id="qty" position="attributes">
|
|
<attribute name="t-options-widget">"integer"</attribute>
|
|
</span>
|
|
<div id="total" position="attributes">
|
|
<attribute name="style">font-size: 9pt; color: blue</attribute>
|
|
</div>
|
|
</data>
|
|
|
|
```
|
|
Source: [snippets/account.report_invoice_document.style_trimada.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/account.report_invoice_document.style_trimada.xml)
|
|
|
|
### Subtotal Or Total
|
|
|
|
ID: `mint_system.account.report_invoice_document.subtotal_or_total`
|
|
|
|
```xml
|
|
<data inherit_id="account.report_invoice_document" priority="50">
|
|
<xpath expr="//th[@name='th_subtotal']" position="replace">
|
|
<th name="th_subtotal" class="text-end">
|
|
<span groups="gds_invoice.group_show_line_subtotals_tax_excluded">Amount</span>
|
|
<span groups="gds_invoice.group_show_line_subtotals_tax_included">Total Amount</span>
|
|
<!--
|
|
<span groups="gds_invoice.group_show_line_subtotals_tax_excluded">Betrag</span>
|
|
<span groups="gds_invoice.group_show_line_subtotals_tax_included">Gesamtbetrag</span>
|
|
-->
|
|
</th>
|
|
</xpath>
|
|
<xpath expr="//td[@name='td_subtotal']" position="replace">
|
|
<td name="td_subtotal" class="text-end o_price_total">
|
|
<span t-field="line.price_subtotal" groups="gds_invoice.group_show_line_subtotals_tax_excluded"/>
|
|
<span t-field="line.price_total" groups="gds_invoice.group_show_line_subtotals_tax_included"/>
|
|
</td>
|
|
</xpath>
|
|
</data>
|
|
```
|
|
Source: [snippets/account.report_invoice_document.subtotal_or_total.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/account.report_invoice_document.subtotal_or_total.xml)
|
|
|
|
### Switch Address Block
|
|
|
|
ID: `mint_system.account.report_invoice_document.switch_address_block`
|
|
|
|
```xml
|
|
<data inherit_id="account.report_invoice_document" priority="50">
|
|
<xpath expr="//t[@t-set='address']" position="after">
|
|
<t t-set="information_block">
|
|
<address t-field="o.partner_id" t-options="{'widget': 'contact', 'fields': ['address', 'name'], 'no_marker': True}"/>
|
|
<div t-if="o.partner_id.vat" class="mt16"><t t-if="o.company_id.country_id.vat_label" t-esc="o.company_id.country_id.vat_label" id="inv_tax_id_label"/><t t-else="">Tax ID</t>: <span t-field="o.partner_id.vat"/></div>
|
|
</t>
|
|
</xpath>
|
|
<xpath expr="//t[@t-set='address']" position="replace">
|
|
<t t-set="address">
|
|
</t>
|
|
</xpath>
|
|
</data>
|
|
|
|
```
|
|
Source: [snippets/account.report_invoice_document.switch_address_block.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/account.report_invoice_document.switch_address_block.xml)
|
|
|
|
### Tissa Rechnungstext
|
|
|
|
ID: `mint_system.account.report_invoice_document.tissa_rechnungstext`
|
|
|
|
```xml
|
|
<data inherit_id="account.report_invoice_document" priority="50">
|
|
<xpath expr="//p[@name='payment_term']" position="after">
|
|
<t t-foreach="o.partner_id.x_studio_field_5jUpb" t-as="text">
|
|
<span t-raw="text.x_studio_rechnungstext"/>
|
|
</t>
|
|
</xpath>
|
|
</data>
|
|
<!-- Version 16
|
|
<data inherit_id="account.report_invoice_document" priority="50">
|
|
<xpath expr="//div[@name='payment_term']" position="after">
|
|
<t t-foreach="o.partner_id.x_studio_field_5jUpb" t-as="text">
|
|
<span t-raw="text.x_studio_rechnungstext"/>
|
|
</t>
|
|
</xpath>
|
|
</data>
|
|
-->
|
|
|
|
```
|
|
Source: [snippets/account.report_invoice_document.tissa_rechnungstext.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/account.report_invoice_document.tissa_rechnungstext.xml)
|
|
|
|
### Tissa Replace Infotable
|
|
|
|
ID: `mint_system.account.report_invoice_document.tissa_replace_infotable`
|
|
|
|
```xml
|
|
<data inherit_id="account.report_invoice_document" priority="50">
|
|
|
|
<xpath expr="//div[@id='informations']" position="replace">
|
|
<style>
|
|
table#info {
|
|
width: 100%;
|
|
margin-bottom: 45px;
|
|
font-size: 11pt;
|
|
}
|
|
table#info tr {
|
|
line-height: 1.2;
|
|
text-align: left;
|
|
}
|
|
.note {
|
|
font-size: 9pt;
|
|
}
|
|
</style>
|
|
<table id="info">
|
|
|
|
<tr>
|
|
<td>
|
|
Contact Number:
|
|
</td>
|
|
<td>
|
|
<span t-field="o.partner_id.id"/>
|
|
</td>
|
|
<td>
|
|
Date:
|
|
</td>
|
|
<td>
|
|
<span t-field="o.invoice_date"/>
|
|
</td>
|
|
</tr>
|
|
|
|
<!-- Get all sale orders without duplicates -->
|
|
<t t-set="sale_orders" t-value="list(set([line.order_id for line in o.invoice_line_ids.sale_line_ids]))"/>
|
|
|
|
<tr>
|
|
<td>
|
|
VAT:
|
|
</td>
|
|
<td>
|
|
<span t-field="o.partner_id.vat"/>
|
|
</td>
|
|
|
|
<td>Our Order:</td>
|
|
<td>
|
|
<t t-foreach="sale_orders" t-as="order">
|
|
<t t-if="order.origin">
|
|
<span t-field="order.origin"/>
|
|
/
|
|
</t>
|
|
</t>
|
|
<span t-field="o.invoice_origin"/>
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td width="16%">EORI-Number:</td>
|
|
<td width="44%">
|
|
<span t-field="o.partner_id.x_studio_eori_nummer"/>
|
|
</td>
|
|
<td>Call-off Order:</td>
|
|
<td>
|
|
<t t-foreach="sale_orders" t-as="order">
|
|
<span t-field="order.comment"/>
|
|
<t t-if="order.x_studio_kommission">
|
|
/ <span t-field="ordere.x_studio_kommission"/>
|
|
</t>
|
|
</t>
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td>Your Order:</td>
|
|
<td>
|
|
<t t-foreach="sale_orders" t-as="order">
|
|
<span t-field="order.client_order_ref"/>
|
|
</t>
|
|
</td>
|
|
<td>Our Contact:</td>
|
|
<td>
|
|
<span t-field="o.partner_id.user_id"/>
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td/>
|
|
<td/>
|
|
<td>
|
|
VAT-No:
|
|
</td>
|
|
<td>
|
|
<span t-field="o.company_id.vat"/>
|
|
</td>
|
|
</tr>
|
|
|
|
</table>
|
|
</xpath>
|
|
</data>
|
|
```
|
|
Source: [snippets/account.report_invoice_document.tissa_replace_infotable.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/account.report_invoice_document.tissa_replace_infotable.xml)
|
|
|
|
### Unit Precision
|
|
|
|
ID: `mint_system.account.report_invoice_document.unit_precision`
|
|
|
|
```xml
|
|
<data inherit_id="account.report_invoice_document" priority="50">
|
|
<xpath expr="//tbody[1]/t[3]/tr[1]/t[1]/td[2]/span[1]" position="attributes">
|
|
<attribute name="t-options-widget">"integer"</attribute>
|
|
</xpath>
|
|
</data>
|
|
|
|
```
|
|
Source: [snippets/account.report_invoice_document.unit_precision.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/account.report_invoice_document.unit_precision.xml)
|
|
|
|
### X Hide On Invoice
|
|
|
|
ID: `mint_system.account.report_invoice_document.x_hide_on_invoice`
|
|
|
|
```xml
|
|
<data inherit_id="account.report_invoice_document" priority="50">
|
|
<xpath expr="//t[@t-set='lines']" position="after">
|
|
<t t-set="lines" t-value="lines.filtered(lambda l: not l.product_id.x_hide_on_invoice)"/>
|
|
</xpath>
|
|
</data>
|
|
|
|
```
|
|
Source: [snippets/account.report_invoice_document.x_hide_on_invoice.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/account.report_invoice_document.x_hide_on_invoice.xml)
|
|
|
|
### X Hide Partner Name
|
|
|
|
ID: `mint_system.account.report_invoice_document.x_hide_partner_name`
|
|
|
|
```xml
|
|
<data inherit_id="account.report_invoice_document" priority="50">
|
|
<xpath expr="//address[@t-field='o.partner_id']" position="attributes">
|
|
<t t-if="o.x_hide_partner_name">
|
|
<address class="mb-0" t-field="o.partner_id" t-options="{"widget": "contact", "fields": ["address"], "no_marker": True}"/>
|
|
</t>
|
|
<t t-else="">
|
|
<address class="mb-0" t-field="o.partner_id" t-options="{"widget": "contact", "fields": ["address", "name"], "no_marker": True}"/>
|
|
</t>
|
|
</xpath>
|
|
</data>
|
|
|
|
```
|
|
Source: [snippets/account.report_invoice_document.x_hide_partner_name.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/account.report_invoice_document.x_hide_partner_name.xml)
|
|
|
|
### X Name
|
|
|
|
ID: `mint_system.account.report_invoice_document.x_name`
|
|
|
|
```xml
|
|
<data inherit_id="account.report_invoice_document" priority="50">
|
|
<xpath expr="//t[@name='account_invoice_line_accountable']/.." position="after">
|
|
|
|
<tr>
|
|
<t t-set="pickings_unsorted" t-value="list(set(line.sale_line_ids.move_ids))"/>
|
|
<t t-set="pickings" t-value="sorted(pickings_unsorted, key=lambda p: (p.picking_id.x_date_done or '').isoformat() if p.picking_id.x_date_done else '')"/>
|
|
|
|
<t t-foreach="pickings" t-as="picking">
|
|
<t t-if="picking.state == 'done'">
|
|
<tr>
|
|
<td style="padding: 0px; padding-left: 20px; border-bottom-width: 1px" colspan="6">
|
|
|
|
<t t-set="all_invoice_dates" t-value="[]"/>
|
|
|
|
<!-- Collect all invoice_date values and calculate penultimate invoice_date -->
|
|
<t t-foreach="line.x_sale_order_id" t-as="sale_line">
|
|
<t t-foreach="sale_line.invoice_ids" t-as="invoice_line">
|
|
<t t-if="invoice_line.invoice_date">
|
|
<t t-set="all_invoice_dates" t-value="all_invoice_dates + [invoice_line.invoice_date]"/>
|
|
</t>
|
|
</t>
|
|
</t>
|
|
<t t-if="all_invoice_dates and len(all_invoice_dates) > 1">
|
|
<t t-set="sorted_dates" t-value="sorted(all_invoice_dates)"/>
|
|
<t t-set="second_latest_date" t-value="sorted_dates[-2]"/>
|
|
</t>
|
|
|
|
<t t-if="picking.picking_id and (not second_latest_date or picking.picking_id.x_date_done > second_latest_date)">
|
|
<span>Lieferdatum: </span>
|
|
<span t-esc="picking.picking_id.x_date_done" t-options="{'widget': 'date'}"/>
|
|
|
|
<span>LS: </span>
|
|
<t t-if="picking.picking_id.x_name">
|
|
<span t-esc="picking.picking_id.x_name"/>
|
|
</t>
|
|
<t t-else="">
|
|
<span t-esc="picking.picking_id.name"/>
|
|
</t>
|
|
|
|
<span>Menge: </span>
|
|
<t t-set="move_lines" t-value="list(set(picking.picking_id.move_ids))"/>
|
|
<t t-foreach="move_lines" t-as="move_line">
|
|
<t t-if="line.product_id.id == move_line.product_id.id">
|
|
<span t-esc="move_line.quantity" t-options="{'widget': 'float', 'precision': 2}"/>
|
|
<span t-esc="move_line.product_uom.name"/>
|
|
</t>
|
|
</t>
|
|
</t>
|
|
|
|
</td>
|
|
</tr>
|
|
</t>
|
|
</t>
|
|
</tr>
|
|
</xpath>
|
|
</data>
|
|
```
|
|
Source: [snippets/account.report_invoice_document.x_name.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/account.report_invoice_document.x_name.xml)
|
|
|
|
### X Picking List
|
|
|
|
ID: `mint_system.account.report_invoice_document.x_picking_list`
|
|
|
|
```xml
|
|
<data inherit_id="account.report_invoice_document" priority="50">
|
|
<xpath expr="//p[@t-field='o.invoice_origin']" position="attributes">
|
|
<attribute name="t-field">o.x_picking_list</attribute>
|
|
</xpath>
|
|
</data>
|
|
|
|
```
|
|
Source: [snippets/account.report_invoice_document.x_picking_list.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/account.report_invoice_document.x_picking_list.xml)
|
|
|
|
### X Show Bank Details
|
|
|
|
ID: `mint_system.account.report_invoice_document.x_show_bank_details`
|
|
|
|
```xml
|
|
<data inherit_id="account.report_invoice_document" priority="50">
|
|
<p name="payment_communication" position="after">
|
|
<p t-if="o.x_show_bank_details">
|
|
Please use the following communication for your payment: <b><span t-field="o.payment_reference"/></b>
|
|
</p>
|
|
<p t-if="o.x_show_bank_details and o.currency_id.name == 'CHF'"><strong>Bank Account CHF</strong><br/>
|
|
Bank: Raiffeisenbank, CH-6341 Baar<br/>
|
|
Number: 81454 - 46998.41<br/>
|
|
SWIFT: RAIFCH22XXX<br/>
|
|
IBAN: CH13 8080 8007 4030 9457
|
|
</p>
|
|
<p t-if="o.x_show_bank_details and o.currency_id.name == 'EUR'"><strong>Bank Account EUR</strong><br/>
|
|
Bank: Raiffeisenbank, CH-6341 Baar<br/>
|
|
Number: 81454 - 46998.66<br/>
|
|
SWIFT: RAIFCH22XXX<br/>
|
|
IBAN: CH86 8080 8008 3148 5950 8
|
|
</p>
|
|
</p>
|
|
<p name="payment_communication" position="replace"/>
|
|
</data>
|
|
|
|
```
|
|
Source: [snippets/account.report_invoice_document.x_show_bank_details.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/account.report_invoice_document.x_show_bank_details.xml)
|
|
|
|
### X Weights And Packaging
|
|
|
|
ID: `mint_system.account.report_invoice_document.x_weights_and_packaging`
|
|
|
|
```xml
|
|
<data inherit_id="account.report_invoice_document" priority="50">
|
|
|
|
<xpath expr="//p[@name='incoterm']" position="after">
|
|
<table style="border: white; margin-bottom: 1rem;">
|
|
<t t-if="o.x_net_weight">
|
|
<tr>
|
|
<td>
|
|
<strong>Nettogewicht: </strong>
|
|
<span t-field="o.x_net_weight"/>
|
|
kg
|
|
</td>
|
|
</tr>
|
|
</t>
|
|
<t t-if="o.x_gross_weight">
|
|
<tr>
|
|
<td>
|
|
<strong>Buttogewicht: </strong>
|
|
<span t-field="o.x_gross_weight"/>
|
|
kg
|
|
</td>
|
|
</tr>
|
|
</t>
|
|
<t t-if="o.x_packaging">
|
|
<tr>
|
|
<td>
|
|
<strong>Verpackung: </strong>
|
|
<span t-field="o.x_packaging"/>
|
|
</td>
|
|
</tr>
|
|
</t>
|
|
</table>
|
|
</xpath>
|
|
|
|
</data>
|
|
```
|
|
Source: [snippets/account.report_invoice_document.x_weights_and_packaging.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/account.report_invoice_document.x_weights_and_packaging.xml)
|
|
|
|
## Report Timesheet
|
|
|
|
### Report
|
|
|
|
ID: `mint_system.account.report_timesheet.report`
|
|
|
|
```xml
|
|
<t t-name="account.report_timesheet">
|
|
<t t-call="web.html_container">
|
|
<t t-foreach="docs" t-as="doc">
|
|
<t t-call="hr_timesheet.report_timesheet" t-lang="doc.partner_id.lang">
|
|
<t t-set="docs" t-value="doc.timesheet_ids"/>
|
|
</t>
|
|
</t>
|
|
</t>
|
|
</t>
|
|
|
|
```
|
|
Source: [snippets/account.report_timesheet.report.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/account.report_timesheet.report.xml)
|
|
|
|
## Res Config Settings View Form
|
|
|
|
### Domain Expense Currency Exchange Account Id
|
|
|
|
ID: `mint_system.account.res_config_settings_view_form.domain_expense_currency_exchange_account_id`
|
|
|
|
```xml
|
|
<data inherit_id="account.res_config_settings_view_form" priority="50">
|
|
<field name="expense_currency_exchange_account_id" position="attributes">
|
|
<attribute name="domain">[('internal_type', '=', 'other'), ('deprecated', '=', False)]</attribute>
|
|
</field>
|
|
</data>
|
|
|
|
```
|
|
Source: [snippets/account.res_config_settings_view_form.domain_expense_currency_exchange_account_id.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/account.res_config_settings_view_form.domain_expense_currency_exchange_account_id.xml)
|
|
|
|
## View Account Invoice Filter
|
|
|
|
### Is Move Sent
|
|
|
|
ID: `mint_system.account.view_account_invoice_filter.is_move_sent`
|
|
|
|
```xml
|
|
<data inherit_id="account.view_account_invoice_filter" priority="50">
|
|
<filter name="to_check" position="after">
|
|
<filter name="is_sent" string="Sent" domain="[('is_move_sent', '=', True)]"/>
|
|
<filter name="is_not_sent" string="Not Sent" domain="[('is_move_sent', '=', False)]"/>
|
|
</filter>
|
|
</data>
|
|
|
|
```
|
|
Source: [snippets/account.view_account_invoice_filter.is_move_sent.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/account.view_account_invoice_filter.is_move_sent.xml)
|
|
|
|
### Partner Id
|
|
|
|
ID: `mint_system.account.view_account_invoice_filter.partner_id`
|
|
|
|
```xml
|
|
<data inherit_id="account.view_account_invoice_filter" priority="50">
|
|
<filter name="status" position="after">
|
|
<filter name="partner" string="Partner" context="{'group_by':'partner_id'}"/>
|
|
</filter>
|
|
</data>
|
|
|
|
```
|
|
Source: [snippets/account.view_account_invoice_filter.partner_id.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/account.view_account_invoice_filter.partner_id.xml)
|
|
|
|
## View Account Invoice Report Search
|
|
|
|
### Domain X Shipping Id
|
|
|
|
ID: `mint_system.account.view_account_invoice_report_search.domain_x_shipping_id`
|
|
|
|
```xml
|
|
<data inherit_id="account.view_account_invoice_report_search" priority="50">
|
|
<xpath expr="//field[@name='partner_id']" position="after">
|
|
<field name="x_shipping_id"/>
|
|
<filter name="filter_shipping_id" domain="[('x_shipping_id', 'ilike', '%(self)s')]"/>
|
|
</xpath>
|
|
</data>
|
|
```
|
|
Source: [snippets/account.view_account_invoice_report_search.domain_x_shipping_id.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/account.view_account_invoice_report_search.domain_x_shipping_id.xml)
|
|
|
|
### Group X Shipping Id
|
|
|
|
ID: `mint_system.account.view_account_invoice_report_search.group_x_shipping_id`
|
|
|
|
```xml
|
|
<data inherit_id="account.view_account_invoice_report_search" priority="50">
|
|
<filter name="partner_id" position="after">
|
|
<filter name="x_shipping_id" context="{'group_by':'x_shipping_id','residual_visible':True}"/>
|
|
</filter>
|
|
</data>
|
|
|
|
```
|
|
Source: [snippets/account.view_account_invoice_report_search.group_x_shipping_id.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/account.view_account_invoice_report_search.group_x_shipping_id.xml)
|
|
|
|
## View Account Journal Form
|
|
|
|
### Show Payment Method Code
|
|
|
|
ID: `mint_system.account.view_account_journal_form.show_payment_method_code`
|
|
|
|
```xml
|
|
<data inherit_id="account.view_account_journal_form" priority="50">
|
|
<xpath expr="//field[@name='inbound_payment_method_line_ids']//field[@name='payment_method_id']" position="before">
|
|
<field name="code"/>
|
|
</xpath>
|
|
</data>
|
|
|
|
```
|
|
Source: [snippets/account.view_account_journal_form.show_payment_method_code.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/account.view_account_journal_form.show_payment_method_code.xml)
|
|
|
|
## View Account List
|
|
|
|
### Show Deprecated
|
|
|
|
ID: `mint_system.account.view_account_list.show_deprecated`
|
|
|
|
```xml
|
|
<data inherit_id="account.view_account_list" priority="50">
|
|
<xpath expr="//field[@name='reconcile']" position="after">
|
|
<field name="deprecated" widget="boolean_toggle"/>
|
|
</xpath>
|
|
</data>
|
|
|
|
```
|
|
Source: [snippets/account.view_account_list.show_deprecated.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/account.view_account_list.show_deprecated.xml)
|
|
|
|
## View Account Move Filter
|
|
|
|
### X Account Codes
|
|
|
|
ID: `mint_system.account.view_account_move_filter.x_account_codes`
|
|
|
|
```xml
|
|
<data inherit_id="account.view_account_move_filter" priority="50">
|
|
<field name="date" position="after">
|
|
<field name="x_account_codes"/>
|
|
</field>
|
|
</data>
|
|
|
|
```
|
|
Source: [snippets/account.view_account_move_filter.x_account_codes.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/account.view_account_move_filter.x_account_codes.xml)
|
|
|
|
## View Account Payment Register Form
|
|
|
|
### Show Partner Id
|
|
|
|
ID: `mint_system.account.view_account_payment_register_form.show_partner_id`
|
|
|
|
```xml
|
|
<data inherit_id="account.view_account_payment_register_form" priority="50">
|
|
<field name="partner_bank_id" position="before">
|
|
<field name="partner_id"/>
|
|
</field>
|
|
</data>
|
|
|
|
```
|
|
Source: [snippets/account.view_account_payment_register_form.show_partner_id.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/account.view_account_payment_register_form.show_partner_id.xml)
|
|
|
|
## View Bank Statement Form
|
|
|
|
### Edit Balance
|
|
|
|
ID: `mint_system.account.view_bank_statement_form.edit_balance`
|
|
|
|
```xml
|
|
<data inherit_id="account.view_bank_statement_form" priority="50">
|
|
<field name="balance_start" position="attributes">
|
|
<attribute name="attrs">{'readonly': False}</attribute>
|
|
</field>
|
|
<field name="balance_end_real" position="attributes">
|
|
<attribute name="attrs">{'readonly': False}</attribute>
|
|
</field>
|
|
</data>
|
|
|
|
```
|
|
Source: [snippets/account.view_bank_statement_form.edit_balance.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/account.view_bank_statement_form.edit_balance.xml)
|
|
|
|
### Edit Transactions
|
|
|
|
ID: `mint_system.account.view_bank_statement_form.edit_transactions`
|
|
|
|
```xml
|
|
<data inherit_id="account.view_bank_statement_form" priority="50">
|
|
<field name="line_ids" position="attributes">
|
|
<attribute name="attrs">{'readonly': [('state', '=', 'confirm')]}</attribute>
|
|
</field>
|
|
</data>
|
|
|
|
```
|
|
Source: [snippets/account.view_bank_statement_form.edit_transactions.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/account.view_bank_statement_form.edit_transactions.xml)
|
|
|
|
### Show Cashbox
|
|
|
|
ID: `mint_system.account.view_bank_statement_form.show_cashbox`
|
|
|
|
```xml
|
|
<data inherit_id="account.view_bank_statement_form" priority="50">
|
|
<field name="balance_start" position="after">
|
|
<button name="open_cashbox_id" attrs="{'invisible': [('journal_type','!=','cash')]}" string="→ Count" type="object" class="oe_link oe_inline" context="{'balance':'start'}"/>
|
|
</field>
|
|
</data>
|
|
|
|
```
|
|
Source: [snippets/account.view_bank_statement_form.show_cashbox.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/account.view_bank_statement_form.show_cashbox.xml)
|
|
|
|
### Show Move Id
|
|
|
|
ID: `mint_system.account.view_bank_statement_form.show_move_id`
|
|
|
|
```xml
|
|
<data inherit_id="account.view_bank_statement_form" priority="50">
|
|
<xpath expr="//page[@name='statement_line_ids']//field[@name='ref']" position="after">
|
|
<field name="move_id" optional="hidden"/>
|
|
</xpath>
|
|
</data>
|
|
|
|
```
|
|
Source: [snippets/account.view_bank_statement_form.show_move_id.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/account.view_bank_statement_form.show_move_id.xml)
|
|
|
|
### X Cashbox Start Ids
|
|
|
|
ID: `mint_system.account.view_bank_statement_form.x_cashbox_start_ids`
|
|
|
|
```xml
|
|
<data inherit_id="account.view_bank_statement_form" priority="50">
|
|
<page name="statement_line_ids" position="after">
|
|
<page string="Kassenpositionen" name="cashbox_ids" attrs="{'invisible': [('journal_type','!=','cash')]}">
|
|
<group>
|
|
<field name="x_cashbox_start_ids">
|
|
<tree>
|
|
<field name="number"/>
|
|
<field name="coin_value"/>
|
|
<field name="subtotal"/>
|
|
</tree>
|
|
</field>
|
|
</group>
|
|
<group>
|
|
<field name="x_cashbox_end_ids">
|
|
<tree>
|
|
<field name="number"/>
|
|
<field name="coin_value"/>
|
|
<field name="subtotal"/>
|
|
</tree>
|
|
</field>
|
|
</group>
|
|
</page>
|
|
</page>
|
|
</data>
|
|
|
|
```
|
|
Source: [snippets/account.view_bank_statement_form.x_cashbox_start_ids.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/account.view_bank_statement_form.x_cashbox_start_ids.xml)
|
|
|
|
## View Bank Statement Line Search
|
|
|
|
### Filter Move Id
|
|
|
|
ID: `mint_system.account.view_bank_statement_line_search.filter_move_id`
|
|
|
|
```xml
|
|
<data inherit_id="account.view_bank_statement_line_search" priority="50">
|
|
<xpath expr="//field[@name='payment_ref']" position="before">
|
|
<field name="move_id"/>
|
|
</xpath>
|
|
</data>
|
|
|
|
```
|
|
Source: [snippets/account.view_bank_statement_line_search.filter_move_id.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/account.view_bank_statement_line_search.filter_move_id.xml)
|
|
|
|
## View Bank Statement Line Tree
|
|
|
|
### Enable Create
|
|
|
|
ID: `mint_system.account.view_bank_statement_line_tree.enable_create`
|
|
|
|
```xml
|
|
<data inherit_id="account.view_bank_statement_line_tree" priority="50">
|
|
<tree position="attributes">
|
|
<attribute name="create">1</attribute>
|
|
</tree>
|
|
</data>
|
|
|
|
```
|
|
Source: [snippets/account.view_bank_statement_line_tree.enable_create.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/account.view_bank_statement_line_tree.enable_create.xml)
|
|
|
|
## View In Invoice Tree
|
|
|
|
### Add Discount Date
|
|
|
|
ID: `mint_system.account.view_in_invoice_tree.add_discount_date`
|
|
|
|
```xml
|
|
<data inherit_id="account.view_in_invoice_tree" priority="50">
|
|
<field name="invoice_date_due" position="after">
|
|
<field name="discount_date" optional="hide"/>
|
|
</field>
|
|
</data>
|
|
|
|
```
|
|
Source: [snippets/account.view_in_invoice_tree.add_discount_date.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/account.view_in_invoice_tree.add_discount_date.xml)
|
|
|
|
### Format Invoice Date Due
|
|
|
|
ID: `mint_system.account.view_in_invoice_tree.format_invoice_date_due`
|
|
|
|
```xml
|
|
<data inherit_id="account.view_in_invoice_tree" priority="50">
|
|
<xpath expr="//field[@name='invoice_date_due']" position="attributes">
|
|
<attribute name="widget">date</attribute>
|
|
</xpath>
|
|
</data>
|
|
|
|
```
|
|
Source: [snippets/account.view_in_invoice_tree.format_invoice_date_due.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/account.view_in_invoice_tree.format_invoice_date_due.xml)
|
|
|
|
## View Invoice Tree
|
|
|
|
### Add Currency Id
|
|
|
|
ID: `mint_system.account.view_invoice_tree.add_currency_id`
|
|
|
|
```xml
|
|
<data inherit_id="account.view_invoice_tree" priority="50">
|
|
<field name="ref" position="after">
|
|
<field name="currency_id" optional="hide"/>
|
|
</field>
|
|
</data>
|
|
|
|
```
|
|
Source: [snippets/account.view_invoice_tree.add_currency_id.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/account.view_invoice_tree.add_currency_id.xml)
|
|
|
|
### Add Is Move Sent
|
|
|
|
ID: `mint_system.account.view_invoice_tree.add_is_move_sent`
|
|
|
|
```xml
|
|
<data inherit_id="account.view_invoice_tree" priority="50">
|
|
<field name="state" position="after">
|
|
<field name="is_move_sent" optional="hide"/>
|
|
</field>
|
|
</data>
|
|
|
|
```
|
|
Source: [snippets/account.view_invoice_tree.add_is_move_sent.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/account.view_invoice_tree.add_is_move_sent.xml)
|
|
|
|
### Format Ref
|
|
|
|
ID: `mint_system.account.view_invoice_tree.format_ref`
|
|
|
|
```xml
|
|
<data inherit_id="account.view_invoice_tree" priority="50">
|
|
<xpath expr="//field[@name='ref']" position="attributes">
|
|
<attribute name="string">Bestellnummer Kunde</attribute>
|
|
</xpath>
|
|
</data>
|
|
|
|
```
|
|
Source: [snippets/account.view_invoice_tree.format_ref.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/account.view_invoice_tree.format_ref.xml)
|
|
|
|
### Show Date
|
|
|
|
ID: `mint_system.account.view_invoice_tree.show_date`
|
|
|
|
```xml
|
|
<data inherit_id="account.view_invoice_tree" priority="50">
|
|
<xpath expr="//field[@name='invoice_date']" position="after">
|
|
<field name="date" optional="show"/>
|
|
</xpath>
|
|
</data>
|
|
|
|
```
|
|
Source: [snippets/account.view_invoice_tree.show_date.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/account.view_invoice_tree.show_date.xml)
|
|
|
|
### X Account Codes
|
|
|
|
ID: `mint_system.account.view_invoice_tree.x_account_codes`
|
|
|
|
```xml
|
|
<data inherit_id="account.view_invoice_tree" priority="50">
|
|
<field name="ref" position="after">
|
|
<field name="x_account_codes" optional="hide"/>
|
|
</field>
|
|
</data>
|
|
|
|
```
|
|
Source: [snippets/account.view_invoice_tree.x_account_codes.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/account.view_invoice_tree.x_account_codes.xml)
|
|
|
|
### X Bexio Name
|
|
|
|
ID: `mint_system.account.view_invoice_tree.x_bexio_name`
|
|
|
|
```xml
|
|
<data inherit_id="account.view_invoice_tree" priority="50">
|
|
<xpath expr="//group[@id='header_left_group']/label[1]" position="before">
|
|
<field name="x_bexio_name" readonly="1"/>
|
|
</xpath>
|
|
</data>
|
|
|
|
```
|
|
Source: [snippets/account.view_invoice_tree.x_bexio_name.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/account.view_invoice_tree.x_bexio_name.xml)
|
|
|
|
### X Recurring Inverval
|
|
|
|
ID: `mint_system.account.view_invoice_tree.x_recurring_inverval`
|
|
|
|
```xml
|
|
<data inherit_id="account.view_invoice_tree" priority="50">
|
|
<field name="invoice_date" position="after">
|
|
<field name="x_recurring_inverval" optional="show"/>
|
|
</field>
|
|
</data>
|
|
|
|
```
|
|
Source: [snippets/account.view_invoice_tree.x_recurring_inverval.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/account.view_invoice_tree.x_recurring_inverval.xml)
|
|
|
|
## View Move Form
|
|
|
|
### Domain Partner Bank Ids
|
|
|
|
ID: `mint_system.account.view_move_form.domain_partner_bank_ids`
|
|
|
|
```xml
|
|
<data inherit_id="account.view_move_form" priority="50">
|
|
<xpath expr="//group[@id='header_left_group']//field[@name='partner_bank_id']" position="attributes">
|
|
<attribute name="domain"/>
|
|
</xpath>
|
|
</data>
|
|
|
|
```
|
|
Source: [snippets/account.view_move_form.domain_partner_bank_ids.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/account.view_move_form.domain_partner_bank_ids.xml)
|
|
|
|
### Edit Invoice Date
|
|
|
|
ID: `mint_system.account.view_move_form.edit_invoice_date`
|
|
|
|
```xml
|
|
<data inherit_id="account.view_move_form" priority="50">
|
|
<field name="invoice_date" position="attributes">
|
|
<attribute name="attrs">{}</attribute>
|
|
</field>
|
|
</data>
|
|
|
|
```
|
|
Source: [snippets/account.view_move_form.edit_invoice_date.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/account.view_move_form.edit_invoice_date.xml)
|
|
|
|
### Format Partner Bank Id
|
|
|
|
ID: `mint_system.account.view_move_form.format_partner_bank_id`
|
|
|
|
```xml
|
|
<data inherit_id="account.view_move_form" priority="50">
|
|
<xpath expr="//group[@name='sale_info_group']/field[@name='partner_bank_id']" position="attributes">
|
|
<attribute name="readonly">1</attribute>
|
|
</xpath>
|
|
</data>
|
|
|
|
```
|
|
Source: [snippets/account.view_move_form.format_partner_bank_id.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/account.view_move_form.format_partner_bank_id.xml)
|
|
|
|
### Hide Payment Reference
|
|
|
|
ID: `mint_system.account.view_move_form.hide_payment_reference`
|
|
|
|
```xml
|
|
<data inherit_id="account.view_move_form" priority="50">
|
|
<xpath expr="//field[@name='payment_reference']" position="replace">
|
|
</xpath>
|
|
</data>
|
|
|
|
```
|
|
Source: [snippets/account.view_move_form.hide_payment_reference.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/account.view_move_form.hide_payment_reference.xml)
|
|
|
|
### Hide Post Before Check
|
|
|
|
ID: `mint_system.account.view_move_form.hide_post_before_check`
|
|
|
|
```xml
|
|
<data inherit_id="account.view_move_form" priority="50">
|
|
<xpath expr="//button[@name='action_post'][1]" position="attributes">
|
|
<attribute name="attrs">{'invisible': ['|', '|', ('hide_post_button', '=', True), ('move_type', '!=', 'entry'), ('to_check', '!=', False)]}</attribute>
|
|
</xpath>
|
|
<xpath expr="//button[@name='action_post'][2]" position="attributes">
|
|
<attribute name="attrs">{'invisible': ['|', '|', '|', ('hide_post_button', '=', True), ('move_type', '=', 'entry'), ('display_inactive_currency_warning','=',True), ('to_check', '!=', False)]}</attribute>
|
|
</xpath>
|
|
</data>
|
|
|
|
```
|
|
Source: [snippets/account.view_move_form.hide_post_before_check.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/account.view_move_form.hide_post_before_check.xml)
|
|
|
|
### Hide Send Button On Refund
|
|
|
|
ID: `mint_system.account.view_move_form.hide_send_button_on_refund`
|
|
|
|
```xml
|
|
<data inherit_id="account.view_move_form" priority="50">
|
|
<xpath expr="//button[@name='action_invoice_sent'][1]" position="attributes">
|
|
<attribute name="attrs"> {'invisible':['|', '|', ('state', '!=', 'posted'), ('is_move_sent', '=', True), ('move_type', 'not in', ('out_invoice'))]}</attribute>
|
|
</xpath>
|
|
<xpath expr="//button[@name='action_invoice_sent'][2]" position="attributes">
|
|
<attribute name="attrs">{'invisible':['|', '|', ('state', '!=', 'posted'), ('is_move_sent', '=', False), ('move_type', 'not in', ('out_invoice', 'in_invoice', 'in_refund'))]}</attribute>
|
|
</xpath>
|
|
</data>
|
|
|
|
```
|
|
Source: [snippets/account.view_move_form.hide_send_button_on_refund.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/account.view_move_form.hide_send_button_on_refund.xml)
|
|
|
|
### Move Ref
|
|
|
|
ID: `mint_system.account.view_move_form.move_ref`
|
|
|
|
```xml
|
|
<data inherit_id="account.view_move_form" priority="50">
|
|
<xpath expr="//field[@name='partner_shipping_id']" position="after">
|
|
<field string="Bestellnummer Kunde" name="ref"/>
|
|
</xpath>
|
|
<xpath expr="//group[@name='sale_info_group']/label[1]" position="replace"/>
|
|
<xpath expr="//group[@name='sale_info_group']/field[@name='ref']" position="replace"/>
|
|
</data>
|
|
|
|
```
|
|
Source: [snippets/account.view_move_form.move_ref.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/account.view_move_form.move_ref.xml)
|
|
|
|
### Move To Check
|
|
|
|
ID: `mint_system.account.view_move_form.move_to_check`
|
|
|
|
```xml
|
|
<data inherit_id="account.view_move_form" priority="50">
|
|
<xpath expr="//field[@name='to_check']" position="replace"/>
|
|
<xpath expr="//field[@name='ref']" position="after">
|
|
<field name="to_check"/>
|
|
</xpath>
|
|
</data>
|
|
|
|
```
|
|
Source: [snippets/account.view_move_form.move_to_check.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/account.view_move_form.move_to_check.xml)
|
|
|
|
### Payment Reference Readonly
|
|
|
|
ID: `mint_system.account.view_move_form.payment_reference_readonly`
|
|
|
|
```xml
|
|
<data inherit_id="account.view_move_form" priority="50">
|
|
<xpath expr="//field[@name='payment_reference']" position="attributes">
|
|
<attribute name="attrs">{'readonly': True}</attribute>
|
|
</xpath>
|
|
</data>
|
|
|
|
```
|
|
Source: [snippets/account.view_move_form.payment_reference_readonly.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/account.view_move_form.payment_reference_readonly.xml)
|
|
|
|
### Remove Isr Button
|
|
|
|
ID: `mint_system.account.view_move_form.remove_isr_button`
|
|
|
|
```xml
|
|
<data inherit_id="account.view_move_form" priority="50">
|
|
<button id="l10n_ch_btn_isr_print_highlight" position="replace"/>
|
|
<button id="btn_isr_print_normal" position="replace"/>
|
|
</data>
|
|
|
|
```
|
|
Source: [snippets/account.view_move_form.remove_isr_button.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/account.view_move_form.remove_isr_button.xml)
|
|
|
|
### Replace Button Scan Wizzard
|
|
|
|
ID: `mint_system.account.view_move_form.replace_button_scan_wizzard`
|
|
|
|
```xml
|
|
<data inherit_id="account.view_move_form" priority="50">
|
|
<xpath expr="//button[@name='get_import_wizard']" position="replace">
|
|
<button type="object" name="get_import_wizard" string="Scan next QR Bill" attrs="{'invisible': [('move_type', '!=', 'in_invoice')]}"/>
|
|
</xpath>
|
|
<xpath expr="//button[@name='get_update_reference_wizard']" position="replace">
|
|
<button type="object" class="btn-primary o_button_payment_reference" name="get_update_reference_wizard" help="Update reference with scan" string="Scan QR" attrs="{'invisible': [('move_type', '!=', 'in_invoice')]}"/>
|
|
</xpath>
|
|
</data>
|
|
|
|
```
|
|
Source: [snippets/account.view_move_form.replace_button_scan_wizzard.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/account.view_move_form.replace_button_scan_wizzard.xml)
|
|
|
|
### Show Bank Partner Id
|
|
|
|
ID: `mint_system.account.view_move_form.show_bank_partner_id`
|
|
|
|
```xml
|
|
<data inherit_id="account.view_move_form" priority="50">
|
|
<field name="partner_id" position="after">
|
|
<field name="bank_partner_id"/>
|
|
</field>
|
|
</data>
|
|
|
|
```
|
|
Source: [snippets/account.view_move_form.show_bank_partner_id.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/account.view_move_form.show_bank_partner_id.xml)
|
|
|
|
### Show Commercial Partner Id
|
|
|
|
ID: `mint_system.account.view_move_form.show_commercial_partner_id`
|
|
|
|
```xml
|
|
<data inherit_id="account.view_move_form" priority="50">
|
|
<field name="partner_id" position="after">
|
|
<field name="commercial_partner_id"/>
|
|
</field>
|
|
</data>
|
|
|
|
```
|
|
Source: [snippets/account.view_move_form.show_commercial_partner_id.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/account.view_move_form.show_commercial_partner_id.xml)
|
|
|
|
### Show Invoice Origin
|
|
|
|
ID: `mint_system.account.view_move_form.show_invoice_origin`
|
|
|
|
```xml
|
|
<data inherit_id="account.view_move_form" priority="50">
|
|
<xpath expr="//group[@id='other_tab_group']//field[@name='ref']" position="after">
|
|
<field name="invoice_origin" readonly="0"/>
|
|
</xpath>
|
|
</data>
|
|
|
|
```
|
|
Source: [snippets/account.view_move_form.show_invoice_origin.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/account.view_move_form.show_invoice_origin.xml)
|
|
|
|
### Show Is Move Sent
|
|
|
|
ID: `mint_system.account.view_move_form.show_is_move_sent`
|
|
|
|
```xml
|
|
<data inherit_id="account.view_move_form" priority="50">
|
|
<field name="currency_id" position="after">
|
|
<field name="is_move_sent" string="Gesendet"/>
|
|
</field>
|
|
</data>
|
|
|
|
```
|
|
Source: [snippets/account.view_move_form.show_is_move_sent.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/account.view_move_form.show_is_move_sent.xml)
|
|
|
|
### Show Line Partner Id
|
|
|
|
ID: `mint_system.account.view_move_form.show_line_partner_id`
|
|
|
|
```xml
|
|
<data inherit_id="account.view_move_form" priority="50">
|
|
<xpath expr="//field[@name='invoice_line_ids']/tree/field[@name='partner_id']" position="replace">
|
|
<field name="partner_id" optional="hide"/>
|
|
</xpath>
|
|
<xpath expr="//field[@name='line_ids']/tree/field[@name='partner_id']" position="replace">
|
|
<field name="partner_id" domain="['|', ('parent_id', '=', False), ('is_company', '=', True)]"/>
|
|
</xpath>
|
|
</data>
|
|
|
|
```
|
|
Source: [snippets/account.view_move_form.show_line_partner_id.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/account.view_move_form.show_line_partner_id.xml)
|
|
|
|
### Show Partner Id
|
|
|
|
ID: `mint_system.account.view_move_form.show_partner_id`
|
|
|
|
```xml
|
|
<data inherit_id="account.view_move_form" priority="50">
|
|
<xpath expr="//field[@name='invoice_line_ids']/tree/field[@name='partner_id']" position="replace">
|
|
<field name="partner_id" optional="hide"/>
|
|
</xpath>
|
|
</data>
|
|
|
|
```
|
|
Source: [snippets/account.view_move_form.show_partner_id.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/account.view_move_form.show_partner_id.xml)
|
|
|
|
### Show Payment Ids
|
|
|
|
ID: `mint_system.account.view_move_form.show_payment_ids`
|
|
|
|
```xml
|
|
<data inherit_id="account.view_move_form" priority="50">
|
|
<field name="journal_id" position="after">
|
|
<field name="payment_ids"/>
|
|
</field>
|
|
</data>
|
|
|
|
```
|
|
Source: [snippets/account.view_move_form.show_payment_ids.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/account.view_move_form.show_payment_ids.xml)
|
|
|
|
### Show Payment State
|
|
|
|
ID: `mint_system.account.view_move_form.show_payment_state`
|
|
|
|
```xml
|
|
<data inherit_id="account.view_move_form" priority="50">
|
|
<field name="payment_reference" position="after">
|
|
<field name="x_payment_state"/>
|
|
</field>
|
|
</data>
|
|
|
|
```
|
|
Source: [snippets/account.view_move_form.show_payment_state.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/account.view_move_form.show_payment_state.xml)
|
|
|
|
### Show Posted Before
|
|
|
|
ID: `mint_system.account.view_move_form.show_posted_before`
|
|
|
|
```xml
|
|
<data inherit_id="account.view_move_form" priority="50">
|
|
<field name="to_check" position="after">
|
|
<field name="posted_before"/>
|
|
</field>
|
|
</data>
|
|
|
|
```
|
|
Source: [snippets/account.view_move_form.show_posted_before.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/account.view_move_form.show_posted_before.xml)
|
|
|
|
### Show Sale Order Lines
|
|
|
|
ID: `mint_system.account.view_move_form.show_sale_order_lines`
|
|
|
|
```xml
|
|
<data inherit_id="account.view_move_form" priority="50">
|
|
<field name="product_id" position="before">
|
|
<field name="sale_line_ids" widget="many2many_tags" optional="hide"/>
|
|
</field>
|
|
</data>
|
|
|
|
```
|
|
Source: [snippets/account.view_move_form.show_sale_order_lines.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/account.view_move_form.show_sale_order_lines.xml)
|
|
|
|
### Show Stock Move Line Ids
|
|
|
|
ID: `mint_system.account.view_move_form.show_stock_move_line_ids`
|
|
|
|
```xml
|
|
<data inherit_id="account.view_move_form" priority="50">
|
|
<xpath expr="//field[@name='invoice_line_ids']/tree/field[@name='account_id']" position="before">
|
|
<field name="move_line_ids" widget="many2many_tags" optional="hide"/>
|
|
</xpath>
|
|
</data>
|
|
|
|
```
|
|
Source: [snippets/account.view_move_form.show_stock_move_line_ids.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/account.view_move_form.show_stock_move_line_ids.xml)
|
|
|
|
### Show Subscription Dates
|
|
|
|
ID: `mint_system.account.view_move_form.show_subscription_dates`
|
|
|
|
```xml
|
|
<data inherit_id="account.view_move_form" priority="50">
|
|
<field name="product_id" position="before">
|
|
<field name="subscription_start_date" optional="hide"/>
|
|
<field name="subscription_end_date" optional="hide"/>
|
|
</field>
|
|
</data>
|
|
|
|
```
|
|
Source: [snippets/account.view_move_form.show_subscription_dates.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/account.view_move_form.show_subscription_dates.xml)
|
|
|
|
### Show Tax Line Id
|
|
|
|
ID: `mint_system.account.view_move_form.show_tax_line_id`
|
|
|
|
```xml
|
|
<data inherit_id="account.view_move_form" priority="50">
|
|
<field name="tax_line_id" position="attributes">
|
|
<attribute name="invisible">0</attribute>
|
|
<attribute name="optional">hide</attribute>
|
|
</field>
|
|
</data>
|
|
|
|
```
|
|
Source: [snippets/account.view_move_form.show_tax_line_id.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/account.view_move_form.show_tax_line_id.xml)
|
|
|
|
### Show User Id
|
|
|
|
ID: `mint_system.account.view_move_form.show_user_id`
|
|
|
|
```xml
|
|
<data inherit_id="account.view_move_form" priority="50">
|
|
<field name="invoice_user_id" position="after">
|
|
<field name="user_id"/>
|
|
</field>
|
|
</data>
|
|
|
|
```
|
|
Source: [snippets/account.view_move_form.show_user_id.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/account.view_move_form.show_user_id.xml)
|
|
|
|
### X Bexio Name
|
|
|
|
ID: `mint_system.account.view_move_form.x_bexio_name`
|
|
|
|
```xml
|
|
<data inherit_id="account.view_move_form" priority="50">
|
|
<xpath expr="//group[@id='header_left_group']/label[1]" position="before">
|
|
<field name="x_bexio_name"/>
|
|
</xpath>
|
|
</data>
|
|
|
|
```
|
|
Source: [snippets/account.view_move_form.x_bexio_name.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/account.view_move_form.x_bexio_name.xml)
|
|
|
|
### X Drawing File
|
|
|
|
ID: `mint_system.account.view_move_form.x_drawing_file`
|
|
|
|
```xml
|
|
<data inherit_id="account.view_move_form" priority="50">
|
|
<field name="product_id" position="after">
|
|
<field name="x_drawing_file" optional="hide"/>
|
|
</field>
|
|
</data>
|
|
|
|
```
|
|
Source: [snippets/account.view_move_form.x_drawing_file.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/account.view_move_form.x_drawing_file.xml)
|
|
|
|
### X Duplicate Found
|
|
|
|
ID: `mint_system.account.view_move_form.x_duplicate_found`
|
|
|
|
```xml
|
|
<data inherit_id="account.view_move_form" priority="50">
|
|
<header position="after">
|
|
<field name="x_duplicate_found" invisible="1"/>
|
|
<div groups="account.group_account_invoice" class="alert alert-warning" role="alert" style="margin-bottom:0px;" attrs="{'invisible': [('x_duplicate_found', '=', False)]}">
|
|
Es existiert eine bestehende Rechnung mit dem gleichen Partner und Total. Stellen sicher, dass diese Rechnung kein Duplikat ist.
|
|
<!-- A duplicate invoice with the same partner and total exists. Make sure this invoice is not a duplicate before posting. -->
|
|
</div>
|
|
</header>
|
|
</data>
|
|
|
|
```
|
|
Source: [snippets/account.view_move_form.x_duplicate_found.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/account.view_move_form.x_duplicate_found.xml)
|
|
|
|
### X Group Ids
|
|
|
|
ID: `mint_system.account.view_move_form.x_group_ids`
|
|
|
|
```xml
|
|
<data inherit_id="account.view_move_form" priority="50">
|
|
<xpath expr="//page[@id='other_tab']//field[@name='to_check']" position="after">
|
|
<field name="x_group_ids" widget="many2many_tags"/>
|
|
</xpath>
|
|
</data>
|
|
|
|
```
|
|
Source: [snippets/account.view_move_form.x_group_ids.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/account.view_move_form.x_group_ids.xml)
|
|
|
|
### X Group Weights And Packaging
|
|
|
|
ID: `mint_system.account.view_move_form.x_group_weights_and_packaging`
|
|
|
|
```xml
|
|
<data inherit_id="account.view_move_form" priority="50">
|
|
<xpath expr="//page[@name='other_info']/group[@id='other_tab_group']/group[@name='accounting_info_group']" position="after">
|
|
<group name="weights" string="Gewichte">
|
|
<field name="x_net_weight"/>
|
|
<field name="x_gross_weight"/>
|
|
</group>
|
|
<group name="packaging" string="Verpackung">
|
|
<field name="x_packaging"/>
|
|
</group>
|
|
</xpath>
|
|
</data>
|
|
```
|
|
Source: [snippets/account.view_move_form.x_group_weights_and_packaging.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/account.view_move_form.x_group_weights_and_packaging.xml)
|
|
|
|
### X Has Downpayment Warn Msg
|
|
|
|
ID: `mint_system.account.view_move_form.x_has_downpayment_warn_msg`
|
|
|
|
```xml
|
|
<data inherit_id="account.view_move_form" priority="50">
|
|
<header position="after">
|
|
<field name="x_has_downpayment" invisible="1"/>
|
|
<div groups="account.group_account_invoice" class="alert alert-warning" role="alert" style="margin-bottom:0px;" attrs="{'invisible': [('x_has_downpayment', '=', False)]}">
|
|
Der Verkaufsauftrag dieser Rechnung enthält Auftragszeilen mit einer Anzahlung.
|
|
</div>
|
|
</header>
|
|
</data>
|
|
|
|
```
|
|
Source: [snippets/account.view_move_form.x_has_downpayment_warn_msg.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/account.view_move_form.x_has_downpayment_warn_msg.xml)
|
|
|
|
### X Hide Partner Name
|
|
|
|
ID: `mint_system.account.view_move_form.x_hide_partner_name`
|
|
|
|
```xml
|
|
<data inherit_id="account.view_move_form" priority="50">
|
|
<field name="team_id" position="after">
|
|
<field name="x_hide_partner_name"/>
|
|
</field>
|
|
</data>
|
|
|
|
```
|
|
Source: [snippets/account.view_move_form.x_hide_partner_name.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/account.view_move_form.x_hide_partner_name.xml)
|
|
|
|
### X Invoice Text
|
|
|
|
ID: `mint_system.account.view_move_form.x_invoice_text`
|
|
|
|
```xml
|
|
<data inherit_id="account.view_move_form" priority="50">
|
|
<xpath expr="//page[@name='other_info']/group[@id='other_tab_group']/group[@name='utm_link']" position="after">
|
|
<group string="Invoice text" name="invoice_text">
|
|
<field name="x_invoice_text" string="Rechnungstext"/>
|
|
</group>
|
|
</xpath>
|
|
</data>
|
|
```
|
|
Source: [snippets/account.view_move_form.x_invoice_text.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/account.view_move_form.x_invoice_text.xml)
|
|
|
|
### X Invoice Warn Msg
|
|
|
|
ID: `mint_system.account.view_move_form.x_invoice_warn_msg`
|
|
|
|
```xml
|
|
<data inherit_id="account.view_move_form" priority="50">
|
|
<header position="after">
|
|
<field name="x_invoice_warn_msg" invisible="1"/>
|
|
<div groups="account.group_account_invoice" class="alert alert-warning" role="alert" style="margin-bottom:0px;" attrs="{'invisible': [('x_invoice_warn_msg', '=', False)]}">
|
|
<label for="x_invoice_warn_msg" string="Warnung für Kontakt:"/>
|
|
<field name="x_invoice_warn_msg"/>
|
|
</div>
|
|
</header>
|
|
</data>
|
|
|
|
```
|
|
Source: [snippets/account.view_move_form.x_invoice_warn_msg.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/account.view_move_form.x_invoice_warn_msg.xml)
|
|
|
|
### X Recurring Inverval
|
|
|
|
ID: `mint_system.account.view_move_form.x_recurring_inverval`
|
|
|
|
```xml
|
|
<data inherit_id="account.view_move_form" priority="50">
|
|
<field name="invoice_date" position="after">
|
|
<field name="x_recurring_inverval"/>
|
|
</field>
|
|
</data>
|
|
|
|
```
|
|
Source: [snippets/account.view_move_form.x_recurring_inverval.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/account.view_move_form.x_recurring_inverval.xml)
|
|
|
|
### X Sale Order Id
|
|
|
|
ID: `mint_system.account.view_move_form.x_sale_order_id`
|
|
|
|
```xml
|
|
<data inherit_id="account.view_move_form" priority="50">
|
|
<field name="product_id" position="before">
|
|
<field name="x_sale_order_id" widget="many2one" optional="hide"/>
|
|
</field>
|
|
</data>
|
|
|
|
```
|
|
Source: [snippets/account.view_move_form.x_sale_order_id.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/account.view_move_form.x_sale_order_id.xml)
|
|
|
|
### X Show Bank Details
|
|
|
|
ID: `mint_system.account.view_move_form.x_show_bank_details`
|
|
|
|
```xml
|
|
<data inherit_id="account.view_move_form" priority="50">
|
|
<field name="team_id" position="after">
|
|
<field name="x_show_bank_details"/>
|
|
</field>
|
|
</data>
|
|
|
|
```
|
|
Source: [snippets/account.view_move_form.x_show_bank_details.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/account.view_move_form.x_show_bank_details.xml)
|
|
|
|
## View Move Line Tax Audit Tree
|
|
|
|
### Show Balance
|
|
|
|
ID: `mint_system.account.view_move_line_tax_audit_tree.show_balance`
|
|
|
|
```xml
|
|
<data inherit_id="account.view_move_line_tax_audit_tree" priority="50">
|
|
<field name="amount_currency" position="after">
|
|
<field name="balance" optional="hide" sum="Saldo"/>
|
|
</field>
|
|
</data>
|
|
|
|
```
|
|
Source: [snippets/account.view_move_line_tax_audit_tree.show_balance.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/account.view_move_line_tax_audit_tree.show_balance.xml)
|
|
|
|
### Sum Currency
|
|
|
|
ID: `mint_system.account.view_move_line_tax_audit_tree.sum_currency`
|
|
|
|
```xml
|
|
<data inherit_id="account.view_move_line_tax_audit_tree" priority="50">
|
|
<field name="amount_currency" position="attributes">
|
|
<attribute name="sum">Amount Currency</attribute>
|
|
</field>
|
|
</data>
|
|
|
|
```
|
|
Source: [snippets/account.view_move_line_tax_audit_tree.sum_currency.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/account.view_move_line_tax_audit_tree.sum_currency.xml)
|
|
|
|
## View Move Line Tree
|
|
|
|
### Enable Create
|
|
|
|
ID: `mint_system.account.view_move_line_tree.enable_create`
|
|
|
|
```xml
|
|
<data inherit_id="account.view_move_line_tree" priority="50">
|
|
<tree position="attributes">
|
|
<attribute name="create">1</attribute>
|
|
</tree>
|
|
</data>
|
|
|
|
```
|
|
Source: [snippets/account.view_move_line_tree.enable_create.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/account.view_move_line_tree.enable_create.xml)
|
|
|
|
### Show Cumulated Balance
|
|
|
|
ID: `mint_system.account.view_move_line_tree.show_cumulated_balance`
|
|
|
|
```xml
|
|
<data inherit_id="account.view_move_line_tree" priority="50">
|
|
<field name="balance" position="after">
|
|
<field name="cumulated_balance" optional="hide"/>
|
|
</field>
|
|
</data>
|
|
|
|
```
|
|
Source: [snippets/account.view_move_line_tree.show_cumulated_balance.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/account.view_move_line_tree.show_cumulated_balance.xml)
|
|
|
|
### Vat
|
|
|
|
ID: `mint_system.account.view_move_line_tree.vat`
|
|
|
|
```xml
|
|
<data inherit_id="account.view_move_line_tree" priority="50">
|
|
<xpath expr="//tree/field[@name='partner_id']" position="after">
|
|
<field name="partner_vat" string="USt-IdNr"/>
|
|
</xpath>
|
|
</data>
|
|
|
|
```
|
|
Source: [snippets/account.view_move_line_tree.vat.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/account.view_move_line_tree.vat.xml)
|
|
|
|
## View Move Line Tree Grouped General
|
|
|
|
### Amount Currency Optional
|
|
|
|
ID: `mint_system.account.view_move_line_tree_grouped_general.amount_currency_optional`
|
|
|
|
```xml
|
|
<data inherit_id="account.view_move_line_tree_grouped_general" priority="50">
|
|
<field name="amount_currency" position="attributes">
|
|
<attribute name="optional">hide</attribute>
|
|
</field>
|
|
</data>
|
|
|
|
```
|
|
Source: [snippets/account.view_move_line_tree_grouped_general.amount_currency_optional.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/account.view_move_line_tree_grouped_general.amount_currency_optional.xml)
|
|
|
|
## View Move Tree
|
|
|
|
### Show Create Date
|
|
|
|
ID: `mint_system.account.view_move_tree.show_create_date`
|
|
|
|
```xml
|
|
<data inherit_id="account.view_move_tree" priority="50">
|
|
<xpath expr="//field[@name='date']" position="after">
|
|
<field name="create_date" optional="show"/>
|
|
</xpath>
|
|
</data>
|
|
```
|
|
Source: [snippets/account.view_move_tree.show_create_date.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/account.view_move_tree.show_create_date.xml)
|
|
|
|
### X Account Codes
|
|
|
|
ID: `mint_system.account.view_move_tree.x_account_codes`
|
|
|
|
```xml
|
|
<data inherit_id="account.view_move_tree" priority="50">
|
|
<field name="ref" position="after">
|
|
<field name="x_account_codes" optional="hide"/>
|
|
</field>
|
|
</data>
|
|
|
|
```
|
|
Source: [snippets/account.view_move_tree.x_account_codes.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/account.view_move_tree.x_account_codes.xml)
|
|
|
|
## View Out Invoice Tree
|
|
|
|
### Format Invoice Date Due
|
|
|
|
ID: `mint_system.account.view_out_invoice_tree.format_invoice_date_due`
|
|
|
|
```xml
|
|
<data inherit_id="account.view_out_invoice_tree" priority="50">
|
|
<xpath expr="//field[@name='invoice_date_due']" position="attributes">
|
|
<attribute name="widget">date</attribute>
|
|
</xpath>
|
|
</data>
|
|
|
|
```
|
|
Source: [snippets/account.view_out_invoice_tree.format_invoice_date_due.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/account.view_out_invoice_tree.format_invoice_date_due.xml)
|
|
|
|
### Show Discount
|
|
|
|
ID: `mint_system.account.view_out_invoice_tree.show_discount`
|
|
|
|
```xml
|
|
<data inherit_id="account.view_out_invoice_tree" priority="50">
|
|
<xpath expr="//field[@name='invoice_date_due']" position="after">
|
|
<field string="Skonto-Datum" name="discount_date"/>
|
|
<field string="Skonto" name="has_discount"/>
|
|
</xpath>
|
|
</data>
|
|
|
|
```
|
|
Source: [snippets/account.view_out_invoice_tree.show_discount.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/account.view_out_invoice_tree.show_discount.xml)
|
|
|
|
### Show Invoice Payment Term Id
|
|
|
|
ID: `mint_system.account.view_out_invoice_tree.show_invoice_payment_term_id`
|
|
|
|
```xml
|
|
<data inherit_id="account.view_out_invoice_tree" priority="50">
|
|
<xpath expr="//field[@name='state']" position="after">
|
|
<field name="invoice_payment_term_id" optional="hide"/>
|
|
</xpath>
|
|
</data>
|
|
|
|
```
|
|
Source: [snippets/account.view_out_invoice_tree.show_invoice_payment_term_id.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/account.view_out_invoice_tree.show_invoice_payment_term_id.xml)
|
|
|
|
### Show Partner Shipping
|
|
|
|
ID: `mint_system.account.view_out_invoice_tree.show_partner_shipping`
|
|
|
|
```xml
|
|
<data inherit_id="account.view_out_invoice_tree" priority="50">
|
|
<field name="invoice_date" position="before">
|
|
<field name="partner_shipping_id" optional="hide"/>
|
|
</field>
|
|
</data>
|
|
|
|
```
|
|
Source: [snippets/account.view_out_invoice_tree.show_partner_shipping.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/account.view_out_invoice_tree.show_partner_shipping.xml)
|
|
|
|
## View Partner Property Form
|
|
|
|
### Show Commercial Partner Id
|
|
|
|
ID: `mint_system.account.view_partner_property_form.show_commercial_partner_id`
|
|
|
|
```xml
|
|
<data inherit_id="account.view_partner_property_form" priority="50">
|
|
<xpath expr="//page[@name='accounting']/group[1]" position="before">
|
|
<field name="commercial_partner_id"/>
|
|
</xpath>
|
|
</data>
|
|
|
|
```
|
|
Source: [snippets/account.view_partner_property_form.show_commercial_partner_id.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/account.view_partner_property_form.show_commercial_partner_id.xml)
|
|
|