@ -0,0 +1,2 @@ |
|||
# -*- coding: utf-8 -*- |
|||
from . import models |
@ -0,0 +1,48 @@ |
|||
# -*- coding: utf-8 -*- |
|||
################################################################################### |
|||
# |
|||
# Cybrosys Technologies Pvt. Ltd. |
|||
# Copyright (C) 2017-TODAY Cybrosys Technologies(<http://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': '11.0.1.0.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', |
|||
'website': "https:www.cybrosys.com", |
|||
'maintainer': 'Cybrosys Techno Solutions', |
|||
'category': 'Inventory', |
|||
'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 -*- |
|||
from . import quality |
|||
from . import stock |
|||
from . import purchase |
@ -0,0 +1,30 @@ |
|||
# -*- coding: utf-8 -*- |
|||
from odoo import api, models |
|||
|
|||
|
|||
class PurchaseOrder(models.Model): |
|||
_inherit = "purchase.order" |
|||
|
|||
@api.multi |
|||
def _create_picking(self): |
|||
stock_picking = 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 = stock_picking.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() |
|||
seq = 0 |
|||
for move in sorted(moves, key=lambda move: move.date_expected): |
|||
seq += 5 |
|||
move.sequence = seq |
|||
moves._action_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,132 @@ |
|||
# -*- 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 action_done(self): |
|||
"""Changes picking state to done by processing the Stock Moves of the Picking |
|||
|
|||
Normally that happens when the button "Done" is pressed on a Picking view. |
|||
@return: True |
|||
""" |
|||
# TDE FIXME: remove decorator when migration the remaining |
|||
# TDE FIXME: draft -> automatically done, if waiting ?? CLEAR ME |
|||
todo_moves = self.mapped('move_lines').filtered( |
|||
lambda self: self.state in ['draft', 'partially_available', 'assigned', 'confirmed']) |
|||
# Check if there are ops not linked to moves yet |
|||
for pick in self: |
|||
# # Explode manually added packages |
|||
# for ops in pick.move_line_ids.filtered(lambda x: not x.move_id and not x.product_id): |
|||
# for quant in ops.package_id.quant_ids: #Or use get_content for multiple levels |
|||
# self.move_line_ids.create({'product_id': quant.product_id.id, |
|||
# 'package_id': quant.package_id.id, |
|||
# 'result_package_id': ops.result_package_id, |
|||
# 'lot_id': quant.lot_id.id, |
|||
# 'owner_id': quant.owner_id.id, |
|||
# 'product_uom_id': quant.product_id.uom_id.id, |
|||
# 'product_qty': quant.qty, |
|||
# 'qty_done': quant.qty, |
|||
# 'location_id': quant.location_id.id, # Could be ops too |
|||
# 'location_dest_id': ops.location_dest_id.id, |
|||
# 'picking_id': pick.id |
|||
# }) # Might change first element |
|||
# # Link existing moves or add moves when no one is related |
|||
for ops in pick.move_line_ids.filtered(lambda x: not x.move_id): |
|||
# Search move with this product |
|||
moves = pick.move_lines.filtered(lambda x: x.product_id == ops.product_id) |
|||
if moves: # could search move that needs it the most (that has some quantities left) |
|||
ops.move_id = moves[0].id |
|||
else: |
|||
new_move = self.env['stock.move'].create({ |
|||
'name': _('New Move:') + ops.product_id.display_name, |
|||
'product_id': ops.product_id.id, |
|||
'product_uom_qty': ops.qty_done, |
|||
'product_uom': ops.product_uom_id.id, |
|||
'location_id': pick.location_id.id, |
|||
'location_dest_id': pick.location_dest_id.id, |
|||
'picking_id': pick.id, |
|||
}) |
|||
ops.move_id = new_move.id |
|||
new_move._action_confirm() |
|||
todo_moves |= new_move |
|||
# 'qty_done': ops.qty_done}) |
|||
|
|||
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() |
|||
self.write({'date_done': fields.Datetime.now()}) |
|||
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,276 @@ |
|||
<?xml version="1.0" encoding="utf-8"?> |
|||
<odoo> |
|||
<data> |
|||
|
|||
<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="group_by_product_id" domain="[]" context="{'group_by':'product_id'}"/> |
|||
<filter string="Type" name="group_by_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"/> |
|||
</data> |
|||
</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> |