sync from 14.0
This commit is contained in:
1 parent
3179e9bbb8
commit
986c1e7e62
45 files changed
+742
-138
No files matched your search
@@ -16,6 +16,7 @@ module.exports = {
|
||||
{ text: 'Home', link: '/' },
|
||||
{ text: 'Help', link: '/task' },
|
||||
{ text: 'Snippets', link: '/snippets' },
|
||||
{ text: 'Apps', link: 'https://apps.odoo.com/apps/modules/browse?author=Mint%20System%20GmbH' },
|
||||
{ text: 'Mint System', link: 'https://www.mint-system.ch/odoo' }
|
||||
],
|
||||
sidebar: {
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
# Snippets
|
||||
In Odoo everything is described as an XML document. Snippets are modifications (edits) for these XML documents. With a snippet you can e.g. hide a field on the contact form. A snippet name is unique and follows the `$AUTHOR.$MODULE.$XML_ID.$DESCRIPTION` scheme.
|
||||
## [Account](snippets/account.md)
|
||||
## [Agreement](snippets/agreement.md)
|
||||
## [Agreement Legal](snippets/agreement_legal.md)
|
||||
|
||||
@@ -3,6 +3,10 @@ prev: ./snippets.md
|
||||
---
|
||||
# Account
|
||||
## Report Invoice Document
|
||||
### Add Header And Footer Note
|
||||
ID: `mint_system.account.report_invoice_document.add_header_and_footer_note`
|
||||
Link: [snippets/account.report_invoice_document.add_header_and_footer_note.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/account.report_invoice_document.add_header_and_footer_note.xml)
|
||||
|
||||
### Add Header Padding
|
||||
ID: `mint_system.account.report_invoice_document.add_header_padding`
|
||||
Link: [snippets/account.report_invoice_document.add_header_padding.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/account.report_invoice_document.add_header_padding.xml)
|
||||
@@ -207,6 +211,10 @@ ID: `mint_system.account.view_in_invoice_tree.add_discount_date`
|
||||
Link: [snippets/account.view_in_invoice_tree.add_discount_date.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/account.view_in_invoice_tree.add_discount_date.xml)
|
||||
|
||||
## View Invoice Tree
|
||||
### Add Currency Id
|
||||
ID: `mint_system.account.view_invoice_tree.add_currency_id`
|
||||
Link: [snippets/account.view_invoice_tree.add_currency_id.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/account.view_invoice_tree.add_currency_id.xml)
|
||||
|
||||
### Show Date
|
||||
ID: `mint_system.account.view_invoice_tree.show_date`
|
||||
Link: [snippets/account.view_invoice_tree.show_date.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/account.view_invoice_tree.show_date.xml)
|
||||
@@ -228,6 +236,10 @@ Link: [snippets/account.view_move_form.payment_reference_readonly.xml](https://g
|
||||
ID: `mint_system.account.view_move_form.remove_isr_button`
|
||||
Link: [snippets/account.view_move_form.remove_isr_button.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/account.view_move_form.remove_isr_button.xml)
|
||||
|
||||
### Show Commercial Partner Id
|
||||
ID: `mint_system.account.view_move_form.show_commercial_partner_id`
|
||||
Link: [snippets/account.view_move_form.show_commercial_partner_id.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/account.view_move_form.show_commercial_partner_id.xml)
|
||||
|
||||
### Show Posted Before
|
||||
ID: `mint_system.account.view_move_form.show_posted_before`
|
||||
Link: [snippets/account.view_move_form.show_posted_before.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/account.view_move_form.show_posted_before.xml)
|
||||
@@ -264,3 +276,8 @@ Link: [snippets/account.view_move_tree.x_account_codes.xml](https://github.com/M
|
||||
ID: `mint_system.account.view_out_invoice_tree.show_partner_shipping`
|
||||
Link: [snippets/account.view_out_invoice_tree.show_partner_shipping.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/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`
|
||||
Link: [snippets/account.view_partner_property_form.show_commercial_partner_id.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/account.view_partner_property_form.show_commercial_partner_id.xml)
|
||||
|
||||
@@ -0,0 +1,16 @@
|
||||
<?xml version="1.0"?>
|
||||
<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>
|
||||
@@ -32,7 +32,8 @@
|
||||
<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/','')"/></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>
|
||||
@@ -100,6 +101,11 @@
|
||||
|
||||
</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>
|
||||
|
||||
|
||||
@@ -60,15 +60,15 @@
|
||||
<td>
|
||||
<span t-field='o.comment'/>
|
||||
</td>
|
||||
|
||||
<td>Delivery Date</td>
|
||||
<td>
|
||||
<span t-field='o.picking_ids.date_done' t-options='{ "widget": "date" }'/>
|
||||
<span t-field='o.x_date_done' t-options='{ "widget": "date" }'/>
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<t t-if="o.note_header != '<p><br></p>'">
|
||||
<span class="note" t-field="o.note_header"/>
|
||||
</t>
|
||||
</xpath>
|
||||
</data>
|
||||
|
||||
|
||||
@@ -1,36 +1,129 @@
|
||||
<?xml version="1.0"?>
|
||||
<data inherit_id="account.report_invoice_document" priority="50">
|
||||
|
||||
<xpath expr="//table[@name='invoice_line_table']" position="after">
|
||||
<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 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>
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
<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 '%.2f' % line.price_unit"/>
|
||||
<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>
|
||||
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0"?>
|
||||
<data inherit_id="account.view_invoice_tree" priority="50">
|
||||
|
||||
<field name="ref" position="after">
|
||||
<field name="currency_id" optional="hide"/>
|
||||
</field>
|
||||
|
||||
</data>
|
||||
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0"?>
|
||||
<data inherit_id="account.view_move_form" priority="50" >
|
||||
|
||||
<field name="partner_id" position="after">
|
||||
<field name="commercial_partner_id"/>
|
||||
</field>
|
||||
|
||||
</data>
|
||||
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0"?>
|
||||
<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>
|
||||
@@ -36,6 +36,10 @@ ID: `mint_system.base.view_bank_form.add_display_name`
|
||||
Link: [snippets/base.view_bank_form.add_display_name.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/base.view_bank_form.add_display_name.xml)
|
||||
|
||||
## View Partner Form
|
||||
### Add Commercial Partner Id
|
||||
ID: `mint_system.base.view_partner_form.add_commercial_partner_id`
|
||||
Link: [snippets/base.view_partner_form.add_commercial_partner_id.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/base.view_partner_form.add_commercial_partner_id.xml)
|
||||
|
||||
### Add Credit Limit
|
||||
ID: `mint_system.base.view_partner_form.add_credit_limit`
|
||||
Link: [snippets/base.view_partner_form.add_credit_limit.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/base.view_partner_form.add_credit_limit.xml)
|
||||
@@ -52,6 +56,10 @@ Link: [snippets/base.view_partner_form.add_display_name.xml](https://github.com/
|
||||
ID: `mint_system.base.view_partner_form.move_ref`
|
||||
Link: [snippets/base.view_partner_form.move_ref.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/base.view_partner_form.move_ref.xml)
|
||||
|
||||
### Show Industry
|
||||
ID: `mint_system.base.view_partner_form.show_industry`
|
||||
Link: [snippets/base.view_partner_form.show_industry.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/base.view_partner_form.show_industry.xml)
|
||||
|
||||
## View Partner Tree
|
||||
### Add Ref Zip Type
|
||||
ID: `mint_system.base.view_partner_tree.add_ref_zip_type`
|
||||
@@ -69,6 +77,10 @@ Link: [snippets/base.view_partner_tree.optional_payment_terms.xml](https://githu
|
||||
ID: `mint_system.base.view_partner_tree.optional_zip`
|
||||
Link: [snippets/base.view_partner_tree.optional_zip.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/base.view_partner_tree.optional_zip.xml)
|
||||
|
||||
### Show Industry
|
||||
ID: `mint_system.base.view_partner_tree.show_industry`
|
||||
Link: [snippets/base.view_partner_tree.show_industry.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/base.view_partner_tree.show_industry.xml)
|
||||
|
||||
### Show Type
|
||||
ID: `mint_system.base.view_partner_tree.show_type`
|
||||
Link: [snippets/base.view_partner_tree.show_type.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/base.view_partner_tree.show_type.xml)
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0"?>
|
||||
<data inherit_id="base.view_partner_form" priority="50">
|
||||
|
||||
<xpath expr="//field[@name='vat']" position="after">
|
||||
<field name="commercial_partner_id"/>
|
||||
</xpath>
|
||||
|
||||
</data>
|
||||
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0"?>
|
||||
<data inherit_id="base.view_partner_form" priority="50">
|
||||
|
||||
<xpath expr="//field[@name='industry_id']" position="attributes">
|
||||
<attribute name="attrs">{'invisible': False}</attribute>
|
||||
</xpath>
|
||||
|
||||
</data>
|
||||
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0"?>
|
||||
<data inherit_id="base.view_partner_tree" priority="50">
|
||||
|
||||
<field name="country_id" position="after">
|
||||
<field name="industry_id" optional="hide"/>
|
||||
</field>
|
||||
|
||||
</data>
|
||||
@@ -0,0 +1,17 @@
|
||||
<?xml version='1.0' encoding='UTF-8' ?>
|
||||
<odoo>
|
||||
|
||||
<record id="x_date_done" model="ir.model.fields">
|
||||
<field name="domain">[]</field>
|
||||
<field name="field_description">date_done</field>
|
||||
<field name="model">account.move</field>
|
||||
<field name="model_id" ref="account.model_account_move"/>
|
||||
<field name="name">x_date_done</field>
|
||||
<field name="store" eval="False"/>
|
||||
<field name="readonly" eval="True"/>
|
||||
<field name="copied" eval="False"/>
|
||||
<field name="ttype">date</field>
|
||||
<field name="related">picking_ids.date_done</field>
|
||||
</record>
|
||||
|
||||
</odoo>
|
||||
@@ -0,0 +1,22 @@
|
||||
<?xml version='1.0' encoding='UTF-8' ?>
|
||||
<odoo>
|
||||
|
||||
<record id="x_picking_list" model="ir.model.fields">
|
||||
<field name="domain">[]</field>
|
||||
<field name="field_description">Picking List</field>
|
||||
<field name="model">account.move</field>
|
||||
<field name="model_id" ref="account.model_account_move"/>
|
||||
<field name="name">x_picking_list</field>
|
||||
<field name="state">manual</field>
|
||||
<field name="store" eval="False"/>
|
||||
<field name="readonly" eval="True"/>
|
||||
<field name="copied" eval="False"/>
|
||||
<field name="ttype">text</field>
|
||||
<field name="depends">picking_ids</field>
|
||||
<field name="compute">for record in self:
|
||||
picking_ids = record.picking_ids.mapped('name')
|
||||
record['x_picking_list'] = ", ".join(picking_ids)
|
||||
</field>
|
||||
</record>
|
||||
|
||||
</odoo>
|
||||
@@ -21,6 +21,14 @@ Link: [snippets/ir_model.account_move_line.x_sale_order_id.xml](https://github.c
|
||||
ID: `mint_system.ir_model.account_move.x_account_codes`
|
||||
Link: [snippets/ir_model.account_move.x_account_codes.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/ir_model.account_move.x_account_codes.xml)
|
||||
|
||||
### X Date Done
|
||||
ID: `mint_system.ir_model.account_move.x_date_done`
|
||||
Link: [snippets/ir_model.account_move.x_date_done.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/ir_model.account_move.x_date_done.xml)
|
||||
|
||||
### X Picking List
|
||||
ID: `mint_system.ir_model.account_move.x_picking_list`
|
||||
Link: [snippets/ir_model.account_move.x_picking_list.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/ir_model.account_move.x_picking_list.xml)
|
||||
|
||||
### X Studio Description
|
||||
ID: `mint_system.ir_model.account_move.x_studio_description`
|
||||
Link: [snippets/ir_model.account_move.x_studio_description.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/ir_model.account_move.x_studio_description.xml)
|
||||
@@ -107,6 +115,10 @@ Link: [snippets/ir_model.product_set_line.x_categ_id.xml](https://github.com/Min
|
||||
ID: `mint_system.ir_model.product_template.x_hide_on_delivery`
|
||||
Link: [snippets/ir_model.product_template.x_hide_on_delivery.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/ir_model.product_template.x_hide_on_delivery.xml)
|
||||
|
||||
### X Product Label
|
||||
ID: `mint_system.ir_model.product_template.x_product_label`
|
||||
Link: [snippets/ir_model.product_template.x_product_label.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/ir_model.product_template.x_product_label.xml)
|
||||
|
||||
### X Xml Id
|
||||
ID: `mint_system.ir_model.product_template.x_xml_id`
|
||||
Link: [snippets/ir_model.product_template.x_xml_id.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/ir_model.product_template.x_xml_id.xml)
|
||||
@@ -177,6 +189,10 @@ ID: `mint_system.ir_model.sale_order_line.x_weight_delivered`
|
||||
Link: [snippets/ir_model.sale_order_line.x_weight_delivered.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/ir_model.sale_order_line.x_weight_delivered.xml)
|
||||
|
||||
## Sale Order
|
||||
### X Product Uom Qty
|
||||
ID: `mint_system.ir_model.sale_order.x_product_uom_qty`
|
||||
Link: [snippets/ir_model.sale_order.x_product_uom_qty.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/ir_model.sale_order.x_product_uom_qty.xml)
|
||||
|
||||
### X Studio Description
|
||||
ID: `mint_system.ir_model.sale_order.x_studio_description`
|
||||
Link: [snippets/ir_model.sale_order.x_studio_description.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/ir_model.sale_order.x_studio_description.xml)
|
||||
|
||||
@@ -0,0 +1,20 @@
|
||||
<?xml version='1.0' encoding='UTF-8' ?>
|
||||
<odoo>
|
||||
|
||||
<record id="x_product_label" model="ir.model.fields">
|
||||
<field name="field_description">Product Label</field>
|
||||
<field name="model">product.template</field>
|
||||
<field name="model_id" ref=" product.model_product_template"/>
|
||||
<field name="name">x_product_label</field>
|
||||
<field name="store" eval="True"/>
|
||||
<field name="readonly" eval="False"/>
|
||||
<field name="copied" eval="True"/>
|
||||
<field name="ttype">Many2One</field>
|
||||
<field name="help">Label to be used when printing</field>
|
||||
<field name="relation">ir.actions.report</field>
|
||||
<field name="group_expand" eval="False"/>
|
||||
<field name="on_delete">Set NULL</field>
|
||||
<field name="domain">[]</field>
|
||||
</record>
|
||||
|
||||
</odoo>
|
||||
@@ -0,0 +1,6 @@
|
||||
<?xml version="1.0"?>
|
||||
<data inherit_id="mail.mail_notification_borders" priority="50">
|
||||
<xpath expr="//table" position="attributes">
|
||||
<attribute name="style" separator=";" add="background-color: #fff" />
|
||||
</xpath>
|
||||
</data>
|
||||
@@ -0,0 +1,6 @@
|
||||
<?xml version="1.0"?>
|
||||
<data inherit_id="mail.mail_notification_light" priority="60">
|
||||
<xpath expr="//t/table" position="attributes">
|
||||
<attribute name="style" separator=";" add="background-color: #fff" />
|
||||
</xpath>
|
||||
</data>
|
||||
@@ -0,0 +1,6 @@
|
||||
<?xml version="1.0"?>
|
||||
<data inherit_id="mail.mail_notification_paynow" priority="60">
|
||||
<xpath expr="//t/table" position="attributes">
|
||||
<attribute name="style" separator=";" add="background-color: #fff" />
|
||||
</xpath>
|
||||
</data>
|
||||
@@ -21,6 +21,10 @@ Link: [snippets/mail.mail_notification_borders.reduce_to_content.xml](https://gi
|
||||
ID: `mint_system.mail.mail_notification_borders.remove_logo`
|
||||
Link: [snippets/mail.mail_notification_borders.remove_logo.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/mail.mail_notification_borders.remove_logo.xml)
|
||||
|
||||
### White Background
|
||||
ID: `mint_system.mail.mail_notification_borders.white_background`
|
||||
Link: [snippets/mail.mail_notification_borders.white_background.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/mail.mail_notification_borders.white_background.xml)
|
||||
|
||||
## Mail Notification Email
|
||||
### Remove Logo
|
||||
ID: `mint_system.mail.mail_notification_email.remove_logo`
|
||||
@@ -39,6 +43,10 @@ Link: [snippets/mail.mail_notification_light.remove_logo.xml](https://github.com
|
||||
ID: `mint_system.mail.mail_notification_light.replace_footer`
|
||||
Link: [snippets/mail.mail_notification_light.replace_footer.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/mail.mail_notification_light.replace_footer.xml)
|
||||
|
||||
### White Background
|
||||
ID: `mint_system.mail.mail_notification_light.white_background`
|
||||
Link: [snippets/mail.mail_notification_light.white_background.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/mail.mail_notification_light.white_background.xml)
|
||||
|
||||
## Mail Notification Paynow
|
||||
### Reduce To Content
|
||||
ID: `mint_system.mail.mail_notification_paynow.reduce_to_content`
|
||||
@@ -56,3 +64,7 @@ Link: [snippets/mail.mail_notification_paynow.remove_signature.xml](https://gith
|
||||
ID: `mint_system.mail.mail_notification_paynow.replace_footer`
|
||||
Link: [snippets/mail.mail_notification_paynow.replace_footer.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/mail.mail_notification_paynow.replace_footer.xml)
|
||||
|
||||
### White Background
|
||||
ID: `mint_system.mail.mail_notification_paynow.white_background`
|
||||
Link: [snippets/mail.mail_notification_paynow.white_background.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/mail.mail_notification_paynow.white_background.xml)
|
||||
|
||||
@@ -1,8 +1,37 @@
|
||||
<?xml version="1.0"?>
|
||||
<t t-name="studio_main_report">
|
||||
<t t-foreach="docs" t-as="doc">
|
||||
<t t-call="web.basic_layout">
|
||||
<t t-if="doc.product_id.x_product_label.name == 'Stücketikette Spheretex'">
|
||||
<t t-call="studio_customization.studio_report_docume_84b2d998-cc56-45cc-8ec2-9b375a1bbcd0_document"/>
|
||||
</t>
|
||||
|
||||
<t t-if="doc.product_id.x_product_label.name == 'Stücketikette Standard'">
|
||||
<t t-call="studio_customization.studio_report_docume_5322cd1b-2c35-419d-8e1f-1e7afb5936e3_document"/>
|
||||
</t>
|
||||
|
||||
<t t-if="doc.product_id.x_product_label.name == 'Stücketikette neutral'">
|
||||
<t t-call="studio_customization.studio_report_docume_2b92a163-f467-4a96-92ea-963ba7b0c2d2_document"/>
|
||||
</t>
|
||||
|
||||
<t t-if="doc.product_id.x_product_label.name == 'Stücketikette Sika'">
|
||||
<t t-call="studio_customization.studio_report_docume_4fd86ea4-bacb-4603-96e7-7cfa5773b052_document"/>
|
||||
</t>
|
||||
|
||||
<t t-if="doc.product_id.x_product_label.name == 'Etikette Ketten'">
|
||||
<t t-call="studio_customization.studio_report_docume_69399d9a-c835-4e10-a933-6a4cd82a854d_document"/>
|
||||
</t>
|
||||
|
||||
<p style="page-break-after: always;"/>
|
||||
</t>
|
||||
|
||||
</t>
|
||||
</t>
|
||||
|
||||
<!--
|
||||
<t t-name="mrp.label_production_view.tissa">
|
||||
<t t-call="web.basic_layout">
|
||||
<t t-foreach="docs" t-as="workorder">
|
||||
<t t-foreach="workorder.move_finished_ids" t-as="move">
|
||||
<t t-foreach="workorder.move_finished_ids" t-as="doc">
|
||||
|
||||
<style>
|
||||
.title {
|
||||
@@ -12,18 +41,10 @@
|
||||
|
||||
<div class="page">
|
||||
<div class="label">
|
||||
|
||||
<t t-if="move.product_id.label_layout.name == 'Etikette Ketten'">
|
||||
<span>Typ: Etikette Ketten</span>
|
||||
<span class="title" t-esc="move.product_id.display_name" />
|
||||
</t>
|
||||
|
||||
|
||||
<t t-if="move.product_id.label_layout.name == 'Stücketikette Standard'">
|
||||
<span>Typ: Stücketikette Standard</span>
|
||||
<span class="title" t-esc="move.product_id.display_name" />
|
||||
</t>
|
||||
|
||||
|
||||
<span t-esc="doc.product_id.x_product_label.name"/>
|
||||
<span t-esc="doc.product_id.name"/>
|
||||
|
||||
</div>
|
||||
<p style="page-break-before:always;" />
|
||||
</div>
|
||||
@@ -31,4 +52,5 @@
|
||||
</t>
|
||||
</t>
|
||||
</t>
|
||||
</t>
|
||||
</t>
|
||||
-->
|
||||
@@ -0,0 +1,73 @@
|
||||
<?xml version="1.0"?>
|
||||
<t t-name="mrp.label_production_view.tissa_etikette_ketten">
|
||||
|
||||
<div class="row">
|
||||
<div class="col-2">
|
||||
<img class="img-fluid" src="/web/image/2721/230x115mm_1fbg_graustufen_logo%20tissa%20textiles.jpg?access_token=c7d446e2-b48d-438b-afab-eb491dd6fa7a"/>
|
||||
</div>
|
||||
<div class="col-10" style="font-family: Arial, Helvetica, sans-serif; font-size: 18px">
|
||||
<strong t-field="res_company.display_name"/>
|
||||
<br/>
|
||||
<span t-field="res_company.country_id.code"/>
|
||||
<span> - </span>
|
||||
<span t-field="res_company.zip"/>
|
||||
<span> </span>
|
||||
<span t-field="res_company.city"/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col" style="font-family: Arial, Helvetica, sans-serif; font-size: 84px; font-weight:bold">
|
||||
<span t-field="doc.product_id.display_name"/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
<td>
|
||||
<img t-if="doc.product_id.display_name" t-att-src="'/report/barcode/?type=%s&value=%s&width=%s&height=%s' % ('Code128', doc.product_id.display_name, 500, 50)"/>
|
||||
</td>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col" style="font-family: Arial, Helvetica, sans-serif; font-size: 96px; font-weight:bold">
|
||||
<span t-field="doc.name"/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
<td>
|
||||
<img t-if="doc.name" t-att-src="'/report/barcode/?type=%s&value=%s&width=%s&height=%s' % ('Code128', doc.name, 500, 50)"/>
|
||||
</td>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-6" style="font-family: Arial, Helvetica, sans-serif; font-size: 84px; font-weight:bold">
|
||||
<span t-field="doc.product_qty"/>
|
||||
</div>
|
||||
<!--
|
||||
<div class="col-6" style="font-family: Arial, Helvetica, sans-serif; font-size: 84px; font-weight:bold">
|
||||
<span t-field="doc.product_uom_id.display_name"/>
|
||||
</div>
|
||||
-->
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-3">
|
||||
<span>Einlagerungsdatum: </span>
|
||||
</div>
|
||||
<div class="col-9">
|
||||
<span t-field="doc.create_date"/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col" style="font-family: Arial, Helvetica, sans-serif; font-size: 48px; font-weight:bold">
|
||||
<span>kommt an Maschine:</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</t>
|
||||
@@ -8,6 +8,10 @@ ID: `mint_system.mrp.label_production_view_pdf.trimada`
|
||||
Link: [snippets/mrp.label_production_view_pdf.trimada.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/mrp.label_production_view_pdf.trimada.xml)
|
||||
|
||||
## Label Production View
|
||||
### Tissa Etikette Ketten
|
||||
ID: `mint_system.mrp.label_production_view.tissa_etikette_ketten`
|
||||
Link: [snippets/mrp.label_production_view.tissa_etikette_ketten.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/mrp.label_production_view.tissa_etikette_ketten.xml)
|
||||
|
||||
### Tissa
|
||||
ID: `mint_system.mrp.label_production_view.tissa`
|
||||
Link: [snippets/mrp.label_production_view.tissa.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/mrp.label_production_view.tissa.xml)
|
||||
|
||||
@@ -2,11 +2,21 @@
|
||||
prev: ./snippets.md
|
||||
---
|
||||
# Product
|
||||
## Product Normal Only Form View
|
||||
### Add X Product Label
|
||||
ID: `mint_system.product.product_normal_only_form_view.add_x_product_label`
|
||||
Link: [snippets/product.product_normal_only_form_view.add_x_product_label.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/product.product_normal_only_form_view.add_x_product_label.xml)
|
||||
|
||||
## Product Packaging Form View
|
||||
### X Packaging Uom Id
|
||||
ID: `mint_system.product.product_packaging_form_view.x_packaging_uom_id`
|
||||
Link: [snippets/product.product_packaging_form_view.x_packaging_uom_id.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/product.product_packaging_form_view.x_packaging_uom_id.xml)
|
||||
|
||||
## Product Pricelist View
|
||||
### Show Product
|
||||
ID: `mint_system.product.product_pricelist_view.show_product`
|
||||
Link: [snippets/product.product_pricelist_view.show_product.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/product.product_pricelist_view.show_product.xml)
|
||||
|
||||
## Product Template Form View
|
||||
### Add Type Description
|
||||
ID: `mint_system.product.product_template_form_view.add_type_description`
|
||||
@@ -22,6 +32,10 @@ ID: `mint_system.product.product_template_kanban_view.add_product_info`
|
||||
Link: [snippets/product.product_template_kanban_view.add_product_info.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/product.product_template_kanban_view.add_product_info.xml)
|
||||
|
||||
## Product Template Only Form View
|
||||
### Add X Product Label
|
||||
ID: `mint_system.product.product_template_only_form_view.add_x_product_label`
|
||||
Link: [snippets/product.product_template_only_form_view.add_x_product_label.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/product.product_template_only_form_view.add_x_product_label.xml)
|
||||
|
||||
### Hide Barcode
|
||||
ID: `mint_system.product.product_template_only_form_view.hide_barcode`
|
||||
Link: [snippets/product.product_template_only_form_view.hide_barcode.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/product.product_template_only_form_view.hide_barcode.xml)
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0"?>
|
||||
<data inherit_id="product.product_normal_only_form_view" priority="50">
|
||||
|
||||
<field name="barcode" position="after">
|
||||
<field name="x_product_label"/>
|
||||
</field>
|
||||
|
||||
</data>
|
||||
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0"?>
|
||||
<data inherit_id="product.product_pricelist_view" priority="50">
|
||||
|
||||
<field name="name" position="before">
|
||||
<field name="product_tmpl_id"/>
|
||||
</field>
|
||||
|
||||
</data>
|
||||
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0"?>
|
||||
<data inherit_id="product.product_template_only_form_view" priority="50">
|
||||
|
||||
<field name="barcode" position="after">
|
||||
<field name="x_product_label"/>
|
||||
</field>
|
||||
|
||||
</data>
|
||||
@@ -6,11 +6,14 @@
|
||||
.label {
|
||||
font-family: arial;
|
||||
}
|
||||
.box {
|
||||
margin: 0 0 2mm 0;
|
||||
.box1 {
|
||||
margin: 9mm 0 2mm 0;
|
||||
}
|
||||
.padding {
|
||||
padding-bottom: 3mm;
|
||||
.box2 {
|
||||
margin: 7mm 0 2mm 0;
|
||||
}
|
||||
.box3 {
|
||||
margin: 2mm 0 2mm 0;
|
||||
}
|
||||
.title {
|
||||
font-size: 11mm;
|
||||
@@ -18,28 +21,22 @@
|
||||
font-weight: bold;
|
||||
text-align: center;
|
||||
border-bottom: solid 1px;
|
||||
line-height: 30mm;
|
||||
}
|
||||
.frame {
|
||||
border-bottom: solid 1px;
|
||||
margin: 0 3mm 0 3mm;
|
||||
}
|
||||
.description {
|
||||
font-size: 9mm;
|
||||
margin: 0 3mm 0 3mm;
|
||||
text-align: center;
|
||||
font-size: 7mm;
|
||||
height: 23mm;
|
||||
line-height: 10mm;
|
||||
display: table;
|
||||
width: 98%;
|
||||
line-height: 10mm;
|
||||
}
|
||||
.sub1 {
|
||||
display: table-cell ;
|
||||
vertical-align: middle;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
text-align: center;
|
||||
}
|
||||
.sub2 {
|
||||
display: table-cell ;
|
||||
vertical-align: middle;
|
||||
text-align: center;
|
||||
border-bottom: solid 1px;
|
||||
padding: 10px;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
.delivery {
|
||||
font-size: 7mm;
|
||||
@@ -60,24 +57,27 @@
|
||||
padding-left: 0;
|
||||
}
|
||||
</style>
|
||||
|
||||
<div class="page">
|
||||
<div class="label">
|
||||
<div class="row title">
|
||||
<div class="col-6">
|
||||
<div class="col-6 box1">
|
||||
<span t-esc="product.default_code"/>
|
||||
</div>
|
||||
<div t-if="product.barcode" class="col-6 box text-right">
|
||||
<div t-if="product.barcode" class="col-6 box2 text-right">
|
||||
<img t-att-src="'/report/barcode/?type=%s&value=%s&width=%s&height=%s&quiet=0' % ('Code128', product.barcode, 250, 85)" alt="Barcode"/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="frame">
|
||||
<div class="description">
|
||||
<span class="sub1" t-esc="product.name"/>
|
||||
</div>
|
||||
<div class="description">
|
||||
<span class="sub2" t-esc="product.type_description"/>
|
||||
<span class="sub1" t-esc="product.type_description"/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row delivery">
|
||||
<div class="col-12 box text-center">
|
||||
<div class="col-12 box3 text-center">
|
||||
<div t-if="product.feeder_id">
|
||||
<img t-att-src="'/report/barcode/?type=%s&value=%s&width=%s&height=%s&quiet=0' % ('Code128', product.feeder_id, 250, 80)" alt="Barcode"/>
|
||||
<br/>
|
||||
@@ -91,6 +91,8 @@
|
||||
<span>Trimada AG, CH-5610 Wohlen – www.trimada.ch</span>
|
||||
</div>
|
||||
</div>
|
||||
<p style="page-break-before:always;" />
|
||||
|
||||
</div>
|
||||
</t>
|
||||
</t>
|
||||
|
||||
@@ -126,10 +126,18 @@
|
||||
<td style="width:23%; text-align:left">
|
||||
<span t-field="o.amount_untaxed"/>
|
||||
</td>
|
||||
<td style="width:12%; text-align:left">MwSt. 7,7%</td>
|
||||
<td style="width:17%; text-align:left">
|
||||
<span t-field="o.amount_tax" t-options="{"widget": "monetary", "display_currency": o.currency_id}"/>
|
||||
</td>
|
||||
|
||||
<t t-if="o.amount_tax > 0">
|
||||
<td style="width:12%; text-align:left">MWST</td>
|
||||
<td style="width:17%; text-align:left">
|
||||
<span t-field="o.amount_tax" t-options="{"widget": "monetary", "display_currency": o.currency_id}"/>
|
||||
</td>
|
||||
</t>
|
||||
<t t-elif="o.amount_tax == 0">
|
||||
<td></td>
|
||||
<td></td>
|
||||
</t>
|
||||
|
||||
<td style="width:14%; text-align:right">
|
||||
<Strong>Bestellbetrag</Strong>
|
||||
</td>
|
||||
|
||||
@@ -351,6 +351,10 @@ Link: [snippets/sale.view_order_form.no_create_edit.xml](https://github.com/Mint
|
||||
ID: `mint_system.sale.view_order_form.show_carrier_method`
|
||||
Link: [snippets/sale.view_order_form.show_carrier_method.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/sale.view_order_form.show_carrier_method.xml)
|
||||
|
||||
### Show Project
|
||||
ID: `mint_system.sale.view_order_form.show_project`
|
||||
Link: [snippets/sale.view_order_form.show_project.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/sale.view_order_form.show_project.xml)
|
||||
|
||||
### Show Sequence
|
||||
ID: `mint_system.sale.view_order_form.show_sequence`
|
||||
Link: [snippets/sale.view_order_form.show_sequence.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/sale.view_order_form.show_sequence.xml)
|
||||
@@ -360,6 +364,10 @@ ID: `mint_system.sale.view_order_form.x_sudio_description`
|
||||
Link: [snippets/sale.view_order_form.x_sudio_description.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/sale.view_order_form.x_sudio_description.xml)
|
||||
|
||||
## View Order Line Tree
|
||||
### Qty With Sum
|
||||
ID: `mint_system.sale.view_order_line_tree.qty_with_sum`
|
||||
Link: [snippets/sale.view_order_line_tree.qty_with_sum.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/sale.view_order_line_tree.qty_with_sum.xml)
|
||||
|
||||
### Reset View
|
||||
ID: `mint_system.sale.view_order_line_tree.reset_view`
|
||||
Link: [snippets/sale.view_order_line_tree.reset_view.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/sale.view_order_line_tree.reset_view.xml)
|
||||
@@ -389,6 +397,10 @@ Link: [snippets/sale.view_order_tree.add_comment.xml](https://github.com/Mint-Sy
|
||||
ID: `mint_system.sale.view_order_tree.show_partner_shipping`
|
||||
Link: [snippets/sale.view_order_tree.show_partner_shipping.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/sale.view_order_tree.show_partner_shipping.xml)
|
||||
|
||||
### X Product Uom Qty
|
||||
ID: `mint_system.sale.view_order_tree.x_product_uom_qty`
|
||||
Link: [snippets/sale.view_order_tree.x_product_uom_qty.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/sale.view_order_tree.x_product_uom_qty.xml)
|
||||
|
||||
## View Quotation Tree
|
||||
### Add Client Order Ref
|
||||
ID: `mint_system.sale.view_quotation_tree.add_client_order_ref`
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
<data inherit_id="sale.report_saleorder_document" priority="50">
|
||||
|
||||
<xpath expr="//td[@name='td_quantity']" position="replace">
|
||||
<t t-set="product" t-value="doc.blanket_order_id.line_ids.filtered(lambda r: r.product_id.id == line.product_id.id).remaining_uom_qty" />
|
||||
<t t-set="product" t-value="sum(doc.blanket_order_id.line_ids.filtered(lambda r: r.product_id.id == line.product_id.id).mapped('remaining_uom_qty'))" />
|
||||
|
||||
<td name="td_quantity" class="text-right">
|
||||
<span t-field="line.product_uom_qty" />
|
||||
|
||||
@@ -3,29 +3,83 @@
|
||||
|
||||
<xpath expr="//div[@name='so_total_summary']" position="replace">
|
||||
|
||||
<table class="table table-borderless table-sm">
|
||||
<t t-foreach="doc.amount_by_group" t-as="amount_by_group">
|
||||
<tr >
|
||||
<td id="amount_untaxed_label">
|
||||
<Strong>Warenwert</Strong>
|
||||
</td>
|
||||
<td id="amount_untaxed">
|
||||
<span t-field="doc.amount_untaxed"/>
|
||||
</td>
|
||||
<td id="amount_by_group_label">
|
||||
<span t-esc="amount_by_group[0]"/>
|
||||
</td>
|
||||
<td id="amount_by_group">
|
||||
<span t-esc="amount_by_group[1]" t-options="{"widget": "monetary", "display_currency": doc.pricelist_id.currency_id}"/>
|
||||
</td>
|
||||
<td id="current_subtotal_label">
|
||||
<Strong>Rechnungsbetrag</Strong>
|
||||
</td>
|
||||
<td id="current_subtotal">
|
||||
<span t-esc="doc.amount_total"/>
|
||||
</td>
|
||||
</tr>
|
||||
</t>
|
||||
<style>
|
||||
table.trimada_summary tr {
|
||||
border-top: solid 1px !important;
|
||||
border-bottom: solid 1px;
|
||||
}
|
||||
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>
|
||||
<td id="amount_untaxed_label">
|
||||
<strong>Warenwert</strong>
|
||||
</td>
|
||||
<td id="amount_untaxed">
|
||||
<span t-field="doc.amount_untaxed"/>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<table class="trimada_details">
|
||||
<t t-foreach="doc.amount_by_group" t-as="amount_by_group">
|
||||
<tr style="">
|
||||
<t t-if="amount_by_group[5] == 1 and doc.amount_untaxed == amount_by_group[2]">
|
||||
<td name="td_amount_by_group_label_3">
|
||||
<span t-esc="amount_by_group[0]"/>
|
||||
</td>
|
||||
<td name="td_amount_by_group_3" class="text-right o_price_total">
|
||||
<span t-esc="amount_by_group[1]" t-options="{"widget": "monetary", "display_currency": doc.pricelist_id.currency_id}"/>
|
||||
</td>
|
||||
</t>
|
||||
<t t-else="">
|
||||
<td name="td_amount_by_group_label">
|
||||
<span t-esc="amount_by_group[0]"/>
|
||||
</td>
|
||||
<td name="td_amount_by_group" class="text-right o_price_total">
|
||||
<span t-esc="amount_by_group[1]" t-options="{"widget": "monetary", "display_currency": doc.pricelist_id.currency_id}"/>
|
||||
</td>
|
||||
</t>
|
||||
</tr>
|
||||
</t>
|
||||
</table>
|
||||
</td>
|
||||
|
||||
<td id="current_subtotal_label">
|
||||
<strong>Rechnungsbetrag</strong>
|
||||
</td>
|
||||
<td id="current_subtotal">
|
||||
<span t-field="doc.amount_total"/>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</xpath>
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0"?>
|
||||
<data inherit_id="sale.view_order_form" priority="50">
|
||||
|
||||
<field name="partner_id" position="after">
|
||||
<field name="project_id"/>
|
||||
</field>
|
||||
|
||||
</data>
|
||||
@@ -0,0 +1,20 @@
|
||||
<?xml version="1.0"?>
|
||||
<data inherit_id="sale.view_order_line_tree" priority="50">
|
||||
|
||||
<field name="product_uom_qty" position="attributes">
|
||||
<attribute name="sum">Menge</attribute>
|
||||
</field>
|
||||
|
||||
<field name="qty_delivered" position="attributes">
|
||||
<attribute name="sum">Gelieferte Menge</attribute>
|
||||
</field>
|
||||
|
||||
<field name="qty_invoiced" position="attributes">
|
||||
<attribute name="sum">Abgerechnete Menge</attribute>
|
||||
</field>
|
||||
|
||||
<field name="qty_to_invoice" position="attributes">
|
||||
<attribute name="sum">Abzurechnende Menge</attribute>
|
||||
</field>
|
||||
|
||||
</data>
|
||||
@@ -2,7 +2,7 @@
|
||||
<data inherit_id="sale.view_order_line_tree" priority="50">
|
||||
|
||||
<field name="qty_to_invoice" position="after">
|
||||
<field name="x_weight_delivered" />
|
||||
<field name="x_weight_delivered" sum="Geliefertes Gewicht"/>
|
||||
</field>
|
||||
|
||||
</data>
|
||||
@@ -2,15 +2,22 @@
|
||||
<t t-call="web.basic_layout">
|
||||
<t t-foreach="docs" t-as="picking">
|
||||
<t t-foreach="picking.move_lines" t-as="move">
|
||||
|
||||
<style>
|
||||
.label {
|
||||
font-family: arial;
|
||||
|
||||
}
|
||||
.box {
|
||||
margin: 0 0 2mm 0;
|
||||
}
|
||||
.box1 {
|
||||
margin: 9mm 0 2mm 0;
|
||||
}
|
||||
.box2 {
|
||||
margin: 7mm 0 2mm 0;
|
||||
}
|
||||
.box3 {
|
||||
margin: 2mm 0 2mm 0;
|
||||
}
|
||||
.padding {
|
||||
padding-bottom: 3mm;
|
||||
}
|
||||
@@ -20,27 +27,22 @@
|
||||
font-weight: bold;
|
||||
text-align: center;
|
||||
border-bottom: solid 1px;
|
||||
line-height: 30mm;
|
||||
}
|
||||
.frame {
|
||||
border-bottom: solid 1px;
|
||||
margin: 0 3mm 0 3mm;
|
||||
}
|
||||
.description {
|
||||
font-size: 9mm;
|
||||
margin: 0 3mm 0 3mm;
|
||||
text-align: center;
|
||||
font-size: 7mm;
|
||||
height: 23mm;
|
||||
display: table;
|
||||
width: 98%;
|
||||
line-height: 10mm;
|
||||
}
|
||||
.sub1 {
|
||||
display: table-cell ;
|
||||
vertical-align: middle;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
text-align: center;
|
||||
}
|
||||
.sub2 {
|
||||
display: table-cell ;
|
||||
vertical-align: middle;
|
||||
text-align: center;
|
||||
border-bottom: solid 1px;
|
||||
padding: 10px;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
.delivery {
|
||||
font-size: 6mm;
|
||||
@@ -64,18 +66,20 @@
|
||||
<div class="page">
|
||||
<div class="label">
|
||||
<div class="row title">
|
||||
<div class="col-6">
|
||||
<div class="col-6 box1">
|
||||
<span t-esc="move.product_id.default_code"/>
|
||||
</div>
|
||||
<div t-if="move.product_id.barcode" class="col-6 box text-right">
|
||||
<div t-if="move.product_id.barcode" class="col-6 box2 text-right">
|
||||
<img t-att-src="'/report/barcode/?type=%s&value=%s&width=%s&height=%s&quiet=0' % ('Code128', move.product_id.barcode, 250, 85)" alt="Barcode"/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="description">
|
||||
<span class="sub1" t-esc="move.product_id.name"/>
|
||||
</div>
|
||||
<div class="description">
|
||||
<span class="sub2" t-esc="move.product_id.type_description"/>
|
||||
<div class="frame">
|
||||
<div class="description">
|
||||
<span t-esc="move.product_id.name"/>
|
||||
</div>
|
||||
<div class="description">
|
||||
<span t-esc="move.product_id.type_description"/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row delivery">
|
||||
<div class="col-6 box">
|
||||
@@ -89,7 +93,7 @@
|
||||
<span t-esc="picking.partner_id.commercial_company_name"/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-6 box">
|
||||
<div class="col-6 box3">
|
||||
<div t-if="move.product_id.feeder_id" class="text-right">
|
||||
<img t-att-src="'/report/barcode/?type=%s&value=%s&width=%s&height=%s&quiet=0' % ('Code128', move.product_id.feeder_id, 250, 80)" alt="Barcode"/>
|
||||
<br/>
|
||||
|
||||
+12
-4
@@ -41,6 +41,10 @@ Link: [snippets/stock.report_delivery_document.add_open_quantity_in_backorder.xm
|
||||
ID: `mint_system.stock.report_delivery_document.append_signature_text`
|
||||
Link: [snippets/stock.report_delivery_document.append_signature_text.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/stock.report_delivery_document.append_signature_text.xml)
|
||||
|
||||
### Backorder Signature Section
|
||||
ID: `mint_system.stock.report_delivery_document.backorder_signature_section`
|
||||
Link: [snippets/stock.report_delivery_document.backorder_signature_section.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/stock.report_delivery_document.backorder_signature_section.xml)
|
||||
|
||||
### Barcode Customer Reference
|
||||
ID: `mint_system.stock.report_delivery_document.barcode_customer_reference`
|
||||
Link: [snippets/stock.report_delivery_document.barcode_customer_reference.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/stock.report_delivery_document.barcode_customer_reference.xml)
|
||||
@@ -53,10 +57,6 @@ Link: [snippets/stock.report_delivery_document.description_sale.xml](https://git
|
||||
ID: `mint_system.stock.report_delivery_document.disable_stock_move_line_table`
|
||||
Link: [snippets/stock.report_delivery_document.disable_stock_move_line_table.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/stock.report_delivery_document.disable_stock_move_line_table.xml)
|
||||
|
||||
### Document Description
|
||||
ID: `mint_system.stock.report_delivery_document.document_description`
|
||||
Link: [snippets/stock.report_delivery_document.document_description.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/stock.report_delivery_document.document_description.xml)
|
||||
|
||||
### Filter Qty Done
|
||||
ID: `mint_system.stock.report_delivery_document.filter_qty_done`
|
||||
Link: [snippets/stock.report_delivery_document.filter_qty_done.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/stock.report_delivery_document.filter_qty_done.xml)
|
||||
@@ -145,6 +145,10 @@ Link: [snippets/stock.report_delivery_document.replace_information_table2.xml](h
|
||||
ID: `mint_system.stock.report_delivery_document.replace_information_table`
|
||||
Link: [snippets/stock.report_delivery_document.replace_information_table.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/stock.report_delivery_document.replace_information_table.xml)
|
||||
|
||||
### Replace Infotable
|
||||
ID: `mint_system.stock.report_delivery_document.replace_infotable`
|
||||
Link: [snippets/stock.report_delivery_document.replace_infotable.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/stock.report_delivery_document.replace_infotable.xml)
|
||||
|
||||
### Replace Order Definition
|
||||
ID: `mint_system.stock.report_delivery_document.replace_order_definition`
|
||||
Link: [snippets/stock.report_delivery_document.replace_order_definition.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/stock.report_delivery_document.replace_order_definition.xml)
|
||||
@@ -556,3 +560,7 @@ Link: [snippets/stock.vpicktree.add_weight_uom_name.xml](https://github.com/Mint
|
||||
ID: `mint_system.stock.vpicktree.default_order_name`
|
||||
Link: [snippets/stock.vpicktree.default_order_name.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/stock.vpicktree.default_order_name.xml)
|
||||
|
||||
### Show Delivery Note
|
||||
ID: `mint_system.stock.vpicktree.show_delivery_note`
|
||||
Link: [snippets/stock.vpicktree.show_delivery_note.xml](https://github.com/Mint-System/Odoo-Development/tree/14.0/snippets/stock.vpicktree.show_delivery_note.xml)
|
||||
|
||||
+1
-2
@@ -1,8 +1,7 @@
|
||||
<?xml version="1.0"?>
|
||||
<!-- Append delivery document description -->
|
||||
<data inherit_id="stock.report_delivery_document" priority="50">
|
||||
|
||||
<xpath expr="/t/t/t/div/table[1]" position="after">
|
||||
<xpath expr="//table[@name='stock_move_line_table']" position="after">
|
||||
<p>Retouren:<br/>
|
||||
KEG: ___________ Anzahl<br/>
|
||||
Harassen: ___________ Anzahl<br/>
|
||||
@@ -0,0 +1,42 @@
|
||||
<?xml version="1.0"?>
|
||||
<data inherit_id="stock.report_delivery_document" priority="50">
|
||||
|
||||
<xpath expr="//div[@class='page']/div[1]" position="replace">
|
||||
|
||||
<style>
|
||||
table#infotable td,
|
||||
table#infotable th {
|
||||
padding-top: 0;
|
||||
padding-bottom: 0;
|
||||
}
|
||||
</style>
|
||||
<table id="infotable" class="table table-sm table-borderless">
|
||||
<thead class="o_thead">
|
||||
<tr>
|
||||
<th id="origin">Auftrag:</th>
|
||||
<th t-if="o.state == 'done'" id="date_done">Versanddatum:</th>
|
||||
<th t-if="o.state != 'done'" id="scheduled_date">Versanddatum:</th>
|
||||
<th id="client_order_ref">Kundenreferenz:</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td id="origin">
|
||||
<span t-field="o.origin" />
|
||||
</td>
|
||||
<td t-if="o.state == 'done'" id="date_done">
|
||||
<span t-field="o.date_done" />
|
||||
</td>
|
||||
<td t-if="o.state != 'done'" id="scheduled_date">
|
||||
<span t-field="o.scheduled_date" />
|
||||
</td>
|
||||
<td id="client_order_ref">
|
||||
<span t-field="o.sudo().sale_id.client_order_ref" />
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
</xpath>
|
||||
|
||||
</data>
|
||||
@@ -8,7 +8,8 @@
|
||||
</th>
|
||||
</t>
|
||||
</xpath>
|
||||
<xpath expr="//td[@id='description_picking']" position="before">
|
||||
<!-- <xpath expr="//td[@id='description_picking']" position="before"> -->
|
||||
<xpath expr="//span[@t-field='ml.product_id.description_picking']/.." position="before">
|
||||
<t t-if="o.sale_id or o.purchase_id">
|
||||
<td id="position">
|
||||
<span t-esc="move.position"/>
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
<?xml version="1.0"?>
|
||||
<data inherit_id="stock.vpicktree" priority="50">
|
||||
<xpath expr="//field[@name='partner_id']" position="after">
|
||||
<field name="delivery_note" optional="show"/>
|
||||
</xpath>
|
||||
</data>
|
||||
@@ -117,7 +117,7 @@ function install-native() {
|
||||
pip install setuptools wheel watchdog phonenumbers
|
||||
pip install -r odoo/requirements.txt
|
||||
echo "Install oca dev tools"
|
||||
pip install pre-commit pyyaml rst2html5
|
||||
pip install pre-commit pyyaml rst2html5 odoorpc
|
||||
echo "Install graphql dependencies"
|
||||
pip install graphene graphql-server-core
|
||||
echo "Install rest dependencies"
|
||||
@@ -787,6 +787,10 @@ function update-docs() {
|
||||
|
||||
echo "Update snippets README file."
|
||||
echo "# Snippets" > snippets.md
|
||||
echo "In Odoo everything is described as an XML document. \
|
||||
Snippets are modifications (edits) for these XML documents. \
|
||||
With a snippet you can e.g. hide a field on the contact form. \
|
||||
A snippet name is unique and follows the \`\$AUTHOR.\$MODULE.\$XML_ID.\$DESCRIPTION\` scheme." >> snippets.md
|
||||
|
||||
PATH_URL="https://github.com/Mint-System/Odoo-Development/tree/14.0"
|
||||
|
||||
|
||||
Reference in new issue
Block a user