Initial commit: OCA Technical packages (595 packages)

This commit is contained in:
Ernad Husremovic 2025-08-29 15:43:03 +02:00
commit 2cc02aac6e
24950 changed files with 2318079 additions and 0 deletions

View file

@ -0,0 +1,83 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo noupdate="1">
<!-- Email template for "Prepare to audit" message to all auditors. -->
<record id="template_email_prepare_to_audit" model="mail.template">
<field name="name">Prepare to audit</field>
<field name="model_id" ref="model_mgmtsystem_audit" />
<field
name="email_to"
>{{",".join(object.auditor_user_ids.mapped("email"))}}</field>
<field name="subject">Prepare to Audit: "{{object.name}}"</field>
<field name="body_html">
<![CDATA[
<p>Hello,</p>
<p>
The audit <t t-out="object.name" /> is scheduled in 2 weeks.
Please prepare the verification list:
<a t-att-href="object.get_action_url()">Link</a>
</p>
<p>
Thank you.
--
Odoo
</p>
]]>
</field>
</record>
<!-- Automated Action: Email all auditors 2 weeks before Audit. -->
<record id="rule_set_prepare_to_audit" model="base.automation">
<field name="name">Email all auditors 2 weeks before audit.</field>
<field name="model_id" ref="model_mgmtsystem_audit" />
<field name="template_id" ref="template_email_prepare_to_audit" />
<field name="trigger">on_time</field>
<field name="state">mail_post</field>
<field name="trg_date_id" ref="field_mgmtsystem_audit__date" />
<field name="trg_date_range">14</field>
<field name="trg_date_range_type">day</field>
</record>
<!-- Email template for "Send verification list" message to all followers -->
<record id="template_email_send_verification_list" model="mail.template">
<field name="name">Send Verification List</field>
<field name="model_id" ref="model_mgmtsystem_audit" />
<field
name="email_to"
> {{",".join((object.auditor_user_ids + object.auditee_user_ids + object.user_id).mapped("email"))}}</field>
<field name="subject">Send Verification List: "{{object.name}}"</field>
<field name="body_html">
<![CDATA[
<p>Hello,</p>
<p>
The audit <t t-out="object.name" /> is scheduled in 1 week.
Please finish the verification list and send it to the auditees:
<a t-att-href="object.get_action_url()">Link</a>
</p>
<p>
Thank you.
--
Odoo
</p>
]]>
</field>
</record>
<!-- Automated Action: Email all followers 1 weeks before Audit. -->
<record id="rule_set_send_verification_list" model="base.automation">
<field name="name">Email all followers 1 week before audit.</field>
<field name="model_id" ref="model_mgmtsystem_audit" />
<field name="template_id" ref="template_email_send_verification_list" />
<field name="trigger">on_time</field>
<field name="state">mail_post</field>
<field name="trg_date_id" ref="field_mgmtsystem_audit__date" />
<field name="trg_date_range">7</field>
<field name="trg_date_range_type">day</field>
</record>
</odoo>

View file

@ -0,0 +1,13 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo noupdate="1">
<!-- Sequences for mgmtsystem.audit -->
<record id="seq_mgmtsystem_audit" model="ir.sequence">
<field name="name">Management System Audit</field>
<field name="code">mgmtsystem.audit</field>
<field name="prefix">MSA</field>
<field name="padding">3</field>
<field name="company_id" eval="False" />
</record>
</odoo>