@ -0,0 +1,2 @@ |
|||
# -*- coding: utf-8 -*- |
|||
import models |
@ -0,0 +1,48 @@ |
|||
# -*- coding: utf-8 -*- |
|||
################################################################################### |
|||
# |
|||
# Cybrosys Technologies Pvt. Ltd. |
|||
# Copyright (C) 2017-TODAY Cybrosys Technologies(<https://www.cybrosys.com>). |
|||
# Author: fasluca(<https://www.cybrosys.com>) |
|||
# |
|||
# This program is free software: you can modify |
|||
# it under the terms of the GNU Affero General Public License (AGPL) 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/>. |
|||
# |
|||
################################################################################### |
|||
|
|||
{ |
|||
'name': 'Quality Assurance', |
|||
'version': '10.0.1.0', |
|||
'summary': 'Manage Your Quality Assurance Processes', |
|||
'description': """ |
|||
This module provides features to manage basic quality assurance procedures. |
|||
""", |
|||
'author': 'Cybrosys Techno Solutions', |
|||
'company': 'Cybrosys Techno Solutions', |
|||
'maintainer': 'Cybrosys Techno Solutions', |
|||
'website': "https://cybrosys.com/", |
|||
'category': '', |
|||
'depends': ['product', 'stock', 'purchase'], |
|||
'data': [ |
|||
'data/data.xml', |
|||
'security/quality_security.xml', |
|||
'security/ir.model.access.csv', |
|||
'views/quality_view.xml', |
|||
'views/stock_view.xml', |
|||
], |
|||
'demo': [], |
|||
'images': ['static/description/banner.jpg'], |
|||
'license': 'LGPL-3', |
|||
'installable': True, |
|||
'application': True |
|||
} |
@ -0,0 +1,14 @@ |
|||
<?xml version="1.0" encoding="utf-8"?> |
|||
<odoo> |
|||
<data noupdate="1"> |
|||
<record id="sequence_quality_alert" model="ir.sequence"> |
|||
<field name="name">Quality alert sequence</field> |
|||
<field name="code">quality.alert</field> |
|||
<field name="prefix">QA</field> |
|||
<field eval="1" name="number_next"/> |
|||
<field eval="1" name="number_increment"/> |
|||
<field eval="False" name="company_id"/> |
|||
<field name="padding">5</field> |
|||
</record> |
|||
</data> |
|||
</odoo> |
@ -0,0 +1,4 @@ |
|||
# -*- coding: utf-8 -*- |
|||
import quality |
|||
import stock |
|||
import purchase |
@ -0,0 +1,26 @@ |
|||
# -*- coding: utf-8 -*- |
|||
from odoo import api, fields, models, _ |
|||
|
|||
|
|||
class PurchaseOrder(models.Model): |
|||
_inherit = "purchase.order" |
|||
|
|||
@api.multi |
|||
def _create_picking(self): |
|||
StockPicking = self.env['stock.picking'] |
|||
for order in self: |
|||
if any([ptype in ['product', 'consu'] for ptype in order.order_line.mapped('product_id.type')]): |
|||
pickings = order.picking_ids.filtered(lambda x: x.state not in ('done','cancel')) |
|||
if not pickings: |
|||
res = order._prepare_picking() |
|||
picking = StockPicking.create(res) |
|||
else: |
|||
picking = pickings[0] |
|||
moves = order.order_line._create_stock_moves(picking) |
|||
moves = moves.filtered(lambda x: x.state not in ('done', 'cancel')).action_confirm() |
|||
moves.force_assign() |
|||
picking.generate_quality_alert() |
|||
picking.message_post_with_view('mail.message_origin_link', |
|||
values={'self': picking, 'origin': order}, |
|||
subtype_id=self.env.ref('mail.mt_note').id) |
|||
return True |
@ -0,0 +1,112 @@ |
|||
# -*- coding: utf-8 -*- |
|||
from datetime import datetime |
|||
from odoo import api, fields, models |
|||
|
|||
|
|||
class QualityMeasure(models.Model): |
|||
_name = 'quality.measure' |
|||
_inherit = ['mail.thread'] |
|||
_order = "id desc" |
|||
|
|||
name = fields.Char('Name', required=True) |
|||
product_id = fields.Many2one('product.product', string='Product', index=True, ondelete='cascade', track_visibility='onchange') |
|||
product_template_id = fields.Many2one('product.template', string='Product Template', related='product_id.product_tmpl_id') |
|||
type = fields.Selection( |
|||
[('quantity', 'Quantitative'), |
|||
('quality', 'Qualitative')], |
|||
string='Test Type', default='quantity', required=True, track_visibility='onchange') |
|||
quantity_min = fields.Float('Min-Value', track_visibility='onchange') |
|||
quantity_max = fields.Float('Max-Value', track_visibility='onchange') |
|||
trigger_time = fields.Many2many('stock.picking.type', string='Trigger On') |
|||
active = fields.Boolean('Active', default=True, track_visibility='onchange') |
|||
company_id = fields.Many2one('res.company', 'Company', |
|||
default=lambda self: self.env.user.company_id.id, index=1) |
|||
|
|||
@api.onchange('type') |
|||
def onchange_type(self): |
|||
if self.type == 'quality': |
|||
self.quantity_min = 0.0 |
|||
self.quantity_max = 0.0 |
|||
|
|||
|
|||
class QualityAlert(models.Model): |
|||
_name = 'quality.alert' |
|||
_inherit = ['mail.thread'] |
|||
_order = "date asc, id desc" |
|||
|
|||
name = fields.Char('Name', required=True) |
|||
date = fields.Datetime(string='Date', default=datetime.now(), track_visibility='onchange') |
|||
product_id = fields.Many2one('product.product', string='Product', index=True, ondelete='cascade') |
|||
picking_id = fields.Many2one('stock.picking', string='Source Operation') |
|||
origin = fields.Char(string='Source Document', |
|||
help="Reference of the document that produced this alert.", |
|||
readonly=True) |
|||
company_id = fields.Many2one('res.company', 'Company', |
|||
default=lambda self: self.env.user.company_id.id, index=1) |
|||
user_id = fields.Many2one('res.users', string='Created by', default=lambda self: self.env.user.id) |
|||
tests = fields.One2many('quality.test', 'alert_id', string="Tests") |
|||
final_status = fields.Selection(compute="_compute_status", |
|||
selection=[('wait', 'Waiting'), |
|||
('pass', 'Passed'), |
|||
('fail', 'Failed')], |
|||
store=True, string='Status', |
|||
default='fail', track_visibility='onchange') |
|||
|
|||
@api.multi |
|||
def generate_tests(self): |
|||
quality_measure = self.env['quality.measure'] |
|||
measures = quality_measure.search([('product_id', '=', self.product_id.id), |
|||
('trigger_time', 'in', self.picking_id.picking_type_id.id)]) |
|||
for measure in measures: |
|||
self.env['quality.test'].create({ |
|||
'quality_measure': measure.id, |
|||
'alert_id': self.id, |
|||
}) |
|||
|
|||
@api.depends('tests', 'tests.test_status') |
|||
def _compute_status(self): |
|||
for alert in self: |
|||
failed_tests = [test for test in alert.tests if test.test_status == 'fail'] |
|||
if not alert.tests: |
|||
alert.final_status = 'wait' |
|||
elif failed_tests: |
|||
alert.final_status = 'fail' |
|||
else: |
|||
alert.final_status = 'pass' |
|||
|
|||
|
|||
class QualityTest(models.Model): |
|||
_name = 'quality.test' |
|||
_inherit = ['mail.thread'] |
|||
_order = "id desc" |
|||
|
|||
quality_measure = fields.Many2one('quality.measure', string='Measure', index=True, ondelete='cascade',track_visibility='onchange') |
|||
alert_id = fields.Many2one('quality.alert', string="Quality Alert",track_visibility='onchange') |
|||
name = fields.Char('Name', related="quality_measure.name", required=True) |
|||
product_id = fields.Many2one('product.product', string='Product', related='alert_id.product_id') |
|||
test_type = fields.Selection(related='quality_measure.type', string='Test Type', required=True, readonly=True) |
|||
quantity_min = fields.Float(related='quality_measure.quantity_min', string='Min-Value', store=True, readonly=True) |
|||
quantity_max = fields.Float(related='quality_measure.quantity_max', string='Max-Value', store=True, readonly=True) |
|||
test_user_id = fields.Many2one('res.users', string='Assigned to', track_visibility='onchange') |
|||
test_result = fields.Float(string='Result', track_visibility='onchange') |
|||
test_result2 = fields.Selection([ |
|||
('satisfied', 'Satisfied'), |
|||
('unsatisfied', 'Unsatisfied')], string='Result', track_visibility='onchange') |
|||
test_status = fields.Selection(compute="_compute_status", |
|||
selection=[('pass', 'Passed'), |
|||
('fail', 'Failed')], |
|||
store=True, string='Status', track_visibility='onchange') |
|||
|
|||
@api.depends('test_result', 'test_result2') |
|||
def _compute_status(self): |
|||
for test in self: |
|||
if test.test_type == 'quantity': |
|||
if test.quantity_min <= test.test_result <= test.quantity_max: |
|||
test.test_status = 'pass' |
|||
else: |
|||
test.test_status = 'fail' |
|||
else: |
|||
if test.test_result2 == 'satisfied': |
|||
test.test_status = 'pass' |
|||
else: |
|||
test.test_status = 'fail' |
@ -0,0 +1,138 @@ |
|||
# -*- coding: utf-8 -*- |
|||
from odoo import api, fields, models,_ |
|||
from odoo.tools.float_utils import float_compare |
|||
from odoo.exceptions import UserError |
|||
|
|||
|
|||
class StockPicking(models.Model): |
|||
_inherit = "stock.picking" |
|||
|
|||
@api.depends('move_lines') |
|||
def _compute_alert(self): |
|||
''' |
|||
This function computes the number of quality alerts generated from given picking. |
|||
''' |
|||
for picking in self: |
|||
alerts = self.env['quality.alert'].search([('picking_id', '=', picking.id)]) |
|||
picking.alert_ids = alerts |
|||
picking.alert_count = len(alerts) |
|||
|
|||
@api.multi |
|||
def quality_alert_action(self): |
|||
''' |
|||
This function returns an action that display existing quality alerts generated from a given picking. |
|||
''' |
|||
action = self.env.ref('quality_assurance.quality_alert_action') |
|||
result = action.read()[0] |
|||
|
|||
# override the context to get rid of the default filtering on picking type |
|||
result.pop('id', None) |
|||
result['context'] = {} |
|||
alert_ids = sum([picking.alert_ids.ids for picking in self], []) |
|||
# choose the view_mode accordingly |
|||
if len(alert_ids) > 1: |
|||
result['domain'] = "[('id','in',[" + ','.join(map(str, alert_ids)) + "])]" |
|||
elif len(alert_ids) == 1: |
|||
res = self.env.ref('quality_assurance.quality_alert_form', False) |
|||
result['views'] = [(res and res.id or False, 'form')] |
|||
result['res_id'] = alert_ids and alert_ids[0] or False |
|||
return result |
|||
|
|||
alert_count = fields.Integer(compute='_compute_alert', string='Quality Alerts', default=0) |
|||
alert_ids = fields.Many2many('quality.alert', compute='_compute_alert', string='Quality Alerts', copy=False) |
|||
|
|||
@api.multi |
|||
def generate_quality_alert(self): |
|||
''' |
|||
This function generates quality alerts for the products mentioned in move_lines of given picking and also have quality measures configured. |
|||
''' |
|||
quality_alert = self.env['quality.alert'] |
|||
quality_measure = self.env['quality.measure'] |
|||
for move in self.move_lines: |
|||
measures = quality_measure.search([('product_id', '=', move.product_id.id), ('trigger_time', 'in', self.picking_type_id.id)]) |
|||
if measures: |
|||
quality_alert.create({ |
|||
'name': self.env['ir.sequence'].next_by_code('quality.alert') or _('New'), |
|||
'product_id': move.product_id.id, |
|||
'picking_id': self.id, |
|||
'origin': self.name, |
|||
'company_id': self.company_id.id, |
|||
}) |
|||
|
|||
@api.multi |
|||
def action_confirm(self): |
|||
if self.alert_count == 0: |
|||
self.generate_quality_alert() |
|||
res = super(StockPicking, self).action_confirm() |
|||
return res |
|||
|
|||
@api.multi |
|||
def force_assign(self): |
|||
if self.alert_count == 0: |
|||
self.generate_quality_alert() |
|||
res = super(StockPicking, self).force_assign() |
|||
return res |
|||
|
|||
@api.multi |
|||
def do_transfer(self): |
|||
""" If no pack operation, we do simple action_done of the picking. |
|||
Otherwise, do the pack operations. """ |
|||
# TDE CLEAN ME: reclean me, please |
|||
self._create_lots_for_picking() |
|||
|
|||
no_pack_op_pickings = self.filtered(lambda picking: not picking.pack_operation_ids) |
|||
no_pack_op_pickings.action_done() |
|||
other_pickings = self - no_pack_op_pickings |
|||
for picking in other_pickings: |
|||
need_rereserve, all_op_processed = picking.picking_recompute_remaining_quantities() |
|||
todo_moves = self.env['stock.move'] |
|||
toassign_moves = self.env['stock.move'] |
|||
|
|||
# create extra moves in the picking (unexpected product moves coming from pack operations) |
|||
if not all_op_processed: |
|||
todo_moves |= picking._create_extra_moves() |
|||
|
|||
if need_rereserve or not all_op_processed: |
|||
moves_reassign = any(x.origin_returned_move_id or x.move_orig_ids for x in picking.move_lines if |
|||
x.state not in ['done', 'cancel']) |
|||
if moves_reassign and picking.location_id.usage not in ("supplier", "production", "inventory"): |
|||
# unnecessary to assign other quants than those involved with pack operations as they will be unreserved anyways. |
|||
picking.with_context(reserve_only_ops=True, no_state_change=True).rereserve_quants( |
|||
move_ids=picking.move_lines.ids) |
|||
picking.do_recompute_remaining_quantities() |
|||
|
|||
# split move lines if needed |
|||
for move in picking.move_lines: |
|||
rounding = move.product_id.uom_id.rounding |
|||
remaining_qty = move.remaining_qty |
|||
if move.state in ('done', 'cancel'): |
|||
# ignore stock moves cancelled or already done |
|||
continue |
|||
elif move.state == 'draft': |
|||
toassign_moves |= move |
|||
if float_compare(remaining_qty, 0, precision_rounding=rounding) == 0: |
|||
if move.state in ('draft', 'assigned', 'confirmed'): |
|||
todo_moves |= move |
|||
elif float_compare(remaining_qty, 0, precision_rounding=rounding) > 0 and float_compare(remaining_qty, move.product_qty, precision_rounding=rounding) < 0: |
|||
# TDE FIXME: shoudl probably return a move - check for no track key, by the way |
|||
new_move_id = move.split(remaining_qty) |
|||
new_move = self.env['stock.move'].with_context(mail_notrack=True).browse(new_move_id) |
|||
todo_moves |= move |
|||
# Assign move as it was assigned before |
|||
toassign_moves |= new_move |
|||
|
|||
# TDE FIXME: do_only_split does not seem used anymore |
|||
if todo_moves and not self.env.context.get('do_only_split'): |
|||
for move in todo_moves: |
|||
alerts = self.env['quality.alert'].search([('picking_id', '=', self.id), ('product_id', '=', move.product_id.id)]) |
|||
for alert in alerts: |
|||
if alert.final_status == 'wait': |
|||
raise UserError(_('There are items still in quality test')) |
|||
if alert.final_status == 'fail': |
|||
raise UserError(_('There are items failed in quality test')) |
|||
todo_moves.action_done() |
|||
elif self.env.context.get('do_only_split'): |
|||
picking = picking.with_context(split=todo_moves.ids) |
|||
|
|||
picking._create_backorder() |
|||
return True |
|
@ -0,0 +1,25 @@ |
|||
<?xml version="1.0" encoding="utf-8"?> |
|||
<odoo> |
|||
<data noupdate="0"> |
|||
|
|||
<record model="ir.module.category" id="module_category_quality_management"> |
|||
<field name="name">Quality</field> |
|||
<field name="description">Helps you manage your quality assurance processes</field> |
|||
<field name="sequence">4</field> |
|||
</record> |
|||
|
|||
<record id="group_quality_user" model="res.groups"> |
|||
<field name="name">User</field> |
|||
<field name="category_id" ref="module_category_quality_management"/> |
|||
<field name="implied_ids" eval="[(4, ref('base.group_user'))]"/> |
|||
</record> |
|||
|
|||
<record id="group_quality_manager" model="res.groups"> |
|||
<field name="name">Manager</field> |
|||
<field name="category_id" ref="module_category_quality_management"/> |
|||
<field name="implied_ids" eval="[(4, ref('group_quality_user'))]"/> |
|||
<field name="users" eval="[(4, ref('base.user_root'))]"/> |
|||
</record> |
|||
|
|||
</data> |
|||
</odoo> |
After Width: | Height: | Size: 116 KiB |
After Width: | Height: | Size: 50 KiB |
After Width: | Height: | Size: 30 KiB |
@ -0,0 +1,206 @@ |
|||
<section class="oe_container oe_dark"> |
|||
<div class="oe_row oe_spaced"> |
|||
<h2 class="oe_slogan">Quality Assurance</h2> |
|||
<h4 class="oe_slogan"><a href="https://www.cybrosys.com">Cybrosys Technologies</a></h4> |
|||
</div> |
|||
</section> |
|||
|
|||
<section class="oe_container"> |
|||
<div class="oe_row oe_spaced"> |
|||
<!--<h2 class="oe_slogan" style="color:#875A7B;"></h2>--> |
|||
<h3 class="oe_slogan"> |
|||
Manage Your Quality Assurance Processes |
|||
</h3> |
|||
</div> |
|||
<div class="oe_row oe_spaced" style="padding-left:65px;"> |
|||
<h4>Features:</h4> |
|||
<div> |
|||
<span style="color:green;"> ☑ </span> Quality Measures<br/> |
|||
<span style="color:green;"> ☑ </span> Quality Alert<br/> |
|||
<span style="color:green;"> ☑ </span> Quality Tests<br/> |
|||
</div> |
|||
</div> |
|||
</section> |
|||
|
|||
<section class="oe_container oe_dark"> |
|||
<div class="oe_row oe_spaced"> |
|||
<div class="oe_picture"> |
|||
<h3 class="oe_slogan">Overview</h3> |
|||
<p class="oe_mt32 text-justify" style="text-align: center;"> |
|||
Quality assurance/control is not a new term in this industrial world. Almost everything has some specific quality standards. and it varies with the different attributes like, who is using and where is using.. etc. This module allows Odoo users to ensure quality specification of the items they are using in their business. This module provides quality alerts and quality test along with control in inventory moves based on the test result. |
|||
</p> |
|||
</div> |
|||
</div> |
|||
</section> |
|||
|
|||
<section class="oe_container"> |
|||
<div class="oe_row oe_spaced"> |
|||
<div> |
|||
<p class="oe_mt32"> |
|||
Using this module, Quality manager can setup the <b>Quality Measures</b> of each product under <b>Quality> Configuration> Quality Measures</b> menu |
|||
He can setup two types of measures, |
|||
</p> |
|||
<span style="padding-left:65px;"> ■ </span> Qualitative<br/> |
|||
<span style="padding-left:65px;"> ■ </span> Quantitative<br/> |
|||
</div> |
|||
<div> |
|||
<div class="oe_demo oe_picture oe_screenshot"> |
|||
<img src="qa_qm_frm.png"> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</section> |
|||
|
|||
<section class="oe_container oe_dark"> |
|||
<div class="oe_row oe_spaced"> |
|||
<div> |
|||
<p class="oe_mt32"> |
|||
If you have configured <b>Quality Measure</b> for a product, whenever the product undergoes <b>Trigger On</b> operation, Odoo will create a <b>Quality Alert</b> |
|||
</p> |
|||
</div> |
|||
<div> |
|||
<div class="oe_demo oe_picture oe_screenshot"> |
|||
<img src="picking_frm.png"> |
|||
</div> |
|||
</div> |
|||
<div> |
|||
<p class="oe_mt32"> |
|||
The user can access the <b>Quality Alerts</b> generated from the operation itself. |
|||
</p> |
|||
</div> |
|||
</div> |
|||
</section> |
|||
|
|||
<section class="oe_container"> |
|||
<div class="oe_row oe_spaced"> |
|||
<div> |
|||
<p class="oe_mt32"> |
|||
<b>Quality Alerts</b>can be accessed also from <b>Quality> Quality Assurance> Quality Alerts</b> |
|||
</p> |
|||
</div> |
|||
<div> |
|||
<div class="oe_demo oe_picture oe_screenshot"> |
|||
<img src="qa_qa_nt.png"> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</section> |
|||
|
|||
<section class="oe_container oe_dark"> |
|||
<div class="oe_row oe_spaced"> |
|||
<div> |
|||
<p class="oe_mt32"> |
|||
<b>Generate Tests</b> button will create <b>Quality Tests</b> for the product based on <b>Quality Measures</b>. |
|||
</p> |
|||
</div> |
|||
<div> |
|||
<div class="oe_demo oe_picture oe_screenshot"> |
|||
<img src="qa_qa_wt.png"> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</section> |
|||
|
|||
<section class="oe_container"> |
|||
<div class="oe_row oe_spaced"> |
|||
<div> |
|||
<p class="oe_mt32"> |
|||
Quality manager can assign <b>Quality Tests</b> to different users. |
|||
</p> |
|||
</div> |
|||
<div> |
|||
<div class="oe_demo oe_picture oe_screenshot"> |
|||
<img src="qa_qa_tst_assgn.png"> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</section> |
|||
|
|||
<section class="oe_container oe_dark"> |
|||
<div class="oe_row oe_spaced"> |
|||
<div> |
|||
<p class="oe_mt32"> |
|||
Quality users will have a list of <b>Quality Tests</b> that are assigned to them. |
|||
Now the user can update the test result to the <b>Quality Test</b> record. |
|||
</p> |
|||
</div> |
|||
<div> |
|||
<div class="oe_demo oe_picture oe_screenshot"> |
|||
<img src="qa_qt_frm.png"> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</section> |
|||
|
|||
<section class="oe_container"> |
|||
<div class="oe_row oe_spaced"> |
|||
<div> |
|||
<p class="oe_mt32"> |
|||
Important changes made on <b>Quality Tests</b> will be tracked by the system. |
|||
</p> |
|||
</div> |
|||
<div> |
|||
<div class="oe_demo oe_picture oe_screenshot"> |
|||
<img src="qa_qt_track.png"> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</section> |
|||
|
|||
<section class="oe_container oe_dark"> |
|||
<div class="oe_row oe_spaced"> |
|||
<div> |
|||
<p class="oe_mt32"> |
|||
Result updated on the <b>Quality Tests</b> will reflect on related <b>Quality Alerts</b>. |
|||
</p> |
|||
</div> |
|||
<div> |
|||
<div class="oe_demo oe_picture oe_screenshot"> |
|||
<img src="qa_qa_wtr.png"> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</section> |
|||
|
|||
<section class="oe_container"> |
|||
<div class="oe_row oe_spaced"> |
|||
<div> |
|||
<p class="oe_mt32"> |
|||
Inventory user cannot proceed with an item that is failed in <b>Quality Test.</b> |
|||
User will get a warning message when they try |
|||
</p> |
|||
</div> |
|||
<div> |
|||
<div class="oe_demo oe_picture oe_screenshot"> |
|||
<img src="picking_qq_wrng.png"> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</section> |
|||
|
|||
<section class="oe_container oe_dark"> |
|||
<h2 class="oe_slogan" style="margin-top:20px;" >Need Any Help?</h2> |
|||
<div class="oe_slogan" style="margin-top:10px !important;"> |
|||
<div> |
|||
<a class="btn btn-primary btn-lg mt8" |
|||
style="color: #FFFFFF !important;border-radius: 0;" href="https://www.cybrosys.com"><i |
|||
class="fa fa-envelope"></i> Email </a> <a |
|||
class="btn btn-primary btn-lg mt8" style="color: #FFFFFF !important;border-radius: 0;" |
|||
href="https://www.cybrosys.com/contact/"><i |
|||
class="fa fa-phone"></i> Contact Us </a> <a |
|||
class="btn btn-primary btn-lg mt8" style="color: #FFFFFF !important;border-radius: 0;" |
|||
href="https://www.cybrosys.com/odoo-customization-and-installation/"><i |
|||
class="fa fa-check-square"></i> Request Customization </a> |
|||
</div> |
|||
<br> |
|||
<img src="cybro_logo.png" style="width: 190px; margin-bottom: 20px;" class="center-block"> |
|||
<div> |
|||
<a href="https://twitter.com/cybrosys" target="_blank"><i class="fa fa-2x fa-twitter" style="color:white;background: #00a0d1;width:35px;"></i></a></td> |
|||
<a href="https://www.linkedin.com/company/cybrosys-technologies-pvt-ltd" target="_blank"><i class="fa fa-2x fa-linkedin" style="color:white;background: #31a3d6;width:35px;padding-left: 3px;"></i></a></td> |
|||
<a href="https://www.facebook.com/cybrosystechnologies" target="_blank"><i class="fa fa-2x fa-facebook" style="color:white;background: #3b5998;width:35px;padding-left: 8px;"></i></a></td> |
|||
<a href="https://plus.google.com/106641282743045431892/about" target="_blank"><i class="fa fa-2x fa-google-plus" style="color:white;background: #c53c2c;width:35px;padding-left: 3px;"></i></a></td> |
|||
<a href="https://in.pinterest.com/cybrosys" target="_blank"><i class="fa fa-2x fa-pinterest" style="color:white;background: #ac0f18;width:35px;padding-left: 3px;"></i></a></td> |
|||
</div> |
|||
</div> |
|||
</section> |
|||
|
After Width: | Height: | Size: 33 KiB |
After Width: | Height: | Size: 6.8 KiB |
After Width: | Height: | Size: 19 KiB |
After Width: | Height: | Size: 26 KiB |
After Width: | Height: | Size: 22 KiB |
After Width: | Height: | Size: 27 KiB |
After Width: | Height: | Size: 17 KiB |
After Width: | Height: | Size: 17 KiB |
After Width: | Height: | Size: 22 KiB |
@ -0,0 +1,106 @@ |
|||
<?xml version="1.0" encoding="utf-8"?> |
|||
<odoo> |
|||
|
|||
<record id="product_template_form_quality_view" model="ir.ui.view"> |
|||
<field name="name">product.template.quality.form</field> |
|||
<field name="model">product.template</field> |
|||
<field name="inherit_id" ref="product.product_template_form_view"/> |
|||
<field name="arch" type="xml"> |
|||
<notebook position="inside"> |
|||
<page string="Quality Measures" name="quality_measures" attrs="{'invisible': [('product_variant_count', '>', 1)]}"> |
|||
<field name="quality_measures" nolabel="1"> |
|||
<tree editable="bottom"> |
|||
<field name="name"/> |
|||
<field name="trigger_time" widget="many2many_tags"/> |
|||
<field name="type"/> |
|||
<field name="quantity_min" attrs="{'readonly':[('type', '=', 'quality')]}"/> |
|||
<field name="quantity_max" attrs="{'readonly':[('type', '=', 'quality')]}"/> |
|||
<field name="check"/> |
|||
</tree> |
|||
</field> |
|||
</page> |
|||
</notebook> |
|||
</field> |
|||
</record> |
|||
|
|||
|
|||
<record id="product_product_form_quality_view" model="ir.ui.view"> |
|||
<field name="name">product.product.quality.form</field> |
|||
<field name="model">product.product</field> |
|||
<field name="inherit_id" ref="product.product_normal_form_view"/> |
|||
<field name="arch" type="xml"> |
|||
<notebook position="inside"> |
|||
<page string="Quality Measures" name="quality_measures"> |
|||
<field name="quality_measures" nolabel="1"> |
|||
<tree editable="bottom"> |
|||
<field name="name"/> |
|||
<field name="trigger_time" widget="many2many_tags"/> |
|||
<field name="type"/> |
|||
<field name="quantity_min" attrs="{'readonly':[('type', '=', 'quality')]}"/> |
|||
<field name="quantity_max" attrs="{'readonly':[('type', '=', 'quality')]}"/> |
|||
<field name="check"/> |
|||
</tree> |
|||
</field> |
|||
</page> |
|||
</notebook> |
|||
</field> |
|||
</record> |
|||
|
|||
<!--<record id="product_normal_form_view" model="ir.ui.view">--> |
|||
<!--<field name="name">product.product.form</field>--> |
|||
<!--<field name="model">product.product</field>--> |
|||
<!--<field name="mode">primary</field>--> |
|||
<!--<field eval="7" name="priority"/>--> |
|||
<!--<field name="inherit_id" ref="product.product_template_form_view"/>--> |
|||
<!--<field name="arch" type="xml">--> |
|||
<!--<form position="attributes">--> |
|||
<!--<attribute name="string">Product Variant</attribute>--> |
|||
<!--</form>--> |
|||
<!--<field name="type" position="after">--> |
|||
<!--<field name="default_code"/>--> |
|||
<!--<field name="barcode"/>--> |
|||
<!--</field>--> |
|||
<!--<field name="list_price" position="attributes">--> |
|||
<!--<attribute name="name">lst_price</attribute>--> |
|||
<!--<attribute name="attrs">{'readonly': [('product_variant_count', '>', 1)]}</attribute>--> |
|||
<!--</field>--> |
|||
<!--<field name="name" position="after">--> |
|||
<!--<field name="product_tmpl_id" class="oe_inline" readonly="1" invisible="1" attrs="{'required': [('id', '!=', False)]}"/>--> |
|||
<!--</field>--> |
|||
<!--<field name="item_ids" position="replace">--> |
|||
<!--<field name="pricelist_item_ids" widget="many2many">--> |
|||
<!--<tree string="Pricelist Items">--> |
|||
<!--<field name="pricelist_id"/>--> |
|||
<!--<field name="name" string="Applicable On"/>--> |
|||
<!--<field name="min_quantity"/>--> |
|||
<!--<field name="date_start"/>--> |
|||
<!--<field name="date_end"/>--> |
|||
<!--<field name="price" string="Price"/>--> |
|||
<!--<field name="base" invisible="1"/>--> |
|||
<!--<field name="sequence" invisible="1"/>--> |
|||
<!--<field name="price_discount" invisible="1"/>--> |
|||
<!--<field name="applied_on" invisible="1"/>--> |
|||
<!--<field name="compute_price" invisible="1"/>--> |
|||
<!--</tree>--> |
|||
<!--</field>--> |
|||
<!--</field>--> |
|||
<!--<notebook position="inside">--> |
|||
<!--<page string="Quality Measures" name="quality_measures">--> |
|||
<!--<field name="quality_measures" nolabel="1">--> |
|||
<!--<tree editable="bottom">--> |
|||
<!--<field name="name"/>--> |
|||
<!--<field name="trigger_time" widget="many2many_tags"/>--> |
|||
<!--<field name="type"/>--> |
|||
<!--<field name="quantity_min" attrs="{'readonly':[('type', '=', 'quality')]}"/>--> |
|||
<!--<field name="quantity_max" attrs="{'readonly':[('type', '=', 'quality')]}"/>--> |
|||
<!--<field name="check"/>--> |
|||
<!--</tree>--> |
|||
<!--</field>--> |
|||
<!--</page>--> |
|||
<!--</notebook>--> |
|||
<!--<xpath expr="//div[@class='oe_title']" position="inside">--> |
|||
<!--<field name="attribute_value_ids" widget="many2many_tags" groups="product.group_product_variant"/>--> |
|||
<!--</xpath>--> |
|||
<!--</field>--> |
|||
<!--</record>--> |
|||
</odoo> |
@ -0,0 +1,273 @@ |
|||
<?xml version="1.0" encoding="utf-8"?> |
|||
<odoo> |
|||
<menuitem name="Quality" id="menu_quality_root" sequence="30" |
|||
groups="quality_assurance.group_quality_user" |
|||
web_icon="quality_assurance,static/description/icon.png"/> |
|||
|
|||
<!-- ################# Quality Measures ################# --> |
|||
|
|||
<record id="quality_measure_tree" model="ir.ui.view"> |
|||
<field name="name">quality.measure.tree</field> |
|||
<field name="model">quality.measure</field> |
|||
<field name="arch" type="xml"> |
|||
<tree string="Quality Alerts"> |
|||
<field name="name"/> |
|||
<field name="product_id"/> |
|||
<field name="type"/> |
|||
<field name="quantity_min"/> |
|||
<field name="quantity_max"/> |
|||
</tree> |
|||
</field> |
|||
</record> |
|||
|
|||
<record id="quality_measure_form_view" model="ir.ui.view"> |
|||
<field name="name">quality.measure.form</field> |
|||
<field name="model">quality.measure</field> |
|||
<field name="arch" type="xml"> |
|||
<form string="Quality Measure"> |
|||
|
|||
<sheet> |
|||
<div class="oe_button_box" name="button_box"> |
|||
<button name="toggle_active" type="object" |
|||
class="oe_stat_button" icon="fa-archive"> |
|||
<field name="active" widget="boolean_button" |
|||
options='{"terminology": "archive"}'/> |
|||
</button> |
|||
</div> |
|||
<div class="oe_title"> |
|||
<label for="name" string="Test"/> |
|||
<h3><field name="name" placeholder="Name"/></h3> |
|||
</div> |
|||
<group> |
|||
<group> |
|||
<field name="product_id"/> |
|||
<field name="type"/> |
|||
</group> |
|||
<group> |
|||
<!--<field name="active"/>--> |
|||
<field name="quantity_min" attrs="{'invisible':[('type', '=', 'quality')]}"/> |
|||
<field name="quantity_max" attrs="{'invisible':[('type', '=', 'quality')]}"/> |
|||
</group> |
|||
</group> |
|||
<group> |
|||
<field name="trigger_time"/> |
|||
</group> |
|||
</sheet> |
|||
<div class="oe_chatter"> |
|||
<field name="message_follower_ids" widget="mail_followers"/> |
|||
<field name="message_ids" widget="mail_thread"/> |
|||
</div> |
|||
</form> |
|||
</field> |
|||
</record> |
|||
|
|||
<record id="quality_measure_view_search" model="ir.ui.view"> |
|||
<field name="name">quality.measure.search</field> |
|||
<field name="model">quality.measure</field> |
|||
<field name="arch" type="xml"> |
|||
<search> |
|||
<field name="name"/> |
|||
<field name="product_id"/> |
|||
<group expand="0" string="Group By"> |
|||
<filter string="Product" name="groupby_product_id" domain="[]" context="{'group_by':'product_id'}"/> |
|||
<filter string="Type" name="groupby_type" domain="[]" context="{'group_by':'type'}"/> |
|||
</group> |
|||
</search> |
|||
</field> |
|||
</record> |
|||
|
|||
<record model="ir.actions.act_window" id="quality_measure_action"> |
|||
<field name="name">Quality Measure</field> |
|||
<field name="res_model">quality.measure</field> |
|||
<field name="view_type">form</field> |
|||
<field name="view_mode">tree,form</field> |
|||
<field name="search_view_id" ref="quality_measure_view_search"/> |
|||
<field name="help" type="html"> |
|||
<p class="oe_view_nocontent_create"> |
|||
Click here to add a new Quality Measure |
|||
</p> |
|||
</field> |
|||
</record> |
|||
|
|||
<menuitem id="menu_quality_config_settings" name="Configuration" parent="menu_quality_root" |
|||
sequence="100" groups="group_quality_manager"/> |
|||
|
|||
<menuitem id="menu_quality_measure" name="Quality Measures" parent="menu_quality_config_settings" action="quality_measure_action"/> |
|||
|
|||
<!-- ################# Quality Alerts ################# --> |
|||
|
|||
<menuitem id="menu_quality_assurance" name="Quality Assurance" parent="menu_quality_root"/> |
|||
|
|||
|
|||
<record id="quality_alert_tree" model="ir.ui.view"> |
|||
<field name="name">quality.alert.tree</field> |
|||
<field name="model">quality.alert</field> |
|||
<field name="arch" type="xml"> |
|||
<tree string="Quality Alerts"> |
|||
<field name="name"/> |
|||
<field name="product_id"/> |
|||
<field name="origin"/> |
|||
<field name="date"/> |
|||
</tree> |
|||
</field> |
|||
</record> |
|||
|
|||
<record id="quality_alert_form" model="ir.ui.view"> |
|||
<field name="name">quality.alert.form</field> |
|||
<field name="model">quality.alert</field> |
|||
<field name="arch" type="xml"> |
|||
<form string="Quality Alert"> |
|||
<header> |
|||
<button name="generate_tests" string="Generate Tests" type="object" class="oe_highlight" groups="quality_assurance.group_quality_user"/> |
|||
</header> |
|||
<sheet> |
|||
<div class="oe_title"> |
|||
<h2><field name="name" placeholder="Name" readonly="1"/></h2> |
|||
</div> |
|||
<group> |
|||
<group> |
|||
<field name="product_id"/> |
|||
<field name="user_id"/> |
|||
</group> |
|||
<group> |
|||
<field name="date"/> |
|||
<!--<field name="origin"/>--> |
|||
<field name="picking_id" readonly="1"/> |
|||
</group> |
|||
</group> |
|||
<notebook> |
|||
<page string="Tests"> |
|||
<field name="tests" nolabel="1"> |
|||
<tree create="false" editable="1"> |
|||
<field name="name"/> |
|||
<field name="test_type" invisible="1"/> |
|||
<field name="quantity_min" invisible="1"/> |
|||
<field name="quantity_max" invisible="1"/> |
|||
<field name="test_user_id"/> |
|||
<field name="test_result" string="Quantitative Result" attrs="{'readonly':[('test_type', '=', 'quality')]}"/> |
|||
<field name="test_result2" string="Qualitative Result" attrs="{'readonly':[('test_type', '=', 'quantity')]}"/> |
|||
<field name="test_status"/> |
|||
</tree> |
|||
</field> |
|||
</page> |
|||
</notebook> |
|||
</sheet> |
|||
<div class="oe_chatter"> |
|||
<field name="message_follower_ids" widget="mail_followers"/> |
|||
<field name="message_ids" widget="mail_thread"/> |
|||
</div> |
|||
</form> |
|||
</field> |
|||
</record> |
|||
|
|||
<record id="quality_alert_view_search" model="ir.ui.view"> |
|||
<field name="name">quality.alert.search</field> |
|||
<field name="model">quality.alert</field> |
|||
<field name="arch" type="xml"> |
|||
<search> |
|||
<field name="name"/> |
|||
<field name="origin"/> |
|||
<field name="product_id"/> |
|||
<group expand="0" string="Group By"> |
|||
<filter string="Source Document" name="groupby_origin" domain="[]" context="{'group_by':'origin'}"/> |
|||
<filter string="Product" name="groupby_product_id" domain="[]" context="{'group_by':'product_id'}"/> |
|||
<filter string="Creation Date" name="groupby_createmonth" domain="[]" context="{'group_by':'date'}"/> |
|||
</group> |
|||
</search> |
|||
</field> |
|||
</record> |
|||
|
|||
<record model="ir.actions.act_window" id="quality_alert_action"> |
|||
<field name="name">Quality Alerts</field> |
|||
<field name="res_model">quality.alert</field> |
|||
<field name="view_type">form</field> |
|||
<field name="view_mode">tree,form</field> |
|||
<field name="search_view_id" ref="quality_alert_view_search"/> |
|||
<field name="help" type="html"> |
|||
<p class="oe_view_nocontent_create"> |
|||
Click here to add a new Quality Alert |
|||
</p><p> |
|||
Quality alerts will be created automatically when your inventory team try to process inventory operations. |
|||
</p> |
|||
</field> |
|||
</record> |
|||
|
|||
<menuitem id="menu_quality_alert" name="Quality Alerts" parent="menu_quality_assurance" action="quality_alert_action"/> |
|||
|
|||
<!-- ################# Quality Tests ################# --> |
|||
|
|||
<record id="quality_test_tree" model="ir.ui.view"> |
|||
<field name="name">quality.test.tree</field> |
|||
<field name="model">quality.test</field> |
|||
<field name="arch" type="xml"> |
|||
<tree string="Quality Tests"> |
|||
<field name="name"/> |
|||
<field name="product_id"/> |
|||
<field name="test_type"/> |
|||
<field name="test_status"/> |
|||
</tree> |
|||
</field> |
|||
</record> |
|||
|
|||
<record id="quality_test_form" model="ir.ui.view"> |
|||
<field name="name">quality.test.form</field> |
|||
<field name="model">quality.test</field> |
|||
<field name="arch" type="xml"> |
|||
<form string="Quality Test"> |
|||
<sheet> |
|||
<div class="oe_title"> |
|||
<h2><field name="name" placeholder="Name" readonly="1"/></h2> |
|||
</div> |
|||
<group> |
|||
<group> |
|||
<field name="test_type"/> |
|||
<field name="quantity_min" attrs="{'invisible':[('test_type', '=', 'quality')]}"/> |
|||
<field name="quantity_max" attrs="{'invisible':[('test_type', '=', 'quality')]}"/> |
|||
<field name="test_result" attrs="{'invisible':[('test_type', '=', 'quality')]}"/> |
|||
<field name="test_result2" attrs="{'invisible':[('test_type', '=', 'quantity')]}"/> |
|||
<field name="test_status"/> |
|||
</group> |
|||
<group> |
|||
<field name="quality_measure"/> |
|||
<field name="alert_id"/> |
|||
<field name="product_id"/> |
|||
<field name="test_user_id"/> |
|||
</group> |
|||
</group> |
|||
</sheet> |
|||
<div class="oe_chatter"> |
|||
<field name="message_follower_ids" widget="mail_followers"/> |
|||
<field name="message_ids" widget="mail_thread"/> |
|||
</div> |
|||
</form> |
|||
</field> |
|||
</record> |
|||
|
|||
<record id="quality_test_view_search" model="ir.ui.view"> |
|||
<field name="name">quality.test.search</field> |
|||
<field name="model">quality.test</field> |
|||
<field name="arch" type="xml"> |
|||
<search> |
|||
<field name="name"/> |
|||
<field name="product_id"/> |
|||
<filter string="My Tests" name="my_tests" domain="[('test_user_id','=',uid)]"/> |
|||
<group expand="0" string="Group By"> |
|||
<filter string="Product" name="groupby_product_id" domain="[]" context="{'group_by':'product_id'}"/> |
|||
<filter string="Type" name="groupby_type" domain="[]" context="{'group_by':'type'}"/> |
|||
<filter string="Quality Measure" name="groupby_quality_measure" domain="[]" context="{'group_by':'quality_measure'}"/> |
|||
</group> |
|||
</search> |
|||
</field> |
|||
</record> |
|||
|
|||
<record model="ir.actions.act_window" id="quality_test_action"> |
|||
<field name="name">Quality Tests</field> |
|||
<field name="res_model">quality.test</field> |
|||
<field name="view_type">form</field> |
|||
<field name="view_mode">tree,form</field> |
|||
<field name="context">{'search_default_my_tests': 1}</field> |
|||
<field name="search_view_id" ref="quality_test_view_search"/> |
|||
</record> |
|||
|
|||
<menuitem id="menu_quality_test" name="Quality Tests" parent="menu_quality_assurance" action="quality_test_action"/> |
|||
</odoo> |
@ -0,0 +1,21 @@ |
|||
<?xml version="1.0" encoding="utf-8"?> |
|||
<odoo> |
|||
<record id="quality_stock_picking" model="ir.ui.view"> |
|||
<field name="name">quality.stock.picking.form</field> |
|||
<field name="model">stock.picking</field> |
|||
<field name="inherit_id" ref="stock.view_picking_form"/> |
|||
<field name="arch" type="xml"> |
|||
<xpath expr="//div[hasclass('oe_button_box')]" position="inside"> |
|||
<button type="object" |
|||
name="quality_alert_action" |
|||
class="oe_stat_button" |
|||
icon="fa-check-circle-o"> |
|||
<!--attrs="{'invisible':[('state','=','draft')),('alert_ids','=',[])]}">--> |
|||
|
|||
<field name="alert_count" widget="statinfo" string="Quality Alerts" help="Quality Alerts"/> |
|||
<field name="alert_ids" invisible="1"/> |
|||
</button> |
|||
</xpath> |
|||
</field> |
|||
</record> |
|||
</odoo> |