This commit is contained in:
Janik von Rotz committed 2023-06-21 13:48:58 +02:00
1 parent 0e59682e0c
commit da7002bca3
19 files changed
+330 -103

No files matched your search

+28
View File
@@ -2132,6 +2132,20 @@ ID: `mint_system.account.report_invoice_document.unit_precision`
```
Source: [snippets/account.report_invoice_document.unit_precision.xml](https://github.com/Mint-System/Odoo-Build/tree/14.0/snippets/account.report_invoice_document.unit_precision.xml)
### X Hide On Invoice
ID: `mint_system.account.report_invoice_document.x_hide_on_invoice`
```xml
<?xml version="1.0"?>
<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/14.0/snippets/account.report_invoice_document.x_hide_on_invoice.xml)
### X Picking List
ID: `mint_system.account.report_invoice_document.x_picking_list`
```xml
@@ -4311,6 +4325,20 @@ ID: `mint_system.account.report_invoice_document.unit_precision`
```
Source: [snippets/account.report_invoice_document.unit_precision.xml](https://github.com/Mint-System/Odoo-Build/tree/14.0/snippets/account.report_invoice_document.unit_precision.xml)
### X Hide On Invoice
ID: `mint_system.account.report_invoice_document.x_hide_on_invoice`
```xml
<?xml version="1.0"?>
<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/14.0/snippets/account.report_invoice_document.x_hide_on_invoice.xml)
### X Picking List
ID: `mint_system.account.report_invoice_document.x_picking_list`
```xml
@@ -0,0 +1,8 @@
<?xml version="1.0"?>
<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>
+24 -1
View File
@@ -1134,7 +1134,7 @@ ID: `mint_system.ir_model.product_template.x_hide_on_delivery`
<field name="name">x_hide_on_delivery</field>
<field name="store" eval="True"/>
<field name="readonly" eval="False"/>
<field name="copied" eval="False"/>
<field name="copied" eval="True"/>
<field name="ttype">boolean</field>
</record>
@@ -1143,6 +1143,29 @@ ID: `mint_system.ir_model.product_template.x_hide_on_delivery`
```
Source: [snippets/ir_model.product_template.x_hide_on_delivery.xml](https://github.com/Mint-System/Odoo-Build/tree/14.0/snippets/ir_model.product_template.x_hide_on_delivery.xml)
### X Hide On Invoice
ID: `mint_system.ir_model.product_template.x_hide_on_invoice`
```xml
<?xml version='1.0' encoding='UTF-8' ?>
<odoo>
<record id="x_hide_on_invoice" model="ir.model.fields">
<field name="domain">[]</field>
<field name="field_description">Auf Rechnung ausblenden</field>
<field name="model">product.template</field>
<field name="model_id" ref="product.model_product_template"/>
<field name="name">x_hide_on_invoice</field>
<field name="store" eval="True"/>
<field name="readonly" eval="False"/>
<field name="copied" eval="True"/>
<field name="ttype">boolean</field>
</record>
</odoo>
```
Source: [snippets/ir_model.product_template.x_hide_on_invoice.xml](https://github.com/Mint-System/Odoo-Build/tree/14.0/snippets/ir_model.product_template.x_hide_on_invoice.xml)
### X Hide On Sale Order
ID: `mint_system.ir_model.product_template.x_hide_on_sale_order`
```xml
@@ -9,7 +9,7 @@
<field name="name">x_hide_on_delivery</field>
<field name="store" eval="True"/>
<field name="readonly" eval="False"/>
<field name="copied" eval="False"/>
<field name="copied" eval="True"/>
<field name="ttype">boolean</field>
</record>
@@ -0,0 +1,16 @@
<?xml version='1.0' encoding='UTF-8' ?>
<odoo>
<record id="x_hide_on_invoice" model="ir.model.fields">
<field name="domain">[]</field>
<field name="field_description">Auf Rechnung ausblenden</field>
<field name="model">product.template</field>
<field name="model_id" ref="product.model_product_template"/>
<field name="name">x_hide_on_invoice</field>
<field name="store" eval="True"/>
<field name="readonly" eval="False"/>
<field name="copied" eval="True"/>
<field name="ttype">boolean</field>
</record>
</odoo>
+19 -1
View File
@@ -531,6 +531,24 @@ ID: `mint_system.product.product_template_only_form_view.x_hide_on_delivery`
```
Source: [snippets/product.product_template_only_form_view.x_hide_on_delivery.xml](https://github.com/Mint-System/Odoo-Build/tree/14.0/snippets/product.product_template_only_form_view.x_hide_on_delivery.xml)
### X Hide On Invoice
ID: `mint_system.product.product_template_only_form_view.x_hide_on_invoice`
```xml
<?xml version="1.0"?>
<data inherit_id="product.product_template_only_form_view" priority="50">
<group name="properties" position="before">
<group>
<group>
<field name="x_hide_on_invoice" widget="boolean_toggle" />
</group>
</group>
</group>
</data>
```
Source: [snippets/product.product_template_only_form_view.x_hide_on_invoice.xml](https://github.com/Mint-System/Odoo-Build/tree/14.0/snippets/product.product_template_only_form_view.x_hide_on_invoice.xml)
### X Hide On Sale Order
ID: `mint_system.product.product_template_only_form_view.x_hide_on_sale_order`
```xml
@@ -538,7 +556,7 @@ ID: `mint_system.product.product_template_only_form_view.x_hide_on_sale_order`
<data inherit_id="product.product_template_only_form_view" priority="50">
<field name="description_sale" position="after">
<field name="x_hide_on_sale_order" />
<field name="x_hide_on_sale_order" widget="boolean_toggle" />
</field>
</data>
@@ -0,0 +1,12 @@
<?xml version="1.0"?>
<data inherit_id="product.product_template_only_form_view" priority="50">
<group name="properties" position="before">
<group>
<group>
<field name="x_hide_on_invoice" widget="boolean_toggle" />
</group>
</group>
</group>
</data>
@@ -2,7 +2,7 @@
<data inherit_id="product.product_template_only_form_view" priority="50">
<field name="description_sale" position="after">
<field name="x_hide_on_sale_order" />
<field name="x_hide_on_sale_order" widget="boolean_toggle" />
</field>
</data>
+15
View File
@@ -3272,6 +3272,21 @@ ID: `mint_system.sale.view_order_form.no_create_edit`
```
Source: [snippets/sale.view_order_form.no_create_edit.xml](https://github.com/Mint-System/Odoo-Build/tree/14.0/snippets/sale.view_order_form.no_create_edit.xml)
### Product Id No Create
ID: `mint_system.sale.view_order_form.product_id_no_create`
```xml
<?xml version="1.0"?>
<data inherit_id="sale.view_order_form" priority="50">
<xpath expr="//field[@name='order_line']/tree/field[@name='product_id']" position="attributes">
<attribute name="options">{'no_open': True, 'no_create': True}</attribute>
</xpath>
</data>
```
Source: [snippets/sale.view_order_form.product_id_no_create.xml](https://github.com/Mint-System/Odoo-Build/tree/14.0/snippets/sale.view_order_form.product_id_no_create.xml)
### Project Domain
ID: `mint_system.sale.view_order_form.project_domain`
```xml
@@ -0,0 +1,8 @@
<?xml version="1.0"?>
<data inherit_id="sale.view_order_form" priority="50">
<xpath expr="//field[@name='order_line']/tree/field[@name='product_id']" position="attributes">
<attribute name="options">{'no_open': True, 'no_create': True}</attribute>
</xpath>
</data>
+102 -50
View File
@@ -1442,25 +1442,47 @@ ID: `mint_system.stock.report_delivery_document.append_signature_text`
<?xml version="1.0"?>
<data inherit_id="stock.report_delivery_document" priority="50">
<xpath expr="//table[@name='stock_move_line_table']" position="after">
<style>
div#signature {
padding-left: 75px;
padding-right: 75px;
margin-top: 3rem;
}
</style>
<div id="signature">
<p>Hiermit bestätigen wir den Erhalt der Ware gemäss Lieferung.</p>
<br />
<br />
<div class="row">
<div class="col-6">
<p>Ort/Datum: __________________________________</p>
</div>
<div class="col-6">
<p>Unterschrift Kunde: __________________________________</p>
</div>
</div>
</div>
</xpath>
<xpath expr="//table[@name='stock_move_line_table']" position="after">
<div class="row" style="margin-top: 3rem;">
<div class="col-5">
<p>Gebinde geliefert: _____</p>
<p>Gebinde zurück: _____</p>
<br/>
<p>Unterschrift Transport: _______________</p>
<p>Gebinde geliefert: _____</p>
<p>Gebinde zurück: _____</p>
<br />
<p>Unterschrift Transport: _______________</p>
</div>
<div class="col-2" />
<div class="col-5">
<p>Produkte einwandfrei erhalten.</p>
<br/>
<p>Unterschrift Kunde: _______________</p>
<p>Produkte einwandfrei erhalten.</p>
<br />
<p>Unterschrift Kunde: _______________</p>
</div>
</div>
</xpath>
</data>
```
Source: [snippets/stock.report_delivery_document.append_signature_text.xml](https://github.com/Mint-System/Odoo-Build/tree/14.0/snippets/stock.report_delivery_document.append_signature_text.xml)
@@ -1472,9 +1494,9 @@ ID: `mint_system.stock.report_delivery_document.backorder_signature_section`
<xpath expr="//table[@name='stock_move_line_table']" position="after">
<p>Retouren:<br/><br/>
KEG:             ___________  Anzahl<br/><br/>
Harassen:  ___________  Anzahl<br/><br/>
Waren erhalten:   Datum:  ______________________  Unterschrift:  _________________________________
KEG: ___________ Anzahl<br/><br/>
Harassen: ___________ Anzahl<br/><br/>
Waren erhalten: Datum: ______________________ Unterschrift: _________________________________
</p>
</xpath>
@@ -1498,26 +1520,6 @@ ID: `mint_system.stock.report_delivery_document.barcode_customer_reference`
```
Source: [snippets/stock.report_delivery_document.barcode_customer_reference.xml](https://github.com/Mint-System/Odoo-Build/tree/14.0/snippets/stock.report_delivery_document.barcode_customer_reference.xml)
### Description Sale
ID: `mint_system.stock.report_delivery_document.description_sale`
```xml
<?xml version="1.0"?>
<data inherit_id="stock.report_delivery_document" priority="55">
<xpath expr="//span[@t-field='move.product_id']" position="replace">
<t t-if="move.product_id.description_sale">
<span t-field="move.product_id.description_sale"/>
</t>
<t t-else="">
<span t-field="move.product_id"/>
</t>
</xpath>
</data>
```
Source: [snippets/stock.report_delivery_document.description_sale.xml](https://github.com/Mint-System/Odoo-Build/tree/14.0/snippets/stock.report_delivery_document.description_sale.xml)
### Disable Stock Move Line Table
ID: `mint_system.stock.report_delivery_document.disable_stock_move_line_table`
```xml
@@ -2088,6 +2090,25 @@ ID: `mint_system.stock.report_delivery_document.remove_informations`
```
Source: [snippets/stock.report_delivery_document.remove_informations.xml](https://github.com/Mint-System/Odoo-Build/tree/14.0/snippets/stock.report_delivery_document.remove_informations.xml)
### Replace Description Sale
ID: `mint_system.stock.report_delivery_document.replace_description_sale`
```xml
<?xml version="1.0"?>
<data inherit_id="stock.report_delivery_document" priority="55">
<xpath expr="//span[@t-field='move.product_id']" position="replace">
<t t-if="move.product_id.description_sale">
<span t-field="move.product_id.description_sale" />
</t>
<t t-else="">
<span t-field="move.product_id" />
</t>
</xpath>
</data>
```
Source: [snippets/stock.report_delivery_document.replace_description_sale.xml](https://github.com/Mint-System/Odoo-Build/tree/14.0/snippets/stock.report_delivery_document.replace_description_sale.xml)
### Replace Header
ID: `mint_system.stock.report_delivery_document.replace_header`
```xml
@@ -2143,25 +2164,32 @@ ID: `mint_system.stock.report_delivery_document.replace_informations`
<table class="table table-borderless table-sm">
<tr>
<td>
<strong>Shipping Date:</strong>
<strong>Versanddatum:</strong>
<t t-if="o.state == 'done'">
<p t-field="o.date_done" />
<span t-field="o.date_done" t-options='{"widget": "date"}' />
</t>
<t t-if="o.state != 'done'">
<p t-field="o.scheduled_date" />
<span t-field="o.scheduled_date" t-options='{"widget": "date"}' />
</t>
</td>
<td>
<strong>Unser Kontakt:</strong>
<span t-field="o.sudo().sale_id.user_id" />
</td>
<td>
<strong>Customer Reference:</strong>
<p t-field="o.sudo().sale_id.client_order_ref" />
<strong>Ihr Kontakt:</strong>
<span t-field="o.sudo().sale_id.partner_sale_id.name" />
</td>
</tr>
<tr>
<td colspan="2">
<strong>&#160;Unsere Referenz:</strong>
<p t-field="o.origin" />
<span t-field="o.origin" />
</td>
<td>
<strong>Ihre Referenz:</strong>
<span t-field="o.sudo().sale_id.client_order_ref" />
</td>
</tr>
</table>
@@ -2437,6 +2465,25 @@ ID: `mint_system.stock.report_delivery_document.replace_product_uom_qty`
```
Source: [snippets/stock.report_delivery_document.replace_product_uom_qty.xml](https://github.com/Mint-System/Odoo-Build/tree/14.0/snippets/stock.report_delivery_document.replace_product_uom_qty.xml)
### Replace Sale Line Name
ID: `mint_system.stock.report_delivery_document.replace_sale_line_name`
```xml
<?xml version="1.0"?>
<data inherit_id="stock.report_delivery_document" priority="55">
<xpath expr="//span[@t-field='move.product_id']" position="replace">
<t t-if="move.sale_line_id">
<span t-field="move.sale_line_id.name" />
</t>
<t t-else="">
<span t-field="move.product_id" />
</t>
</xpath>
</data>
```
Source: [snippets/stock.report_delivery_document.replace_sale_line_name.xml](https://github.com/Mint-System/Odoo-Build/tree/14.0/snippets/stock.report_delivery_document.replace_sale_line_name.xml)
### Replace Table
ID: `mint_system.stock.report_delivery_document.replace_table`
```xml
@@ -2760,23 +2807,26 @@ ID: `mint_system.stock.report_delivery_document.show_default_code`
<?xml version="1.0"?>
<data inherit_id="stock.report_delivery_document" priority="50">
<xpath expr="//table[@name='stock_move_table']/thead/tr/th[1]" position="before">
<xpath expr="//table[@name='stock_move_table']//th[@name='th_sm_product']" position="before">
<th name="th_default_code">
<strong>Referenz</strong>
</th>
</xpath>
<!-- <xpath expr="//table[@name='stock_backorder_table']/thead/tr/th[1]" position="before">
<th id="default_code">
<strong >Nr.</strong>
</th>
</xpath>
<xpath expr="//table[@name='stock_backorder_table']/thead/tr/th[1]" position="before">
<th id="default_code">
<strong >Nr.</strong>
</th>
</xpath>
<xpath expr="//table[@name='stock_move_table']/tbody//tr/td[1]" position="before">
<td id="default_code">
</xpath> -->
<xpath expr="//table[@name='stock_move_table']//span[@t-field='move.product_id']/.." position="before">
<td name="td_default_code">
<span t-field="move.product_id.default_code"/>
</td>
</xpath>
</data>
```
Source: [snippets/stock.report_delivery_document.show_default_code.xml](https://github.com/Mint-System/Odoo-Build/tree/14.0/snippets/stock.report_delivery_document.show_default_code.xml)
@@ -2786,16 +2836,18 @@ ID: `mint_system.stock.report_delivery_document.show_lot_ids`
<?xml version="1.0"?>
<data inherit_id="stock.report_delivery_document" priority="50">
<xpath expr="//table[@name='stock_move_table']//th[1]" position="after">
<xpath expr="//table[@name='stock_move_table']//th[@name='th_sm_product']" position="after">
<th name="th_lot_ids">
<strong>Seriennummer</strong>
</th>
</xpath>
<xpath expr="//table[@name='stock_move_table']//td[1]" position="after">
<xpath expr="//table[@name='stock_move_table']//span[@t-field='move.product_id']/.." position="after">
<td name="td_lots">
<ul>
<t t-foreach="move.lot_ids" t-as="lot" ><li t-esc="lot.name" /></t>
<ul class="list-unstyled">
<t t-foreach="move.lot_ids" t-as="lot">
<li t-esc="lot.name" />
</t>
</ul>
</td>
</xpath>
@@ -2,20 +2,43 @@
<data inherit_id="stock.report_delivery_document" priority="50">
<xpath expr="//table[@name='stock_move_line_table']" position="after">
<div class="row" style="margin-top: 3rem;">
<div class="col-5">
<p>Gebinde geliefert: _____</p>
<p>Gebinde zurück: _____</p>
<br/>
<p>Unterschrift Transport: _______________</p>
</div>
<div class="col-2" />
<div class="col-5">
<p>Produkte einwandfrei erhalten.</p>
<br/>
<p>Unterschrift Kunde: _______________</p>
<style>
div#signature {
padding-left: 75px;
padding-right: 75px;
margin-top: 3rem;
}
</style>
<div id="signature">
<p>Hiermit bestätigen wir den Erhalt der Ware gemäss Lieferung.</p>
<br />
<br />
<div class="row">
<div class="col-6">
<p>Ort/Datum: __________________________________</p>
</div>
<div class="col-6">
<p>Unterschrift Kunde: __________________________________</p>
</div>
</div>
</div>
</xpath>
</data>
<xpath expr="//table[@name='stock_move_line_table']" position="after">
<div class="row" style="margin-top: 3rem;">
<div class="col-5">
<p>Gebinde geliefert: _____</p>
<p>Gebinde zurück: _____</p>
<br />
<p>Unterschrift Transport: _______________</p>
</div>
<div class="col-2" />
<div class="col-5">
<p>Produkte einwandfrei erhalten.</p>
<br />
<p>Unterschrift Kunde: _______________</p>
</div>
</div>
</xpath>
</data>
@@ -3,9 +3,9 @@
<xpath expr="//table[@name='stock_move_line_table']" position="after">
<p>Retouren:<br/><br/>
KEG:             ___________  Anzahl<br/><br/>
Harassen:  ___________  Anzahl<br/><br/>
Waren erhalten:   Datum:  ______________________  Unterschrift:  _________________________________
KEG: ___________ Anzahl<br/><br/>
Harassen: ___________ Anzahl<br/><br/>
Waren erhalten: Datum: ______________________ Unterschrift: _________________________________
</p>
</xpath>
@@ -1,13 +0,0 @@
<?xml version="1.0"?>
<data inherit_id="stock.report_delivery_document" priority="55">
<xpath expr="//span[@t-field='move.product_id']" position="replace">
<t t-if="move.product_id.description_sale">
<span t-field="move.product_id.description_sale"/>
</t>
<t t-else="">
<span t-field="move.product_id"/>
</t>
</xpath>
</data>
@@ -0,0 +1,13 @@
<?xml version="1.0"?>
<data inherit_id="stock.report_delivery_document" priority="55">
<xpath expr="//span[@t-field='move.product_id']" position="replace">
<t t-if="move.product_id.description_sale">
<span t-field="move.product_id.description_sale" />
</t>
<t t-else="">
<span t-field="move.product_id" />
</t>
</xpath>
</data>
@@ -15,25 +15,32 @@
<table class="table table-borderless table-sm">
<tr>
<td>
<strong>Shipping Date:</strong>
<strong>Versanddatum:</strong>
<t t-if="o.state == 'done'">
<p t-field="o.date_done" />
<span t-field="o.date_done" t-options='{"widget": "date"}' />
</t>
<t t-if="o.state != 'done'">
<p t-field="o.scheduled_date" />
<span t-field="o.scheduled_date" t-options='{"widget": "date"}' />
</t>
</td>
<td>
<strong>Unser Kontakt:</strong>
<span t-field="o.sudo().sale_id.user_id" />
</td>
<td>
<strong>Customer Reference:</strong>
<p t-field="o.sudo().sale_id.client_order_ref" />
<strong>Ihr Kontakt:</strong>
<span t-field="o.sudo().sale_id.partner_sale_id.name" />
</td>
</tr>
<tr>
<td colspan="2">
<strong>&#160;Unsere Referenz:</strong>
<p t-field="o.origin" />
<span t-field="o.origin" />
</td>
<td>
<strong>Ihre Referenz:</strong>
<span t-field="o.sudo().sale_id.client_order_ref" />
</td>
</tr>
</table>
@@ -0,0 +1,13 @@
<?xml version="1.0"?>
<data inherit_id="stock.report_delivery_document" priority="55">
<xpath expr="//span[@t-field='move.product_id']" position="replace">
<t t-if="move.sale_line_id">
<span t-field="move.sale_line_id.name" />
</t>
<t t-else="">
<span t-field="move.product_id" />
</t>
</xpath>
</data>
@@ -1,20 +1,22 @@
<?xml version="1.0"?>
<data inherit_id="stock.report_delivery_document" priority="50">
<xpath expr="//table[@name='stock_move_table']/thead/tr/th[1]" position="before">
<xpath expr="//table[@name='stock_move_table']//th[@name='th_sm_product']" position="before">
<th name="th_default_code">
<strong>Referenz</strong>
</th>
</xpath>
<!-- <xpath expr="//table[@name='stock_backorder_table']/thead/tr/th[1]" position="before">
<th id="default_code">
<strong >Nr.</strong>
</th>
</xpath>
<xpath expr="//table[@name='stock_backorder_table']/thead/tr/th[1]" position="before">
<th id="default_code">
<strong >Nr.</strong>
</th>
</xpath>
<xpath expr="//table[@name='stock_move_table']/tbody//tr/td[1]" position="before">
<td id="default_code">
</xpath> -->
<xpath expr="//table[@name='stock_move_table']//span[@t-field='move.product_id']/.." position="before">
<td name="td_default_code">
<span t-field="move.product_id.default_code"/>
</td>
</xpath>
</data>
</data>
@@ -1,16 +1,18 @@
<?xml version="1.0"?>
<data inherit_id="stock.report_delivery_document" priority="50">
<xpath expr="//table[@name='stock_move_table']//th[1]" position="after">
<xpath expr="//table[@name='stock_move_table']//th[@name='th_sm_product']" position="after">
<th name="th_lot_ids">
<strong>Seriennummer</strong>
</th>
</xpath>
<xpath expr="//table[@name='stock_move_table']//td[1]" position="after">
<xpath expr="//table[@name='stock_move_table']//span[@t-field='move.product_id']/.." position="after">
<td name="td_lots">
<ul>
<t t-foreach="move.lot_ids" t-as="lot" ><li t-esc="lot.name" /></t>
<ul class="list-unstyled">
<t t-foreach="move.lot_ids" t-as="lot">
<li t-esc="lot.name" />
</t>
</ul>
</td>
</xpath>