From 7e6a021a69ce4204d1667a1dfaa5cac40d5d82da Mon Sep 17 00:00:00 2001 From: Kurt Gisler Date: Wed, 23 Apr 2025 15:30:36 +0200 Subject: [PATCH] Update of Snippets --- ...ort_invoice_document.add_iban_and_bank.xml | 2 +- ...ce_document.replace_information_table3.xml | 107 ++++++++++++++++++ ....report_invoice_document.style_airwork.xml | 5 + ...intenance_equipment.x_calibrated_until.xml | 2 +- ...e_equipment.x_last_maintenance_request.xml | 6 +- ...chase.purchase_order_form.format_dates.xml | 12 +- ...rchasequotation_document.add_infoblock.xml | 8 +- .../sale.view_order_form.format_dates.xml | 6 +- 8 files changed, 133 insertions(+), 15 deletions(-) create mode 100644 snippets/account.report_invoice_document.replace_information_table3.xml create mode 100644 snippets/account.report_invoice_document.style_airwork.xml diff --git a/snippets/account.report_invoice_document.add_iban_and_bank.xml b/snippets/account.report_invoice_document.add_iban_and_bank.xml index 8ac6d694..1f05e54d 100644 --- a/snippets/account.report_invoice_document.add_iban_and_bank.xml +++ b/snippets/account.report_invoice_document.add_iban_and_bank.xml @@ -9,7 +9,7 @@
Bank/BIC: - +

diff --git a/snippets/account.report_invoice_document.replace_information_table3.xml b/snippets/account.report_invoice_document.replace_information_table3.xml new file mode 100644 index 00000000..dd21d467 --- /dev/null +++ b/snippets/account.report_invoice_document.replace_information_table3.xml @@ -0,0 +1,107 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Invoice Date + + + +
Your Reference + + + +
Order Reference + +
Your Contact + +
Incoterm + +
Payment terms + +
Our Contact + + + , + + + , + +
+
+
\ No newline at end of file diff --git a/snippets/account.report_invoice_document.style_airwork.xml b/snippets/account.report_invoice_document.style_airwork.xml new file mode 100644 index 00000000..0d10ae27 --- /dev/null +++ b/snippets/account.report_invoice_document.style_airwork.xml @@ -0,0 +1,5 @@ + + + table table-sm o_main_table mt-4 + + \ No newline at end of file diff --git a/snippets/ir_model.maintenance_equipment.x_calibrated_until.xml b/snippets/ir_model.maintenance_equipment.x_calibrated_until.xml index 1546e218..35732bff 100644 --- a/snippets/ir_model.maintenance_equipment.x_calibrated_until.xml +++ b/snippets/ir_model.maintenance_equipment.x_calibrated_until.xml @@ -7,7 +7,7 @@ x_calibrated_until - + date x_last_maintenance_request.x_calibrated_until diff --git a/snippets/ir_model.maintenance_equipment.x_last_maintenance_request.xml b/snippets/ir_model.maintenance_equipment.x_last_maintenance_request.xml index 3260565f..3bede0ec 100644 --- a/snippets/ir_model.maintenance_equipment.x_last_maintenance_request.xml +++ b/snippets/ir_model.maintenance_equipment.x_last_maintenance_request.xml @@ -11,10 +11,10 @@ many2one maintenance.request - name, maintenance_ids.x_calibrated_until + maintenance_ids.x_calibrated_until, maintenance_ids.close_date for record in self: - last_maintenance = record.maintenance_ids.search([('stage_id.id', 'in', ['3']), ('equipment_id', '=', record.id)], order='schedule_date desc', limit=1) - if last_maintenance and last_maintenance.schedule_date: + last_maintenance = record.maintenance_ids.search([('stage_id.id', 'in', ['3']), ('equipment_id', '=', record.id)], order='close_date desc', limit=1) + if last_maintenance and last_maintenance.close_date: record['x_last_maintenance_request'] = last_maintenance.id else: record['x_last_maintenance_request'] = None diff --git a/snippets/purchase.purchase_order_form.format_dates.xml b/snippets/purchase.purchase_order_form.format_dates.xml index a7a20865..03c378ff 100644 --- a/snippets/purchase.purchase_order_form.format_dates.xml +++ b/snippets/purchase.purchase_order_form.format_dates.xml @@ -1,14 +1,18 @@ - date + {"show_time":false} + datetime - date + {"show_time":false} + datetime - date + {"show_time":false} + datetime - date + {"show_time":false} + datetime diff --git a/snippets/purchase.report_purchasequotation_document.add_infoblock.xml b/snippets/purchase.report_purchasequotation_document.add_infoblock.xml index 005a7d86..e99d59ac 100644 --- a/snippets/purchase.report_purchasequotation_document.add_infoblock.xml +++ b/snippets/purchase.report_purchasequotation_document.add_infoblock.xml @@ -2,19 +2,19 @@
- Ansprechperson Einkauf + Buyer

- Datum + Date

- Ihre Referenz + Your Order Reference

- Frist für Angebotsabgabe + Deadline for submission of offer

diff --git a/snippets/sale.view_order_form.format_dates.xml b/snippets/sale.view_order_form.format_dates.xml index f042a531..60368e55 100644 --- a/snippets/sale.view_order_form.format_dates.xml +++ b/snippets/sale.view_order_form.format_dates.xml @@ -3,9 +3,11 @@ date - date + {"show_time":false} + datetime - date + {"show_time":false} + datetime