mirror of
https://github.com/bringout/oca-technical.git
synced 2026-04-19 10:12:01 +02:00
Initial commit: OCA Technical packages (595 packages)
This commit is contained in:
commit
2cc02aac6e
24950 changed files with 2318079 additions and 0 deletions
|
|
@ -0,0 +1,99 @@
|
|||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<odoo>
|
||||
<template id="audit_report">
|
||||
<t
|
||||
t-set="doc"
|
||||
t-value="doc.with_context({'lang':doc.user_id.partner_id.lang})"
|
||||
/>
|
||||
<t t-call="web.external_layout">
|
||||
<div class="page">
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<div class="text-center">
|
||||
<h3><strong>Audit Report</strong></h3>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row" style="padding-top:10px">
|
||||
<div class="col-12">
|
||||
<div class="text-center">
|
||||
<h3><strong t-field="doc.name" /></h3>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row" style="padding-top:10px">
|
||||
<div class="col-3">
|
||||
Confidentially:
|
||||
</div>
|
||||
<div class="col-9">
|
||||
Internal
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-3">
|
||||
Reference:
|
||||
</div>
|
||||
<div class="col-9">
|
||||
<span t-field="doc.reference" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-3">
|
||||
Date:
|
||||
</div>
|
||||
<div class="col-9">
|
||||
<span t-field="doc.date" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-3">
|
||||
Auditors:
|
||||
</div>
|
||||
<div class="col-9">
|
||||
<ul class="list-unstyled">
|
||||
<t t-foreach="doc.auditor_user_ids" t-as="auditor">
|
||||
<li><span t-field="auditor.name" /></li>
|
||||
</t>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row" style="padding-top:30px">
|
||||
<div class="col-12">
|
||||
<h3><strong>Strong points:</strong></h3>
|
||||
<span t-field="doc.strong_points" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<h3><strong>Points To Improve:</strong></h3>
|
||||
<span t-field="doc.to_improve_points" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<h3><strong>Improvement opportunities:</strong></h3>
|
||||
<ul style="padding-left:50px">
|
||||
<t t-foreach="doc.imp_opp_ids" t-as="improvement">
|
||||
<t t-if="improvement.stage_id.name != 'Cancelled'">
|
||||
<li><span t-field="improvement.name" /></li>
|
||||
</t>
|
||||
</t>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<h3><strong>Nonconformities:</strong></h3>
|
||||
<ul style="padding-left:50px">
|
||||
<t t-foreach="doc.nonconformity_ids" t-as="nonconformity">
|
||||
<t t-if="nonconformity.state != 'cancel'">
|
||||
<li><span t-field="nonconformity.description" /></li>
|
||||
</t>
|
||||
</t>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</t>
|
||||
</template>
|
||||
</odoo>
|
||||
|
|
@ -0,0 +1,53 @@
|
|||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<odoo>
|
||||
<!-- Management System Audit Report Pivot View -->
|
||||
<record id="view_report_mgmtsystem_audit_pivot" model="ir.ui.view">
|
||||
<field name="name">mgmtsystem.audit.report.pivot</field>
|
||||
<field name="model">mgmtsystem.audit</field>
|
||||
<field name="arch" type="xml">
|
||||
<pivot string="Audit" disable_linking="True">
|
||||
<field name="state" type="row" />
|
||||
<field name="user_id" type="col" />
|
||||
<field name="number_of_audits" type="measure" />
|
||||
</pivot>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<!-- Management System Audit Graph View -->
|
||||
|
||||
<record id="view_report_mgmtsystem_audit_graph" model="ir.ui.view">
|
||||
<field name="name">mgmtsystem.audit.report.graph</field>
|
||||
<field name="model">mgmtsystem.audit</field>
|
||||
<field name="arch" type="xml">
|
||||
<graph string="Audit">
|
||||
<field name="state" />
|
||||
<field name="user_id" />
|
||||
<field name="number_of_audits" type="measure" />
|
||||
</graph>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<!-- Management System Audit Report Action -->
|
||||
|
||||
<record id="action_report_mgmtsystem_audit" model="ir.actions.act_window">
|
||||
<field name="name">Management System Audit Analysis</field>
|
||||
<field name="res_model">mgmtsystem.audit</field>
|
||||
<field name="view_mode">pivot,graph</field>
|
||||
<field
|
||||
name="context"
|
||||
>{"search_default_year":1,"search_default_User":1,"search_default_This Month":1,'group_by_no_leaf':1,'group_by':[]}</field>
|
||||
<field name="view_id" />
|
||||
<!-- force empty -->
|
||||
<field
|
||||
name="help"
|
||||
>Have a general overview of all audits processed in the system by sorting them with specific criteria.</field>
|
||||
</record>
|
||||
|
||||
<menuitem
|
||||
name="Audits"
|
||||
id="menu_report_mgmtsystem_audit_tree"
|
||||
action="action_report_mgmtsystem_audit"
|
||||
parent="mgmtsystem.menu_mgmtsystem_report"
|
||||
sequence="20"
|
||||
/>
|
||||
</odoo>
|
||||
|
|
@ -0,0 +1,37 @@
|
|||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<odoo>
|
||||
<record id="audit_report_mgmtsystem_audit" model="ir.actions.report">
|
||||
<field name="name">Audit report</field>
|
||||
<field name="model">mgmtsystem.audit</field>
|
||||
<field name="report_type">qweb-pdf</field>
|
||||
<field name="report_name">mgmtsystem_audit.audit_report_template</field>
|
||||
</record>
|
||||
|
||||
<record id="verification_report_mgmtsystem_audit" model="ir.actions.report">
|
||||
<field name="name">Verification list report</field>
|
||||
<field name="model">mgmtsystem.audit</field>
|
||||
<field name="report_type">qweb-pdf</field>
|
||||
<field name="report_name">mgmtsystem_audit.verification_report_template</field>
|
||||
</record>
|
||||
|
||||
<template id="audit_report_template">
|
||||
<t t-call="web.html_container">
|
||||
<t t-foreach="docs" t-as="doc">
|
||||
<t
|
||||
t-call="mgmtsystem_audit.audit_report"
|
||||
t-lang="doc.user_id.partner_id.lang"
|
||||
/>
|
||||
</t>
|
||||
</t>
|
||||
</template>
|
||||
<template id="verification_report_template">
|
||||
<t t-call="web.html_container">
|
||||
<t t-foreach="docs" t-as="doc">
|
||||
<t
|
||||
t-call="mgmtsystem_audit.verification_report"
|
||||
t-lang="doc.user_id.partner_id.lang"
|
||||
/>
|
||||
</t>
|
||||
</t>
|
||||
</template>
|
||||
</odoo>
|
||||
|
|
@ -0,0 +1,119 @@
|
|||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<odoo>
|
||||
<template id="verification_report">
|
||||
|
||||
<t
|
||||
t-set="doc"
|
||||
t-value="doc.with_context({'lang':doc.user_id.partner_id.lang})"
|
||||
/>
|
||||
<t t-call="web.external_layout">
|
||||
<div class="page">
|
||||
<div class="row" style="padding-top:10px">
|
||||
<div class="col-12">
|
||||
<div class="text-center">
|
||||
<h3>
|
||||
<strong>Verification List</strong>
|
||||
</h3>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row" style="padding-top:10px">
|
||||
<div class="col-12">
|
||||
<div class="text-center">
|
||||
<h3><strong t-field="doc.name" /></h3>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row" style="padding-top:10px">
|
||||
<div class="col-3">
|
||||
Confidentiality:
|
||||
</div>
|
||||
<div class="col-9 pull-right">
|
||||
Internal
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-3">
|
||||
Reference:
|
||||
</div>
|
||||
<div class="col-9 pull-right">
|
||||
<span t-field="doc.reference" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-3">
|
||||
Date:
|
||||
</div>
|
||||
<div class="col-9 pull-right">
|
||||
<span t-field="doc.date" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="row" style="padding-top:20px">
|
||||
<div class="col-12">
|
||||
<table class="table">
|
||||
<tr>
|
||||
<th>Auditors:</th>
|
||||
<th>Auditees:</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<ul style="padding-left:30px">
|
||||
<t
|
||||
t-foreach="doc.auditor_user_ids"
|
||||
t-as="auditor"
|
||||
>
|
||||
<li><span t-field="auditor.name" /></li>
|
||||
</t>
|
||||
</ul>
|
||||
</td>
|
||||
<td>
|
||||
<ul style="padding-left:30px">
|
||||
<t
|
||||
t-foreach="doc.auditee_user_ids"
|
||||
t-as="auditee"
|
||||
>
|
||||
<li><span t-field="auditee.name" /></li>
|
||||
</t>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row" style="padding-top:20px">
|
||||
<div class="col-12">
|
||||
<table class="table">
|
||||
<tr>
|
||||
<th>Question</th>
|
||||
<th>Conformed?</th>
|
||||
<th>Comments</th>
|
||||
</tr>
|
||||
<t t-foreach="doc.get_lines_by_procedure()" t-as="line">
|
||||
<t t-if="line['procedure']">
|
||||
<tr>
|
||||
<td>
|
||||
<span t-esc="line['procedure']" />
|
||||
</td>
|
||||
<td />
|
||||
<td />
|
||||
</tr>
|
||||
</t>
|
||||
<t t-if="not line['procedure']">
|
||||
<tr>
|
||||
<td>
|
||||
<span t-esc="line['name']" />
|
||||
</td>
|
||||
<td>
|
||||
<span t-esc="line['yes_no']" />
|
||||
</td>
|
||||
<td />
|
||||
</tr>
|
||||
</t>
|
||||
</t>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</t>
|
||||
</template>
|
||||
</odoo>
|
||||
Loading…
Add table
Add a link
Reference in a new issue