diff --git a/scripts/odoo14_server_cron_patch b/scripts/odoo14_server_cron_patch index 7fee4c9b..d9d1ed57 100755 --- a/scripts/odoo14_server_cron_patch +++ b/scripts/odoo14_server_cron_patch @@ -20,6 +20,9 @@ FILE=`basename "$FILE_PATH"` # Copy from docker docker cp "$CONTAINER":"$FILE_PATH" . +# Check if already patched +FOUND=$(grep "$FIND" $FILE) + # Find and replace sed -i'' "s/$FIND/$REPLACE/g" $FILE @@ -29,6 +32,8 @@ docker cp $FILE "$CONTAINER":"$FILE_PATH" # Remove file rm -f $FILE -# Register patch installation -echo "Patch $SCRIPT applied." -touch "/etc/odoo/${SCRIPT}_${CONTAINER}_installed" +if [ -z "$FOUND" ];then + exit 0 # File is already patched +else + exit 2 # File changed +fi \ No newline at end of file diff --git a/snippets/account.report_invoice_document.replace_address.xml b/snippets/account.report_invoice_document.replace_address.xml new file mode 100644 index 00000000..8852b59a --- /dev/null +++ b/snippets/account.report_invoice_document.replace_address.xml @@ -0,0 +1,9 @@ + + + + + + + + + \ No newline at end of file diff --git a/snippets/hr.view_hr_job_form.description_widget_html.xml b/snippets/hr.view_hr_job_form.description_widget_html.xml new file mode 100644 index 00000000..fb5f8c52 --- /dev/null +++ b/snippets/hr.view_hr_job_form.description_widget_html.xml @@ -0,0 +1,8 @@ + + + + + html + + + diff --git a/snippets/hr_contract.hr_contract_view_kanban.show_start_date.xml b/snippets/hr_contract.hr_contract_view_kanban.show_start_date.xml new file mode 100644 index 00000000..0af64590 --- /dev/null +++ b/snippets/hr_contract.hr_contract_view_kanban.show_start_date.xml @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/snippets/ir_model.hr_applicant.x_gdpr.xml b/snippets/ir_model.hr_applicant.x_gdpr.xml index 14f9bc7f..03532606 100644 --- a/snippets/ir_model.hr_applicant.x_gdpr.xml +++ b/snippets/ir_model.hr_applicant.x_gdpr.xml @@ -12,7 +12,6 @@ boolean - order_id.date_order diff --git a/snippets/ir_model.stock_move.x_count_boxes.xml b/snippets/ir_model.stock_move.x_count_boxes.xml index 105f04ed..60b8408a 100644 --- a/snippets/ir_model.stock_move.x_count_boxes.xml +++ b/snippets/ir_model.stock_move.x_count_boxes.xml @@ -14,20 +14,22 @@ int quantity_done for rec in self: - if rec.product_packaging: - if rec.product_packaging.name == "Schale Gross": - rec['x_count_boxes'] = (rec.quantity_done/4 + 2.4)/2.5 - if rec.product_packaging.name == "Schale Klein": - rec['x_count_boxes'] = (rec.quantity_done/6 + 0.9)/1 - if rec.product_packaging.name == "Vakuum": - rec['x_count_boxes'] = (rec.quantity_done/8 + 0.9)/1 - if rec.product_packaging.name == "Kiste": - if rec.product_id.id == 51: - rec['x_count_boxes'] = (rec.product_uom_qty + 99)/100 - else: - rec['x_count_boxes'] = (rec.product_uom_qty + 14)/15 - if rec.product_packaging.name in ["Karton"]: - rec['x_count_boxes'] = 0 + if rec.product_packaging: + if rec.product_packaging.name == "Schale Gross": + rec['x_count_boxes'] = (rec.quantity_done/4 + 2.4)/2.5 + if rec.product_packaging.name == "Schale Klein": + rec['x_count_boxes'] = (rec.quantity_done/6 + 0.9)/1 + if rec.product_packaging.name == "Vakuum Gross": + rec['x_count_boxes'] = (rec.quantity_done/4 + 2.4)/2.5 + if rec.product_packaging.name == "Vakuum Klein": + rec['x_count_boxes'] = (rec.quantity_done/8 + 0.9)/1 + if rec.product_packaging.name == "Kiste": + if rec.product_id.id == 51: + rec['x_count_boxes'] = (rec.product_uom_qty + 99)/100 + else: + rec['x_count_boxes'] = (rec.product_uom_qty + 14)/15 + if rec.product_packaging.name in ["Karton"]: + rec['x_count_boxes'] = 0 diff --git a/snippets/l10n_ch.isr_invoice_form.disable_print_buttons.xml b/snippets/l10n_ch.isr_invoice_form.disable_print_buttons.xml new file mode 100644 index 00000000..6e350a46 --- /dev/null +++ b/snippets/l10n_ch.isr_invoice_form.disable_print_buttons.xml @@ -0,0 +1,7 @@ + + + + + + + \ No newline at end of file diff --git a/snippets/l10n_ch.l10n_ch_swissqr_template.modify_header_style.xml b/snippets/l10n_ch.l10n_ch_swissqr_template.modify_header_style.xml new file mode 100644 index 00000000..084b12e8 --- /dev/null +++ b/snippets/l10n_ch.l10n_ch_swissqr_template.modify_header_style.xml @@ -0,0 +1,8 @@ + + + + + padding-top:6.2mm; padding-left:23mm; padding-right:8.2mm; + + + \ No newline at end of file diff --git a/snippets/l10n_ch.l10n_ch_swissqr_template.replace_title.xml b/snippets/l10n_ch.l10n_ch_swissqr_template.replace_title.xml new file mode 100644 index 00000000..2cbf938c --- /dev/null +++ b/snippets/l10n_ch.l10n_ch_swissqr_template.replace_title.xml @@ -0,0 +1,29 @@ + + + + + + + + + + + + + + + Rechnung + Rechnungsdatum: + + + \ No newline at end of file diff --git a/snippets/sale.report_saleorder_document.modify_main_table.xml b/snippets/sale.report_saleorder_document.modify_main_table.xml deleted file mode 100644 index 58408981..00000000 --- a/snippets/sale.report_saleorder_document.modify_main_table.xml +++ /dev/null @@ -1,145 +0,0 @@ - - - - - - - Artikel Nr. - - - - - - - - - - - - - - - - - - - - - - - - Ursprungsland: - - / Zollposition: - - - - - - - - - - - - width: 100%; font-size:9pt - table table-borderless table-sm - - - - - border-top:solid 1px; border-bottom: solid 1px; color: black; - - - - - width: 5mm/> - - - - - width: 27mm; text-align: right; padding-right: 10px"/> - - - - - width: 70mm/> - - - - - text-align: right; padding-right: 5px"/> - width: 30mm/> - - - - - text-align: right/> - - - - - text-align: right; padding-right: 10px/> - - - - - text-align: left;/> - - - - - - "integer" - - - - - - - - - - - - - - % - - - - - - - - - - - - - - - - Warenwert - - - - - - - - - - - - Rechnungsbetrag - - - - - - - - - - \ No newline at end of file diff --git a/snippets/sale.report_saleorder_document.set_ids.xml b/snippets/sale.report_saleorder_document.set_ids.xml new file mode 100644 index 00000000..ca2b0b12 --- /dev/null +++ b/snippets/sale.report_saleorder_document.set_ids.xml @@ -0,0 +1,25 @@ + + + + + position + + + position + + + + description + + + + quantity + + + quantity + + + qty + + + \ No newline at end of file diff --git a/snippets/stock.label_transfer_template_view.basis57.xml b/snippets/stock.label_transfer_template_view.basis57.xml index 7a34ec56..d0b92c50 100644 --- a/snippets/stock.label_transfer_template_view.basis57.xml +++ b/snippets/stock.label_transfer_template_view.basis57.xml @@ -8,29 +8,35 @@ - - - 2'500g - - - 1'000g + + + 2'500g + + + - + 1'000g + + + 2'500g + + + 5'000g @@ -39,9 +45,9 @@ - + + + diff --git a/snippets/stock.report_delivery_document.add_header_and_footer_note.xml b/snippets/stock.report_delivery_document.add_header_and_footer_note.xml new file mode 100644 index 00000000..62976d87 --- /dev/null +++ b/snippets/stock.report_delivery_document.add_header_and_footer_note.xml @@ -0,0 +1,16 @@ + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/snippets/stock.report_delivery_document.add_infotable.xml b/snippets/stock.report_delivery_document.add_infotable.xml index 3f40871b..fc58b1f5 100644 --- a/snippets/stock.report_delivery_document.add_infotable.xml +++ b/snippets/stock.report_delivery_document.add_infotable.xml @@ -1,8 +1,8 @@ - - - - - + - - Date - - Order No. - - - - - Customer No. - - Our Reference - - - - - Order - - - Delivery Method - - - - - Reference - - Incoterm - - + - + + Date + + + + Order No. + + + + - - - - - - + + Customer No. + + + + Our Reference + + + + + + + Order + + + + + Delivery Method + + + + + + + Reference + + + + Incoterm + + + + + + + + \ No newline at end of file diff --git a/snippets/stock.report_delivery_document.add_open_quantity_in_backorder.xml b/snippets/stock.report_delivery_document.add_open_quantity_in_backorder.xml new file mode 100644 index 00000000..06d23cd9 --- /dev/null +++ b/snippets/stock.report_delivery_document.add_open_quantity_in_backorder.xml @@ -0,0 +1,14 @@ + + + + + + Open Quantity + + + + + + + + \ No newline at end of file diff --git a/snippets/stock.report_delivery_document.hide_backorder_quantity.xml b/snippets/stock.report_delivery_document.hide_backorder_quantity.xml new file mode 100644 index 00000000..1e506582 --- /dev/null +++ b/snippets/stock.report_delivery_document.hide_backorder_quantity.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/snippets/stock.report_delivery_document.replace_product_description.xml b/snippets/stock.report_delivery_document.replace_product_description.xml index 24409f2b..a2d1b26b 100644 --- a/snippets/stock.report_delivery_document.replace_product_description.xml +++ b/snippets/stock.report_delivery_document.replace_product_description.xml @@ -1,13 +1,12 @@ - + - - + Ursprungsland: / Zollposition: diff --git a/snippets/stock.report_delivery_document.replace_product_uom_qty.xml b/snippets/stock.report_delivery_document.replace_product_uom_qty.xml new file mode 100644 index 00000000..0504077d --- /dev/null +++ b/snippets/stock.report_delivery_document.replace_product_uom_qty.xml @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/snippets/stock.report_delivery_document.set_ids.xml b/snippets/stock.report_delivery_document.set_ids.xml index 08b8e1c5..201fa93d 100644 --- a/snippets/stock.report_delivery_document.set_ids.xml +++ b/snippets/stock.report_delivery_document.set_ids.xml @@ -1,8 +1,58 @@ -> + - product_id + position + + + position + + + + description + + + + quantity + + + quantity + + + qty + + + + position + + + position + + + + description + + + + open_quantity + + + open_quantity + + + + open_quantity + + + open_qty + + + + quantity + + + + subtitel \ No newline at end of file diff --git a/snippets/stock.report_delivery_document.show_default_code.xml b/snippets/stock.report_delivery_document.show_default_code.xml new file mode 100644 index 00000000..d343a97c --- /dev/null +++ b/snippets/stock.report_delivery_document.show_default_code.xml @@ -0,0 +1,20 @@ + + + + + + Part No. + + + + + Part No. + + + + + + + + + \ No newline at end of file diff --git a/snippets/stock.report_delivery_document.sort_by_position.xml b/snippets/stock.report_delivery_document.sort_by_position.xml index 8efa6bd4..ef58aabc 100644 --- a/snippets/stock.report_delivery_document.sort_by_position.xml +++ b/snippets/stock.report_delivery_document.sort_by_position.xml @@ -1,12 +1,16 @@ - + + + + + - + \ No newline at end of file diff --git a/snippets/stock.report_delivery_document.style_trimada.xml b/snippets/stock.report_delivery_document.style_trimada.xml index bae2b4f2..1aa15e73 100644 --- a/snippets/stock.report_delivery_document.style_trimada.xml +++ b/snippets/stock.report_delivery_document.style_trimada.xml @@ -1,25 +1,79 @@ - + - + - + + + "integer" + + + + "integer" + + diff --git a/snippets/stock.view_move_form.show_packaging.xml b/snippets/stock.view_move_form.show_packaging.xml new file mode 100644 index 00000000..22a0c2bb --- /dev/null +++ b/snippets/stock.view_move_form.show_packaging.xml @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/snippets/web.external_layout_standard.replace_header.xml b/snippets/web.external_layout_standard.replace_header.xml index a21f98c6..bcfb6037 100644 --- a/snippets/web.external_layout_standard.replace_header.xml +++ b/snippets/web.external_layout_standard.replace_header.xml @@ -2,7 +2,7 @@ - +