@ -0,0 +1,47 @@ |
|||||
|
.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg |
||||
|
:target: https://www.gnu.org/licenses/agpl-3.0-standalone.html |
||||
|
:alt: License: AGPL-3 |
||||
|
|
||||
|
Scrap Management |
||||
|
======================== |
||||
|
* Module which helps manage scrap dismantle in company |
||||
|
|
||||
|
Installation |
||||
|
============ |
||||
|
- www.odoo.com/documentation/16.0/setup/install.html |
||||
|
- Install our custom addon |
||||
|
|
||||
|
License |
||||
|
------- |
||||
|
Affero General Public License, Version 3 (AGPL v3). |
||||
|
(https://www.gnu.org/licenses/agpl-3.0-standalone.html) |
||||
|
|
||||
|
Company |
||||
|
------- |
||||
|
* `Cybrosys Techno Solutions <https://cybrosys.com/>`__ |
||||
|
|
||||
|
Credits |
||||
|
------- |
||||
|
* Developer: (V16)Ranjith R , Contact : odoo@cybrosys.com |
||||
|
|
||||
|
Contacts |
||||
|
-------- |
||||
|
* Mail Contact : odoo@cybrosys.com |
||||
|
* Website : https://cybrosys.com |
||||
|
|
||||
|
Bug Tracker |
||||
|
----------- |
||||
|
Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. |
||||
|
|
||||
|
Maintainer |
||||
|
========== |
||||
|
.. image:: https://cybrosys.com/images/logo.png |
||||
|
:target: https://cybrosys.com |
||||
|
|
||||
|
This module is maintained by Cybrosys Technologies. |
||||
|
|
||||
|
For support and more information, please visit `Our Website <https://cybrosys.com/>`__ |
||||
|
|
||||
|
Further information |
||||
|
=================== |
||||
|
HTML Description: `<static/description/index.html>`__ |
@ -0,0 +1,24 @@ |
|||||
|
# -*- coding: utf-8 -*- |
||||
|
############################################################################# |
||||
|
# |
||||
|
# Cybrosys Technologies Pvt. Ltd. |
||||
|
# |
||||
|
# Copyright (C) 2023-TODAY Cybrosys Technologies(<https://www.cybrosys.com>). |
||||
|
# Author: Ranjith R(<https://www.cybrosys.com>) |
||||
|
# |
||||
|
# You can modify it under the terms of the GNU AFFERO |
||||
|
# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. |
||||
|
# |
||||
|
# 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 (AGPL v3) for more details. |
||||
|
# |
||||
|
# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE |
||||
|
# (AGPL v3) along with this program. |
||||
|
# If not, see <http://www.gnu.org/licenses/>. |
||||
|
# |
||||
|
########################################################################### |
||||
|
from . import models |
||||
|
from . import report |
||||
|
from . import wizard |
@ -0,0 +1,51 @@ |
|||||
|
# -*- coding: utf-8 -*- |
||||
|
############################################################################# |
||||
|
# |
||||
|
# Cybrosys Technologies Pvt. Ltd. |
||||
|
# |
||||
|
# Copyright (C) 2023-TODAY Cybrosys Technologies(<https://www.cybrosys.com>). |
||||
|
# Author: Ranjith R(<https://www.cybrosys.com>) |
||||
|
# |
||||
|
# You can modify it under the terms of the GNU AFFERO |
||||
|
# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. |
||||
|
# |
||||
|
# 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 (AGPL v3) for more details. |
||||
|
# |
||||
|
# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE |
||||
|
# (AGPL v3) along with this program. |
||||
|
# If not, see <http://www.gnu.org/licenses/>. |
||||
|
# |
||||
|
########################################################################### |
||||
|
{ |
||||
|
'name': 'Scrap Management', |
||||
|
'version': '16.0.1.0.0', |
||||
|
'category': 'Inventory', |
||||
|
'summary': 'Manage Scrap in a company', |
||||
|
'description': """Module helps to dismantle the product having bom and move |
||||
|
the useful parts to the stock""", |
||||
|
'author': 'Cybrosys Techno Solutions', |
||||
|
'company': 'Cybrosys Techno Solutions', |
||||
|
'maintainer': 'Cybrosys Techno Solutions', |
||||
|
'website': 'https://www.cybrosys.com', |
||||
|
'depends': ['base', 'mail', 'stock', 'contacts', 'mrp'], |
||||
|
'data': [ |
||||
|
'security/ir.model.access.csv', |
||||
|
'data/ir_sequence_data.xml', |
||||
|
'views/scrap_management_line_views.xml', |
||||
|
'views/scrap_management_views.xml', |
||||
|
'views/stock_scrap_views.xml', |
||||
|
'report/scrap_management_template.xml', |
||||
|
'report/scrap_management_state_wise_template.xml', |
||||
|
'report/scrap_management_reports.xml', |
||||
|
'report/scrap_management_product_wise_template.xml', |
||||
|
'wizard/scrap_management_report_views.xml', |
||||
|
], |
||||
|
'images': ['static/description/banner.jpg'], |
||||
|
'license': 'AGPL-3', |
||||
|
'installable': True, |
||||
|
'auto_install': False, |
||||
|
'application': False, |
||||
|
} |
@ -0,0 +1,15 @@ |
|||||
|
<?xml version="1.0" encoding="utf-8"?> |
||||
|
<odoo> |
||||
|
<!-- Sequence for scrap management model --> |
||||
|
<data noupdate="1"> |
||||
|
<record id="sequence_scrap_management" model="ir.sequence"> |
||||
|
<field name="name">Scrap Management</field> |
||||
|
<field name="code">scrap.management</field> |
||||
|
<field name="active">TRUE</field> |
||||
|
<field name="prefix">SM</field> |
||||
|
<field name="padding">6</field> |
||||
|
<field name="number_next">1</field> |
||||
|
<field name="number_increment">1</field> |
||||
|
</record> |
||||
|
</data> |
||||
|
</odoo> |
@ -0,0 +1,6 @@ |
|||||
|
## Module <company_scrap_management> |
||||
|
|
||||
|
#### 06.01.2024 |
||||
|
#### Version 16.0.1.0.0 |
||||
|
#### ADD |
||||
|
- Initial commit for Scrap Management |
@ -0,0 +1,24 @@ |
|||||
|
# -*- coding: utf-8 -*- |
||||
|
############################################################################# |
||||
|
# |
||||
|
# Cybrosys Technologies Pvt. Ltd. |
||||
|
# |
||||
|
# Copyright (C) 2023-TODAY Cybrosys Technologies(<https://www.cybrosys.com>). |
||||
|
# Author: Ranjith R(<https://www.cybrosys.com>) |
||||
|
# |
||||
|
# You can modify it under the terms of the GNU AFFERO |
||||
|
# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. |
||||
|
# |
||||
|
# 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 (AGPL v3) for more details. |
||||
|
# |
||||
|
# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE |
||||
|
# (AGPL v3) along with this program. |
||||
|
# If not, see <http://www.gnu.org/licenses/>. |
||||
|
# |
||||
|
########################################################################### |
||||
|
from . import scrap_management |
||||
|
from . import scrap_management_line |
||||
|
from . import stock_scrap |
@ -0,0 +1,149 @@ |
|||||
|
# -*- coding: utf-8 -*- |
||||
|
############################################################################# |
||||
|
# |
||||
|
# Cybrosys Technologies Pvt. Ltd. |
||||
|
# |
||||
|
# Copyright (C) 2023-TODAY Cybrosys Technologies(<https://www.cybrosys.com>). |
||||
|
# Author: Ranjith R(<https://www.cybrosys.com>) |
||||
|
# |
||||
|
# You can modify it under the terms of the GNU AFFERO |
||||
|
# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. |
||||
|
# |
||||
|
# 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 (AGPL v3) for more details. |
||||
|
# |
||||
|
# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE |
||||
|
# (AGPL v3) along with this program. |
||||
|
# If not, see <http://www.gnu.org/licenses/>. |
||||
|
# |
||||
|
########################################################################### |
||||
|
from datetime import date |
||||
|
from odoo import api, fields, models |
||||
|
|
||||
|
|
||||
|
class ScrapManagement(models.Model): |
||||
|
""" Used to manage scrap """ |
||||
|
_name = "scrap.management" |
||||
|
_description = "Scrap Management" |
||||
|
_inherit = ['mail.thread', 'mail.activity.mixin'] |
||||
|
_rec_name = 'scrap_management_number' |
||||
|
|
||||
|
scrap_management_number = fields.Char( |
||||
|
string="Scrap Number", readonly=True, required=True, copy=False, |
||||
|
default="New", help="Field to specify sequence number") |
||||
|
scrap_order_id = fields.Many2one( |
||||
|
'stock.scrap', String="Scrap Order", required=True, |
||||
|
help="Field to choose scrap order", |
||||
|
domain="[('state', '=','done')," |
||||
|
"('typ_of_reuse','=','dismantle')," |
||||
|
"('state_management', '=','none')]") |
||||
|
bill_of_material_id = fields.Many2one( |
||||
|
'mrp.bom', related="scrap_order_id.bill_of_material_id", |
||||
|
string="Bill of Material", help="Field to choose bill of material") |
||||
|
product_id = fields.Many2one( |
||||
|
'product.product', |
||||
|
String="Product", related="scrap_order_id.product_id", |
||||
|
help="Field to choose product") |
||||
|
date = fields.Date(string="Date", help="field to give the date") |
||||
|
qty = fields.Float(String="Quantity", related="scrap_order_id.scrap_qty", |
||||
|
help="Field to specify quantity") |
||||
|
scrap_management_line_ids = fields.One2many( |
||||
|
'scrap.management.line', 'scrap_management_id', |
||||
|
string="Components", help="Field to specify components") |
||||
|
location_id = fields.Many2one( |
||||
|
'stock.location', String="Transfer location", |
||||
|
domain="[('usage','=','internal')]", required=True, |
||||
|
help="Field to specify location") |
||||
|
state = fields.Selection( |
||||
|
[('draft', 'Draft'), ('confirm', 'Confirm'), ('done', 'Done')], |
||||
|
string="State", default="draft", |
||||
|
help="Field to specify state of Scrap Management") |
||||
|
|
||||
|
@api.model |
||||
|
def create(self, vals): |
||||
|
""" |
||||
|
Summary: |
||||
|
function return sequence number for record |
||||
|
Args: |
||||
|
vals:To store the sequence created |
||||
|
return: |
||||
|
result:return sequence created |
||||
|
""" |
||||
|
if vals.get('scrap_management_number', 'New') == 'New': |
||||
|
vals['scrap_management_number'] = self.env[ |
||||
|
'ir.sequence'].next_by_code( |
||||
|
'scrap.management') or 'New' |
||||
|
result = super(ScrapManagement, self).create(vals) |
||||
|
return result |
||||
|
|
||||
|
def action_confirm(self): |
||||
|
"""Function to confirm the Scrap Management and add value to one2many""" |
||||
|
for line in self.bill_of_material_id.bom_line_ids: |
||||
|
if line.product_id.detailed_type not in ['consu', 'service']: |
||||
|
self.write({ |
||||
|
'scrap_management_line_ids': [ |
||||
|
(0, 0, {'product_id': line.product_id.id, |
||||
|
'dismantle_qty': (self.qty * line.product_qty)})], |
||||
|
}) |
||||
|
self.write({ |
||||
|
'state': "confirm" |
||||
|
}) |
||||
|
|
||||
|
def action_done(self): |
||||
|
"""Function to done the Scrap Management and |
||||
|
add product move and stock quantity""" |
||||
|
self.env['stock.quant'].create({ |
||||
|
'location_id': self.scrap_order_id.scrap_location_id.id, |
||||
|
'product_id': self.product_id.id, |
||||
|
'quantity': 0 - self.qty |
||||
|
}) |
||||
|
for line in self.scrap_management_line_ids: |
||||
|
scrap_qty = line.dismantle_qty - line.useful_qty |
||||
|
if line.useful_qty > 0: |
||||
|
self.env['stock.quant'].create({ |
||||
|
'location_id': self.location_id.id, |
||||
|
'product_id': line.product_id.id, |
||||
|
'quantity': line.useful_qty |
||||
|
}) |
||||
|
self.env['stock.move.line'].create({ |
||||
|
'reference': self.scrap_management_number, |
||||
|
'product_id': line.product_id.id, |
||||
|
'location_dest_id': self.location_id.id, |
||||
|
'qty_done': line.useful_qty, |
||||
|
'company_id': self.env.company.id, |
||||
|
'location_id': self.scrap_order_id.scrap_location_id.id, |
||||
|
'state': "done" |
||||
|
}) |
||||
|
if scrap_qty > 0: |
||||
|
self.env['stock.quant'].create({ |
||||
|
'location_id': self.scrap_order_id.scrap_location_id.id, |
||||
|
'product_id': line.product_id.id, |
||||
|
'quantity': scrap_qty |
||||
|
}) |
||||
|
self.env['stock.move.line'].create({ |
||||
|
'reference': self.scrap_management_number, |
||||
|
'product_id': line.product_id.id, |
||||
|
'qty_done': scrap_qty, |
||||
|
'location_id': self.scrap_order_id.scrap_location_id.id, |
||||
|
'company_id': self.env.company.id, |
||||
|
'state': "done", |
||||
|
'location_dest_id': self.scrap_order_id.scrap_location_id.id |
||||
|
}) |
||||
|
self.write({ |
||||
|
'state': "done" |
||||
|
}) |
||||
|
self.scrap_order_id.write({ |
||||
|
'state_management': "dismantled" |
||||
|
}) |
||||
|
self.date = date.today() |
||||
|
|
||||
|
def action_product_moves(self): |
||||
|
"""Function to return the product moves""" |
||||
|
return { |
||||
|
'name': "Product Moves", |
||||
|
'type': 'ir.actions.act_window', |
||||
|
'view_mode': 'tree,form', |
||||
|
'res_model': 'stock.move.line', |
||||
|
'domain': [('reference', '=', self.scrap_management_number)]} |
@ -0,0 +1,40 @@ |
|||||
|
# -*- coding: utf-8 -*- |
||||
|
############################################################################# |
||||
|
# |
||||
|
# Cybrosys Technologies Pvt. Ltd. |
||||
|
# |
||||
|
# Copyright (C) 2023-TODAY Cybrosys Technologies(<https://www.cybrosys.com>). |
||||
|
# Author: Ranjith R(<https://www.cybrosys.com>) |
||||
|
# |
||||
|
# You can modify it under the terms of the GNU AFFERO |
||||
|
# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. |
||||
|
# |
||||
|
# 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 (AGPL v3) for more details. |
||||
|
# |
||||
|
# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE |
||||
|
# (AGPL v3) along with this program. |
||||
|
# If not, see <http://www.gnu.org/licenses/>. |
||||
|
# |
||||
|
########################################################################### |
||||
|
from odoo import fields, models |
||||
|
|
||||
|
|
||||
|
class ScrapManagementLine(models.Model): |
||||
|
""" Used to manage scrap components """ |
||||
|
_name = "scrap.management.line" |
||||
|
_description = "Scrap Management Line" |
||||
|
|
||||
|
product_id = fields.Many2one('product.product', |
||||
|
String="Product", readonly=True, |
||||
|
help="Field to specify product") |
||||
|
scrap_management_id = fields.Many2one('scrap.management', |
||||
|
String="Product", readonly=True, |
||||
|
help="Field to specify " |
||||
|
"scrap management order") |
||||
|
dismantle_qty = fields.Integer(String="Available quantity", readonly=True, |
||||
|
help="Field to specify total quantity") |
||||
|
useful_qty = fields.Integer(string="Useful Product Quantity", |
||||
|
help="Field to specify useful quantity") |
@ -0,0 +1,45 @@ |
|||||
|
# -*- coding: utf-8 -*- |
||||
|
############################################################################# |
||||
|
# |
||||
|
# Cybrosys Technologies Pvt. Ltd. |
||||
|
# |
||||
|
# Copyright (C) 2023-TODAY Cybrosys Technologies(<https://www.cybrosys.com>). |
||||
|
# Author: Ranjith R(<https://www.cybrosys.com>) |
||||
|
# |
||||
|
# You can modify it under the terms of the GNU AFFERO |
||||
|
# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. |
||||
|
# |
||||
|
# 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 (AGPL v3) for more details. |
||||
|
# |
||||
|
# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE |
||||
|
# (AGPL v3) along with this program. |
||||
|
# If not, see <http://www.gnu.org/licenses/>. |
||||
|
# |
||||
|
########################################################################### |
||||
|
from odoo import fields, models |
||||
|
|
||||
|
|
||||
|
class StockScrap(models.Model): |
||||
|
""" Used to add fields to stock.scrap """ |
||||
|
_inherit = "stock.scrap" |
||||
|
|
||||
|
product_tmpl_id = fields.Many2one( |
||||
|
'product.template', |
||||
|
string='Product Template',related='product_id.product_tmpl_id', |
||||
|
help="Corresponding product of the variant") |
||||
|
bill_of_material_id = fields.Many2one( |
||||
|
'mrp.bom', |
||||
|
domain="[('product_tmpl_id', '=',product_tmpl_id)]", |
||||
|
string="Bill of Material", |
||||
|
help="Field to specify sequence bill of material") |
||||
|
typ_of_reuse = fields.Selection( |
||||
|
[('none', 'None'), ('dismantle', 'Dismantle')], |
||||
|
default="none", help="Field to specify type of scrap", |
||||
|
string="Type of Operation") |
||||
|
state_management = fields.Selection( |
||||
|
[('none', 'None'), ('dismantled', 'Dismantled')], |
||||
|
string="State", default="none", |
||||
|
help="Field to specify type of scrap management") |
@ -0,0 +1,22 @@ |
|||||
|
# -*- coding: utf-8 -*- |
||||
|
############################################################################# |
||||
|
# |
||||
|
# Cybrosys Technologies Pvt. Ltd. |
||||
|
# |
||||
|
# Copyright (C) 2023-TODAY Cybrosys Technologies(<https://www.cybrosys.com>). |
||||
|
# Author: Ranjith R(<https://www.cybrosys.com>) |
||||
|
# |
||||
|
# You can modify it under the terms of the GNU AFFERO |
||||
|
# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. |
||||
|
# |
||||
|
# 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 (AGPL v3) for more details. |
||||
|
# |
||||
|
# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE |
||||
|
# (AGPL v3) along with this program. |
||||
|
# If not, see <http://www.gnu.org/licenses/>. |
||||
|
# |
||||
|
########################################################################### |
||||
|
from . import scrap_management_report |
@ -0,0 +1,56 @@ |
|||||
|
<?xml version="1.0" encoding="utf-8"?> |
||||
|
<odoo> |
||||
|
<!-- Template for pdf print of report --> |
||||
|
<template id="report_scrap_management_product_wise"> |
||||
|
<t t-call="web.html_container"> |
||||
|
<t t-call="web.external_layout"> |
||||
|
<div class="page"> |
||||
|
<center> |
||||
|
<h1>Scrap Management Report</h1> |
||||
|
</center> |
||||
|
<div class="row mt32 mb32"> |
||||
|
<div class="col-3"> |
||||
|
<strong>From Date:</strong> |
||||
|
<p t-esc="from_date"/> |
||||
|
</div> |
||||
|
<div class="col-3"> |
||||
|
<strong>To Date:</strong> |
||||
|
<p t-esc="to_date"/> |
||||
|
</div> |
||||
|
</div> |
||||
|
<br/> |
||||
|
<table class="table table-sm"> |
||||
|
<thead> |
||||
|
<tr> |
||||
|
<th class="text-center">Sequence number</th> |
||||
|
<th class="text-center">Date</th> |
||||
|
<th class="text-center">Scrap order</th> |
||||
|
<th class="text-center">Product</th> |
||||
|
<th class="text-center">State</th> |
||||
|
</tr> |
||||
|
</thead> |
||||
|
<tbody> |
||||
|
<tr t-foreach="datas" t-as="line"> |
||||
|
<td class="text-center"> |
||||
|
<span t-esc="line['scrap_management_number']"/> |
||||
|
</td> |
||||
|
<td class="text-center"> |
||||
|
<span t-esc="line['date']"/> |
||||
|
</td> |
||||
|
<td class="text-center"> |
||||
|
<span t-esc="line['name']"/> |
||||
|
</td> |
||||
|
<td class="text-center"> |
||||
|
<span t-esc="line['product']"/> |
||||
|
</td> |
||||
|
<td class="text-center"> |
||||
|
<span t-esc="line['state']"/> |
||||
|
</td> |
||||
|
</tr> |
||||
|
</tbody> |
||||
|
</table> |
||||
|
</div> |
||||
|
</t> |
||||
|
</t> |
||||
|
</template> |
||||
|
</odoo> |
@ -0,0 +1,36 @@ |
|||||
|
# -*- coding: utf-8 -*- |
||||
|
############################################################################# |
||||
|
# |
||||
|
# Cybrosys Technologies Pvt. Ltd. |
||||
|
# |
||||
|
# Copyright (C) 2023-TODAY Cybrosys Technologies(<https://www.cybrosys.com>). |
||||
|
# Author: Ranjith R(<https://www.cybrosys.com>) |
||||
|
# |
||||
|
# You can modify it under the terms of the GNU AFFERO |
||||
|
# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. |
||||
|
# |
||||
|
# 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 (AGPL v3) for more details. |
||||
|
# |
||||
|
# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE |
||||
|
# (AGPL v3) along with this program. |
||||
|
# If not, see <http://www.gnu.org/licenses/>. |
||||
|
# |
||||
|
########################################################################### |
||||
|
from odoo import api, models |
||||
|
|
||||
|
|
||||
|
class ScrapManagementPrint(models.AbstractModel): |
||||
|
""" Class to print form view""" |
||||
|
_name = 'report.company_scrap_management.report_scrap_management' |
||||
|
_description = "Scrap Management Report" |
||||
|
|
||||
|
@api.model |
||||
|
def _get_report_values(self, docids, data=None): |
||||
|
"""Function to print form view""" |
||||
|
scrap_management = self.env['scrap.management'].browse(docids) |
||||
|
return { |
||||
|
'scrap_management': scrap_management |
||||
|
} |
@ -0,0 +1,34 @@ |
|||||
|
<?xml version="1.0" encoding='utf-8'?> |
||||
|
<odoo> |
||||
|
<!-- Action for pdf print --> |
||||
|
<record id="action_scrap_management_product_wise" |
||||
|
model="ir.actions.report"> |
||||
|
<field name="name">Scrap Management Report</field> |
||||
|
<field name="model">scrap.management.report</field> |
||||
|
<field name="report_type">qweb-pdf</field> |
||||
|
<field name="report_name">company_scrap_management.report_scrap_management_product_wise</field> |
||||
|
<field name="report_file">company_scrap_management.report_scrap_management_product_wise</field> |
||||
|
<field name="binding_type" ref="model_scrap_management_report"/> |
||||
|
<field name="binding_type">report</field> |
||||
|
</record> |
||||
|
<record id="action_scrap_management_state_wise" |
||||
|
model="ir.actions.report"> |
||||
|
<field name="name">Scrap Management Report</field> |
||||
|
<field name="model">scrap.management.report</field> |
||||
|
<field name="report_type">qweb-pdf</field> |
||||
|
<field name="report_name">company_scrap_management.report_scrap_management_state_wise</field> |
||||
|
<field name="report_file">company_scrap_management.report_scrap_management_state_wise</field> |
||||
|
<field name="binding_type" ref="model_scrap_management_report"/> |
||||
|
<field name="binding_type">report</field> |
||||
|
</record> |
||||
|
<record id="action_scrap_management_form_print" |
||||
|
model="ir.actions.report"> |
||||
|
<field name="name">Scrap Management</field> |
||||
|
<field name="model">scrap.management</field> |
||||
|
<field name="report_type">qweb-pdf</field> |
||||
|
<field name="report_name">company_scrap_management.report_scrap_management</field> |
||||
|
<field name="report_file">report.company_scrap_management.report_scrap_management</field> |
||||
|
<field name="binding_model_id" ref="model_scrap_management"/> |
||||
|
<field name="binding_type">report</field> |
||||
|
</record> |
||||
|
</odoo> |
@ -0,0 +1,52 @@ |
|||||
|
<?xml version="1.0" encoding="utf-8"?> |
||||
|
<odoo> |
||||
|
<!-- Template for pdf print of report--> |
||||
|
<template id="report_scrap_management_state_wise"> |
||||
|
<t t-call="web.html_container"> |
||||
|
<t t-call="web.external_layout"> |
||||
|
<div class="page"> |
||||
|
<center> |
||||
|
<h1>Scrap Management Report</h1> |
||||
|
</center> |
||||
|
<div class="row mt32 mb32"> |
||||
|
<div class="col-3"> |
||||
|
<strong>From Date:</strong> |
||||
|
<p t-esc="from_date"/> |
||||
|
</div> |
||||
|
<div class="col-3"> |
||||
|
<strong>To Date:</strong> |
||||
|
<p t-esc="to_date"/> |
||||
|
</div> |
||||
|
</div> |
||||
|
<br/> |
||||
|
<table class="table table-sm"> |
||||
|
<thead> |
||||
|
<tr> |
||||
|
<th class="text-center">Sequence number</th> |
||||
|
<th class="text-center">Date</th> |
||||
|
<th class="text-center">Scrap order</th> |
||||
|
<th class="text-center">State</th> |
||||
|
</tr> |
||||
|
</thead> |
||||
|
<tbody> |
||||
|
<tr t-foreach="datas" t-as="line"> |
||||
|
<td class="text-center"> |
||||
|
<span t-esc="line['scrap_management_number']"/> |
||||
|
</td> |
||||
|
<td class="text-center"> |
||||
|
<span t-esc="line['date']"/> |
||||
|
</td> |
||||
|
<td class="text-center"> |
||||
|
<span t-esc="line['name']"/> |
||||
|
</td> |
||||
|
<td class="text-center"> |
||||
|
<span t-esc="line['state']"/> |
||||
|
</td> |
||||
|
</tr> |
||||
|
</tbody> |
||||
|
</table> |
||||
|
</div> |
||||
|
</t> |
||||
|
</t> |
||||
|
</template> |
||||
|
</odoo> |
@ -0,0 +1,61 @@ |
|||||
|
<?xml version="1.0" encoding="utf-8"?> |
||||
|
<odoo> |
||||
|
<!-- Template for pdf print of form --> |
||||
|
<template id="report_scrap_management"> |
||||
|
<t t-call="web.html_container"> |
||||
|
<t t-call="web.external_layout"> |
||||
|
<div class="page"> |
||||
|
<center> |
||||
|
<h1>Scrap Management Form</h1> |
||||
|
</center> |
||||
|
<div class="row mt32 mb32"> |
||||
|
<div class="col-3"> |
||||
|
<strong>Sequence Number:</strong> |
||||
|
<h4> |
||||
|
<t t-esc="scrap_management.scrap_management_number"/> |
||||
|
</h4> |
||||
|
</div> |
||||
|
<br/> |
||||
|
<div class="col-3"> |
||||
|
<strong>Quantity:</strong> |
||||
|
<h6> |
||||
|
<t t-esc="scrap_management.scrap_order_id.scrap_qty"/> |
||||
|
</h6> |
||||
|
</div> |
||||
|
<br/> |
||||
|
<div class="col-3"> |
||||
|
<strong>Product:</strong> |
||||
|
<h6> |
||||
|
<t t-esc="scrap_management.scrap_order_id.product_id.name"/> |
||||
|
</h6> |
||||
|
</div> |
||||
|
</div> |
||||
|
<br/> |
||||
|
<table class="table table-sm"> |
||||
|
<thead> |
||||
|
<tr> |
||||
|
<th class="text-center">Components</th> |
||||
|
<th class="text-center">Dismantled quantity</th> |
||||
|
<th class="text-center">Useful quantity</th> |
||||
|
</tr> |
||||
|
</thead> |
||||
|
<tbody> |
||||
|
<tr t-foreach="scrap_management.scrap_management_line_ids" |
||||
|
t-as="line"> |
||||
|
<td class="text-center"> |
||||
|
<span t-esc="line.product_id['name']"/> |
||||
|
</td> |
||||
|
<td class="text-center"> |
||||
|
<span t-esc="line['dismantle_qty']"/> |
||||
|
</td> |
||||
|
<td class="text-center"> |
||||
|
<span t-esc="line['useful_qty']"/> |
||||
|
</td> |
||||
|
</tr> |
||||
|
</tbody> |
||||
|
</table> |
||||
|
</div> |
||||
|
</t> |
||||
|
</t> |
||||
|
</template> |
||||
|
</odoo> |
|
After Width: | Height: | Size: 3.6 KiB |
After Width: | Height: | Size: 310 B |
After Width: | Height: | Size: 1.3 KiB |
After Width: | Height: | Size: 1.4 KiB |
After Width: | Height: | Size: 576 B |
After Width: | Height: | Size: 733 B |
After Width: | Height: | Size: 911 B |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 673 B |
After Width: | Height: | Size: 878 B |
After Width: | Height: | Size: 653 B |
After Width: | Height: | Size: 905 B |
After Width: | Height: | Size: 839 B |
After Width: | Height: | Size: 427 B |
After Width: | Height: | Size: 627 B |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 988 B |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 1.5 KiB |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 1.9 KiB |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 2.1 KiB |
After Width: | Height: | Size: 4.4 KiB |
After Width: | Height: | Size: 589 B |
After Width: | Height: | Size: 3.4 KiB |
After Width: | Height: | Size: 1.7 KiB |
After Width: | Height: | Size: 2.3 KiB |
After Width: | Height: | Size: 967 B |
After Width: | Height: | Size: 1.6 KiB |
After Width: | Height: | Size: 3.8 KiB |
After Width: | Height: | Size: 5.0 KiB |
After Width: | Height: | Size: 68 KiB |
After Width: | Height: | Size: 20 KiB |
After Width: | Height: | Size: 80 KiB |
After Width: | Height: | Size: 79 KiB |
After Width: | Height: | Size: 88 KiB |
After Width: | Height: | Size: 86 KiB |
After Width: | Height: | Size: 71 KiB |
After Width: | Height: | Size: 151 KiB |
After Width: | Height: | Size: 135 KiB |
After Width: | Height: | Size: 53 KiB |
After Width: | Height: | Size: 150 KiB |
After Width: | Height: | Size: 141 KiB |
After Width: | Height: | Size: 91 KiB |
After Width: | Height: | Size: 16 KiB |
@ -0,0 +1,665 @@ |
|||||
|
<div style="background-color: #714B67; height: 810px; width: 100%; padding: 15px; position: relative;"> |
||||
|
<!-- TITLE BAR --> |
||||
|
<div class="d-flex align-items-center justify-content-between" |
||||
|
style="border-bottom: 1px solid #875A7B; padding: 15px; display: flex; justify-content: space-between; align-items: center;"> |
||||
|
<img src="assets/misc/cybrosys-logo.png" |
||||
|
style="width: 42px; height: 42px;"/> |
||||
|
<div> |
||||
|
<div style="color: #7C7BAD; font-size: 14px; font-family: 'Montserrat', sans-serif; font-weight: bold; background-color: white; display: inline-block; padding: 3px 10px; border-radius: 50px;" |
||||
|
class="mr-2"> |
||||
|
<i class="fa fa-check mr-1"></i>Community |
||||
|
</div> |
||||
|
<div style="color: #875A7B; font-size: 14px; font-family: 'Montserrat', sans-serif; font-weight: bold; background-color: white; display: inline-block; padding: 3px 10px; border-radius: 50px;" |
||||
|
class="mr-2"> |
||||
|
<i class="fa fa-check mr-1"></i>Enterprise |
||||
|
</div> |
||||
|
<div style="color: #017E84; font-size: 14px; font-family: 'Montserrat', sans-serif; font-weight: bold; background-color: white; display: inline-block; padding: 3px 10px; border-radius: 50px;" |
||||
|
class="mr-2"> |
||||
|
<i class="fa fa-check mr-1"></i>Odoo.sh |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<!-- END OF TITLE BAR --> |
||||
|
<div class="container"> |
||||
|
<div class="row"> |
||||
|
<div class="col-sm-12 col-md-12 col-lg-12"> |
||||
|
<!-- APP HERO --> |
||||
|
<h1 style="color: #FFFFFF; font-weight: bolder; font-size: 50px; text-align: center; margin-top: 50px;"> |
||||
|
Scrap Management</h1> |
||||
|
<p style="color:#FFFFFF; padding: 8px 15px; text-align: center; font-size: 24px;"> |
||||
|
Managing Scrap in a |
||||
|
company and dismantling the product and reuse non defected |
||||
|
component </p> |
||||
|
<!-- END OF APP HERO --> |
||||
|
<img src="assets/screenshots/hero.gif" class="img-responsive" |
||||
|
style="width: 100%; margin-left: auto; margin-right: auto;"/> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<!-- NAVIGATION SECTION --> |
||||
|
<div class="d-flex align-items-center" |
||||
|
style="border-bottom: 2px solid #714B67; padding: 15px 0px; margin-top: 300px;"> |
||||
|
<div class="d-flex justify-content-center align-items-center mr-2" |
||||
|
style="background-color: #F5F5F5; border-radius: 0px; width: 40px; height: 40px;"> |
||||
|
<img src="assets/misc/compass.png"/> |
||||
|
</div> |
||||
|
<h2 class="mt-2" |
||||
|
style="font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: bold;"> |
||||
|
Explore This |
||||
|
Module</h2> |
||||
|
</div> |
||||
|
<div class="row my-4" style="font-family: 'Montserrat', sans-serif;"> |
||||
|
<div class="col-sm-12 col-md-6 my-3"> |
||||
|
<a href="#overview"> |
||||
|
<div class="d-flex justify-content-between align-items-center" |
||||
|
style="background-color: #f5f5f5; padding: 30px; width: 100%;"> |
||||
|
<div> |
||||
|
<span style="color: #714B67; font-size: 24px; font-weight: 500; display: block;">Overview</span> |
||||
|
<span style="color: #714B67; font-size: 16px; font-weight: 400; color:#282F33; display: block;">Learn |
||||
|
more about this |
||||
|
module</span> |
||||
|
</div> |
||||
|
<img src="assets/misc/right-arrow.png" width="36" height="36"/> |
||||
|
</div> |
||||
|
</a> |
||||
|
</div> |
||||
|
<div class="col-sm-12 col-md-6 my-3"> |
||||
|
<a href="#features"> |
||||
|
<div class="d-flex justify-content-between align-items-center" |
||||
|
style="background-color: #f5f5f5; padding: 30px; width: 100%;"> |
||||
|
<div> |
||||
|
<span style="color: #714B67; font-size: 24px; font-weight: 500; display: block;">Features</span> |
||||
|
<span style="color: #714B67; font-size: 16px; font-weight: 400; color:#282F33; display: block;">View |
||||
|
features of this |
||||
|
module</span> |
||||
|
</div> |
||||
|
<img src="assets/misc/right-arrow.png" width="36" height="36"/> |
||||
|
</div> |
||||
|
</a> |
||||
|
</div> |
||||
|
<div class="col-sm-12 col-md-6 my-3"> |
||||
|
<a href="#screenshots"> |
||||
|
<div class="d-flex justify-content-between align-items-center" |
||||
|
style="background-color: #f5f5f5; padding: 30px; width: 100%;"> |
||||
|
<div> |
||||
|
<span style="color: #714B67; font-size: 24px; font-weight: 500; display: block;">Screenshots</span> |
||||
|
<span style="color: #714B67; font-size: 16px; font-weight: 400; color:#282F33; display: block;">View |
||||
|
screenshots for this |
||||
|
module</span> |
||||
|
</div> |
||||
|
<img src="assets/misc/right-arrow.png" width="36" height="36"/> |
||||
|
</div> |
||||
|
</a> |
||||
|
</div> |
||||
|
</div> |
||||
|
<!-- END OF NAVIGATION SECTION --> |
||||
|
|
||||
|
<!-- OVERVIEW SECTION --> |
||||
|
<div class="d-flex align-items-center" |
||||
|
style="border-bottom: 2px solid #714B67; padding: 15px 0px;" id="overview"> |
||||
|
<div class="d-flex justify-content-center align-items-center mr-2" |
||||
|
style="background-color: #F5F5F5; border-radius: 0px; width: 40px; height: 40px;"> |
||||
|
<img src="assets/misc/pie-chart.png"/> |
||||
|
</div> |
||||
|
<h2 class="mt-2" |
||||
|
style="font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: bold;"> |
||||
|
Overview |
||||
|
</h2> |
||||
|
</div> |
||||
|
<div class="row" |
||||
|
style="font-family: 'Montserrat', sans-serif; font-weight: 400; font-size: 14px; line-height: 200%;"> |
||||
|
<div class="col-sm-12 py-4"> |
||||
|
This module helps to manage scrap dismantling and reuse non defected |
||||
|
product |
||||
|
</div> |
||||
|
</div> |
||||
|
<!-- END OF OVERVIEW SECTION --> |
||||
|
|
||||
|
<!-- FEATURES SECTION --> |
||||
|
<div class="d-flex align-items-center" |
||||
|
style="border-bottom: 2px solid #714B67; padding: 15px 0px;" id="features"> |
||||
|
<div class="d-flex justify-content-center align-items-center mr-2" |
||||
|
style="background-color: #F5F5F5; border-radius: 0px; width: 40px; height: 40px;"> |
||||
|
<img src="assets/misc/features.png"/> |
||||
|
</div> |
||||
|
<h2 class="mt-2" |
||||
|
style="font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: bold;"> |
||||
|
Features |
||||
|
</h2> |
||||
|
</div> |
||||
|
<div class="row" |
||||
|
style="font-family: 'Montserrat', sans-serif; font-weight: 400; font-size: 14px; line-height: 200%;"> |
||||
|
<div class="col-sm-12 col-md-6"> |
||||
|
<div class="d-flex align-items-center" |
||||
|
style="margin-top: 10px; margin-bottom: 10px"> |
||||
|
<img src="assets/misc/check-box.png" class="mr-2"/> |
||||
|
<span style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">Available in Odoo 16.0 |
||||
|
Community and Enterprise.</span> |
||||
|
</div> |
||||
|
<div class="d-flex align-items-center" |
||||
|
style="margin-top: 10px; margin-bottom: 10px"> |
||||
|
<img src="assets/misc/check-box.png" class="mr-2"/> |
||||
|
<span style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">Handle Scrap dismantle according to scrap order </span> |
||||
|
</div> |
||||
|
<div class="d-flex align-items-center" |
||||
|
style="margin-top: 10px; margin-bottom: 10px"> |
||||
|
<img src="assets/misc/check-box.png" class="mr-2"/> |
||||
|
<span style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">Select operation type for |
||||
|
scrap order.</span> |
||||
|
</div> |
||||
|
<div class="d-flex align-items-center" |
||||
|
style="margin-top: 10px; margin-bottom: 10px"> |
||||
|
<img src="assets/misc/check-box.png" class="mr-2"/> |
||||
|
<span style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">Stock will be updated after dismantle</span> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="col-sm-12 col-md-6"> |
||||
|
<div class="d-flex align-items-center" |
||||
|
style="margin-top: 10px; margin-bottom: 10px"> |
||||
|
<img src="assets/misc/check-box.png" class="mr-2"/> |
||||
|
<span style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">Product moves can be viewed</span> |
||||
|
</div> |
||||
|
|
||||
|
<div class="d-flex align-items-center" |
||||
|
style="margin-top: 10px; margin-bottom: 10px"> |
||||
|
<img src="assets/misc/check-box.png" class="mr-2"/> |
||||
|
<span style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">Get your scrap management report</span> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<!-- END OF FEATURES SECTION --> |
||||
|
|
||||
|
<!-- SCREENSHOTS SECTION --> |
||||
|
<div class="d-flex align-items-center" |
||||
|
style="border-bottom: 2px solid #714B67; padding: 15px 0px;" |
||||
|
id="screenshots"> |
||||
|
<div class="d-flex justify-content-center align-items-center mr-2" |
||||
|
style="background-color: #F5F5F5; border-radius: 0px; width: 40px; height: 40px;"> |
||||
|
<img src="assets/misc/pictures.png"/> |
||||
|
</div> |
||||
|
<h2 class="mt-2" |
||||
|
style="font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: bold;"> |
||||
|
Screenshots |
||||
|
</h2> |
||||
|
</div> |
||||
|
<div class="row"> |
||||
|
<div class="col-sm-12"> |
||||
|
|
||||
|
<div style="display: block; margin: 30px auto;"> |
||||
|
<h3 style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;"> |
||||
|
Scrap order operation |
||||
|
selection |
||||
|
</h3> |
||||
|
<p style="font-weight: 400; font-family: 'Montserrat', sans-serif; font-size: 14px;"> |
||||
|
Operation type for the |
||||
|
scrap can be choosen when the order creation and only dismantle |
||||
|
scrap order can be managed</p> |
||||
|
<img src="./assets/screenshots/stock_scrap.png" |
||||
|
class="img-thumbnail"> |
||||
|
</div> |
||||
|
|
||||
|
<div style="display: block; margin: 30px auto;"> |
||||
|
<h3 style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;"> |
||||
|
Scrap Management |
||||
|
</h3> |
||||
|
<p style="font-weight: 400; font-family: 'Montserrat', sans-serif; font-size: 14px;"> |
||||
|
Scrap Orders can be |
||||
|
chosen, On fetching components will be shown</p> |
||||
|
<img src="./assets/screenshots/scrap_management.png" |
||||
|
class="img-thumbnail"> |
||||
|
</div> |
||||
|
<div style="display: block; margin: 30px auto;"> |
||||
|
<h3 style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;"> |
||||
|
PDF Report of scrap |
||||
|
management |
||||
|
</h3> |
||||
|
<p style="font-weight: 400; font-family: 'Montserrat', sans-serif; font-size: 14px;"> |
||||
|
Scrap management |
||||
|
report</p> |
||||
|
<img src="./assets/screenshots/report1.png" class="img-thumbnail"> |
||||
|
<br/> |
||||
|
<p style="font-weight: 400; font-family: 'Montserrat', sans-serif; font-size: 14px;"> |
||||
|
On the basis |
||||
|
product </p> |
||||
|
<img src="./assets/screenshots/report2.png" class="img-thumbnail"> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<!-- END OF SCREENSHOTS SECTION --> |
||||
|
|
||||
|
<!-- RELATED PRODUCTS --> |
||||
|
<div class="d-flex align-items-center" |
||||
|
style="border-bottom: 2px solid #00438B; padding: 15px 0px;"> |
||||
|
<div class="d-flex justify-content-center align-items-center mr-2" |
||||
|
style="background-color: #F5F5F5; border-radius: 0px; width: 40px; height: 40px;"> |
||||
|
<img src="assets/misc/categories.png"/> |
||||
|
</div> |
||||
|
<h2 class="mt-2" |
||||
|
style="font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: bold;"> |
||||
|
Related |
||||
|
Products |
||||
|
</h2> |
||||
|
</div> |
||||
|
<div class="row"> |
||||
|
<div class="col-sm-12"> |
||||
|
<div id="demo1" class="row carousel slide" data-ride="carousel"> |
||||
|
<!-- The slideshow --> |
||||
|
<!-- The slideshow --> |
||||
|
<div class="carousel-inner"> |
||||
|
<div class="carousel-item active" style="min-height:0px"> |
||||
|
<div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16" |
||||
|
style="float:left"> |
||||
|
<a href="https://apps.odoo.com/apps/modules/16.0/so_bom_selection/" |
||||
|
target="_blank"> |
||||
|
<div style="border-radius:10px"> |
||||
|
<img class="img img-responsive center-block" |
||||
|
style="border-top-left-radius:10px; border-top-right-radius:10px" |
||||
|
src="./assets/modules/so_bom_selection.png"> |
||||
|
</div> |
||||
|
</a> |
||||
|
</div> |
||||
|
|
||||
|
<div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16" |
||||
|
style="float:left"> |
||||
|
<a href="https://apps.odoo.com/apps/modules/16.0/simple_mrp_order/" |
||||
|
target="_blank"> |
||||
|
<div style="border-radius:10px"> |
||||
|
<img class="img img-responsive center-block" |
||||
|
style="border-top-left-radius:10px; border-top-right-radius:10px" |
||||
|
src="./assets/modules/simple_mrp_order.png"> |
||||
|
</div> |
||||
|
</a> |
||||
|
</div> |
||||
|
<div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16" |
||||
|
style="float:left"> |
||||
|
<a href="https://apps.odoo.com/apps/modules/16.0/cw_mrp/" |
||||
|
target="_blank"> |
||||
|
<div style="border-radius:10px"> |
||||
|
<img class="img img-responsive center-block" |
||||
|
style="border-top-left-radius:10px; border-top-right-radius:10px" |
||||
|
src="./assets/modules/cw_mrp.png"> |
||||
|
</div> |
||||
|
</a> |
||||
|
</div> |
||||
|
<div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16" |
||||
|
style="float:left"> |
||||
|
<a href="https://apps.odoo.com/apps/modules/16.0/bom_multiple_product/" |
||||
|
target="_blank"> |
||||
|
<div style="border-radius:10px"> |
||||
|
<img class="img img-responsive center-block" |
||||
|
style="border-radius: 0px;" |
||||
|
src="./assets/modules/bom_multiple_product.png"> |
||||
|
</div> |
||||
|
</a> |
||||
|
</div> |
||||
|
<div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16" |
||||
|
style="float:left"> |
||||
|
<a href="https://apps.odoo.com/apps/modules/16.0/duplicate_product_bom/" |
||||
|
target="_blank"> |
||||
|
<div style="border-radius:10px"> |
||||
|
<img class="img img-responsive center-block" |
||||
|
style="border-radius: 0px;" |
||||
|
src="./assets/modules/duplicate_product_bom.png"> |
||||
|
</div> |
||||
|
</a> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="carousel-item" style="min-height:0px"> |
||||
|
<div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16" |
||||
|
style="float:left"> |
||||
|
<a href="https://apps.odoo.com/apps/modules/16.0/bom_total_cost/" |
||||
|
target="_blank"> |
||||
|
<div style="border-radius:10px"> |
||||
|
<img class="img img-responsive center-block" |
||||
|
style="border-top-left-radius:10px; border-top-right-radius:10px" |
||||
|
src="./assets/modules/bom_total_cost.png"> |
||||
|
</div> |
||||
|
</a> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<!-- Left and right controls --> |
||||
|
<a class="carousel-control-prev" href="#demo1" data-slide="prev" |
||||
|
style="width:35px; color:#000"> <span |
||||
|
class="carousel-control-prev-icon"><i |
||||
|
class="fa fa-chevron-left" |
||||
|
style="font-size:24px"></i></span> |
||||
|
</a> <a class="carousel-control-next" href="#demo1" |
||||
|
data-slide="next" style="width:35px; color:#000"> |
||||
|
<span class="carousel-control-next-icon"><i |
||||
|
class="fa fa-chevron-right" |
||||
|
style="font-size:24px"></i></span> |
||||
|
</a> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<!-- END OF RELATED PRODUCTS --> |
||||
|
<!-- OUR SERVICES --> |
||||
|
|
||||
|
<div class="d-flex align-items-center" |
||||
|
style="border-bottom: 2px solid #714B67; padding: 15px 0px;"> |
||||
|
<div class="d-flex justify-content-center align-items-center mr-2" |
||||
|
style="background-color: #F5F5F5; border-radius: 0px; width: 40px; height: 40px;"> |
||||
|
<img src="assets/misc/star.png"/> |
||||
|
</div> |
||||
|
<h2 class="mt-2" |
||||
|
style="font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: bold;"> |
||||
|
Our Services |
||||
|
</h2> |
||||
|
</div> |
||||
|
|
||||
|
<div class="container my-5"> |
||||
|
<div class="row"> |
||||
|
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4"> |
||||
|
<div class="d-flex justify-content-center align-items-center mx-3 my-3" |
||||
|
style="background-color: #1dd1a1 !important; border-radius: 15px !important; height: 80px; width: 80px;"> |
||||
|
<img src="assets/icons/cogs.png" class="img-responsive" |
||||
|
height="48px" width="48px"> |
||||
|
</div> |
||||
|
<h6 class="text-center" |
||||
|
style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;"> |
||||
|
Odoo |
||||
|
Customization</h6> |
||||
|
</div> |
||||
|
|
||||
|
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4"> |
||||
|
<div class="d-flex justify-content-center align-items-center mx-3 my-3" |
||||
|
style="background-color: #ff6b6b !important; border-radius: 15px !important; height: 80px; width: 80px;"> |
||||
|
<img src="assets/icons/wrench.png" class="img-responsive" |
||||
|
height="48px" width="48px"> |
||||
|
</div> |
||||
|
<h6 class="text-center" |
||||
|
style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;"> |
||||
|
Odoo |
||||
|
Implementation</h6> |
||||
|
</div> |
||||
|
|
||||
|
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4"> |
||||
|
<div class="d-flex justify-content-center align-items-center mx-3 my-3" |
||||
|
style="background-color: #6462CD !important; border-radius: 15px !important; height: 80px; width: 80px;"> |
||||
|
<img src="assets/icons/lifebuoy.png" class="img-responsive" |
||||
|
height="48px" width="48px"> |
||||
|
</div> |
||||
|
<h6 class="text-center" |
||||
|
style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;"> |
||||
|
Odoo |
||||
|
Support</h6> |
||||
|
</div> |
||||
|
|
||||
|
|
||||
|
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4"> |
||||
|
<div class="d-flex justify-content-center align-items-center mx-3 my-3" |
||||
|
style="background-color: #ffa801 !important; border-radius: 15px !important; height: 80px; width: 80px;"> |
||||
|
<img src="assets/icons/user.png" class="img-responsive" |
||||
|
height="48px" width="48px"> |
||||
|
</div> |
||||
|
<h6 class="text-center" |
||||
|
style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;"> |
||||
|
Hire |
||||
|
Odoo |
||||
|
Developer</h6> |
||||
|
</div> |
||||
|
|
||||
|
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4"> |
||||
|
<div class="d-flex justify-content-center align-items-center mx-3 my-3" |
||||
|
style="background-color: #54a0ff !important; border-radius: 15px !important; height: 80px; width: 80px;"> |
||||
|
<img src="assets/icons/puzzle.png" class="img-responsive" |
||||
|
height="48px" width="48px"> |
||||
|
</div> |
||||
|
<h6 class="text-center" |
||||
|
style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;"> |
||||
|
Odoo |
||||
|
Integration</h6> |
||||
|
</div> |
||||
|
|
||||
|
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4"> |
||||
|
<div class="d-flex justify-content-center align-items-center mx-3 my-3" |
||||
|
style="background-color: #6d7680 !important; border-radius: 15px !important; height: 80px; width: 80px;"> |
||||
|
<img src="assets/icons/update.png" class="img-responsive" |
||||
|
height="48px" width="48px"> |
||||
|
</div> |
||||
|
<h6 class="text-center" |
||||
|
style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;"> |
||||
|
Odoo |
||||
|
Migration</h6> |
||||
|
</div> |
||||
|
|
||||
|
|
||||
|
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4"> |
||||
|
<div class="d-flex justify-content-center align-items-center mx-3 my-3" |
||||
|
style="background-color: #786fa6 !important; border-radius: 15px !important; height: 80px; width: 80px;"> |
||||
|
<img src="assets/icons/consultation.png" class="img-responsive" |
||||
|
height="48px" width="48px"> |
||||
|
</div> |
||||
|
<h6 class="text-center" |
||||
|
style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;"> |
||||
|
Odoo |
||||
|
Consultancy</h6> |
||||
|
</div> |
||||
|
|
||||
|
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4"> |
||||
|
<div class="d-flex justify-content-center align-items-center mx-3 my-3" |
||||
|
style="background-color: #f8a5c2 !important; border-radius: 15px !important; height: 80px; width: 80px;"> |
||||
|
<img src="assets/icons/training.png" class="img-responsive" |
||||
|
height="48px" width="48px"> |
||||
|
</div> |
||||
|
<h6 class="text-center" |
||||
|
style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;"> |
||||
|
Odoo |
||||
|
Implementation</h6> |
||||
|
</div> |
||||
|
|
||||
|
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4"> |
||||
|
<div class="d-flex justify-content-center align-items-center mx-3 my-3" |
||||
|
style="background-color: #e6be26 !important; border-radius: 15px !important; height: 80px; width: 80px;"> |
||||
|
<img src="assets/icons/license.png" class="img-responsive" |
||||
|
height="48px" width="48px"> |
||||
|
</div> |
||||
|
<h6 class="text-center" |
||||
|
style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;"> |
||||
|
Odoo |
||||
|
Licensing Consultancy</h6> |
||||
|
</div> |
||||
|
</div> |
||||
|
|
||||
|
</div> |
||||
|
|
||||
|
<!-- END OF OUR SERVICES --> |
||||
|
|
||||
|
<!-- OUR INDUSTRIES --> |
||||
|
|
||||
|
<div class="d-flex align-items-center" |
||||
|
style="border-bottom: 2px solid #714B67; padding: 15px 0px;"> |
||||
|
<div class="d-flex justify-content-center align-items-center mr-2" |
||||
|
style="background-color: #F5F5F5; border-radius: 0px; width: 40px; height: 40px;"> |
||||
|
<img src="assets/misc/corporate.png"/> |
||||
|
</div> |
||||
|
<h2 class="mt-2" |
||||
|
style="font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: bold;"> |
||||
|
Our |
||||
|
Industries |
||||
|
</h2> |
||||
|
</div> |
||||
|
|
||||
|
<div class="container my-5"> |
||||
|
<div class="row"> |
||||
|
<div class="col-lg-3"> |
||||
|
<div class="my-4 d-flex flex-column justify-content-center" |
||||
|
style="background-color: #f6f8f9 !important; border-radius: 0px; padding: 2rem !important; height: 250px !important;"> |
||||
|
<img src="assets/icons/trading-black.png" |
||||
|
class="img-responsive mb-3" height="48px" width="48px"> |
||||
|
<h5 style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;"> |
||||
|
Trading |
||||
|
</h5> |
||||
|
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;"> |
||||
|
Easily procure |
||||
|
and |
||||
|
sell your products</p> |
||||
|
</div> |
||||
|
</div> |
||||
|
|
||||
|
<div class="col-lg-3"> |
||||
|
<div class="my-4 d-flex flex-column justify-content-center" |
||||
|
style="background-color: #f6f8f9 !important; border-radius: 0px; padding: 2rem !important; height: 250px !important;"> |
||||
|
<img src="assets/icons/pos-black.png" |
||||
|
class="img-responsive mb-3" height="48px" width="48px"> |
||||
|
<h5 style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;"> |
||||
|
POS |
||||
|
</h5> |
||||
|
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;"> |
||||
|
Easy |
||||
|
configuration |
||||
|
and convivial experience</p> |
||||
|
</div> |
||||
|
</div> |
||||
|
|
||||
|
<div class="col-lg-3"> |
||||
|
<div class="my-4 d-flex flex-column justify-content-center" |
||||
|
style="background-color: #f6f8f9 !important; border-radius: 0px; padding: 2rem !important; height: 250px !important;"> |
||||
|
<img src="assets/icons/education-black.png" |
||||
|
class="img-responsive mb-3" height="48px" width="48px"> |
||||
|
<h5 style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;"> |
||||
|
Education |
||||
|
</h5> |
||||
|
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;"> |
||||
|
A platform for |
||||
|
educational management</p> |
||||
|
</div> |
||||
|
</div> |
||||
|
|
||||
|
<div class="col-lg-3"> |
||||
|
<div class="my-4 d-flex flex-column justify-content-center" |
||||
|
style="background-color: #f6f8f9 !important; border-radius: 0px; padding: 2rem !important; height: 250px !important;"> |
||||
|
<img src="assets/icons/manufacturing-black.png" |
||||
|
class="img-responsive mb-3" height="48px" width="48px"> |
||||
|
<h5 style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;"> |
||||
|
Manufacturing |
||||
|
</h5> |
||||
|
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;"> |
||||
|
Plan, track and |
||||
|
schedule your operations</p> |
||||
|
</div> |
||||
|
</div> |
||||
|
|
||||
|
<div class="col-lg-3"> |
||||
|
<div class="my-4 d-flex flex-column justify-content-center" |
||||
|
style="background-color: #f6f8f9 !important; border-radius: 0px; padding: 2rem !important; height: 250px !important;"> |
||||
|
<img src="assets/icons/ecom-black.png" |
||||
|
class="img-responsive mb-3" height="48px" width="48px"> |
||||
|
<h5 style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;"> |
||||
|
E-commerce & Website |
||||
|
</h5> |
||||
|
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;"> |
||||
|
Mobile |
||||
|
friendly, |
||||
|
awe-inspiring product pages</p> |
||||
|
</div> |
||||
|
</div> |
||||
|
|
||||
|
<div class="col-lg-3"> |
||||
|
<div class="my-4 d-flex flex-column justify-content-center" |
||||
|
style="background-color: #f6f8f9 !important; border-radius: 0px; padding: 2rem !important; height: 250px !important;"> |
||||
|
<img src="assets/icons/service-black.png" |
||||
|
class="img-responsive mb-3" height="48px" width="48px"> |
||||
|
<h5 style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;"> |
||||
|
Service Management |
||||
|
</h5> |
||||
|
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;"> |
||||
|
Keep track of |
||||
|
services and invoice</p> |
||||
|
</div> |
||||
|
</div> |
||||
|
|
||||
|
<div class="col-lg-3"> |
||||
|
<div class="my-4 d-flex flex-column justify-content-center" |
||||
|
style="background-color: #f6f8f9 !important; border-radius: 0px; padding: 2rem !important; height: 250px !important;"> |
||||
|
<img src="assets/icons/restaurant-black.png" |
||||
|
class="img-responsive mb-3" height="48px" width="48px"> |
||||
|
<h5 style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;"> |
||||
|
Restaurant |
||||
|
</h5> |
||||
|
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;"> |
||||
|
Run your bar or |
||||
|
restaurant methodically</p> |
||||
|
</div> |
||||
|
</div> |
||||
|
|
||||
|
<div class="col-lg-3"> |
||||
|
<div class="my-4 d-flex flex-column justify-content-center" |
||||
|
style="background-color: #f6f8f9 !important; border-radius: 0px; padding: 2rem !important; height: 250px !important;"> |
||||
|
<img src="assets/icons/hotel-black.png" |
||||
|
class="img-responsive mb-3" height="48px" width="48px"> |
||||
|
<h5 style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;"> |
||||
|
Hotel Management |
||||
|
</h5> |
||||
|
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;"> |
||||
|
An |
||||
|
all-inclusive |
||||
|
hotel management application</p> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
|
||||
|
<!-- END OF OUR INDUSTRIES --> |
||||
|
|
||||
|
<!-- SUPPORT --> |
||||
|
<div class="d-flex align-items-center" |
||||
|
style="border-bottom: 2px solid #714B67; padding: 15px 0px;"> |
||||
|
<div class="d-flex justify-content-center align-items-center mr-2" |
||||
|
style="background-color: #F5F5F5; border-radius: 0px; width: 40px; height: 40px;"> |
||||
|
<img src="assets/misc/customer-support.png"/> |
||||
|
</div> |
||||
|
<h2 class="mt-2" |
||||
|
style="font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: bold;"> |
||||
|
Support |
||||
|
</h2> |
||||
|
</div> |
||||
|
<div class="container mt-5"> |
||||
|
<div class="row"> |
||||
|
<div class="col-sm-12 col-md-6"> |
||||
|
<div style="background-color: #F6F8F9; padding: 30px; display: flex; align-items: center;"> |
||||
|
<div class="mr-4 d-flex justify-content-center align-items-center" |
||||
|
style="background-color: #714B67; display: inline-block; height: 70px; width: 70px; display: flex; align-items: center; justify-content: center;"> |
||||
|
<img src="assets/misc/support.png" height="48" width="48" |
||||
|
style="width: 42px; height: 42px;"/> |
||||
|
</div> |
||||
|
<div> |
||||
|
<h4>Need Help?</h4> |
||||
|
<p style="line-height: 100%;">Got questions or need help? |
||||
|
Get in touch.</p> |
||||
|
<a href="mailto:odoo@cybrosys.com"> |
||||
|
<p style="font-weight: 400; font-size: 28px; line-height: 80%; color: #714B67;"> |
||||
|
odoo@cybrosys.com</p> |
||||
|
</a> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="col-sm-12 col-md-6"> |
||||
|
<div style="background-color: #F6F8F9; padding: 30px; display: flex; align-items: center;"> |
||||
|
<div class="mr-4 d-flex justify-content-center align-items-center" |
||||
|
style="background-color: #2AC44D; display: inline-block; height: 70px; width: 70px; display: flex; align-items: center; justify-content: center;"> |
||||
|
<img src="assets/misc/whatsapp.png" height="52" width="52" |
||||
|
style="width: 52px; height: 52px;"/> |
||||
|
</div> |
||||
|
<div> |
||||
|
<h4>WhatsApp</h4> |
||||
|
<p style="line-height: 100%;">Say hi to us on WhatsApp!</p> |
||||
|
<a href="https://api.whatsapp.com/send?phone=918606827707"> |
||||
|
<p style="font-weight: 400; font-size: 28px; line-height: 80%; color: #714B67;"> |
||||
|
+91 86068 |
||||
|
27707</p> |
||||
|
</a> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="row"> |
||||
|
<div class="col-sm-12 my-5 d-flex justify-content-center align-items-center"> |
||||
|
<img src="assets/misc/logo.png" width="144" height="31" |
||||
|
style="width:144px; height: 31px; margin-top: 40px;"/> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<!-- END OF SUPPORT --> |
@ -0,0 +1,20 @@ |
|||||
|
<?xml version='1.0' encoding='utf-8'?> |
||||
|
<odoo> |
||||
|
<!-- Views and menus of scrap management line --> |
||||
|
<record id="scrap_management_line_action" model="ir.actions.act_window"> |
||||
|
<field name="name">Scrap Management Line</field> |
||||
|
<field name="res_model">scrap.management.line</field> |
||||
|
<field name="view_mode">tree</field> |
||||
|
</record> |
||||
|
<record id="scrap_management_line_view_tree" model="ir.ui.view"> |
||||
|
<field name="name">scrap.management.line.view.tree</field> |
||||
|
<field name="model">scrap.management.line</field> |
||||
|
<field name="arch" type="xml"> |
||||
|
<tree editable="bottom"> |
||||
|
<field name="product_id"/> |
||||
|
<field name="dismantle_qty"/> |
||||
|
<field name="useful_qty"/> |
||||
|
</tree> |
||||
|
</field> |
||||
|
</record> |
||||
|
</odoo> |
@ -0,0 +1,85 @@ |
|||||
|
<?xml version='1.0' encoding='utf-8'?> |
||||
|
<odoo> |
||||
|
<!-- Views and menus of scrap management --> |
||||
|
<record id="scrap_management_action" model="ir.actions.act_window"> |
||||
|
<field name="name">Scrap Management</field> |
||||
|
<field name="res_model">scrap.management</field> |
||||
|
<field name="view_mode">tree,form</field> |
||||
|
</record> |
||||
|
<record id="scrap_management_view_tree" model="ir.ui.view"> |
||||
|
<field name="name">scrap.management.view.tree</field> |
||||
|
<field name="model">scrap.management</field> |
||||
|
<field name="arch" type="xml"> |
||||
|
<tree> |
||||
|
<field name="scrap_management_number"/> |
||||
|
<field name="scrap_order_id"/> |
||||
|
<field name="product_id"/> |
||||
|
<field name="qty"/> |
||||
|
</tree> |
||||
|
</field> |
||||
|
</record> |
||||
|
<record id="scrap_management_view_form" model="ir.ui.view"> |
||||
|
<field name="name">scrap.management.view.form</field> |
||||
|
<field name="model">scrap.management</field> |
||||
|
<field name="arch" type="xml"> |
||||
|
<form> |
||||
|
<header> |
||||
|
<button name="action_confirm" type="object" |
||||
|
class="oe_highlight" |
||||
|
string="Fetch Product" |
||||
|
states='draft'/> |
||||
|
<button name="action_done" type="object" |
||||
|
class="oe_highlight" |
||||
|
string="Done" |
||||
|
states='confirm'/> |
||||
|
<field name="state" widget="statusbar"/> |
||||
|
</header> |
||||
|
<sheet> |
||||
|
<div name="button_box" position="inside"> |
||||
|
<button name="action_product_moves" type="object" |
||||
|
class="oe_stat_button" icon="fa-exchange" |
||||
|
states="done"> |
||||
|
<div class="o_field_widget o_stat_info"> |
||||
|
<span class="o_stat_value"> |
||||
|
Product Moves |
||||
|
</span> |
||||
|
</div> |
||||
|
</button> |
||||
|
</div> |
||||
|
<header> |
||||
|
<h1> |
||||
|
<field name="scrap_management_number"/> |
||||
|
</h1> |
||||
|
</header> |
||||
|
<br/> |
||||
|
<group> |
||||
|
<group> |
||||
|
<field name="scrap_order_id"/> |
||||
|
<field name="product_id"/> |
||||
|
<field name="bill_of_material_id"/> |
||||
|
<field name="qty"/> |
||||
|
</group> |
||||
|
<group> |
||||
|
<field name="location_id"/> |
||||
|
<field name="date"/> |
||||
|
</group> |
||||
|
</group> |
||||
|
<notebook> |
||||
|
<page name="Components"> |
||||
|
<field name="scrap_management_line_ids"/> |
||||
|
</page> |
||||
|
</notebook> |
||||
|
</sheet> |
||||
|
<div class="oe_chatter"> |
||||
|
<field name="message_follower_ids" |
||||
|
groups="base.group_user"/> |
||||
|
<field name="message_ids"/> |
||||
|
</div> |
||||
|
</form> |
||||
|
</field> |
||||
|
</record> |
||||
|
<menuitem id="scrap_management_menu_action" name="Scrap Management" |
||||
|
action="scrap_management_action" |
||||
|
parent="stock.menu_stock_warehouse_mgmt" |
||||
|
sequence="220"/> |
||||
|
</odoo> |
@ -0,0 +1,20 @@ |
|||||
|
<?xml version="1.0" encoding="utf-8"?> |
||||
|
<odoo> |
||||
|
<!-- Inheriting the stock scrap--> |
||||
|
<record id="stock_scrap_form_view" model="ir.ui.view"> |
||||
|
<field name="name"> |
||||
|
stock.scrap.view.form.inherit.company.scrap.management |
||||
|
</field> |
||||
|
<field name="model">stock.scrap</field> |
||||
|
<field name="inherit_id" ref="stock.stock_scrap_form_view"/> |
||||
|
<field name="arch" type="xml"> |
||||
|
<field name="product_id" position="after"> |
||||
|
<field name="bill_of_material_id"/> |
||||
|
<field name="product_tmpl_id" invisible="1"/> |
||||
|
<field name="state_management" invisible="1"/> |
||||
|
<field name="typ_of_reuse" widget="radio" |
||||
|
attrs="{'invisible' : [('bill_of_material_id', '=', False)]}"/> |
||||
|
</field> |
||||
|
</field> |
||||
|
</record> |
||||
|
</odoo> |
@ -0,0 +1,22 @@ |
|||||
|
# -*- coding: utf-8 -*- |
||||
|
############################################################################# |
||||
|
# |
||||
|
# Cybrosys Technologies Pvt. Ltd. |
||||
|
# |
||||
|
# Copyright (C) 2023-TODAY Cybrosys Technologies(<https://www.cybrosys.com>). |
||||
|
# Author: Ranjith R(<https://www.cybrosys.com>) |
||||
|
# |
||||
|
# You can modify it under the terms of the GNU AFFERO |
||||
|
# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. |
||||
|
# |
||||
|
# 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 (AGPL v3) for more details. |
||||
|
# |
||||
|
# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE |
||||
|
# (AGPL v3) along with this program. |
||||
|
# If not, see <http://www.gnu.org/licenses/>. |
||||
|
# |
||||
|
########################################################################### |
||||
|
from . import scrap_management_report |
@ -0,0 +1,115 @@ |
|||||
|
# -*- coding: utf-8 -*- |
||||
|
############################################################################# |
||||
|
# |
||||
|
# Cybrosys Technologies Pvt. Ltd. |
||||
|
# |
||||
|
# Copyright (C) 2023-TODAY Cybrosys Technologies(<https://www.cybrosys.com>). |
||||
|
# Author: Ranjith R(<https://www.cybrosys.com>) |
||||
|
# |
||||
|
# You can modify it under the terms of the GNU AFFERO |
||||
|
# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. |
||||
|
# |
||||
|
# 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 (AGPL v3) for more details. |
||||
|
# |
||||
|
# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE |
||||
|
# (AGPL v3) along with this program. |
||||
|
# If not, see <http://www.gnu.org/licenses/>. |
||||
|
# |
||||
|
########################################################################### |
||||
|
from odoo import fields, models |
||||
|
|
||||
|
|
||||
|
class ScrapManagementReport(models.TransientModel): |
||||
|
"""Get report about contract """ |
||||
|
_name = 'scrap.management.report' |
||||
|
_description = 'Report of Scrap Management' |
||||
|
|
||||
|
filter = fields.Selection( |
||||
|
default="product_wise", selection=[('product_wise', 'Product Wise'), |
||||
|
('state_wise', 'State Wise')], |
||||
|
help="field to choose filter of report", string="Based On") |
||||
|
product_ids = fields.Many2many('product.product', |
||||
|
string="Product", |
||||
|
help="Field to choose product for report") |
||||
|
state = fields.Selection([('draft', 'Draft'), ('done', 'Done'), |
||||
|
('confirm', 'Confirm')], |
||||
|
default="done", string="State", |
||||
|
help="Field to specify state of report") |
||||
|
from_date = fields.Date(string="Start date", |
||||
|
help="Field to choose start date of report") |
||||
|
to_date = fields.Date(string="End date", |
||||
|
help="Field to end date filter of report") |
||||
|
|
||||
|
def action_print_pdf(self): |
||||
|
""" |
||||
|
Summary: |
||||
|
function to print pdf |
||||
|
Return: |
||||
|
pdf report |
||||
|
""" |
||||
|
if self.filter == 'product_wise': |
||||
|
query = """SELECT scrap_management.scrap_management_number, |
||||
|
scrap_management.scrap_order_id, |
||||
|
product_template.name->> 'en_US'AS product, |
||||
|
scrap_management.state,stock_scrap.product_id,scrap_management.date, |
||||
|
stock_scrap.name FROM scrap_management |
||||
|
inner join stock_scrap on |
||||
|
scrap_management.scrap_order_id= stock_scrap.id |
||||
|
inner join product_product on |
||||
|
product_product.id=stock_scrap.product_id |
||||
|
inner join product_template on |
||||
|
product_template.id=product_product.product_tmpl_id |
||||
|
""" |
||||
|
lst = [] |
||||
|
for product in self.product_ids: |
||||
|
lst.append(product.id) |
||||
|
if self.product_ids: |
||||
|
lst.append(0) |
||||
|
query += f""" where stock_scrap.product_id in {tuple(lst)}""" |
||||
|
if self.from_date: |
||||
|
query += f""" and scrap_management.date >= '{self.from_date}' """ |
||||
|
if self.from_date: |
||||
|
query += f""" and scrap_management.date <= '{self.to_date}' """ |
||||
|
self.env.cr.execute(query) |
||||
|
datas = self.env.cr.dictfetchall() |
||||
|
data = { |
||||
|
'form': self.read()[0], |
||||
|
'datas': datas, |
||||
|
'from_date': self.from_date, |
||||
|
'to_date': self.to_date |
||||
|
} |
||||
|
return self.env.ref( |
||||
|
'company_scrap_management' |
||||
|
'.action_scrap_management_product_wise').report_action( |
||||
|
None, |
||||
|
data=data) |
||||
|
if self.filter == 'state_wise': |
||||
|
query = """SELECT scrap_management.scrap_management_number, |
||||
|
stock_scrap.name,scrap_management.scrap_order_id, |
||||
|
scrap_management.state,stock_scrap.product_id,stock_scrap.name, |
||||
|
scrap_management.date FROM scrap_management |
||||
|
inner join stock_scrap |
||||
|
on scrap_management.scrap_order_id= stock_scrap.id |
||||
|
""" |
||||
|
if self.state: |
||||
|
query += f"""where scrap_management.state = '{self.state}' """ |
||||
|
if self.from_date: |
||||
|
query += f""" and scrap_management.date >= '{self.from_date}' """ |
||||
|
if self.from_date: |
||||
|
query += f""" and scrap_management.date <= '{self.to_date}' """ |
||||
|
self.env.cr.execute(query) |
||||
|
datas = self.env.cr.dictfetchall() |
||||
|
data = { |
||||
|
'form': self.read()[0], |
||||
|
'datas': datas, |
||||
|
'state': self.state, |
||||
|
'from_date': self.from_date, |
||||
|
'to_date': self.to_date |
||||
|
} |
||||
|
return self.env.ref( |
||||
|
'company_scrap_management' |
||||
|
'.action_scrap_management_state_wise').report_action(None, |
||||
|
data=data) |
@ -0,0 +1,47 @@ |
|||||
|
<?xml version="1.0" encoding="utf-8"?> |
||||
|
<odoo> |
||||
|
<!-- Views and menus of scrap management report--> |
||||
|
<record id="scrap_management_report_action" model="ir.actions.act_window"> |
||||
|
<field name="name">Scrap Management Report</field> |
||||
|
<field name="res_model">scrap.management.report</field> |
||||
|
<field name="view_mode">form</field> |
||||
|
<field name="target">new</field> |
||||
|
</record> |
||||
|
<record id="scrap_management_report_view_form" model="ir.ui.view"> |
||||
|
<field name="name">scrap.management.report.view.form</field> |
||||
|
<field name="model">scrap.management.report</field> |
||||
|
<field name="arch" type="xml"> |
||||
|
<form string="Scrap Management Report"> |
||||
|
<group> |
||||
|
<group> |
||||
|
<field name="filter" widget="radio"/> |
||||
|
</group> |
||||
|
<group> |
||||
|
<field name="product_ids" |
||||
|
attrs="{'invisible' : [('filter', '=', 'state_wise')]}" |
||||
|
widget="many2many_tags"/> |
||||
|
<field name="state" |
||||
|
attrs="{'invisible' : [('filter', '=', 'product_wise')]}" |
||||
|
widget="radio"/> |
||||
|
</group> |
||||
|
<group> |
||||
|
<field name="from_date"/> |
||||
|
</group> |
||||
|
<group> |
||||
|
<field name="to_date"/> |
||||
|
</group> |
||||
|
<group> |
||||
|
<footer> |
||||
|
<button name="action_print_pdf" string="Print pdf" |
||||
|
type="object" class="oe_highlight"/> |
||||
|
</footer> |
||||
|
</group> |
||||
|
</group> |
||||
|
</form> |
||||
|
</field> |
||||
|
</record> |
||||
|
<menuitem id="scrap_management_report_menu_action" |
||||
|
name="Scrap Management Report" |
||||
|
action="scrap_management_report_action" |
||||
|
parent="stock.menu_warehouse_report" sequence="5"/> |
||||
|
</odoo> |