From 8dc89fbfbfc2fdd13c5dbb2b681faed25a93da36 Mon Sep 17 00:00:00 2001 From: Janik von Rotz Date: Tue, 5 May 2026 17:31:46 +0200 Subject: [PATCH] feat(snippets): add new snippets for HR attendance, knowledge, resource, and various report enhancements --- .vuepress/sidebar.js | 3 + bin/update-snippets-doc | 4 +- snippets.md | 6 + snippets/account.md | 1591 ++++++------- snippets/account_accountant.md | 24 +- snippets/account_asset.md | 6 +- snippets/account_batch_payment.md | 18 +- snippets/account_budget.md | 6 +- snippets/account_ebics_batch.md | 6 +- snippets/account_financial_report.md | 54 +- snippets/account_followup.md | 59 +- snippets/account_journal_items_report.md | 6 +- snippets/account_reports.md | 48 +- snippets/account_sale_timesheet_report.md | 84 +- snippets/agreement.md | 6 +- snippets/agreement_legal.md | 48 +- snippets/auth_api_key.md | 6 +- snippets/base.md | 619 +++-- snippets/base_install_request.md | 6 +- snippets/base_location.md | 6 +- snippets/business_requirement.md | 66 +- snippets/calendar.md | 42 +- snippets/certificate_planer.md | 12 +- snippets/contract.md | 18 +- snippets/crm.md | 84 +- snippets/crm_iap_lead_enrich.md | 6 +- snippets/delivery.md | 12 +- snippets/digest.md | 6 +- snippets/fleet.md | 6 +- snippets/forestry_timesheet.md | 6 +- snippets/gio_payroll_custom.md | 12 +- snippets/helpdesk.md | 75 +- snippets/hr.md | 84 +- snippets/hr_attendance.md | 38 +- snippets/hr_attendance_kanban.md | 6 +- .../hr_attendance_report_add_flexitime.md | 35 + snippets/hr_contract.md | 12 +- snippets/hr_employee_attendance_report.md | 94 +- snippets/hr_expense.md | 24 +- snippets/hr_holidays.md | 72 +- snippets/hr_holidays_delegations.md | 6 +- snippets/hr_payroll.md | 48 +- snippets/hr_recruitment.md | 6 +- snippets/hr_skills.md | 6 +- snippets/hr_timesheet.md | 192 +- snippets/industry_fsm.md | 36 +- snippets/industry_fsm_sale.md | 48 +- snippets/ir_model.md | 1180 ++++------ snippets/ir_ui_view.md | 12 +- snippets/knowledge.md | 23 + snippets/l10n_ch.md | 84 +- snippets/l10n_ch_qr_isr_invoice_import.md | 6 +- snippets/l10n_din5008.md | 457 +++- snippets/mail.md | 343 +-- snippets/mail_activity_board.md | 24 +- snippets/mail_tracking.md | 6 +- snippets/maintenance.md | 67 +- snippets/maintenance_plan.md | 6 +- snippets/mrp.md | 505 ++--- snippets/mrp_account.md | 6 +- snippets/mrp_workorder.md | 18 +- snippets/payment.md | 6 +- snippets/portal.md | 12 +- snippets/printnode_base.md | 6 +- snippets/product.md | 339 +-- snippets/project.md | 214 +- snippets/project_enterprise.md | 6 +- snippets/purchase.md | 867 +++---- snippets/purchase_requisition.md | 492 ++-- snippets/purchase_requisition_send.md | 6 +- snippets/res_groups.md | 6 +- snippets/resource.md | 20 + snippets/sale.md | 1999 +++++++---------- snippets/sale_blanket_order.md | 318 +-- snippets/sale_management.md | 6 +- snippets/sale_margin.md | 6 +- snippets/sale_order_contact_person.md | 6 +- snippets/sale_order_line_date.md | 6 +- snippets/sale_order_notes.md | 22 +- snippets/sale_order_picking_note.md | 6 +- snippets/sale_partner_incoterm.md | 6 +- snippets/sale_product_set.md | 12 +- snippets/sale_subscription.md | 30 +- snippets/sale_timesheet.md | 6 +- snippets/stock.md | 1853 ++++++--------- snippets/stock_account.md | 18 +- snippets/stock_delivery.md | 6 +- snippets/stock_delivery_note.md | 12 +- snippets/subscription_oca.md | 12 +- snippets/survey.md | 42 +- snippets/timesheet_grid.md | 6 +- snippets/web.md | 545 ++--- snippets/website.md | 18 +- snippets/website_discount_voucher.md | 6 +- snippets/website_sale.md | 102 +- 95 files changed, 5540 insertions(+), 7872 deletions(-) create mode 100644 snippets/hr_attendance_report_add_flexitime.md create mode 100644 snippets/knowledge.md create mode 100644 snippets/resource.md diff --git a/.vuepress/sidebar.js b/.vuepress/sidebar.js index ff5e8cf2..d16df301 100644 --- a/.vuepress/sidebar.js +++ b/.vuepress/sidebar.js @@ -31,6 +31,7 @@ export default [ '/snippets/hr.md', '/snippets/hr_attendance.md', '/snippets/hr_attendance_kanban.md', +'/snippets/hr_attendance_report_add_flexitime.md', '/snippets/hr_contract.md', '/snippets/hr_employee_attendance_report.md', '/snippets/hr_expense.md', @@ -44,6 +45,7 @@ export default [ '/snippets/industry_fsm_sale.md', '/snippets/ir_model.md', '/snippets/ir_ui_view.md', +'/snippets/knowledge.md', '/snippets/l10n_ch.md', '/snippets/l10n_ch_qr_isr_invoice_import.md', '/snippets/l10n_din5008.md', @@ -65,6 +67,7 @@ export default [ '/snippets/purchase_requisition.md', '/snippets/purchase_requisition_send.md', '/snippets/res_groups.md', +'/snippets/resource.md', '/snippets/sale.md', '/snippets/sale_blanket_order.md', '/snippets/sale_management.md', diff --git a/bin/update-snippets-doc b/bin/update-snippets-doc index 35817406..309f4a11 100755 --- a/bin/update-snippets-doc +++ b/bin/update-snippets-doc @@ -106,7 +106,7 @@ def main(): # Add edit section to module doc file with open(doc_file, "a") as module_doc: module_doc.write(f"### {edit_title}\n\n") - module_doc.write(f"ID: `{snippet_prefix}.{module}.{xml_id}.{edit}`\n\n") + module_doc.write(f"ID: `{snippet_prefix}.{module}.{xml_id}.{edit}`\\\n") module_doc.write(f"Inherit ID: `{module}.{xml_id}`\n\n") module_doc.write("```xml\n") @@ -115,7 +115,7 @@ def main(): module_doc.write(xml_file.read()) module_doc.write("\n```\n") - module_doc.write(f"Edit: [{file}]({edit_url}/{file})\n\n") + module_doc.write(f"Edit: [{file}]({edit_url}/{file})\\\n") module_doc.write(f"Source: [{file}]({source_url}/{file})\n\n") # Create sidebar.js diff --git a/snippets.md b/snippets.md index c28585c1..033de720 100644 --- a/snippets.md +++ b/snippets.md @@ -65,6 +65,8 @@ In Odoo everything is described as an XML document. Snippets are modifications ( ## [Hr Attendance Kanban](snippets/hr_attendance_kanban.md) +## [Hr Attendance Report Add Flexitime](snippets/hr_attendance_report_add_flexitime.md) + ## [Hr Contract](snippets/hr_contract.md) ## [Hr Employee Attendance Report](snippets/hr_employee_attendance_report.md) @@ -91,6 +93,8 @@ In Odoo everything is described as an XML document. Snippets are modifications ( ## [Ir Ui View](snippets/ir_ui_view.md) +## [Knowledge](snippets/knowledge.md) + ## [L10n Ch](snippets/l10n_ch.md) ## [L10n Ch Qr Isr Invoice Import](snippets/l10n_ch_qr_isr_invoice_import.md) @@ -133,6 +137,8 @@ In Odoo everything is described as an XML document. Snippets are modifications ( ## [Res Groups](snippets/res_groups.md) +## [Resource](snippets/resource.md) + ## [Sale](snippets/sale.md) ## [Sale Blanket Order](snippets/sale_blanket_order.md) diff --git a/snippets/account.md b/snippets/account.md index 2982e4d3..f9db4412 100644 --- a/snippets/account.md +++ b/snippets/account.md @@ -4,8 +4,7 @@ ### Replace Summary -ID: `mint_system.account.document_tax_totals.replace_summary` - +ID: `mint_system.account.document_tax_totals.replace_summary`\ Inherit ID: `account.document_tax_totals` ```xml @@ -102,16 +101,14 @@ Inherit ID: `account.document_tax_totals` ``` -Edit: [snippets/mint_system.account.document_tax_totals.replace_summary.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/mint_system.account.document_tax_totals.replace_summary.xml) - +Edit: [snippets/mint_system.account.document_tax_totals.replace_summary.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/mint_system.account.document_tax_totals.replace_summary.xml)\ Source: [snippets/mint_system.account.document_tax_totals.replace_summary.xml](https://odoo.build/snippets/mint_system.account.document_tax_totals.replace_summary.xml) ## Email Template Edi Invoice ### Translation Mint System -ID: `mint_system.account.email_template_edi_invoice.translation_mint_system` - +ID: `mint_system.account.email_template_edi_invoice.translation_mint_system`\ Inherit ID: `account.email_template_edi_invoice` ```xml @@ -155,39 +152,14 @@ Inherit ID: `account.email_template_edi_invoice` ``` -Edit: [snippets/mint_system.account.email_template_edi_invoice.translation_mint_system.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/mint_system.account.email_template_edi_invoice.translation_mint_system.xml) - +Edit: [snippets/mint_system.account.email_template_edi_invoice.translation_mint_system.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/mint_system.account.email_template_edi_invoice.translation_mint_system.xml)\ Source: [snippets/mint_system.account.email_template_edi_invoice.translation_mint_system.xml](https://odoo.build/snippets/mint_system.account.email_template_edi_invoice.translation_mint_system.xml) -## Knowledge - -### Knowledge Article View Form - -ID: `mint_system.account.knowledge.knowledge_article_view_form` - -Inherit ID: `account.knowledge` - -```xml - - - - - -``` -Edit: [snippets/mint_system.account.knowledge.knowledge_article_view_form.style_max_width.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/mint_system.account.knowledge.knowledge_article_view_form.style_max_width.xml) - -Source: [snippets/mint_system.account.knowledge.knowledge_article_view_form.style_max_width.xml](https://odoo.build/snippets/mint_system.account.knowledge.knowledge_article_view_form.style_max_width.xml) - ## Portal Invoice Page ### Convert Html Note -ID: `mint_system.account.portal_invoice_page.convert_html_note` - +ID: `mint_system.account.portal_invoice_page.convert_html_note`\ Inherit ID: `account.portal_invoice_page` ```xml @@ -207,16 +179,14 @@ Inherit ID: `account.portal_invoice_page` ``` -Edit: [snippets/mint_system.account.portal_invoice_page.convert_html_note.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/mint_system.account.portal_invoice_page.convert_html_note.xml) - +Edit: [snippets/mint_system.account.portal_invoice_page.convert_html_note.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/mint_system.account.portal_invoice_page.convert_html_note.xml)\ Source: [snippets/mint_system.account.portal_invoice_page.convert_html_note.xml](https://odoo.build/snippets/mint_system.account.portal_invoice_page.convert_html_note.xml) ## Report Invoice ### Print With Payments -ID: `mint_system.account.report_invoice.print_with_payments` - +ID: `mint_system.account.report_invoice.print_with_payments`\ Inherit ID: `account.report_invoice` ```xml @@ -227,16 +197,14 @@ Inherit ID: `account.report_invoice` ``` -Edit: [snippets/mint_system.account.report_invoice.print_with_payments.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/mint_system.account.report_invoice.print_with_payments.xml) - +Edit: [snippets/mint_system.account.report_invoice.print_with_payments.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/mint_system.account.report_invoice.print_with_payments.xml)\ Source: [snippets/mint_system.account.report_invoice.print_with_payments.xml](https://odoo.build/snippets/mint_system.account.report_invoice.print_with_payments.xml) ## Report Invoice Document ### Add Address -ID: `mint_system.account.report_invoice_document.add_address` - +ID: `mint_system.account.report_invoice_document.add_address`\ Inherit ID: `account.report_invoice_document` ```xml @@ -392,14 +360,12 @@ Inherit ID: `account.report_invoice_document` ``` -Edit: [snippets/mint_system.account.report_invoice_document.add_address.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/mint_system.account.report_invoice_document.add_address.xml) - +Edit: [snippets/mint_system.account.report_invoice_document.add_address.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/mint_system.account.report_invoice_document.add_address.xml)\ Source: [snippets/mint_system.account.report_invoice_document.add_address.xml](https://odoo.build/snippets/mint_system.account.report_invoice_document.add_address.xml) ### Add Address Space -ID: `mint_system.account.report_invoice_document.add_address_space` - +ID: `mint_system.account.report_invoice_document.add_address_space`\ Inherit ID: `account.report_invoice_document` ```xml @@ -414,14 +380,12 @@ Inherit ID: `account.report_invoice_document` ``` -Edit: [snippets/mint_system.account.report_invoice_document.add_address_space.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/mint_system.account.report_invoice_document.add_address_space.xml) - +Edit: [snippets/mint_system.account.report_invoice_document.add_address_space.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/mint_system.account.report_invoice_document.add_address_space.xml)\ Source: [snippets/mint_system.account.report_invoice_document.add_address_space.xml](https://odoo.build/snippets/mint_system.account.report_invoice_document.add_address_space.xml) ### Add Bocco Id -ID: `mint_system.account.report_invoice_document.add_bocco_id` - +ID: `mint_system.account.report_invoice_document.add_bocco_id`\ Inherit ID: `account.report_invoice_document` ```xml @@ -434,14 +398,12 @@ Inherit ID: `account.report_invoice_document` ``` -Edit: [snippets/mint_system.account.report_invoice_document.add_bocco_id.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/mint_system.account.report_invoice_document.add_bocco_id.xml) - +Edit: [snippets/mint_system.account.report_invoice_document.add_bocco_id.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/mint_system.account.report_invoice_document.add_bocco_id.xml)\ Source: [snippets/mint_system.account.report_invoice_document.add_bocco_id.xml](https://odoo.build/snippets/mint_system.account.report_invoice_document.add_bocco_id.xml) ### Add Comment Space -ID: `mint_system.account.report_invoice_document.add_comment_space` - +ID: `mint_system.account.report_invoice_document.add_comment_space`\ Inherit ID: `account.report_invoice_document` ```xml @@ -458,14 +420,12 @@ Inherit ID: `account.report_invoice_document` ``` -Edit: [snippets/mint_system.account.report_invoice_document.add_comment_space.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/mint_system.account.report_invoice_document.add_comment_space.xml) - +Edit: [snippets/mint_system.account.report_invoice_document.add_comment_space.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/mint_system.account.report_invoice_document.add_comment_space.xml)\ Source: [snippets/mint_system.account.report_invoice_document.add_comment_space.xml](https://odoo.build/snippets/mint_system.account.report_invoice_document.add_comment_space.xml) ### Add Company Vat -ID: `mint_system.account.report_invoice_document.add_company_vat` - +ID: `mint_system.account.report_invoice_document.add_company_vat`\ Inherit ID: `account.report_invoice_document` ```xml @@ -480,14 +440,12 @@ Inherit ID: `account.report_invoice_document` ``` -Edit: [snippets/mint_system.account.report_invoice_document.add_company_vat.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/mint_system.account.report_invoice_document.add_company_vat.xml) - +Edit: [snippets/mint_system.account.report_invoice_document.add_company_vat.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/mint_system.account.report_invoice_document.add_company_vat.xml)\ Source: [snippets/mint_system.account.report_invoice_document.add_company_vat.xml](https://odoo.build/snippets/mint_system.account.report_invoice_document.add_company_vat.xml) ### Add Current Subtotal Space -ID: `mint_system.account.report_invoice_document.add_current_subtotal_space` - +ID: `mint_system.account.report_invoice_document.add_current_subtotal_space`\ Inherit ID: `account.report_invoice_document` ```xml @@ -500,33 +458,30 @@ Inherit ID: `account.report_invoice_document` ``` -Edit: [snippets/mint_system.account.report_invoice_document.add_current_subtotal_space.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/mint_system.account.report_invoice_document.add_current_subtotal_space.xml) - +Edit: [snippets/mint_system.account.report_invoice_document.add_current_subtotal_space.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/mint_system.account.report_invoice_document.add_current_subtotal_space.xml)\ Source: [snippets/mint_system.account.report_invoice_document.add_current_subtotal_space.xml](https://odoo.build/snippets/mint_system.account.report_invoice_document.add_current_subtotal_space.xml) ### Add Footer Text -ID: `mint_system.account.report_invoice_document.add_footer_text` - +ID: `mint_system.account.report_invoice_document.add_footer_text`\ Inherit ID: `account.report_invoice_document` ```xml - + Verlagerung der Steuerschuld auf den Leistungs- und Rechnungsempfänger (Empfängerortprinzip gem. Art. 8 MWST). -``` -Edit: [snippets/mint_system.account.report_invoice_document.add_footer_text.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/mint_system.account.report_invoice_document.add_footer_text.xml) +``` +Edit: [snippets/mint_system.account.report_invoice_document.add_footer_text.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/mint_system.account.report_invoice_document.add_footer_text.xml)\ Source: [snippets/mint_system.account.report_invoice_document.add_footer_text.xml](https://odoo.build/snippets/mint_system.account.report_invoice_document.add_footer_text.xml) ### Add General Information -ID: `mint_system.account.report_invoice_document.add_general_information` - +ID: `mint_system.account.report_invoice_document.add_general_information`\ Inherit ID: `account.report_invoice_document` ```xml @@ -536,7 +491,7 @@ Inherit ID: `account.report_invoice_document` -
+ The General Terms and Conditions of apply. @@ -545,7 +500,7 @@ Inherit ID: `account.report_invoice_document` . - +
Payment Instructions - Use SEPA payment if possible!
@@ -567,7 +522,7 @@ Inherit ID: `account.report_invoice_document` ) IBAN: - +
@@ -585,10 +540,12 @@ Inherit ID: `account.report_invoice_document`
+
Payable until:
+
@@ -609,14 +566,12 @@ Inherit ID: `account.report_invoice_document` ``` -Edit: [snippets/mint_system.account.report_invoice_document.add_general_information.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/mint_system.account.report_invoice_document.add_general_information.xml) - +Edit: [snippets/mint_system.account.report_invoice_document.add_general_information.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/mint_system.account.report_invoice_document.add_general_information.xml)\ Source: [snippets/mint_system.account.report_invoice_document.add_general_information.xml](https://odoo.build/snippets/mint_system.account.report_invoice_document.add_general_information.xml) ### Add Head -ID: `mint_system.account.report_invoice_document.add_head` - +ID: `mint_system.account.report_invoice_document.add_head`\ Inherit ID: `account.report_invoice_document` ```xml @@ -628,14 +583,12 @@ Inherit ID: `account.report_invoice_document` ``` -Edit: [snippets/mint_system.account.report_invoice_document.add_head.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/mint_system.account.report_invoice_document.add_head.xml) - +Edit: [snippets/mint_system.account.report_invoice_document.add_head.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/mint_system.account.report_invoice_document.add_head.xml)\ Source: [snippets/mint_system.account.report_invoice_document.add_head.xml](https://odoo.build/snippets/mint_system.account.report_invoice_document.add_head.xml) ### Add Header And Footer Note -ID: `mint_system.account.report_invoice_document.add_header_and_footer_note` - +ID: `mint_system.account.report_invoice_document.add_header_and_footer_note`\ Inherit ID: `account.report_invoice_document` ```xml @@ -653,14 +606,12 @@ Inherit ID: `account.report_invoice_document` ``` -Edit: [snippets/mint_system.account.report_invoice_document.add_header_and_footer_note.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/mint_system.account.report_invoice_document.add_header_and_footer_note.xml) - +Edit: [snippets/mint_system.account.report_invoice_document.add_header_and_footer_note.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/mint_system.account.report_invoice_document.add_header_and_footer_note.xml)\ Source: [snippets/mint_system.account.report_invoice_document.add_header_and_footer_note.xml](https://odoo.build/snippets/mint_system.account.report_invoice_document.add_header_and_footer_note.xml) ### Add Header Padding -ID: `mint_system.account.report_invoice_document.add_header_padding` - +ID: `mint_system.account.report_invoice_document.add_header_padding`\ Inherit ID: `account.report_invoice_document` ```xml @@ -671,14 +622,12 @@ Inherit ID: `account.report_invoice_document` ``` -Edit: [snippets/mint_system.account.report_invoice_document.add_header_padding.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/mint_system.account.report_invoice_document.add_header_padding.xml) - +Edit: [snippets/mint_system.account.report_invoice_document.add_header_padding.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/mint_system.account.report_invoice_document.add_header_padding.xml)\ Source: [snippets/mint_system.account.report_invoice_document.add_header_padding.xml](https://odoo.build/snippets/mint_system.account.report_invoice_document.add_header_padding.xml) ### Add Header Space -ID: `mint_system.account.report_invoice_document.add_header_space` - +ID: `mint_system.account.report_invoice_document.add_header_space`\ Inherit ID: `account.report_invoice_document` ```xml @@ -689,21 +638,19 @@ Inherit ID: `account.report_invoice_document` ``` -Edit: [snippets/mint_system.account.report_invoice_document.add_header_space.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/mint_system.account.report_invoice_document.add_header_space.xml) - +Edit: [snippets/mint_system.account.report_invoice_document.add_header_space.xml](https://github.com/Mint-System/Odoo-Build/tree/main/snippets/mint_system.account.report_invoice_document.add_header_space.xml)\ Source: [snippets/mint_system.account.report_invoice_document.add_header_space.xml](https://odoo.build/snippets/mint_system.account.report_invoice_document.add_header_space.xml)