Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MIG-mgmtsystem_nonconformity-to-V.-10.0
MIG-mgmtsystem_nonconformity-to-V.-10.0
- Loading branch information
Showing
29 changed files
with
534 additions
and
246 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,8 @@ | ||
# -*- coding: utf-8 -*- | ||
############################################################################## | ||
# | ||
# OpenERP, Open Source Management Solution | ||
# Copyright (C) 2013 Savoir-faire Linux (<http://www.savoirfairelinux.com>). | ||
# | ||
# This program is free software: you can redistribute it and/or modify | ||
# it under the terms of the GNU Affero General Public License as | ||
# published by the Free Software Foundation, either version 3 of the | ||
# License, or (at your option) any later version. | ||
# | ||
# This program is distributed in the hope that it will be useful, | ||
# but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
# GNU Affero General Public License for more details. | ||
# | ||
# You should have received a copy of the GNU Affero General Public License | ||
# along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
# | ||
############################################################################## | ||
from . import models, reports | ||
# Copyright (C) 2013 Savoir-faire Linux (<http://www.savoirfairelinux.com>). | ||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). | ||
|
||
from . import ( | ||
models, | ||
reports, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<odoo> | ||
<data noupdate="1"> | ||
<record id="ir_cron_mgmtsystem_nonconformity_reminder" model="ir.cron"> | ||
<field name="name">Email Nonconformity Reminders 10 days before due date.</field> | ||
<field name="user_id" ref="base.user_root"/> | ||
<field name="interval_number">1</field> | ||
<field name="interval_type">days</field> | ||
<field name="numbercall">-1</field> | ||
<field eval="False" name="doall"/> | ||
<field eval="'mgmtsystem.nonconformity'" name="model"/> | ||
<field eval="'process_nonconformity_reminder_queue'" name="function"/> | ||
</record> | ||
</data> | ||
</odoo> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,191 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<odoo> | ||
<!-- Email templates for Nonconformity Stages --> | ||
<data noupdate="1"> | ||
|
||
<record id="email_template_nonconformity_draft" model="mail.template"> | ||
<field name="name">Email template for stage draft</field> | ||
<field name="email_from">${object.create_uid.company_id.email or 'noreply@localhost'}</field> | ||
<field name="subject">${object.name}</field> | ||
<field name="email_to">${object.manager_user_id.email},${object.responsible_user_id.email}</field> | ||
<field name="model_id" ref="model_mgmtsystem_nonconformity"/> | ||
<field name="auto_delete" eval="True"/> | ||
<field name="lang">${object.create_uid.partner_id.lang}</field> | ||
<field name="body_html"> | ||
<![CDATA[ | ||
<p>Hello,</p> | ||
<p>A new nonconformity has been assigned to you : <a href="${object.get_nonconformity_url()}">${object.get_nonconformity_url()}</a></p> | ||
<p>${object.description}</p> | ||
<p> | ||
Thank you<br /> | ||
--<br /> | ||
Odoo | ||
</p>]]> | ||
</field> | ||
</record> | ||
|
||
|
||
<record id="email_template_nonconformity_analysis" model="mail.template"> | ||
<field name="name">Email template for stage analysis</field> | ||
<field name="email_from">${object.create_uid.company_id.email or 'noreply@localhost'}</field> | ||
<field name="subject">${object.name}</field> | ||
<field name="email_to">${object.manager_user_id.email},${object.responsible_user_id.email}</field> | ||
<field name="model_id" ref="model_mgmtsystem_nonconformity"/> | ||
<field name="auto_delete" eval="True"/> | ||
<field name="lang">${object.create_uid.partner_id.lang}</field> | ||
<field name="body_html"> | ||
<![CDATA[ | ||
<p>Hello,</p> | ||
<p>The Analysis of a new nonconformity has been assigned to you : <a href="${object.get_nonconformity_url()}">${object.get_nonconformity_url()}</a></p> | ||
<p>${object.description}</p> | ||
<p> | ||
Thank you<br /> | ||
--<br /> | ||
Odoo | ||
</p>]]> | ||
</field> | ||
</record> | ||
|
||
<record id="email_template_nonconformity_planing" model="mail.template"> | ||
<field name="name">Email template for stage pending (Action Plan)</field> | ||
<field name="email_from">${object.create_uid.company_id.email or 'noreply@localhost'}</field> | ||
<field name="subject">${object.name}</field> | ||
<field name="email_to">${object.manager_user_id.email},${object.responsible_user_id.email}</field> | ||
<field name="model_id" ref="model_mgmtsystem_nonconformity"/> | ||
<field name="auto_delete" eval="True"/> | ||
<field name="lang">${object.create_uid.partner_id.lang}</field> | ||
<field name="body_html"> | ||
<![CDATA[ | ||
<p>Hello,</p> | ||
<p>The Analysis of a new nonconformity has been assigned to you : <a href="${object.get_nonconformity_url()}">${object.get_nonconformity_url()}</a></p> | ||
<p>${object.description}</p> | ||
<p> | ||
Thank you<br /> | ||
--<br /> | ||
Odoo | ||
</p>]]> | ||
</field> | ||
</record> | ||
|
||
<record id="email_template_nonconformity_open" model="mail.template"> | ||
<field name="name">Email template for stage open (In Progress)</field> | ||
<field name="email_from">${object.create_uid.company_id.email or 'noreply@localhost'}</field> | ||
<field name="subject">${object.name}</field> | ||
<field name="email_to">${object.manager_user_id.email},${object.responsible_user_id.email}</field> | ||
<field name="model_id" ref="model_mgmtsystem_nonconformity"/> | ||
<field name="auto_delete" eval="True"/> | ||
<field name="lang">${object.create_uid.partner_id.lang}</field> | ||
<field name="body_html"> | ||
<![CDATA[ | ||
<p>Hello,</p> | ||
<p>The Analysis of a new nonconformity has been assigned to you : <a href="${object.get_nonconformity_url()}">${object.get_nonconformity_url()}</a></p> | ||
<p>${object.description}</p> | ||
<p> | ||
Thank you<br /> | ||
--<br /> | ||
Odoo | ||
</p>]]> | ||
</field> | ||
</record> | ||
|
||
<record id="email_template_nonconformity_review" model="mail.template"> | ||
<field name="name">Email template for stage evaluation</field> | ||
<field name="email_from">${object.create_uid.company_id.email or 'noreply@localhost'}</field> | ||
<field name="subject">${object.name}</field> | ||
<field name="email_to">${object.manager_user_id.email},${object.responsible_user_id.email}</field> | ||
<field name="model_id" ref="model_mgmtsystem_nonconformity"/> | ||
<field name="auto_delete" eval="True"/> | ||
<field name="lang">${object.create_uid.partner_id.lang}</field> | ||
<field name="body_html"> | ||
<![CDATA[ | ||
<p>Hello,</p> | ||
<p>The Analysis of a new nonconformity has been assigned to you : <a href="${object.get_nonconformity_url()}">${object.get_nonconformity_url()}</a></p> | ||
<p>${object.description}</p> | ||
<p> | ||
Thank you<br /> | ||
--<br /> | ||
Odoo | ||
</p>]]> | ||
</field> | ||
</record> | ||
|
||
<record id="email_template_nonconformity_done" model="mail.template"> | ||
<field name="name">Email template for stage done (Closed)</field> | ||
<field name="email_from">${object.create_uid.company_id.email or 'noreply@localhost'}</field> | ||
<field name="subject">${object.name}</field> | ||
<field name="email_to">${object.manager_user_id.email},${object.responsible_user_id.email}</field> | ||
<field name="model_id" ref="model_mgmtsystem_nonconformity"/> | ||
<field name="auto_delete" eval="True"/> | ||
<field name="lang">${object.create_uid.partner_id.lang}</field> | ||
<field name="body_html"> | ||
<![CDATA[ | ||
<p>Hello,</p> | ||
<p>The Analysis of a new nonconformity has been assigned to you : <a href="${object.get_nonconformity_url()}">${object.get_nonconformity_url()}</a></p> | ||
<p>${object.description}</p> | ||
<p> | ||
Thank you<br /> | ||
--<br /> | ||
Odoo | ||
</p>]]> | ||
</field> | ||
</record> | ||
|
||
<record id="email_template_nonconformity_cancel" model="mail.template"> | ||
<field name="name">Email template for stage cancel (Canceled)</field> | ||
<field name="email_from">${object.create_uid.company_id.email or 'noreply@localhost'}</field> | ||
<field name="subject">${object.name}</field> | ||
<field name="email_to">${object.manager_user_id.email},${object.responsible_user_id.email}</field> | ||
<field name="model_id" ref="model_mgmtsystem_nonconformity"/> | ||
<field name="auto_delete" eval="True"/> | ||
<field name="lang">${object.create_uid.partner_id.lang}</field> | ||
<field name="body_html"> | ||
<![CDATA[ | ||
<p>Hello,</p> | ||
<p>The Analysis of a new nonconformity has been assigned to you : <a href="${object.get_nonconformity_url()}">${object.get_nonconformity_url()}</a></p> | ||
<p>${object.description}</p> | ||
<p> | ||
Thank you<br /> | ||
--<br /> | ||
Odoo | ||
</p>]]> | ||
</field> | ||
</record> | ||
|
||
<!-- Email template for Nonconformity Reminders --> | ||
<record id="nonconformity_email_template_reminder" model="mail.template"> | ||
<field name="name">Reminder to Manager and Responsible</field> | ||
<field name="email_from">${object.create_uid.company_id.email or 'noreply@localhost'}</field> | ||
<field name="subject">Reminder on Nonconformity: "${object.name}"</field> | ||
<field name="email_to">${object.manager_user_id.email},${object.responsible_user_id.email}</field> | ||
<field name="model_id" ref="model_mgmtsystem_nonconformity"/> | ||
<field name="auto_delete" eval="True"/> | ||
<field name="lang">${object.create_uid.partner_id.lang}</field> | ||
<field name="body_html"> | ||
<![CDATA[ | ||
<p>Hello,</p> | ||
<p> | ||
This is an automated message to remind you that the | ||
following nonconformity is due to be completed in 10 days but still has unfinished actions (${object.date_deadline}): | ||
<a href="${object.get_nonconformity_url()}">${object.get_nonconformity_url()}</a> | ||
</p> | ||
<p> | ||
Thank you and have a nice day.<br /> | ||
--<br /> | ||
Odoo | ||
</p> | ||
]]> | ||
</field> | ||
</record> | ||
|
||
</data> | ||
</odoo> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.