diff --git a/cost_per_employee_manufacturing/README.rst b/cost_per_employee_manufacturing/README.rst new file mode 100755 index 000000000..f01f2d956 --- /dev/null +++ b/cost_per_employee_manufacturing/README.rst @@ -0,0 +1,46 @@ +.. image:: https://img.shields.io/badge/license-AGPL--3-blue.svg + :target: https://www.gnu.org/licenses/agpl-3.0-standalone.html + :alt: License: AGPL-3 + +Cost per Employees in Manufacturing +=================================== +This module helps to Calculate Cost per Employees in Manufacturing + +Configuration +============= +- No Configuration needed + +Company +------- +* `Cybrosys Techno Solutions `__ + +License +------- +General Public License, Version 3 (AGPL-3). +(http://www.gnu.org/licenses/lgpl-3.0-standalone.html) + +Credits +------- +Developer: (v16) Sruthi Pavithran @ Cybrosys + (v16) Arwa VV @ Cybrosys +Contact: odoo@cybrosys.com + +Contacts +-------- +* Mail Contact : odoo@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 `__ + +Further information +=================== +HTML Description: ``__ diff --git a/cost_per_employee_manufacturing/__init__.py b/cost_per_employee_manufacturing/__init__.py new file mode 100644 index 000000000..8c5aee8ea --- /dev/null +++ b/cost_per_employee_manufacturing/__init__.py @@ -0,0 +1,22 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Sruthi Pavithran (odoo@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 . +# +############################################################################# +from . import models diff --git a/cost_per_employee_manufacturing/__manifest__.py b/cost_per_employee_manufacturing/__manifest__.py new file mode 100644 index 000000000..684f1ceee --- /dev/null +++ b/cost_per_employee_manufacturing/__manifest__.py @@ -0,0 +1,52 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Sruthi Pavithran (odoo@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 . +# +############################################################################# +{ + 'name': "Cost per Employees in Manufacturing", + 'version': '16.0.1.0.0', + 'category': 'Manufacturing', + 'summary': """Calculate Cost per Employees in Manufacturing""", + 'description': """This module helps to Calculate Cost per Employees in + Manufacturing.""", + 'author': 'Cybrosys Techno Solutions', + 'company': 'Cybrosys Techno Solutions', + 'maintainer': 'Cybrosys Techno Solutions', + 'website': "https://www.cybrosys.com", + 'depends': ['base', 'mrp', 'hr', 'account_accountant', 'account', + 'mrp_subcontracting_account_enterprise'], + 'data': [ + 'security/ir.model.access.csv', + 'views/hr_employee_views.xml', + 'views/mrp_workcenter_views.xml', + 'views/mrp_production_views.xml', + 'views/cost_structure_report_templates.xml' + ], + 'assets': { + 'web.assets_backend': [ + 'cost_per_employee_manufacturing/static/src/js/cost_per_employee.js' + ] + }, + 'images': ['static/description/banner.jpg'], + 'license': 'AGPL-3', + 'installable': True, + 'auto_install': False, + 'application': False, +} diff --git a/cost_per_employee_manufacturing/doc/RELEASE_NOTES.md b/cost_per_employee_manufacturing/doc/RELEASE_NOTES.md new file mode 100755 index 000000000..d9d8204b3 --- /dev/null +++ b/cost_per_employee_manufacturing/doc/RELEASE_NOTES.md @@ -0,0 +1,7 @@ +## Module + +#### 05.01.2024 +#### Version 16.0.1.0.0 +#### ADD + +- Initial commit for Cost per Employees in Manufacturing diff --git a/cost_per_employee_manufacturing/models/__init__.py b/cost_per_employee_manufacturing/models/__init__.py new file mode 100644 index 000000000..e15f383b4 --- /dev/null +++ b/cost_per_employee_manufacturing/models/__init__.py @@ -0,0 +1,26 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Sruthi Pavithran (odoo@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 . +# +############################################################################# +from . import cost_per_employee +from . import mrp_cost_structure +from . import hr_employee +from . import mrp_workcenter +from . import mrp_production diff --git a/cost_per_employee_manufacturing/models/cost_per_employee.py b/cost_per_employee_manufacturing/models/cost_per_employee.py new file mode 100644 index 000000000..ed1380f69 --- /dev/null +++ b/cost_per_employee_manufacturing/models/cost_per_employee.py @@ -0,0 +1,38 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Sruthi Pavithran (odoo@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 . +# +############################################################################# +from odoo import fields, models + + +class CostPerEmployee(models.Model): + """Creating new models for storing cost per employee""" + _name = 'cost.per.employee' + _description = "Storing cost per hour of employee" + + employee_id = fields.Many2one('hr.employee', + help="Select Employees", + string="Employee Name") + cost = fields.Float(related="employee_id.hour_per_cost", + help="Hourly cost of employee", + string="Cost") + mrp_workcenter_id = fields.Many2one('mrp.workcenter', + string="Work Center", + help="Select work centers") diff --git a/cost_per_employee_manufacturing/models/hr_employee.py b/cost_per_employee_manufacturing/models/hr_employee.py new file mode 100644 index 000000000..3a6c6c934 --- /dev/null +++ b/cost_per_employee_manufacturing/models/hr_employee.py @@ -0,0 +1,30 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Sruthi Pavithran (odoo@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 . +# +############################################################################# +from odoo import fields, models + + +class HrEmployee(models.Model): + """Adding field to hr employee""" + _inherit = 'hr.employee' + + hour_per_cost = fields.Float(string='Hourly Cost', + help="Hourly cost of each employee") diff --git a/cost_per_employee_manufacturing/models/mrp_cost_structure.py b/cost_per_employee_manufacturing/models/mrp_cost_structure.py new file mode 100644 index 000000000..d3073e623 --- /dev/null +++ b/cost_per_employee_manufacturing/models/mrp_cost_structure.py @@ -0,0 +1,34 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Sruthi Pavithran (odoo@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 . +# +############################################################################# +from odoo import models + + +class MrpCostStructure(models.AbstractModel): + """Override method for adding field to cost structure report""" + _inherit = 'report.mrp_account_enterprise.mrp_cost_structure' + + def get_lines(self, productions): + """get lines of production in cost structure report""" + lines = super().get_lines(productions) + for line in lines: + line['cost_per_hour'] = productions.cost_per_hour + return lines diff --git a/cost_per_employee_manufacturing/models/mrp_production.py b/cost_per_employee_manufacturing/models/mrp_production.py new file mode 100644 index 000000000..b9ece5540 --- /dev/null +++ b/cost_per_employee_manufacturing/models/mrp_production.py @@ -0,0 +1,51 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Sruthi Pavithran (odoo@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 . +# +############################################################################# +from odoo import api, fields, models + + +class MrpProduction(models.Model): + """Adding fields to mrp production""" + _inherit = 'mrp.production' + + cost_per_hour = fields.Float(compute='_compute_cost_per_hour', store=True, + string="Cost per hour", + help="Cost per hour of production") + cost = fields.Float(related='cost_per_hour', store=True, string="Cost", + help="Cost of production") + + @api.depends('workorder_ids', 'workorder_ids.duration') + def _compute_cost_per_hour(self): + """Calculate cost per hour of employee""" + for record in self: + logged_in_user = record.env.user.employee_id.id + record.cost_per_hour = 0 + cost = [] + if record.workorder_ids: + for work_order in record.workorder_ids: + work_center_employees = ( + work_order.workcenter_id.cost_per_employee_ids.mapped( + 'employee_id.id')) + if logged_in_user in work_center_employees: + cost_per = record.env['hr.employee'].browse( + logged_in_user).hour_per_cost * work_order.duration + cost.append(cost_per) + record.cost_per_hour = sum(cost) diff --git a/cost_per_employee_manufacturing/models/mrp_workcenter.py b/cost_per_employee_manufacturing/models/mrp_workcenter.py new file mode 100644 index 000000000..b00570419 --- /dev/null +++ b/cost_per_employee_manufacturing/models/mrp_workcenter.py @@ -0,0 +1,32 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Sruthi Pavithran (odoo@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 . +# +############################################################################# +from odoo import fields, models + + +class MrpWorkCenter(models.Model): + """Adding field in mrp workcenter""" + _inherit = 'mrp.workcenter' + + cost_per_employee_ids = fields.One2many('cost.per.employee', + 'mrp_workcenter_id', + string="Employee Cost", + help="Cost per employee") diff --git a/cost_per_employee_manufacturing/security/ir.model.access.csv b/cost_per_employee_manufacturing/security/ir.model.access.csv new file mode 100644 index 000000000..4440edc82 --- /dev/null +++ b/cost_per_employee_manufacturing/security/ir.model.access.csv @@ -0,0 +1,2 @@ +id,name,model_id/id,group_id/id,perm_read,perm_write,perm_create,perm_unlink +access_cost_per_employee_user,access.cost.per.employee.user,model_cost_per_employee,base.group_user,1,1,1,1 diff --git a/cost_per_employee_manufacturing/static/description/assets/icons/check.png b/cost_per_employee_manufacturing/static/description/assets/icons/check.png new file mode 100755 index 000000000..c8e85f51d Binary files /dev/null and b/cost_per_employee_manufacturing/static/description/assets/icons/check.png differ diff --git a/cost_per_employee_manufacturing/static/description/assets/icons/chevron.png b/cost_per_employee_manufacturing/static/description/assets/icons/chevron.png new file mode 100755 index 000000000..2089293d6 Binary files /dev/null and b/cost_per_employee_manufacturing/static/description/assets/icons/chevron.png differ diff --git a/cost_per_employee_manufacturing/static/description/assets/icons/cogs.png b/cost_per_employee_manufacturing/static/description/assets/icons/cogs.png new file mode 100755 index 000000000..95d0bad62 Binary files /dev/null and b/cost_per_employee_manufacturing/static/description/assets/icons/cogs.png differ diff --git a/cost_per_employee_manufacturing/static/description/assets/icons/consultation.png b/cost_per_employee_manufacturing/static/description/assets/icons/consultation.png new file mode 100755 index 000000000..8319d4baa Binary files /dev/null and b/cost_per_employee_manufacturing/static/description/assets/icons/consultation.png differ diff --git a/cost_per_employee_manufacturing/static/description/assets/icons/ecom-black.png b/cost_per_employee_manufacturing/static/description/assets/icons/ecom-black.png new file mode 100755 index 000000000..a9385ff13 Binary files /dev/null and b/cost_per_employee_manufacturing/static/description/assets/icons/ecom-black.png differ diff --git a/cost_per_employee_manufacturing/static/description/assets/icons/education-black.png b/cost_per_employee_manufacturing/static/description/assets/icons/education-black.png new file mode 100755 index 000000000..3eb09b27b Binary files /dev/null and b/cost_per_employee_manufacturing/static/description/assets/icons/education-black.png differ diff --git a/cost_per_employee_manufacturing/static/description/assets/icons/hotel-black.png b/cost_per_employee_manufacturing/static/description/assets/icons/hotel-black.png new file mode 100755 index 000000000..130f613be Binary files /dev/null and b/cost_per_employee_manufacturing/static/description/assets/icons/hotel-black.png differ diff --git a/cost_per_employee_manufacturing/static/description/assets/icons/license.png b/cost_per_employee_manufacturing/static/description/assets/icons/license.png new file mode 100755 index 000000000..a5869797e Binary files /dev/null and b/cost_per_employee_manufacturing/static/description/assets/icons/license.png differ diff --git a/cost_per_employee_manufacturing/static/description/assets/icons/lifebuoy.png b/cost_per_employee_manufacturing/static/description/assets/icons/lifebuoy.png new file mode 100755 index 000000000..658d56ccc Binary files /dev/null and b/cost_per_employee_manufacturing/static/description/assets/icons/lifebuoy.png differ diff --git a/cost_per_employee_manufacturing/static/description/assets/icons/manufacturing-black.png b/cost_per_employee_manufacturing/static/description/assets/icons/manufacturing-black.png new file mode 100755 index 000000000..697eb0e9f Binary files /dev/null and b/cost_per_employee_manufacturing/static/description/assets/icons/manufacturing-black.png differ diff --git a/cost_per_employee_manufacturing/static/description/assets/icons/pos-black.png b/cost_per_employee_manufacturing/static/description/assets/icons/pos-black.png new file mode 100755 index 000000000..97c0f90c1 Binary files /dev/null and b/cost_per_employee_manufacturing/static/description/assets/icons/pos-black.png differ diff --git a/cost_per_employee_manufacturing/static/description/assets/icons/puzzle.png b/cost_per_employee_manufacturing/static/description/assets/icons/puzzle.png new file mode 100755 index 000000000..65cf854e7 Binary files /dev/null and b/cost_per_employee_manufacturing/static/description/assets/icons/puzzle.png differ diff --git a/cost_per_employee_manufacturing/static/description/assets/icons/restaurant-black.png b/cost_per_employee_manufacturing/static/description/assets/icons/restaurant-black.png new file mode 100755 index 000000000..4a35eb939 Binary files /dev/null and b/cost_per_employee_manufacturing/static/description/assets/icons/restaurant-black.png differ diff --git a/cost_per_employee_manufacturing/static/description/assets/icons/service-black.png b/cost_per_employee_manufacturing/static/description/assets/icons/service-black.png new file mode 100755 index 000000000..301ab51cb Binary files /dev/null and b/cost_per_employee_manufacturing/static/description/assets/icons/service-black.png differ diff --git a/cost_per_employee_manufacturing/static/description/assets/icons/trading-black.png b/cost_per_employee_manufacturing/static/description/assets/icons/trading-black.png new file mode 100755 index 000000000..9398ba2f1 Binary files /dev/null and b/cost_per_employee_manufacturing/static/description/assets/icons/trading-black.png differ diff --git a/cost_per_employee_manufacturing/static/description/assets/icons/training.png b/cost_per_employee_manufacturing/static/description/assets/icons/training.png new file mode 100755 index 000000000..884ca024d Binary files /dev/null and b/cost_per_employee_manufacturing/static/description/assets/icons/training.png differ diff --git a/cost_per_employee_manufacturing/static/description/assets/icons/update.png b/cost_per_employee_manufacturing/static/description/assets/icons/update.png new file mode 100755 index 000000000..ecbc5a01a Binary files /dev/null and b/cost_per_employee_manufacturing/static/description/assets/icons/update.png differ diff --git a/cost_per_employee_manufacturing/static/description/assets/icons/user.png b/cost_per_employee_manufacturing/static/description/assets/icons/user.png new file mode 100755 index 000000000..6ffb23d9f Binary files /dev/null and b/cost_per_employee_manufacturing/static/description/assets/icons/user.png differ diff --git a/cost_per_employee_manufacturing/static/description/assets/icons/wrench.png b/cost_per_employee_manufacturing/static/description/assets/icons/wrench.png new file mode 100755 index 000000000..6c04dea0f Binary files /dev/null and b/cost_per_employee_manufacturing/static/description/assets/icons/wrench.png differ diff --git a/cost_per_employee_manufacturing/static/description/assets/misc/categories.png b/cost_per_employee_manufacturing/static/description/assets/misc/categories.png new file mode 100755 index 000000000..bedf1e0b1 Binary files /dev/null and b/cost_per_employee_manufacturing/static/description/assets/misc/categories.png differ diff --git a/cost_per_employee_manufacturing/static/description/assets/misc/check-box.png b/cost_per_employee_manufacturing/static/description/assets/misc/check-box.png new file mode 100755 index 000000000..42caf24b9 Binary files /dev/null and b/cost_per_employee_manufacturing/static/description/assets/misc/check-box.png differ diff --git a/cost_per_employee_manufacturing/static/description/assets/misc/compass.png b/cost_per_employee_manufacturing/static/description/assets/misc/compass.png new file mode 100755 index 000000000..d5fed8faa Binary files /dev/null and b/cost_per_employee_manufacturing/static/description/assets/misc/compass.png differ diff --git a/cost_per_employee_manufacturing/static/description/assets/misc/corporate.png b/cost_per_employee_manufacturing/static/description/assets/misc/corporate.png new file mode 100755 index 000000000..2eb13edbf Binary files /dev/null and b/cost_per_employee_manufacturing/static/description/assets/misc/corporate.png differ diff --git a/cost_per_employee_manufacturing/static/description/assets/misc/customer-support.png b/cost_per_employee_manufacturing/static/description/assets/misc/customer-support.png new file mode 100755 index 000000000..79efc72ed Binary files /dev/null and b/cost_per_employee_manufacturing/static/description/assets/misc/customer-support.png differ diff --git a/cost_per_employee_manufacturing/static/description/assets/misc/cybrosys-logo.png b/cost_per_employee_manufacturing/static/description/assets/misc/cybrosys-logo.png new file mode 100755 index 000000000..cc3cc0ccf Binary files /dev/null and b/cost_per_employee_manufacturing/static/description/assets/misc/cybrosys-logo.png differ diff --git a/cost_per_employee_manufacturing/static/description/assets/misc/features.png b/cost_per_employee_manufacturing/static/description/assets/misc/features.png new file mode 100755 index 000000000..b41769f77 Binary files /dev/null and b/cost_per_employee_manufacturing/static/description/assets/misc/features.png differ diff --git a/cost_per_employee_manufacturing/static/description/assets/misc/logo.png b/cost_per_employee_manufacturing/static/description/assets/misc/logo.png new file mode 100755 index 000000000..478462d3e Binary files /dev/null and b/cost_per_employee_manufacturing/static/description/assets/misc/logo.png differ diff --git a/cost_per_employee_manufacturing/static/description/assets/misc/pictures.png b/cost_per_employee_manufacturing/static/description/assets/misc/pictures.png new file mode 100755 index 000000000..56d255fe9 Binary files /dev/null and b/cost_per_employee_manufacturing/static/description/assets/misc/pictures.png differ diff --git a/cost_per_employee_manufacturing/static/description/assets/misc/pie-chart.png b/cost_per_employee_manufacturing/static/description/assets/misc/pie-chart.png new file mode 100755 index 000000000..426e05244 Binary files /dev/null and b/cost_per_employee_manufacturing/static/description/assets/misc/pie-chart.png differ diff --git a/cost_per_employee_manufacturing/static/description/assets/misc/right-arrow.png b/cost_per_employee_manufacturing/static/description/assets/misc/right-arrow.png new file mode 100755 index 000000000..730984a06 Binary files /dev/null and b/cost_per_employee_manufacturing/static/description/assets/misc/right-arrow.png differ diff --git a/cost_per_employee_manufacturing/static/description/assets/misc/star.png b/cost_per_employee_manufacturing/static/description/assets/misc/star.png new file mode 100755 index 000000000..2eb9ab29f Binary files /dev/null and b/cost_per_employee_manufacturing/static/description/assets/misc/star.png differ diff --git a/cost_per_employee_manufacturing/static/description/assets/misc/support.png b/cost_per_employee_manufacturing/static/description/assets/misc/support.png new file mode 100755 index 000000000..4f18b8b82 Binary files /dev/null and b/cost_per_employee_manufacturing/static/description/assets/misc/support.png differ diff --git a/cost_per_employee_manufacturing/static/description/assets/misc/whatsapp.png b/cost_per_employee_manufacturing/static/description/assets/misc/whatsapp.png new file mode 100755 index 000000000..d513a5356 Binary files /dev/null and b/cost_per_employee_manufacturing/static/description/assets/misc/whatsapp.png differ diff --git a/cost_per_employee_manufacturing/static/description/assets/modules/1.png b/cost_per_employee_manufacturing/static/description/assets/modules/1.png new file mode 100644 index 000000000..6949185dd Binary files /dev/null and b/cost_per_employee_manufacturing/static/description/assets/modules/1.png differ diff --git a/cost_per_employee_manufacturing/static/description/assets/modules/2.png b/cost_per_employee_manufacturing/static/description/assets/modules/2.png new file mode 100644 index 000000000..b94dc8738 Binary files /dev/null and b/cost_per_employee_manufacturing/static/description/assets/modules/2.png differ diff --git a/cost_per_employee_manufacturing/static/description/assets/modules/3.png b/cost_per_employee_manufacturing/static/description/assets/modules/3.png new file mode 100644 index 000000000..0bfce1e0a Binary files /dev/null and b/cost_per_employee_manufacturing/static/description/assets/modules/3.png differ diff --git a/cost_per_employee_manufacturing/static/description/assets/modules/4.png b/cost_per_employee_manufacturing/static/description/assets/modules/4.png new file mode 100755 index 000000000..272ec20f9 Binary files /dev/null and b/cost_per_employee_manufacturing/static/description/assets/modules/4.png differ diff --git a/cost_per_employee_manufacturing/static/description/assets/modules/5.png b/cost_per_employee_manufacturing/static/description/assets/modules/5.png new file mode 100644 index 000000000..4e506f79b Binary files /dev/null and b/cost_per_employee_manufacturing/static/description/assets/modules/5.png differ diff --git a/cost_per_employee_manufacturing/static/description/assets/modules/6.png b/cost_per_employee_manufacturing/static/description/assets/modules/6.png new file mode 100644 index 000000000..e78427938 Binary files /dev/null and b/cost_per_employee_manufacturing/static/description/assets/modules/6.png differ diff --git a/cost_per_employee_manufacturing/static/description/assets/screenshots/cost1.png b/cost_per_employee_manufacturing/static/description/assets/screenshots/cost1.png new file mode 100644 index 000000000..51c5a94d4 Binary files /dev/null and b/cost_per_employee_manufacturing/static/description/assets/screenshots/cost1.png differ diff --git a/cost_per_employee_manufacturing/static/description/assets/screenshots/cost2.png b/cost_per_employee_manufacturing/static/description/assets/screenshots/cost2.png new file mode 100644 index 000000000..06c36a4d5 Binary files /dev/null and b/cost_per_employee_manufacturing/static/description/assets/screenshots/cost2.png differ diff --git a/cost_per_employee_manufacturing/static/description/assets/screenshots/cost3.png b/cost_per_employee_manufacturing/static/description/assets/screenshots/cost3.png new file mode 100644 index 000000000..de94a1637 Binary files /dev/null and b/cost_per_employee_manufacturing/static/description/assets/screenshots/cost3.png differ diff --git a/cost_per_employee_manufacturing/static/description/assets/screenshots/cost4.png b/cost_per_employee_manufacturing/static/description/assets/screenshots/cost4.png new file mode 100644 index 000000000..fd72ea7ff Binary files /dev/null and b/cost_per_employee_manufacturing/static/description/assets/screenshots/cost4.png differ diff --git a/cost_per_employee_manufacturing/static/description/assets/screenshots/cost6.png b/cost_per_employee_manufacturing/static/description/assets/screenshots/cost6.png new file mode 100644 index 000000000..d1d73d19e Binary files /dev/null and b/cost_per_employee_manufacturing/static/description/assets/screenshots/cost6.png differ diff --git a/cost_per_employee_manufacturing/static/description/assets/screenshots/cost_per_employee_01.png b/cost_per_employee_manufacturing/static/description/assets/screenshots/cost_per_employee_01.png new file mode 100644 index 000000000..871866b32 Binary files /dev/null and b/cost_per_employee_manufacturing/static/description/assets/screenshots/cost_per_employee_01.png differ diff --git a/cost_per_employee_manufacturing/static/description/assets/screenshots/hero.gif b/cost_per_employee_manufacturing/static/description/assets/screenshots/hero.gif new file mode 100644 index 000000000..8d09c58eb Binary files /dev/null and b/cost_per_employee_manufacturing/static/description/assets/screenshots/hero.gif differ diff --git a/cost_per_employee_manufacturing/static/description/banner.jpg b/cost_per_employee_manufacturing/static/description/banner.jpg new file mode 100644 index 000000000..f59d1f3c3 Binary files /dev/null and b/cost_per_employee_manufacturing/static/description/banner.jpg differ diff --git a/cost_per_employee_manufacturing/static/description/icon.png b/cost_per_employee_manufacturing/static/description/icon.png new file mode 100644 index 000000000..cf5cd55ef Binary files /dev/null and b/cost_per_employee_manufacturing/static/description/icon.png differ diff --git a/cost_per_employee_manufacturing/static/description/index.html b/cost_per_employee_manufacturing/static/description/index.html new file mode 100644 index 000000000..5ef9c2cf1 --- /dev/null +++ b/cost_per_employee_manufacturing/static/description/index.html @@ -0,0 +1,533 @@ +
+ +
+ +
+
+ Enterprise +
+
+
+ +
+
+
+

Cost per Employees in Manufacturing

+

This module helps to Calculate Cost per Employees in Manufacturing

+ + +
+
+
+
+ + +
+
+ +
+

Explore This + Module

+
+ + + + +
+
+ +
+

Overview +

+
+
+
+ This module helps to Calculate Cost per Employees in Manufacturing +
+
+ + + +
+
+ +
+

Features +

+
+
+
+ +
+ + Get Hourly Cost of employee +
+
+ + Calculate Cost per Employees in Manufacturing +
+
+ + Cost per Employee in Cost Analysis Report +
+ +
+
+ + + +
+
+ +
+

Screenshots +

+
+
+
+ +
+

Cost Per Employee in Manufacturing +

+

Go to Manufacturing Configuration Settings, Enable Work Orders.

+ +

Go to employee module and add Hourly Cost of Employee

+ +

New page in Work Centers

+ +

Choose Employee and corresponding Hourly Cost will display on the new page.Choose current user from employees list

+ +

Create a Manufacturing Order with the corresponding work center.When the operation is completed click on mark as done and cost per employee will be calculated based on this.

+ +

Cost per Employee Display in Cost Analysis report and total cost calculated.

+ +
+ +
+
+ + + +
+
+

Suggested Products

+
+ + +
+
+ + + +
+
+
+

Our Services

+
+
+ +
+
+ +
+
+ Odoo + Customization
+
+ +
+
+ +
+
+ Odoo + Implementation
+
+ +
+
+ +
+
+ Odoo + Support
+
+ + +
+
+ +
+
+ Hire + Odoo + Developer
+
+ +
+
+ +
+
+ Odoo + Integration
+
+ +
+
+ +
+
+ Odoo + Migration
+
+ + +
+
+ +
+
+ Odoo + Consultancy
+
+ +
+
+ +
+
+ Odoo + Implementation
+
+ +
+
+ +
+
+ Odoo + Licensing Consultancy
+
+
+
+ + + +
+
+
+

Our Industries

+
+
+ +
+
+ +
+ Trading +
+

+ Easily procure + and + sell your products

+
+
+ +
+
+ +
+ POS +
+

+ Easy + configuration + and convivial experience

+
+
+ +
+
+ +
+ Education +
+

+ A platform for + educational management

+
+
+ +
+
+ +
+ Manufacturing +
+

+ Plan, track and + schedule your operations

+
+
+ +
+
+ +
+ E-commerce & Website +
+

+ Mobile + friendly, + awe-inspiring product pages

+
+
+ +
+
+ +
+ Service Management +
+

+ Keep track of + services and invoice

+
+
+ +
+
+ +
+ Restaurant +
+

+ Run your bar or + restaurant methodically

+
+
+ +
+
+ +
+ Hotel Management +
+

+ An + all-inclusive + hotel management application

+
+
+ +
+
+ + + + + +
+
+
+

Need Help?

+
+
+
+ + +
+ +
+ + +
+ +
+ +
+ +
+
+ +
+ +
+ +
+
+ +
+
+
+ \ No newline at end of file diff --git a/cost_per_employee_manufacturing/static/src/js/cost_per_employee.js b/cost_per_employee_manufacturing/static/src/js/cost_per_employee.js new file mode 100644 index 000000000..104cc4b80 --- /dev/null +++ b/cost_per_employee_manufacturing/static/src/js/cost_per_employee.js @@ -0,0 +1,21 @@ +odoo.define('cost_per_employee_manufacturing.cost_per_employee', function (require) { + 'use strict'; + + var rpc = require('web.rpc'); + function computeCostPerEmployee() { + /** + *Create function for compute cost per employee + */ + rpc.query({ + model: 'mrp.production', + method: '_compute_cost_per_hour', + args: [[]], + }).then(function (result) { + var costPerEmployee = result.toFixed(2); + // Compute the cost per employee and format the value + $('#cost_per_employee').text(costPerEmployee); + // Update the value inside the template + }); + } + computeCostPerEmployee(); +}); diff --git a/cost_per_employee_manufacturing/views/cost_structure_report_templates.xml b/cost_per_employee_manufacturing/views/cost_structure_report_templates.xml new file mode 100644 index 000000000..9b761030c --- /dev/null +++ b/cost_per_employee_manufacturing/views/cost_structure_report_templates.xml @@ -0,0 +1,35 @@ + + + + + diff --git a/cost_per_employee_manufacturing/views/hr_employee_views.xml b/cost_per_employee_manufacturing/views/hr_employee_views.xml new file mode 100644 index 000000000..41ae9c1da --- /dev/null +++ b/cost_per_employee_manufacturing/views/hr_employee_views.xml @@ -0,0 +1,16 @@ + + + + + + hr.employee.view.form.inherit.cost.per.employee.manufacturing + + + hr.employee + + + + + + + diff --git a/cost_per_employee_manufacturing/views/mrp_production_views.xml b/cost_per_employee_manufacturing/views/mrp_production_views.xml new file mode 100644 index 000000000..3b817e6bf --- /dev/null +++ b/cost_per_employee_manufacturing/views/mrp_production_views.xml @@ -0,0 +1,14 @@ + + + + + mrp.production.view.form.inherit.cost.per.employee.manufacturing + + mrp.production + + + + + + + diff --git a/cost_per_employee_manufacturing/views/mrp_workcenter_views.xml b/cost_per_employee_manufacturing/views/mrp_workcenter_views.xml new file mode 100644 index 000000000..570c1cfee --- /dev/null +++ b/cost_per_employee_manufacturing/views/mrp_workcenter_views.xml @@ -0,0 +1,21 @@ + + + + + mrp.workcenter.view.form.inherit.cost.per.employee.manufacturing + + mrp.workcenter + + + + + + + + + + + + + +