This commit is contained in:
Janik von Rotz committed 2023-08-03 12:44:37 +02:00
1 parent 65171d15a6
commit 3caeff72d2
13 files changed
+210 -37

No files matched your search

+12 -6
View File
@@ -2133,9 +2133,12 @@ ID: `mint_system.account.report_invoice_document.show_lot_ids`
<t t-if="lot_ids">
<br />
<span>Seriennummern:</span>
<ul t-foreach="lot_ids" t-as="lot">
<li t-esc="lot.name" />
</ul>
<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>
@@ -4722,9 +4725,12 @@ ID: `mint_system.account.report_invoice_document.show_lot_ids`
<t t-if="lot_ids">
<br />
<span>Seriennummern:</span>
<ul t-foreach="lot_ids" t-as="lot">
<li t-esc="lot.name" />
</ul>
<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>
@@ -6,9 +6,12 @@
<t t-if="lot_ids">
<br />
<span>Seriennummern:</span>
<ul t-foreach="lot_ids" t-as="lot">
<li t-esc="lot.name" />
</ul>
<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>
+15
View File
@@ -441,6 +441,21 @@ ID: `mint_system.base.view_partner_form.x_packaging_ref`
```
Source: [snippets/base.view_partner_form.x_packaging_ref.xml](https://github.com/Mint-System/Odoo-Build/tree/14.0/snippets/base.view_partner_form.x_packaging_ref.xml)
### X Privacy Visibility
ID: `mint_system.base.view_partner_form.x_privacy_visibility`
```xml
<?xml version="1.0"?>
<data inherit_id="base.view_partner_form" priority="50">
<xpath expr="//field[@name='category_id']" position="after">
<field name="x_privacy_visibility"/>
</xpath>
</data>
```
Source: [snippets/base.view_partner_form.x_privacy_visibility.xml](https://github.com/Mint-System/Odoo-Build/tree/14.0/snippets/base.view_partner_form.x_privacy_visibility.xml)
### X Vst
ID: `mint_system.base.view_partner_form.x_vst`
```xml
@@ -0,0 +1,8 @@
<?xml version="1.0"?>
<data inherit_id="base.view_partner_form" priority="50">
<xpath expr="//field[@name='category_id']" position="after">
<field name="x_privacy_visibility"/>
</xpath>
</data>
+3 -3
View File
@@ -423,8 +423,8 @@ ID: `mint_system.hr_timesheet.timesheet_view_tree_user.show_billable_type`
```
Source: [snippets/hr_timesheet.timesheet_view_tree_user.show_billable_type.xml](https://github.com/Mint-System/Odoo-Build/tree/14.0/snippets/hr_timesheet.timesheet_view_tree_user.show_billable_type.xml)
### Show ​Product Uom Id
ID: `mint_system.hr_timesheet.timesheet_view_tree_user.show_​product_uom_id`
### Show Product Uom Id
ID: `mint_system.hr_timesheet.timesheet_view_tree_user.show_product_uom_id`
```xml
<?xml version="1.0"?>
<data inherit_id="hr_timesheet.timesheet_view_tree_user" priority="50">
@@ -437,7 +437,7 @@ ID: `mint_system.hr_timesheet.timesheet_view_tree_user.show_​product_uom_id`
</data>
```
Source: [snippets/hr_timesheet.timesheet_view_tree_user.show_​product_uom_id.xml](https://github.com/Mint-System/Odoo-Build/tree/14.0/snippets/hr_timesheet.timesheet_view_tree_user.show_​product_uom_id.xml)
Source: [snippets/hr_timesheet.timesheet_view_tree_user.show_product_uom_id.xml](https://github.com/Mint-System/Odoo-Build/tree/14.0/snippets/hr_timesheet.timesheet_view_tree_user.show_product_uom_id.xml)
### X Timesheet Invoice Type
ID: `mint_system.hr_timesheet.timesheet_view_tree_user.x_timesheet_invoice_type`
+22
View File
@@ -1730,6 +1730,28 @@ ID: `mint_system.ir_model.res_partner.x_packaging_ref`
```
Source: [snippets/ir_model.res_partner.x_packaging_ref.xml](https://github.com/Mint-System/Odoo-Build/tree/14.0/snippets/ir_model.res_partner.x_packaging_ref.xml)
### X Privacy Visibility
ID: `mint_system.ir_model.res_partner.x_privacy_visibility`
```xml
<?xml version='1.0' encoding='UTF-8' ?>
<odoo>
<record id="x_privacy_visibility" model="ir.model.fields">
<field name="domain">[]</field>
<field name="field_description">Sichtbarkeit</field>
<field name="model">res.partner</field>
<field name="model_id" ref="base.model_res_partner"/>
<field name="name">x_privacy_visibility</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.res_partner.x_privacy_visibility.xml](https://github.com/Mint-System/Odoo-Build/tree/14.0/snippets/ir_model.res_partner.x_privacy_visibility.xml)
### X Stock Move Ids
ID: `mint_system.ir_model.res_partner.x_stock_move_ids`
```xml
@@ -0,0 +1,16 @@
<?xml version='1.0' encoding='UTF-8' ?>
<odoo>
<record id="x_privacy_visibility" model="ir.model.fields">
<field name="domain">[]</field>
<field name="field_description">Sichtbarkeit</field>
<field name="model">res.partner</field>
<field name="model_id" ref="base.model_res_partner"/>
<field name="name">x_privacy_visibility</field>
<field name="store" eval="True"/>
<field name="readonly" eval="False"/>
<field name="copied" eval="True"/>
<field name="ttype">boolean</field>
</record>
</odoo>
+66 -3
View File
@@ -3026,6 +3026,54 @@ ID: `mint_system.sale.report_saleorder_pro_forma.append_signature`
Source: [snippets/sale.report_saleorder_pro_forma.append_signature.xml](https://github.com/Mint-System/Odoo-Build/tree/14.0/snippets/sale.report_saleorder_pro_forma.append_signature.xml)
## Sale Order Line View Form Readonly
### Edit Form
ID: `mint_system.sale.sale_order_line_view_form_readonly.edit_form`
```xml
<?xml version="1.0"?>
<data inherit_id="sale.sale_order_line_view_form_readonly" priority="50">
<form position="replace">
<form string="Sales Order Item">
<sheet>
<div class="oe_title">
<h1>
<field name="display_name" />
</h1>
</div>
<group>
<group>
<field name="order_id" />
<field name="product_id" />
<field name="name" />
<field name="product_uom_qty" />
<field name="qty_delivered" />
<field name="qty_invoiced" />
<field name="product_uom_category_id" />
<field name="product_uom" />
<field name="company_id" options="{'no_create': True}"
groups="base.group_multi_company" />
<field name="order_partner_id" invisible="1" />
<field name="display_type" invisible="1" />
<field name="product_updatable" invisible="1" />
</group>
<group>
<field name="price_unit" />
<field name="discount" groups="product.group_discount_per_so_line" />
<field name="price_subtotal" widget="monetary" />
<field name="tax_id" widget="many2many_tags" />
<field name="price_tax" widget="monetary" />
<field name="price_total" widget="monetary" />
<field name="currency_id" invisible="1" />
</group>
</group>
</sheet>
</form>
</form>
</data>
```
Source: [snippets/sale.sale_order_line_view_form_readonly.edit_form.xml](https://github.com/Mint-System/Odoo-Build/tree/14.0/snippets/sale.sale_order_line_view_form_readonly.edit_form.xml)
### Edit Price Unit
ID: `mint_system.sale.sale_order_line_view_form_readonly.edit_price_unit`
```xml
@@ -3724,6 +3772,21 @@ ID: `mint_system.sale.view_order_form.show_stock_purchase_line_ids`
```
Source: [snippets/sale.view_order_form.show_stock_purchase_line_ids.xml](https://github.com/Mint-System/Odoo-Build/tree/14.0/snippets/sale.view_order_form.show_stock_purchase_line_ids.xml)
### X As4import
ID: `mint_system.sale.view_order_form.x_as4import`
```xml
<?xml version="1.0"?>
<data inherit_id="sale.view_order_form" priority="50">
<xpath expr="//field[@name='tag_ids']" position="after">
<field name="x_as4import" />
</xpath>
</data>
```
Source: [snippets/sale.view_order_form.x_as4import.xml](https://github.com/Mint-System/Odoo-Build/tree/14.0/snippets/sale.view_order_form.x_as4import.xml)
### X Client Project Ref
ID: `mint_system.sale.view_order_form.x_client_project_ref`
```xml
@@ -4264,8 +4327,8 @@ ID: `mint_system.sale.view_quotation_tree.replace_create_date`
```
Source: [snippets/sale.view_quotation_tree.replace_create_date.xml](https://github.com/Mint-System/Odoo-Build/tree/14.0/snippets/sale.view_quotation_tree.replace_create_date.xml)
### Show ​Delivery Status
ID: `mint_system.sale.view_quotation_tree.show_​delivery_status`
### Show Delivery Status
ID: `mint_system.sale.view_quotation_tree.show_delivery_status`
```xml
<?xml version="1.0"?>
<data inherit_id="sale.view_quotation_tree" priority="50">
@@ -4276,7 +4339,7 @@ ID: `mint_system.sale.view_quotation_tree.show_​delivery_status`
</data>
```
Source: [snippets/sale.view_quotation_tree.show_​delivery_status.xml](https://github.com/Mint-System/Odoo-Build/tree/14.0/snippets/sale.view_quotation_tree.show_​delivery_status.xml)
Source: [snippets/sale.view_quotation_tree.show_delivery_status.xml](https://github.com/Mint-System/Odoo-Build/tree/14.0/snippets/sale.view_quotation_tree.show_delivery_status.xml)
### Show ​Payment Term Id
ID: `mint_system.sale.view_quotation_tree.show_​payment_term_id`
@@ -0,0 +1,8 @@
<?xml version="1.0"?>
<data inherit_id="sale.view_order_form" priority="50">
<xpath expr="//field[@name='tag_ids']" position="after">
<field name="x_as4import" />
</xpath>
</data>
+27 -11
View File
@@ -2299,8 +2299,7 @@ ID: `mint_system.stock.report_delivery_document.replace_informations`
<strong>&#160;Unsere Referenz:</strong>
<span t-field="o.origin" />
</td>
<td>
<td t-if="o.sudo().sale_id.client_order_ref">
<strong>Ihre Referenz:</strong>
<span t-field="o.sudo().sale_id.client_order_ref" />
</td>
@@ -2920,8 +2919,17 @@ 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']" position="before">
<style>
th#default_code,
td#default_code {
white-space: nowrap;
}
</style>
</xpath>
<xpath expr="//table[@name='stock_move_table']//th[@name='th_sm_product']" position="before">
<th name="th_default_code">
<th id="default_code" name="th_default_code">
<strong>Referenz</strong>
</th>
</xpath>
@@ -2933,7 +2941,7 @@ ID: `mint_system.stock.report_delivery_document.show_default_code`
</xpath> -->
<xpath expr="//table[@name='stock_move_table']//span[@t-field='move.product_id']/.." position="before">
<td name="td_default_code">
<td id="default_code" name="td_default_code">
<span t-field="move.product_id.default_code"/>
</td>
</xpath>
@@ -2949,20 +2957,28 @@ 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[@name='th_sm_product']" 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> -->
<xpath expr="//table[@name='stock_move_table']//span[@t-field='move.product_id']/.." position="after">
<td name="td_lots">
<ul class="list-unstyled">
<xpath expr="//table[@name='stock_move_table']//span[@t-field='move.description_picking']/.." position="after">
<t t-if="move.lot_ids">
<br />
<span>Seriennummern:</span>
<t t-esc="', '.join(move.lot_ids.mapped('name'))" />
</t>
<!-- <td name="td_lots"> -->
<!-- <t t-esc="', '.join(move.lot_ids.mapped('name'))" /> -->
<!-- <ul class="list-unstyled">
<t t-foreach="move.lot_ids" t-as="lot">
<li t-esc="lot.name" />
</t>
</ul>
</td>
</ul> -->
<!-- </td> -->
</xpath>
</data>
@@ -37,8 +37,7 @@
<strong>&#160;Unsere Referenz:</strong>
<span t-field="o.origin" />
</td>
<td>
<td t-if="o.sudo().sale_id.client_order_ref">
<strong>Ihre Referenz:</strong>
<span t-field="o.sudo().sale_id.client_order_ref" />
</td>
@@ -1,8 +1,17 @@
<?xml version="1.0"?>
<data inherit_id="stock.report_delivery_document" priority="50">
<xpath expr="//table[@name='stock_move_table']" position="before">
<style>
th#default_code,
td#default_code {
white-space: nowrap;
}
</style>
</xpath>
<xpath expr="//table[@name='stock_move_table']//th[@name='th_sm_product']" position="before">
<th name="th_default_code">
<th id="default_code" name="th_default_code">
<strong>Referenz</strong>
</th>
</xpath>
@@ -14,7 +23,7 @@
</xpath> -->
<xpath expr="//table[@name='stock_move_table']//span[@t-field='move.product_id']/.." position="before">
<td name="td_default_code">
<td id="default_code" name="td_default_code">
<span t-field="move.product_id.default_code"/>
</td>
</xpath>
@@ -1,20 +1,28 @@
<?xml version="1.0"?>
<data inherit_id="stock.report_delivery_document" priority="50">
<xpath expr="//table[@name='stock_move_table']//th[@name='th_sm_product']" 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> -->
<xpath expr="//table[@name='stock_move_table']//span[@t-field='move.product_id']/.." position="after">
<td name="td_lots">
<ul class="list-unstyled">
<xpath expr="//table[@name='stock_move_table']//span[@t-field='move.description_picking']/.." position="after">
<t t-if="move.lot_ids">
<br />
<span>Seriennummern:</span>
<t t-esc="', '.join(move.lot_ids.mapped('name'))" />
</t>
<!-- <td name="td_lots"> -->
<!-- <t t-esc="', '.join(move.lot_ids.mapped('name'))" /> -->
<!-- <ul class="list-unstyled">
<t t-foreach="move.lot_ids" t-as="lot">
<li t-esc="lot.name" />
</t>
</ul>
</td>
</ul> -->
<!-- </td> -->
</xpath>
</data>