@ -0,0 +1,45 @@ |
|||
.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg |
|||
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html |
|||
:alt: License: AGPL-3 |
|||
|
|||
Job Card Management v16 |
|||
======================= |
|||
Job Card Management |
|||
|
|||
Installation |
|||
============ |
|||
- www.odoo.com/documentation/16.0/setup/install.html |
|||
- Install our custom addon |
|||
|
|||
Configuration |
|||
============= |
|||
|
|||
No additional configurations needed |
|||
|
|||
Credits |
|||
======= |
|||
Developer: Manasa T P v16 @ cybrosys, 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 -*- |
|||
################################################################################### |
|||
# Job Card Management |
|||
# |
|||
# Cybrosys Technologies Pvt. Ltd. |
|||
# Copyright (C) 2025-TODAY Cybrosys Technologies (<https://www.cybrosys.com>). |
|||
# Author: Manasa T P (<https://www.cybrosys.com>) |
|||
# |
|||
# This program is free software: you can modify |
|||
# it under the terms of the GNU Affero General Public License (AGPL) as |
|||
# published by the Free Software Foundation, either version 3 of the |
|||
# License, or (at your option) any later version. |
|||
# |
|||
# This program is distributed in the hope that it will be useful, |
|||
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
|||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|||
# GNU Affero General Public License for more details. |
|||
# |
|||
# You should have received a copy of the GNU Affero General Public License |
|||
# along with this program. If not, see <https://www.gnu.org/licenses/>. |
|||
# |
|||
################################################################################### |
|||
|
|||
from . import models |
|||
@ -0,0 +1,50 @@ |
|||
# -*- coding: utf-8 -*- |
|||
################################################################################### |
|||
# Job Card Management |
|||
# |
|||
# Cybrosys Technologies Pvt. Ltd. |
|||
# Copyright (C) 2025-TODAY Cybrosys Technologies (<https://www.cybrosys.com>). |
|||
# Author: Manasa T P (<https://www.cybrosys.com>) |
|||
# |
|||
# This program is free software: you can modify |
|||
# it under the terms of the GNU Affero General Public License (AGPL) as |
|||
# published by the Free Software Foundation, either version 3 of the |
|||
# License, or (at your option) any later version. |
|||
# |
|||
# This program is distributed in the hope that it will be useful, |
|||
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
|||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|||
# GNU Affero General Public License for more details. |
|||
# |
|||
# You should have received a copy of the GNU Affero General Public License |
|||
# along with this program. If not, see <https://www.gnu.org/licenses/>. |
|||
# |
|||
################################################################################### |
|||
{ |
|||
'name': 'Job Card Management', |
|||
'version': '16.0.1.0.0', |
|||
'category': 'Job Card Management', |
|||
'summary': 'Job Card Management', |
|||
'author': 'Cybrosys Techno Solutions', |
|||
'maintainer': 'Cybrosys Techno Solutions', |
|||
'company': 'Cybrosys Techno Solutions', |
|||
'website': 'https://www.cybrosys.com', |
|||
'description': "Job Card Management", |
|||
'depends': ['hr', 'project', 'purchase', 'account', 'hr_timesheet'], |
|||
'images': ['static/description/banner.png'], |
|||
'data': [ |
|||
'security/ir.model.access.csv', |
|||
'views/job_card_views.xml', |
|||
'views/workshop_views.xml', |
|||
'views/hr_employee_views.xml', |
|||
'views/material_requisition_views.xml', |
|||
'views/job_card_menu_views.xml', |
|||
'data/job_card_data.xml', |
|||
'report/job_card_report.xml', |
|||
'report/cost_sheet.xml' |
|||
], |
|||
'installable': True, |
|||
'application': True, |
|||
'auto_install': False, |
|||
'license': 'AGPL-3', |
|||
} |
|||
@ -0,0 +1,25 @@ |
|||
<?xml version="1.0" encoding="UTF-8" ?> |
|||
<odoo> |
|||
<data> |
|||
<record id="job_card_sequence" model="ir.sequence"> |
|||
<field name="name">Job Card Sequence</field> |
|||
<field name="code">job.card.sequence</field> |
|||
<field name="prefix">JC</field> |
|||
<field eval="1" name="number_next" /> |
|||
<field eval="1" name="number_increment" /> |
|||
<field eval="True" name="use_date_range" /> |
|||
<field name="padding">6</field> |
|||
</record> |
|||
|
|||
<record id="material_requisition_sequence" model="ir.sequence"> |
|||
<field name="name">Material Requisition Sequence</field> |
|||
<field name="code">material.requisition.sequence</field> |
|||
<field name="prefix">PMR</field> |
|||
<field eval="1" name="number_next" /> |
|||
<field eval="1" name="number_increment" /> |
|||
<field eval="True" name="use_date_range" /> |
|||
<field name="padding">6</field> |
|||
</record> |
|||
|
|||
</data> |
|||
</odoo> |
|||
@ -0,0 +1,8 @@ |
|||
## Module <job_card_management> |
|||
|
|||
#### 22.07.2025 |
|||
#### Version 16.0.1.0.0 |
|||
#### ADD |
|||
|
|||
- Initial Commit Job Card Management |
|||
|
|||
@ -0,0 +1,28 @@ |
|||
# -*- coding: utf-8 -*- |
|||
################################################################################### |
|||
# Job Card Management |
|||
# |
|||
# Cybrosys Technologies Pvt. Ltd. |
|||
# Copyright (C) 2025-TODAY Cybrosys Technologies (<https://www.cybrosys.com>). |
|||
# Author: Manasa T P (<https://www.cybrosys.com>) |
|||
# |
|||
# This program is free software: you can modify |
|||
# it under the terms of the GNU Affero General Public License (AGPL) as |
|||
# published by the Free Software Foundation, either version 3 of the |
|||
# License, or (at your option) any later version. |
|||
# |
|||
# This program is distributed in the hope that it will be useful, |
|||
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
|||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|||
# GNU Affero General Public License for more details. |
|||
# |
|||
# You should have received a copy of the GNU Affero General Public License |
|||
# along with this program. If not, see <https://www.gnu.org/licenses/>. |
|||
# |
|||
################################################################################### |
|||
|
|||
from . import workshop |
|||
from . import hr_employee |
|||
from . import job_card |
|||
from . import material_requisition |
|||
from . import purchase_order |
|||
@ -0,0 +1,38 @@ |
|||
# -*- coding: utf-8 -*- |
|||
################################################################################### |
|||
# Job Card Management |
|||
# |
|||
# Cybrosys Technologies Pvt. Ltd. |
|||
# Copyright (C) 2025-TODAY Cybrosys Technologies (<https://www.cybrosys.com>). |
|||
# Author: Manasa T P (<https://www.cybrosys.com>) |
|||
# |
|||
# This program is free software: you can modify |
|||
# it under the terms of the GNU Affero General Public License (AGPL) as |
|||
# published by the Free Software Foundation, either version 3 of the |
|||
# License, or (at your option) any later version. |
|||
# |
|||
# This program is distributed in the hope that it will be useful, |
|||
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
|||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|||
# GNU Affero General Public License for more details. |
|||
# |
|||
# You should have received a copy of the GNU Affero General Public License |
|||
# along with this program. If not, see <https://www.gnu.org/licenses/>. |
|||
# |
|||
################################################################################### |
|||
|
|||
from odoo import models, fields |
|||
|
|||
|
|||
class HrEmployee(models.Model): |
|||
"""Inherit the model hr employee""" |
|||
_inherit = "hr.employee" |
|||
|
|||
workshop_position = fields.Selection([('leader', 'Leader'), ('worker', 'Worker')], string="Workshop Position") |
|||
|
|||
|
|||
class ProjectTask(models.Model): |
|||
_inherit = 'project.task' |
|||
|
|||
job_card_id = fields.Many2one('job.card', string="Job Card") |
|||
|
|||
@ -0,0 +1,603 @@ |
|||
# -*- coding: utf-8 -*- |
|||
################################################################################### |
|||
# Job Card Management |
|||
# |
|||
# Cybrosys Technologies Pvt. Ltd. |
|||
# Copyright (C) 2025-TODAY Cybrosys Technologies (<https://www.cybrosys.com>). |
|||
# Author: Manasa T P (<https://www.cybrosys.com>) |
|||
# |
|||
# This program is free software: you can modify |
|||
# it under the terms of the GNU Affero General Public License (AGPL) as |
|||
# published by the Free Software Foundation, either version 3 of the |
|||
# License, or (at your option) any later version. |
|||
# |
|||
# This program is distributed in the hope that it will be useful, |
|||
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
|||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|||
# GNU Affero General Public License for more details. |
|||
# |
|||
# You should have received a copy of the GNU Affero General Public License |
|||
# along with this program. If not, see <https://www.gnu.org/licenses/>. |
|||
# |
|||
################################################################################### |
|||
from werkzeug import urls |
|||
from odoo import models, fields, api, _ |
|||
from odoo.exceptions import ValidationError |
|||
|
|||
|
|||
class JobCard(models.Model): |
|||
"""Create new model job card""" |
|||
_name = "job.card" |
|||
_description = 'Job Card' |
|||
|
|||
def _default_currency_id(self): |
|||
"""Return the default currency from the user's company.""" |
|||
return self.env.user.company_id.currency_id |
|||
|
|||
card_name = fields.Char( |
|||
string='Job Card Name', |
|||
required=True, |
|||
help='The name or title of the job card.' |
|||
) |
|||
sequence = fields.Char( |
|||
string='Sequence', |
|||
readonly=True, |
|||
help='Unique sequence number for the job card.', |
|||
copy = False |
|||
) |
|||
name = fields.Char( |
|||
string='Reference', |
|||
help='Full reference of the job card, combining sequence and name.', |
|||
copy=False |
|||
) |
|||
|
|||
start_date = fields.Date( |
|||
string='Start Date', |
|||
required=True, |
|||
help='The date when the job card starts.' |
|||
) |
|||
end_date = fields.Date( |
|||
string='End Date', |
|||
help='The date when the job card is expected to end.' |
|||
) |
|||
project_id = fields.Many2one( |
|||
'project.project', |
|||
string='Project', |
|||
required=True, |
|||
help='The project associated with this job card.' |
|||
) |
|||
user_id = fields.Many2one( |
|||
'res.users', |
|||
string='Assigned To', |
|||
required=True, |
|||
help='The user responsible for this job card.' |
|||
) |
|||
|
|||
quality_checklist_ids = fields.Many2many( |
|||
'quality.check.list', |
|||
string='Quality Checklists', |
|||
help='List of quality checklists associated with this job card.' |
|||
) |
|||
deadline = fields.Date( |
|||
string='Deadline', |
|||
help='The deadline for completing the job card.' |
|||
) |
|||
|
|||
team_id = fields.Many2one( |
|||
'workshop.team', |
|||
string='Team', |
|||
help='The team assigned to this job card.' |
|||
) |
|||
currency_id = fields.Many2one( |
|||
'res.currency', |
|||
string='Currency', |
|||
required=True, |
|||
default=lambda self: self._default_currency_id(), |
|||
help='The currency used for financial calculations in this job card.' |
|||
) |
|||
description = fields.Text( |
|||
string='Description', |
|||
help='Detailed description of the job card.' |
|||
) |
|||
|
|||
instruction_ids = fields.One2many( |
|||
'job.card.instruction', |
|||
'job_card_id', |
|||
string='Instructions', |
|||
help='Instructions associated with this job card.' |
|||
) |
|||
instruction_count = fields.Integer( |
|||
string='Instruction Count', |
|||
default=1, |
|||
help='Number of instructions linked to this job card.' |
|||
) |
|||
job_cost_sheet_ids = fields.One2many( |
|||
'job.cost.sheet', |
|||
'job_card_id', |
|||
string='Cost Sheets', |
|||
help='Cost sheets related to this job card.' |
|||
) |
|||
cost_sheet_amount = fields.Monetary( |
|||
string='Total Cost', |
|||
compute='_compute_cost_sheet_amount', |
|||
store=True, |
|||
help='Total cost calculated from the cost sheets.' |
|||
) |
|||
job_cost_sheet_untaxed_amount = fields.Monetary( |
|||
string='Untaxed Cost', |
|||
compute='_compute_cost_sheet_amount', |
|||
store=True, |
|||
help='Total untaxed cost calculated from the cost sheets.' |
|||
) |
|||
job_card_timesheet_ids = fields.One2many( |
|||
'job.card.timesheet', |
|||
'job_card_id', |
|||
string='Timesheets', |
|||
help='Timesheet entries for this job card.' |
|||
) |
|||
state = fields.Selection( |
|||
[ |
|||
('draft', 'Draft'), |
|||
('submit', 'Submitted'), |
|||
('approve', 'Approved'), |
|||
('complete', 'Completed'), |
|||
('invoice', 'Invoiced') |
|||
], |
|||
string='Status', |
|||
default='draft', |
|||
help='Current status of the job card.' |
|||
) |
|||
partner_id = fields.Many2one( |
|||
'res.partner', |
|||
string='Customer', |
|||
required=True, |
|||
help='The customer associated with this job card.' |
|||
) |
|||
email = fields.Char( |
|||
string='Email', |
|||
help='Email address for sharing this job card.' |
|||
) |
|||
total_hours = fields.Float( |
|||
string='Total Working Hours', |
|||
compute="_compute_hour", |
|||
store=True, |
|||
help='Total hours worked on this job card based on timesheets.' |
|||
) |
|||
hours = fields.Float( |
|||
string='Remaining Hours', |
|||
compute="_compute_hour", |
|||
store=True, |
|||
help='Remaining hours to complete the job card (planned hours minus worked hours).' |
|||
) |
|||
planned_hours = fields.Float( |
|||
string='Planned Hours', |
|||
required=True, |
|||
help='Estimated hours required to complete the job card.' |
|||
) |
|||
mpr_count = fields.Integer( |
|||
string='Material Requisition Count', |
|||
compute='compute_count', |
|||
help='Number of material requisitions linked to this job card.' |
|||
) |
|||
progress = fields.Float( |
|||
string='Progress (%)', |
|||
help='Percentage of completion based on total hours worked versus planned hours.' |
|||
) |
|||
invoice_name = fields.Char( |
|||
string='Invoice Reference', |
|||
help='Reference number of the invoice generated for this job card.' |
|||
) |
|||
invoice_count = fields.Integer( |
|||
string='Invoice', |
|||
compute='_compute_invoice_count', |
|||
help='Number of invoices linked to this job card.' |
|||
) |
|||
|
|||
@api.model |
|||
def create(self, vals): |
|||
if not vals.get('sequence'): |
|||
vals['sequence'] = self.env['ir.sequence'].next_by_code( |
|||
'job.card.sequence') or '/' |
|||
job_card = super(JobCard, self).create(vals) |
|||
if job_card.sequence and job_card.card_name: |
|||
job_card.name = f"{job_card.sequence}:{job_card.card_name}" |
|||
return job_card |
|||
|
|||
def action_submit(self): |
|||
"""submit""" |
|||
for rec in self: |
|||
if not rec.instruction_ids.ids: |
|||
raise ValidationError( |
|||
'You cant submit the job card without instruction lines') |
|||
else: |
|||
rec.state = 'submit' |
|||
|
|||
def action_approve(self): |
|||
"""approve, Creating task""" |
|||
for rec in self: |
|||
if not rec.job_cost_sheet_ids.ids: |
|||
raise ValidationError( |
|||
'You cant approve the job card without Cost sheet information') |
|||
else: |
|||
rec.state = 'approve' |
|||
|
|||
rec.env['project.task'].create({ |
|||
'name': rec.name, |
|||
'project_id': rec.project_id.id, |
|||
'user_ids': (4, rec.user_id.id), |
|||
'planned_hours': rec.planned_hours, |
|||
'job_card_id': rec.id |
|||
}) |
|||
|
|||
def action_completed(self): |
|||
""" complete button """ |
|||
for rec in self: |
|||
rec.state = 'complete' |
|||
|
|||
@api.depends('job_card_timesheet_ids.time') |
|||
def _compute_hour(self): |
|||
"""calculate time cost amount""" |
|||
for rec in self: |
|||
rec.cost_sheet_amount = sum( |
|||
rec.job_card_timesheet_ids.mapped('time')) |
|||
rec.total_hours = sum( |
|||
rec.job_card_timesheet_ids.mapped('time')) |
|||
rec.hours = rec.planned_hours - rec.total_hours |
|||
|
|||
@api.depends('job_cost_sheet_ids.amount') |
|||
def _compute_cost_sheet_amount(self): |
|||
"""calculate time cost amount""" |
|||
for rec in self: |
|||
rec.cost_sheet_amount = sum(rec.job_cost_sheet_ids.mapped('amount')) |
|||
rec.job_cost_sheet_untaxed_amount = sum( |
|||
rec.job_cost_sheet_ids.mapped('untaxed_amount')) |
|||
|
|||
@api.constrains('start_date', 'end_date') |
|||
def _date_constrains(self): |
|||
"""Date validation""" |
|||
for rec in self: |
|||
if rec.end_date and rec.start_date > rec.end_date: |
|||
raise ValidationError( |
|||
_('End Date Must be greater Than Start Date...')) |
|||
|
|||
def create_pmr(self): |
|||
"""create purchase material request""" |
|||
self.ensure_one() |
|||
return { |
|||
'type': 'ir.actions.act_window', |
|||
'name': 'PMR', |
|||
'view_mode': 'form', |
|||
'target': 'new', |
|||
'res_model': 'material.requisition', |
|||
'context': { |
|||
'default_job_card_id': self.id |
|||
} |
|||
} |
|||
|
|||
def get_pmr(self): |
|||
"""create purchase material request""" |
|||
self.ensure_one() |
|||
return { |
|||
'type': 'ir.actions.act_window', |
|||
'name': 'PMR', |
|||
'view_mode': 'tree,form', |
|||
'res_model': 'material.requisition', |
|||
'domain': [('job_card_id', '=', self.id)], |
|||
'context': "{'create': False}" |
|||
} |
|||
|
|||
@api.depends('name') |
|||
def compute_count(self): |
|||
"""Compute mr count""" |
|||
for rec in self: |
|||
if rec.env['material.requisition'].search( |
|||
[('job_card_id', '=', rec.id)]): |
|||
rec.mpr_count = rec.env['material.requisition'].search_count( |
|||
[('job_card_id', '=', rec.id)]) |
|||
else: |
|||
rec.mpr_count = 0 |
|||
|
|||
def create_invoice(self): |
|||
"""Create invoice""" |
|||
lines = [] |
|||
for rec in self: |
|||
if rec.job_cost_sheet_ids: |
|||
for job in rec.job_cost_sheet_ids: |
|||
value = (0, 0, { |
|||
'product_id': job.product_id.id, |
|||
'price_unit': job.amount, |
|||
'quantity': job.quantity, |
|||
}) |
|||
lines.append(value) |
|||
invoice_line = { |
|||
'move_type': 'out_invoice', |
|||
'partner_id': rec.partner_id.id, |
|||
'invoice_user_id': rec.env.user.id, |
|||
'invoice_origin': rec.name, |
|||
'ref': rec.name, |
|||
'invoice_line_ids': lines, |
|||
} |
|||
inv = self.env['account.move'].create(invoice_line) |
|||
rec.state = 'invoice' |
|||
rec.invoice_name = inv.name |
|||
|
|||
def _compute_invoice_count(self): |
|||
for rec in self: |
|||
rec.invoice_count = self.env['account.move'].search_count([ |
|||
('ref', '=', rec.name), |
|||
('move_type', '=', 'out_invoice') |
|||
]) |
|||
|
|||
def get_invoice(self): |
|||
"""View the invoice""" |
|||
self.ensure_one() |
|||
return { |
|||
'type': 'ir.actions.act_window', |
|||
'name': 'Invoice', |
|||
'view_mode': 'tree,form', |
|||
'res_model': 'account.move', |
|||
'domain': [('ref', '=', self.name)], |
|||
'context': "{'create': False}" |
|||
} |
|||
|
|||
@api.onchange('planned_hours', 'total_hours') |
|||
def _onchange_progress(self): |
|||
"""calculate progress""" |
|||
if self.planned_hours and self.total_hours: |
|||
self.progress = round(100.0 * self.total_hours / self.planned_hours, |
|||
2) |
|||
else: |
|||
self.progress = 0.0 |
|||
|
|||
def share(self): |
|||
""" when click on share button send mail to partner """ |
|||
for rec in self: |
|||
base_url = self.env['ir.config_parameter'].sudo().get_param( |
|||
'web.base.url') |
|||
Urls = urls.url_join(base_url, |
|||
'web#id=%(id)s&model=job.card&view_type=form' % { |
|||
'id': self.id}) |
|||
mail_content = _('Hi %s,<br>' |
|||
'Job Card' |
|||
'<div style = "text-align: center; margin-top: 16px;"><a href = "%s"' |
|||
'style = "padding: 5px 10px; font-size: 12px; line-height: 18px; color: #FFFFFF; ' |
|||
'border-color:#875A7B;text-decoration: none; display: inline-block; ' |
|||
'margin-bottom: 0px; font-weight: 400;text-align: center; vertical-align: middle; ' |
|||
'cursor: pointer; white-space: nowrap; background-image: none; ' |
|||
'background-color: #875A7B; border: 1px solid #875A7B; border-radius:3px;">' |
|||
'View %s</a></div>' |
|||
) % \ |
|||
(rec.partner_id.name, Urls, rec.name) |
|||
main_content = { |
|||
'subject': _('Job Card: %s') % self.name, |
|||
'author_id': self.env.user.partner_id.id, |
|||
'body_html': mail_content, |
|||
'email_to': rec.partner_id.email |
|||
} |
|||
|
|||
mail_id = self.env['mail.mail'].create(main_content) |
|||
mail_id.mail_message_id.body = mail_content |
|||
mail_id.send() |
|||
|
|||
|
|||
class JobCardInstruction(models.Model): |
|||
_name = "job.card.instruction" |
|||
_description = 'Job Cards Instruction' |
|||
_rec_name = 'instruction' |
|||
|
|||
@api.depends('job_card_id') |
|||
def _compute_name(self): |
|||
"""compute instruction name""" |
|||
for rec in self: |
|||
name = rec.job_card_id.name + '/' + str( |
|||
rec.job_card_id.instruction_count) |
|||
if not rec.name: |
|||
rec.job_card_id.instruction_count += 1 |
|||
rec.name = name |
|||
|
|||
job_card_id = fields.Many2one( |
|||
'job.card', |
|||
string='Job Card', |
|||
help='The job card this instruction belongs to.' |
|||
) |
|||
name = fields.Char( |
|||
string='Instruction Reference', |
|||
compute='_compute_name', |
|||
store=True, |
|||
help='Unique reference for the instruction.' |
|||
) |
|||
start_date = fields.Datetime( |
|||
string='Start Date', |
|||
required=True, |
|||
help='The start date and time for this instruction.' |
|||
) |
|||
end_date = fields.Datetime( |
|||
string='End Date', |
|||
help='The end date and time for this instruction.' |
|||
) |
|||
user_id = fields.Many2one( |
|||
'res.users', |
|||
string='Assigned To', |
|||
required=True, |
|||
help='The user responsible for executing this instruction.' |
|||
) |
|||
instruction = fields.Char( |
|||
string='Instruction', |
|||
required=True, |
|||
help='Details of the instruction to be performed.' |
|||
) |
|||
notes = fields.Char( |
|||
string='Notes', |
|||
help='Additional notes or comments for this instruction.' |
|||
) |
|||
state = fields.Selection( |
|||
[ |
|||
('to_do', 'To Do'), |
|||
('in_progress', 'In Progress'), |
|||
('done', 'Done') |
|||
], |
|||
string='Status', |
|||
default='to_do', |
|||
help='Current status of the instruction.' |
|||
) |
|||
|
|||
@api.constrains('start_date', 'end_date') |
|||
def _date_constrains(self): |
|||
"""Date validation""" |
|||
for rec in self: |
|||
if rec.end_date and rec.start_date > rec.end_date: |
|||
raise ValidationError( |
|||
_('End Date Must be greater Than Start Date in Job Card Instruction..')) |
|||
|
|||
|
|||
class CostSheet(models.Model): |
|||
_name = 'job.cost.sheet' |
|||
_description = 'Cost Sheet' |
|||
|
|||
type = fields.Selection( |
|||
[ |
|||
('material', 'Material'), |
|||
('labour', 'Labour'), |
|||
('overhead', 'Overhead') |
|||
], |
|||
string='Cost Type', |
|||
required=True, |
|||
help='The type of cost (material, labour, or overhead).' |
|||
) |
|||
job_card_id = fields.Many2one( |
|||
'job.card', |
|||
string='Job Card', |
|||
help='The job card associated with this cost sheet.' |
|||
) |
|||
product_id = fields.Many2one( |
|||
'product.product', |
|||
string='Product', |
|||
required=True, |
|||
help='The product or service related to this cost.' |
|||
) |
|||
quantity = fields.Float( |
|||
string='Quantity', |
|||
default=1, |
|||
help='The quantity of the product or service.' |
|||
) |
|||
unit_price = fields.Float( |
|||
string='Unit Price', |
|||
help='The price per unit of the product or service.' |
|||
) |
|||
discount = fields.Float( |
|||
string='Discount (%)', |
|||
help='Discount percentage applied to the cost.' |
|||
) |
|||
tax = fields.Many2one( |
|||
'account.tax', |
|||
string='Tax', |
|||
help='Tax applied to the cost.' |
|||
) |
|||
amount = fields.Float( |
|||
string='Total Amount', |
|||
help='Total amount including taxes after applying discount.' |
|||
) |
|||
untaxed_amount = fields.Float( |
|||
string='Untaxed Amount', |
|||
help='Total amount excluding taxes after applying discount.' |
|||
) |
|||
|
|||
@api.onchange('product_id', 'discount', 'tax') |
|||
def _onchange_product_id(self): |
|||
"""calculate the amount""" |
|||
for rec in self: |
|||
rec.unit_price = rec.product_id.list_price |
|||
rec.amount = rec.unit_price * rec.quantity |
|||
rec.untaxed_amount = rec.unit_price * rec.quantity |
|||
if rec.tax: |
|||
taxes = rec.tax.compute_all(**rec._prepare_compute_all_values()) |
|||
rec.amount = taxes['total_included'] |
|||
rec.untaxed_amount = taxes['total_excluded'] |
|||
if rec.discount: |
|||
rec.amount = rec.amount - (rec.amount * rec.discount / 100) |
|||
rec.untaxed_amount = rec.untaxed_amount - ( |
|||
rec.untaxed_amount * rec.discount / 100) |
|||
|
|||
def _prepare_compute_all_values(self): |
|||
"""prepare values""" |
|||
self.ensure_one() |
|||
return { |
|||
'price_unit': self.unit_price, |
|||
'currency': self.job_card_id.currency_id, |
|||
'quantity': self.quantity, |
|||
'product': self.product_id, |
|||
'partner': self.job_card_id.user_id.partner_id, |
|||
} |
|||
|
|||
|
|||
class JobCardTimesheet(models.Model): |
|||
_name = 'job.card.timesheet' |
|||
_description = 'Job Card TimeSheet' |
|||
|
|||
job_card_id = fields.Many2one( |
|||
'job.card', |
|||
string='Job Card', |
|||
default=lambda self: self._default_job_card_id(), |
|||
help='The job card this timesheet entry belongs to.' |
|||
) |
|||
name = fields.Char( |
|||
string='Timesheet Name', |
|||
store=True, |
|||
help='Name of the timesheet entry, derived from the instruction.' |
|||
) |
|||
instruction_id = fields.Many2one( |
|||
'job.card.instruction', |
|||
string='Instruction', |
|||
required=True, |
|||
help='The instruction associated with this timesheet entry.' |
|||
) |
|||
description = fields.Char( |
|||
string='Description', |
|||
help='Description of the work performed in this timesheet entry.' |
|||
) |
|||
leader_id = fields.Many2one( |
|||
'hr.employee', |
|||
string='Team Leader', |
|||
required=True, |
|||
domain=[('workshop_position', '=', 'leader')], |
|||
help='The team leader responsible for this timesheet entry.' |
|||
) |
|||
worker_id = fields.Many2one( |
|||
'hr.employee', |
|||
string='Worker', |
|||
required=True, |
|||
help='The worker who performed the task in this timesheet entry.' |
|||
) |
|||
date = fields.Date( |
|||
string='Date', |
|||
default=fields.Date.today(), |
|||
help='The date when the work was performed.' |
|||
) |
|||
time = fields.Float( |
|||
string='Hours Worked', |
|||
help='Number of hours worked for this timesheet entry.' |
|||
) |
|||
|
|||
@api.onchange('instruction_id') |
|||
def _onchange_instruction_id(self): |
|||
""" Add instruction name """ |
|||
for rec in self: |
|||
if rec.instruction_id: |
|||
rec.name = rec.instruction_id.name + ':' + rec.instruction_id.instruction |
|||
|
|||
@api.model |
|||
def create(self, vals_list): |
|||
""" create record in account analytic line model """ |
|||
res = super(JobCardTimesheet, self).create(vals_list) |
|||
job_card = self.env['job.card'].browse(vals_list['job_card_id']) |
|||
task = self.env['project.task'].search( |
|||
[('job_card_id', '=', job_card.id)]) |
|||
self.env['account.analytic.line'].create({ |
|||
'date': vals_list['date'], |
|||
'project_id': job_card.project_id.id, |
|||
'employee_id': vals_list['worker_id'], |
|||
'name': vals_list['description'], |
|||
'unit_amount': vals_list['time'], |
|||
'task_id': task.id |
|||
}) |
|||
return res |
|||
@ -0,0 +1,175 @@ |
|||
# -*- coding: utf-8 -*- |
|||
################################################################################### |
|||
# Job Card Management |
|||
# |
|||
# Cybrosys Technologies Pvt. Ltd. |
|||
# Copyright (C) 2025-TODAY Cybrosys Technologies (<https://www.cybrosys.com>). |
|||
# Author: Manasa T P (<https://www.cybrosys.com>) |
|||
# |
|||
# This program is free software: you can modify |
|||
# it under the terms of the GNU Affero General Public License (AGPL) as |
|||
# published by the Free Software Foundation, either version 3 of the |
|||
# License, or (at your option) any later version. |
|||
# |
|||
# This program is distributed in the hope that it will be useful, |
|||
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
|||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|||
# GNU Affero General Public License for more details. |
|||
# |
|||
# You should have received a copy of the GNU Affero General Public License |
|||
# along with this program. If not, see <https://www.gnu.org/licenses/>. |
|||
# |
|||
############################################################################### |
|||
from odoo.exceptions import ValidationError |
|||
|
|||
from odoo import models, fields, api |
|||
|
|||
|
|||
class MaterialRequisition(models.Model): |
|||
"""Create new model material requisition""" |
|||
_name = "material.requisition" |
|||
_description = "Material Requisition" |
|||
|
|||
name = fields.Char( |
|||
string='Requisition Number', |
|||
help='Unique reference number for the material requisition, automatically generated.' |
|||
) |
|||
employee_id = fields.Many2one( |
|||
comodel_name='hr.employee', |
|||
string='Requested By', |
|||
required=True, |
|||
help='The employee who requested this material requisition.' |
|||
) |
|||
department_id = fields.Many2one( |
|||
comodel_name='hr.department', |
|||
string='Department', |
|||
required=True, |
|||
help='The department requesting the materials.' |
|||
) |
|||
date = fields.Date( |
|||
string='Requisition Date', |
|||
default=fields.Date.today(), |
|||
help='The date when the material requisition was created.' |
|||
) |
|||
job_card_id = fields.Many2one( |
|||
comodel_name='job.card', |
|||
string='Job Card', |
|||
help='The job card associated with this material requisition.' |
|||
) |
|||
line_ids = fields.One2many( |
|||
comodel_name='material.requisition.line', |
|||
inverse_name='line_id', |
|||
string='Requisition Lines', |
|||
help='List of material items requested in this requisition.' |
|||
) |
|||
state = fields.Selection( |
|||
selection=[ |
|||
('draft', 'Draft'), |
|||
('submit', 'Submitted'), |
|||
('approve', 'Approved'), |
|||
('po', 'Purchase Order') |
|||
], |
|||
string='Status', |
|||
default='draft', |
|||
help='Current status of the material requisition.' |
|||
) |
|||
purchase_order_count = fields.Integer( |
|||
string="Purchase Orders", |
|||
compute="_compute_purchase_order_count" |
|||
) |
|||
|
|||
@api.model |
|||
def create(self, vals_list): |
|||
"""create sequence""" |
|||
sequence_code = 'material.requisition.sequence' |
|||
vals_list['name'] = self.env['ir.sequence'].next_by_code(sequence_code) |
|||
res = super(MaterialRequisition, self).create(vals_list) |
|||
return res |
|||
|
|||
def action_submit(self): |
|||
"""submit button""" |
|||
for rec in self: |
|||
if not rec.line_ids.ids: |
|||
raise ValidationError( |
|||
'You cant submit the Material Requisition without requisition lines') |
|||
else: |
|||
rec.state = 'submit' |
|||
|
|||
def action_approve(self): |
|||
"""approve button""" |
|||
for rec in self: |
|||
rec.state = 'approve' |
|||
|
|||
def create_purchase_order(self): |
|||
"""create purchase order""" |
|||
for rec in self: |
|||
lines = [] |
|||
for line in rec.line_ids: |
|||
value = (0, 0, { |
|||
'name': line.product_id.name, |
|||
'product_id': line.product_id.id, |
|||
'price_unit': line.product_id.standard_price, |
|||
'product_qty': line.quantity |
|||
}) |
|||
lines.append(value) |
|||
self.env['purchase.order'].create({ |
|||
'partner_id': line.vendor_id.id, |
|||
'order_line': lines, |
|||
'material_requisition_id': rec.id, |
|||
}) |
|||
rec.state = 'po' |
|||
|
|||
def _compute_purchase_order_count(self): |
|||
for rec in self: |
|||
rec.purchase_order_count = self.env[ |
|||
'purchase.order'].search_count([ |
|||
('material_requisition_id', '=', rec.id) |
|||
]) |
|||
|
|||
def action_view_purchase_orders(self): |
|||
self.ensure_one() |
|||
return { |
|||
'name': 'Purchase Orders', |
|||
'type': 'ir.actions.act_window', |
|||
'res_model': 'purchase.order', |
|||
'view_mode': 'tree,form', |
|||
'domain': [('material_requisition_id', '=', self.id)], |
|||
'context': {'create': False} |
|||
} |
|||
|
|||
|
|||
class MaterialRequisitionLine(models.Model): |
|||
_name = "material.requisition.line" |
|||
_description = 'Material Requisition Line' |
|||
|
|||
line_id = fields.Many2one( |
|||
comodel_name='material.requisition', |
|||
string='Material Requisition', |
|||
help='The material requisition this line belongs to.' |
|||
) |
|||
name = fields.Char( |
|||
string='Description', |
|||
help='A brief description of the requisition line.' |
|||
) |
|||
product_id = fields.Many2one( |
|||
comodel_name='product.product', |
|||
string='Product', |
|||
required=True, |
|||
help='The product or material being requested.' |
|||
) |
|||
quantity = fields.Float( |
|||
string='Quantity', |
|||
required=True, |
|||
help='The quantity of the product requested.' |
|||
) |
|||
uom = fields.Many2one( |
|||
comodel_name='uom.uom', |
|||
string='Unit of Measure', |
|||
help='The unit of measure for the requested product.' |
|||
) |
|||
vendor_id = fields.Many2one( |
|||
comodel_name='res.partner', |
|||
string='Vendor', |
|||
required=True, |
|||
help='The vendor from whom the product will be purchased.' |
|||
) |
|||
@ -0,0 +1,30 @@ |
|||
# -*- coding: utf-8 -*- |
|||
################################################################################### |
|||
# Job Card Management |
|||
# |
|||
# Cybrosys Technologies Pvt. Ltd. |
|||
# Copyright (C) 2025-TODAY Cybrosys Technologies (<https://www.cybrosys.com>). |
|||
# Author: Manasa T P (<https://www.cybrosys.com>) |
|||
# |
|||
# This program is free software: you can modify |
|||
# it under the terms of the GNU Affero General Public License (AGPL) as |
|||
# published by the Free Software Foundation, either version 3 of the |
|||
# License, or (at your option) any later version. |
|||
# |
|||
# This program is distributed in the hope that it will be useful, |
|||
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
|||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|||
# GNU Affero General Public License for more details. |
|||
# |
|||
# You should have received a copy of the GNU Affero General Public License |
|||
# along with this program. If not, see <https://www.gnu.org/licenses/>. |
|||
# |
|||
############################################################################### |
|||
|
|||
from odoo import models, fields |
|||
|
|||
class PurchaseOrder(models.Model): |
|||
"""Inherit the model purchase order""" |
|||
_inherit = 'purchase.order' |
|||
|
|||
material_requisition_id = fields.Many2one('material.requisition', string="Material Requisition") |
|||
@ -0,0 +1,55 @@ |
|||
# -*- coding: utf-8 -*- |
|||
################################################################################### |
|||
# Job Card Management |
|||
# |
|||
# Cybrosys Technologies Pvt. Ltd. |
|||
# Copyright (C) 2025-TODAY Cybrosys Technologies (<https://www.cybrosys.com>). |
|||
# Author: Manasa T P (<https://www.cybrosys.com>) |
|||
# |
|||
# This program is free software: you can modify |
|||
# it under the terms of the GNU Affero General Public License (AGPL) as |
|||
# published by the Free Software Foundation, either version 3 of the |
|||
# License, or (at your option) any later version. |
|||
# |
|||
# This program is distributed in the hope that it will be useful, |
|||
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
|||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|||
# GNU Affero General Public License for more details. |
|||
# |
|||
# You should have received a copy of the GNU Affero General Public License |
|||
# along with this program. If not, see <https://www.gnu.org/licenses/>. |
|||
# |
|||
################################################################################### |
|||
|
|||
from odoo import models, fields |
|||
|
|||
|
|||
class WorkshopTeam(models.Model): |
|||
_name = 'workshop.team' |
|||
_description = 'Workshop Team' |
|||
|
|||
name = fields.Char( |
|||
string='Team Name', |
|||
required=True, |
|||
help='The name of the workshop team.' |
|||
) |
|||
active = fields.Boolean( |
|||
string='Active', |
|||
default=True, |
|||
help='Indicates whether the workshop team is active and available for assignment.' |
|||
) |
|||
|
|||
|
|||
class QualityCheckList(models.Model): |
|||
_name = 'quality.check.list' |
|||
_description = 'Quality Check List' |
|||
|
|||
name = fields.Char( |
|||
string='Checklist Name', |
|||
required=True, |
|||
help='The name or title of the quality checklist.' |
|||
) |
|||
description = fields.Text( |
|||
string='Description', |
|||
help='Detailed description of the quality checklist and its purpose.' |
|||
) |
|||
@ -0,0 +1,114 @@ |
|||
<?xml version="1.0" encoding="UTF-8" ?> |
|||
<odoo> |
|||
<data> |
|||
<record id="report_cost" model="ir.actions.report"> |
|||
<field name="name">Cost Sheet</field> |
|||
<field name="model">job.card</field> |
|||
<field name="report_type">qweb-pdf</field> |
|||
<field name="report_name">job_card_management.report_cost_sheet</field> |
|||
<field name="report_file">job_card_management.report_cost_sheet</field> |
|||
<field name="print_report_name">'Cost Sheet - %s' % object.name |
|||
</field> |
|||
<field name="binding_model_id" ref="model_job_card"/> |
|||
<field name="binding_type">report</field> |
|||
</record> |
|||
<template id="report_cost_sheet"> |
|||
<t t-call="web.html_container"> |
|||
<t t-foreach="docs" t-as="doc"> |
|||
<t t-call="web.external_layout"> |
|||
<center> |
|||
<b> |
|||
<h3>Cost Sheet</h3> |
|||
</b> |
|||
</center> |
|||
<b> |
|||
<h3> |
|||
<t t-esc="doc.name"/> |
|||
</h3> |
|||
</b> |
|||
<br/> |
|||
<table class="table"> |
|||
<tbody class="order_body"> |
|||
<tr> |
|||
<td> |
|||
<strong>Customer:</strong> |
|||
</td> |
|||
<td> |
|||
<span t-field="doc.partner_id.name"/> |
|||
</td> |
|||
<td> |
|||
<strong>Project:</strong> |
|||
</td> |
|||
<td> |
|||
<span t-field="doc.project_id.name"/> |
|||
</td> |
|||
</tr> |
|||
<tr> |
|||
<td> |
|||
<strong>Start Date:</strong> |
|||
</td> |
|||
<td> |
|||
<span t-field="doc.start_date"/> |
|||
</td> |
|||
<td> |
|||
<strong>End Date:</strong> |
|||
</td> |
|||
<td> |
|||
<span t-field="doc.end_date"/> |
|||
</td> |
|||
</tr> |
|||
|
|||
</tbody> |
|||
</table> |
|||
|
|||
<br/> |
|||
<div> |
|||
<strong> |
|||
<h3>Cost Sheet</h3> |
|||
</strong> |
|||
</div> |
|||
<table class="table o_main_table"> |
|||
<thead style="display: table-row-group"> |
|||
<tr> |
|||
<th class="text-left">Type</th> |
|||
<th class="text-left">Product</th> |
|||
<th class="text-left">Quantity</th> |
|||
<th class="text-left">Unit Price</th> |
|||
<th class="text-left">Discount</th> |
|||
<th class="text-left">Tax</th> |
|||
<th class="text-left">Total Amount</th> |
|||
|
|||
</tr> |
|||
</thead> |
|||
<tbody> |
|||
<tr t-att-class="'bg-200 font-weight-bold'" |
|||
t-foreach="doc.job_cost_sheet_ids" |
|||
t-as="cost"> |
|||
<td> |
|||
<span t-field="cost.type"/> |
|||
</td> |
|||
<td t-esc="cost.product_id.name or '' "/> |
|||
<td t-esc="cost.quantity or '' "/> |
|||
<td t-esc="cost.unit_price or '' "/> |
|||
<td t-esc="cost.discount or '' "/> |
|||
<td t-esc="cost.tax.name or '' "/> |
|||
<td t-esc="cost.amount or '' "/> |
|||
</tr> |
|||
</tbody> |
|||
</table> |
|||
<table class="table"> |
|||
<tbody> |
|||
<tr> |
|||
<td>Total Amount</td> |
|||
<td t-esc="doc.cost_sheet_amount"/> |
|||
<td>Total Untaxed Amount</td> |
|||
<td t-esc="doc.job_cost_sheet_untaxed_amount"/> |
|||
</tr> |
|||
</tbody> |
|||
</table> |
|||
</t> |
|||
</t> |
|||
</t> |
|||
</template> |
|||
</data> |
|||
</odoo> |
|||
@ -0,0 +1,197 @@ |
|||
<?xml version="1.0" encoding="UTF-8" ?> |
|||
<odoo> |
|||
<data> |
|||
<record id="report_job" model="ir.actions.report"> |
|||
<field name="name">Job Card Report</field> |
|||
<field name="model">job.card</field> |
|||
<field name="report_type">qweb-pdf</field> |
|||
<field name="report_name">job_card_management.report_job_card</field> |
|||
<field name="report_file">job_card_management.report_job_card</field> |
|||
<field name="print_report_name">'Job card - %s' % object.name |
|||
</field> |
|||
<field name="binding_model_id" ref="model_job_card"/> |
|||
<field name="binding_type">report</field> |
|||
</record> |
|||
<template id="report_job_card"> |
|||
<t t-call="web.html_container"> |
|||
<t t-foreach="docs" t-as="doc"> |
|||
<t t-call="web.external_layout"> |
|||
<center> |
|||
<b> |
|||
<h3>Job Card</h3> |
|||
</b> |
|||
</center> |
|||
<b> |
|||
<h3> |
|||
<t t-esc="doc.name"/> |
|||
</h3> |
|||
</b> |
|||
<br/> |
|||
|
|||
<table class="table"> |
|||
<tbody class="order_body"> |
|||
<tr> |
|||
<td> |
|||
<strong>Customer:</strong> |
|||
</td> |
|||
<td> |
|||
<span t-field="doc.partner_id.name"/> |
|||
</td> |
|||
<td> |
|||
<strong>Project:</strong> |
|||
</td> |
|||
<td> |
|||
<span t-field="doc.project_id.name"/> |
|||
</td> |
|||
</tr> |
|||
<tr> |
|||
<td> |
|||
<strong>Start Date:</strong> |
|||
</td> |
|||
<td> |
|||
<span t-field="doc.start_date"/> |
|||
</td> |
|||
<td> |
|||
<strong>End Date:</strong> |
|||
</td> |
|||
<td> |
|||
<span t-field="doc.end_date"/> |
|||
</td> |
|||
</tr> |
|||
|
|||
<tr> |
|||
<td> |
|||
<strong>Assign To:</strong> |
|||
</td> |
|||
<td> |
|||
<span t-field="doc.user_id.name"/> |
|||
</td> |
|||
<td> |
|||
<strong>Workshop Team:</strong> |
|||
</td> |
|||
<td> |
|||
<span t-field="doc.team_id"/> |
|||
</td> |
|||
</tr> |
|||
</tbody> |
|||
</table> |
|||
<br/> |
|||
<div> |
|||
<strong> |
|||
<h3>Instruction</h3> |
|||
</strong> |
|||
</div> |
|||
<table class="table o_main_table"> |
|||
<thead style="display: table-row-group"> |
|||
<tr> |
|||
<th class="text-left">Name</th> |
|||
<th class="text-left">Start Date</th> |
|||
<th class="text-left">End Date</th> |
|||
<th class="text-left">Assigned To</th> |
|||
<th class="text-left">Instruction</th> |
|||
<th class="text-left">Notes</th> |
|||
<th class="text-left">Status</th> |
|||
</tr> |
|||
</thead> |
|||
<tbody> |
|||
<tr t-att-class="'bg-200 font-weight-bold'" |
|||
t-foreach="doc.instruction_ids" |
|||
t-as="instruction"> |
|||
<td t-esc="instruction.name"/> |
|||
<td t-esc="instruction.start_date"/> |
|||
<td t-esc="instruction.end_date or ''"/> |
|||
<td t-esc="instruction.user_id.name"/> |
|||
<td t-esc="instruction.instruction"/> |
|||
<td t-esc="instruction.notes or '' "/> |
|||
<td> |
|||
<span t-field="instruction.state"/> |
|||
</td> |
|||
</tr> |
|||
</tbody> |
|||
</table> |
|||
<br/> |
|||
<div> |
|||
<strong> |
|||
<h3>Cost Sheet</h3> |
|||
</strong> |
|||
</div> |
|||
<table class="table o_main_table"> |
|||
<thead style="display: table-row-group"> |
|||
<tr> |
|||
<th class="text-left">Type</th> |
|||
<th class="text-left">Product</th> |
|||
<th class="text-left">Quantity</th> |
|||
<th class="text-left">Unit Price</th> |
|||
<th class="text-left">Discount</th> |
|||
<th class="text-left">Tax</th> |
|||
<th class="text-left">Total Amount</th> |
|||
|
|||
</tr> |
|||
</thead> |
|||
<tbody> |
|||
<tr t-att-class="'bg-200 font-weight-bold'" |
|||
t-foreach="doc.job_cost_sheet_ids" |
|||
t-as="cost"> |
|||
<td> |
|||
<span t-field="cost.type"/> |
|||
</td> |
|||
<td t-esc="cost.product_id.name or '' "/> |
|||
<td t-esc="cost.quantity or '' "/> |
|||
<td t-esc="cost.unit_price or '' "/> |
|||
<td t-esc="cost.discount or '' "/> |
|||
<td t-esc="cost.tax.name or '' "/> |
|||
<td t-esc="cost.amount or '' "/> |
|||
</tr> |
|||
</tbody> |
|||
</table> |
|||
<table class="table"> |
|||
<tbody> |
|||
<tr> |
|||
<td>Total Amount</td> |
|||
<td t-esc="doc.cost_sheet_amount"/> |
|||
<td>Total Untaxed Amount</td> |
|||
<td t-esc="doc.job_cost_sheet_untaxed_amount"/> |
|||
</tr> |
|||
</tbody> |
|||
</table> |
|||
<div> |
|||
<strong> |
|||
<h3>Time Sheet</h3> |
|||
</strong> |
|||
</div> |
|||
<table class="table o_main_table"> |
|||
<thead style="display: table-row-group"> |
|||
<tr> |
|||
<th class="text-left">Instruction Name</th> |
|||
<th class="text-left">Description</th> |
|||
<th class="text-left">Leader</th> |
|||
<th class="text-left">Worker</th> |
|||
<th class="text-left">Date</th> |
|||
<th class="text-left">time</th> |
|||
|
|||
</tr> |
|||
</thead> |
|||
<tbody> |
|||
<tr t-att-class="'bg-200 font-weight-bold'" |
|||
t-foreach="doc.job_card_timesheet_ids" |
|||
t-as="time"> |
|||
<td t-esc="time.name or '' "/> |
|||
<td t-esc="time.description or '' "/> |
|||
<td t-esc="time.leader_id.name or '' "/> |
|||
<td t-esc="time.worker_id.name or '' "/> |
|||
<td t-esc="time.date or '' "/> |
|||
<td t-esc="time.time or '' "/> |
|||
</tr> |
|||
<tr> |
|||
<td>Total working Hour to close</td> |
|||
<td>In Hours:</td> |
|||
<td t-esc="doc.hours"/> |
|||
</tr> |
|||
</tbody> |
|||
</table> |
|||
</t> |
|||
</t> |
|||
</t> |
|||
</template> |
|||
</data> |
|||
</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: 78 KiB |
|
After Width: | Height: | Size: 84 KiB |
|
After Width: | Height: | Size: 83 KiB |
|
After Width: | Height: | Size: 81 KiB |
|
After Width: | Height: | Size: 82 KiB |
|
After Width: | Height: | Size: 70 KiB |
|
After Width: | Height: | Size: 70 KiB |
|
After Width: | Height: | Size: 90 KiB |
|
After Width: | Height: | Size: 78 KiB |
|
After Width: | Height: | Size: 86 KiB |
|
After Width: | Height: | Size: 28 KiB |
|
After Width: | Height: | Size: 31 KiB |
|
After Width: | Height: | Size: 66 KiB |
|
After Width: | Height: | Size: 60 KiB |
|
After Width: | Height: | Size: 93 KiB |
|
After Width: | Height: | Size: 86 KiB |
|
After Width: | Height: | Size: 88 KiB |
|
After Width: | Height: | Size: 82 KiB |
|
After Width: | Height: | Size: 90 KiB |
|
After Width: | Height: | Size: 90 KiB |
|
After Width: | Height: | Size: 83 KiB |
|
After Width: | Height: | Size: 65 KiB |
|
After Width: | Height: | Size: 80 KiB |
|
After Width: | Height: | Size: 428 KiB |
|
After Width: | Height: | Size: 69 KiB |
|
After Width: | Height: | Size: 14 KiB |
@ -0,0 +1,748 @@ |
|||
<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" width="42" height="42" |
|||
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> |
|||
</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;"> |
|||
Job Card Management</h1> |
|||
<p style="color:#FFFFFF; padding: 8px 15px; text-align: center; font-size: 24px;"> |
|||
A Module For Managing All Job orders |
|||
</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 you to manage all job orders Workshops, Factory, Any |
|||
Technical, Repair Shops, Industry.It is a used to manage all aspects of |
|||
your job card operations. |
|||
</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: 30px; margin-bottom: 30px"> |
|||
<img src="assets/misc/check-box.png" class="mr-2"/> |
|||
<span style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">Configure Job cards</span> |
|||
</div> |
|||
<div class="d-flex align-items-center" |
|||
style="margin-top: 40px; margin-bottom: 40px"> |
|||
<img src="assets/misc/check-box.png" class="mr-2"/> |
|||
<span style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">Configure the workshop team</span> |
|||
</div> |
|||
<div class="d-flex align-items-center" |
|||
style="margin-top: 40px; margin-bottom: 40px"> |
|||
<img src="assets/misc/check-box.png" class="mr-2"/> |
|||
<span style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">Configure workshop positions</span> |
|||
</div> |
|||
<div class="d-flex align-items-center" |
|||
style="margin-top: 40px; margin-bottom: 40px"> |
|||
<img src="assets/misc/check-box.png" class="mr-2"/> |
|||
<span style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">Manage project and task</span> |
|||
</div> |
|||
<div class="d-flex align-items-center" |
|||
style="margin-top: 40px; margin-bottom: 40px"> |
|||
<img src="assets/misc/check-box.png" class="mr-2"/> |
|||
<span style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">Product material request</span> |
|||
</div> |
|||
<div class="d-flex align-items-center" |
|||
style="margin-top: 40px; margin-bottom: 40px"> |
|||
<img src="assets/misc/check-box.png" class="mr-2"/> |
|||
<span style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">Job Card Reports</span> |
|||
</div> |
|||
<div class="d-flex align-items-center" |
|||
style="margin-top: 40px; margin-bottom: 40px"> |
|||
<img src="assets/misc/check-box.png" class="mr-2"/> |
|||
<span style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">Cash Sheet report</span> |
|||
</div> |
|||
<div class="d-flex align-items-center" |
|||
style="margin-top: 30px; margin-bottom: 30px"> |
|||
<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> |
|||
</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;"> |
|||
Job Card</h3> |
|||
|
|||
<p>After installation, navigate to the Job Card app and create job cards. |
|||
</p> |
|||
|
|||
<img src="assets/screenshots/1.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;"> |
|||
Instructions</h3> |
|||
<p>Add the instruction lines. |
|||
</p> |
|||
<img src="assets/screenshots/2.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;"> |
|||
Cost Sheet</h3> |
|||
<p> |
|||
Add the cost sheet for this job card. |
|||
</p> |
|||
<img src="assets/screenshots/3.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;"> |
|||
Job Card Timesheet</h3> |
|||
<p>To submit and approve those job card we have some buttons. After |
|||
approve this job card we can create the timesheet for this job |
|||
card.</p> |
|||
<img src="assets/screenshots/4.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;"> |
|||
Timesheet</h3> |
|||
<p> |
|||
Create the timesheet, where you can also view the total hours worked and the progress. |
|||
</p> |
|||
<img src="assets/screenshots/5.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;"> |
|||
Extra information</h3> |
|||
<p> |
|||
Customer details and the pending work hours. |
|||
</p> |
|||
<img src="assets/screenshots/6.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;"> |
|||
Purchase Material Request</h3> |
|||
<p> |
|||
Create the PMR by clicking this button |
|||
</p> |
|||
<img src="assets/screenshots/7.png" class="img-thumbnail"> |
|||
<img src="assets/screenshots/8.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;"> |
|||
Create Invoice</h3> |
|||
<p> |
|||
By click the complete button the state changed to 'Completed'. |
|||
Then we can see the button to create Invoice. View the Invoice |
|||
from the smart button |
|||
</p> |
|||
<img src="assets/screenshots/9.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;"> |
|||
Share The Job Card</h3> |
|||
<p> |
|||
By click the share button we can share this job card with our |
|||
customer. |
|||
</p> |
|||
<img src="assets/screenshots/10.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;"> |
|||
Job Card report</h3> |
|||
<p> |
|||
By click this button we get the job card report. |
|||
</p> |
|||
<img src="assets/screenshots/11.png" class="img-thumbnail"> |
|||
<img src="assets/screenshots/15.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;"> |
|||
Cost Sheet report</h3> |
|||
<p> |
|||
By click this button we get the cost sheet report. |
|||
</p> |
|||
<img src="assets/screenshots/16.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;"> |
|||
Task</h3> |
|||
<p> |
|||
When we approve our job card it automatically create a task. |
|||
</p> |
|||
<img src="assets/screenshots/12.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;"> |
|||
Workshop Team</h3> |
|||
<img src="assets/screenshots/13.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;"> |
|||
Workshop position</h3> |
|||
<img src="assets/screenshots/17.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;"> |
|||
Quality CheckList</h3> |
|||
<img src="assets/screenshots/14.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 #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/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 --> |
|||
<div class="carousel-inner" style="padding: 30px;"> |
|||
<div class="carousel-item" style="min-height: 198.656px;"> |
|||
<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/point_of_sale_logo/" |
|||
target="_blank"> |
|||
<div style="border-radius:10px"> |
|||
<img class="img img-responsive center-block" |
|||
style="border-radius: 0px;" |
|||
src="assets/modules/1.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/custom_receipts_for_pos/" |
|||
target="_blank"> |
|||
<div style="border-radius:10px"> |
|||
<img class="img img-responsive center-block" |
|||
style="border-radius: 0px;" |
|||
src="assets/modules/2.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/pos_report_generator/" |
|||
target="_blank"> |
|||
<div style="border-radius:10px"> |
|||
<img class="img img-responsive center-block" |
|||
style="border-radius: 0px;" |
|||
src="assets/modules/3.png"> |
|||
</div> |
|||
</a> |
|||
</div> |
|||
</div> |
|||
<div class="carousel-item active" |
|||
style="min-height: 198.656px;"> |
|||
<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/pos_product_creation/" |
|||
target="_blank"> |
|||
<div style="border-radius:10px"> |
|||
<img class="img img-responsive center-block" |
|||
style="border-radius: 0px;" |
|||
src="assets/modules/4.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/multi_barcodes_pos/" |
|||
target="_blank"> |
|||
<div style="border-radius:10px"> |
|||
<img class="img img-responsive center-block" |
|||
style="border-radius: 0px;" |
|||
src="assets/modules/5.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/pos_sync_orders/" |
|||
target="_blank"> |
|||
<div style="border-radius:10px"> |
|||
<img class="img img-responsive center-block" |
|||
style="border-radius: 0px;" |
|||
src="assets/modules/6.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,27 @@ |
|||
<?xml version="1.0" encoding="UTF-8" ?> |
|||
<odoo> |
|||
<data> |
|||
<record id="view_employee_form" model="ir.ui.view"> |
|||
<field name="name">hr.employee.form</field> |
|||
<field name="model">hr.employee</field> |
|||
<field name="inherit_id" ref="hr.view_employee_form"/> |
|||
<field name="arch" type="xml"> |
|||
<xpath expr="//field[@name='coach_id']" position="after"> |
|||
<field name="workshop_position"/> |
|||
</xpath> |
|||
</field> |
|||
</record> |
|||
|
|||
<record id="view_project_task_form" model="ir.ui.view"> |
|||
<field name="name">project.task.form</field> |
|||
<field name="model">project.task</field> |
|||
<field name="inherit_id" ref="project.view_task_form2"/> |
|||
<field name="arch" type="xml"> |
|||
<xpath expr="//field[@name='parent_id']" position="after"> |
|||
<field name="job_card_id" invisible="1"/> |
|||
</xpath> |
|||
</field> |
|||
</record> |
|||
|
|||
</data> |
|||
</odoo> |
|||
@ -0,0 +1,26 @@ |
|||
<?xml version="1.0" encoding="UTF-8" ?> |
|||
<odoo> |
|||
<data> |
|||
|
|||
<menuitem id="menu_job_card_root" name="Job Card" sequence="4" |
|||
web_icon="job_card_management,static/description/icon.png"/> |
|||
|
|||
<menuitem id="menu_job_card" name="Job Card" parent="menu_job_card_root" |
|||
sequence="2" action="action_job_card"/> |
|||
|
|||
<menuitem id="menu_material_requisition" name="Material Requisition" parent="menu_job_card_root" |
|||
sequence="20" action="action_material_requisition"/> |
|||
|
|||
<menuitem id="menu_configuration" name="Configuration" |
|||
parent="menu_job_card_root" sequence="100"/> |
|||
|
|||
<menuitem id="menu_workshop_team" name="Workshop Team" |
|||
parent="menu_configuration" sequence="2" |
|||
action="action_workshop_team"/> |
|||
|
|||
<menuitem id="menu_quality_check_list" name="Quality Checklist" |
|||
parent="menu_configuration" sequence="4" |
|||
action="action_quality_check_list"/> |
|||
|
|||
</data> |
|||
</odoo> |
|||
@ -0,0 +1,177 @@ |
|||
<?xml version="1.0" encoding="UTF-8" ?> |
|||
<odoo> |
|||
<data> |
|||
<record id="job_card_view_tree" model="ir.ui.view"> |
|||
<field name="name">job.card.view.tree</field> |
|||
<field name="model">job.card</field> |
|||
<field name="arch" type="xml"> |
|||
<tree> |
|||
<field name="name"/> |
|||
<field name="start_date"/> |
|||
<field name="end_date"/> |
|||
<field name="partner_id"/> |
|||
<field name="state" widget="badge" decoration-muted="state == 'draft'" |
|||
decoration-primary="state == 'submit'" |
|||
decoration-success="state == 'approve'" |
|||
decoration-warning="state == 'complete'" |
|||
decoration-info="state == 'invoice'"/> |
|||
|
|||
</tree> |
|||
|
|||
</field> |
|||
</record> |
|||
|
|||
<record id="job_card_view_form" model="ir.ui.view"> |
|||
<field name="name">job.card.view.form</field> |
|||
<field name="model">job.card</field> |
|||
<field name="arch" type="xml"> |
|||
<form> |
|||
<header> |
|||
<button string="Submit" name="action_submit" type="object" class="btn-primary" attrs="{'invisible': [('state', '!=', 'draft')]}"/> |
|||
<button string="Approve" name="action_approve" type="object" class="btn-primary" attrs="{'invisible': [('state', '!=', 'submit')]}"/> |
|||
<button string="Create Purchase Material Request" name="create_pmr" type="object" class="btn-primary" attrs="{'invisible': [('state', '!=', 'approve')]}"/> |
|||
<button string="Create Invoice" name="create_invoice" type="object" class="btn-primary" attrs="{'invisible': [('state', '!=', 'complete')]}"/> |
|||
<button string="Share" name="share" type="object" class="btn-primary"/> |
|||
<button string="Complete" name="action_completed" type="object" class="btn-primary" attrs="{'invisible': [('state', '!=', 'approve')]}"/> |
|||
<field name="state" widget="statusbar" /> |
|||
</header> |
|||
<sheet> |
|||
<div class="oe_button_box" name="button_box"> |
|||
<button class="oe_stat_button" type="object" name="get_pmr" |
|||
icon="fa-id-card-o" attrs="{'invisible': [('mpr_count', '=', 0)]}"> |
|||
<field string="Material Request" name="mpr_count" widget="statinfo"/> |
|||
</button> |
|||
<button class="oe_stat_button" type="object" name="get_invoice" |
|||
icon="fa-pencil-square-o" attrs="{'invisible': [('invoice_count', '=', 0)]}"> |
|||
<field name="invoice_count" widget="statinfo"/> |
|||
</button> |
|||
|
|||
</div> |
|||
<div class="oe_title"> |
|||
<h1 class="d-flex"> |
|||
<field name="name" readonly="1"/> |
|||
<field name="sequence" invisible="1"/> |
|||
</h1> |
|||
<h2> |
|||
<field name="card_name" placeholder="Job Card Name"/> |
|||
</h2> |
|||
</div> |
|||
<group> |
|||
<group> |
|||
<field name="start_date" options="{'format': 'DD/MM/YYYY'}"/> |
|||
<field name="end_date"/> |
|||
<field name="project_id"/> |
|||
<field name="user_id"/> |
|||
</group> |
|||
<group> |
|||
<field name="quality_checklist_ids" widget="many2many_tags"/> |
|||
<field name="deadline"/> |
|||
<field name="team_id"/> |
|||
<field name="currency_id"/> |
|||
<field name="instruction_count" invisible="1"/> |
|||
</group> |
|||
</group> |
|||
<notebook> |
|||
<page string="Description"> |
|||
<field name="description" widget="html"/> |
|||
</page> |
|||
|
|||
<page string="Instructions"> |
|||
<field name="instruction_ids"> |
|||
<tree editable="bottom"> |
|||
<field name="name"/> |
|||
<field name="start_date"/> |
|||
<field name="end_date"/> |
|||
<field name="user_id"/> |
|||
<field name="instruction"/> |
|||
<field name="notes"/> |
|||
<field name="state"/> |
|||
</tree> |
|||
</field> |
|||
</page> |
|||
|
|||
<page string="Cost Sheet"> |
|||
<field name="job_cost_sheet_ids" attrs="{'readonly': [('state', 'not in', ['draft', 'submit'])]}"> |
|||
<tree editable="bottom"> |
|||
<field name="type"/> |
|||
<field name="product_id"/> |
|||
<field name="quantity"/> |
|||
<field name="unit_price" readonly="1"/> |
|||
<field name="discount"/> |
|||
<field name="tax"/> |
|||
<field name="untaxed_amount"/> |
|||
<field name="amount"/> |
|||
</tree> |
|||
</field> |
|||
<group class="oe_subtotal_footer oe_right" colspan="2"> |
|||
<div class="oe_inline o_td_label"> |
|||
<label for="cost_sheet_amount"/> |
|||
</div> |
|||
<field name="cost_sheet_amount" nolabel="1"/> |
|||
<div class="oe_inline o_td_label"> |
|||
<label for="job_cost_sheet_untaxed_amount"/> |
|||
</div> |
|||
<field name="job_cost_sheet_untaxed_amount" nolabel="1"/> |
|||
</group> |
|||
</page> |
|||
|
|||
<page string="Timesheet"> |
|||
<group> |
|||
<group> |
|||
<field name="planned_hours"/> |
|||
</group> |
|||
<group> |
|||
<field name="progress" widget="progressbar"/> |
|||
</group> |
|||
</group> |
|||
<field name="job_card_timesheet_ids" attrs="{'invisible': [('state', 'in', ['draft', 'submit'])]}"> |
|||
<tree editable="bottom"> |
|||
<field name="name"/> |
|||
<field name="instruction_id"/> |
|||
<field name="description"/> |
|||
<field name="leader_id"/> |
|||
<field name="worker_id"/> |
|||
<field name="date"/> |
|||
<field name="time"/> |
|||
</tree> |
|||
</field> |
|||
<group class="oe_subtotal_footer oe_right" colspan="2" attrs="{'invisible': [('state', 'in', ['draft', 'submit'])]}"> |
|||
<div class="oe_inline o_td_label"> |
|||
<label for="total_hours"/> |
|||
</div> |
|||
<field name="total_hours" nolabel="1"/> |
|||
</group> |
|||
|
|||
</page> |
|||
|
|||
<page string="Extra Information"> |
|||
<group> |
|||
<field name="partner_id"/> |
|||
<field name="email"/> |
|||
</group> |
|||
<group string="Working Time to Close"> |
|||
<group> |
|||
<field name="hours"/> |
|||
</group> |
|||
</group> |
|||
</page> |
|||
</notebook> |
|||
</sheet> |
|||
</form> |
|||
</field> |
|||
</record> |
|||
|
|||
<record id="action_job_card" model="ir.actions.act_window"> |
|||
<field name="name">Job Card</field> |
|||
<field name="type">ir.actions.act_window</field> |
|||
<field name="res_model">job.card</field> |
|||
<field name="view_mode">tree,form</field> |
|||
<field name="help" type="html"> |
|||
<p class="o_view_nocontent_smiling_face"> |
|||
Define a new Job Card |
|||
</p> |
|||
</field> |
|||
</record> |
|||
|
|||
</data> |
|||
</odoo> |
|||
@ -0,0 +1,90 @@ |
|||
<?xml version="1.0" encoding="UTF-8" ?> |
|||
<odoo> |
|||
<data> |
|||
<record id="material_requisition_tree_view" model="ir.ui.view"> |
|||
<field name="name">material.requisition.tree</field> |
|||
<field name="model">material.requisition</field> |
|||
<field name="arch" type="xml"> |
|||
<tree> |
|||
<field name="name"/> |
|||
<field name="employee_id"/> |
|||
<field name="department_id"/> |
|||
<field name="state" widget="badge" decoration-muted="state == 'draft'" |
|||
decoration-primary="state == 'submit'" |
|||
decoration-success="state == 'approve'" |
|||
decoration-info="state == 'po'"/> |
|||
</tree> |
|||
</field> |
|||
</record> |
|||
|
|||
<record id="material_requisition_form_view" model="ir.ui.view"> |
|||
<field name="name">material.requisition.form</field> |
|||
<field name="model">material.requisition</field> |
|||
<field name="arch" type="xml"> |
|||
<form> |
|||
<header> |
|||
<button string="Submit" name="action_submit" type="object" class="btn-primary" |
|||
attrs="{'invisible': [('state', '!=', 'draft')]}"/> |
|||
<button string="Approve" name="action_approve" type="object" class="btn-primary" |
|||
attrs="{'invisible': [('state', '!=', 'submit')]}"/> |
|||
<button string="Create Purchase Order" name="create_purchase_order" type="object" |
|||
class="btn-primary" attrs="{'invisible': [('state', '!=', 'approve')]}"/> |
|||
|
|||
<field name="state" widget="statusbar" statusbar_visible="draft,submit,approve"/> |
|||
</header> |
|||
<sheet> |
|||
<div class="oe_button_box" name="button_box"> |
|||
<button name="action_view_purchase_orders" |
|||
type="object" |
|||
class="oe_stat_button" |
|||
attrs="{'invisible': [('purchase_order_count', '=', 0)]}" |
|||
icon="fa-pencil-square-o"> |
|||
<field name="purchase_order_count" string="Purchases" widget="statinfo"/> |
|||
</button> |
|||
</div> |
|||
<div class="oe_title"> |
|||
<h1 class="d-flex"> |
|||
<field name="name" readonly="1"/> |
|||
</h1> |
|||
</div> |
|||
<group> |
|||
<group> |
|||
<field name="employee_id"/> |
|||
<field name="department_id"/> |
|||
</group> |
|||
<group> |
|||
<field name="date"/> |
|||
<field name="job_card_id"/> |
|||
</group> |
|||
</group> |
|||
<notebook> |
|||
<page string="Requisition lines"> |
|||
<field name="line_ids"> |
|||
<tree editable="bottom"> |
|||
<field name="product_id"/> |
|||
<field name="name"/> |
|||
<field name="quantity"/> |
|||
<field name="uom"/> |
|||
<field name="vendor_id"/> |
|||
</tree> |
|||
</field> |
|||
</page> |
|||
</notebook> |
|||
</sheet> |
|||
</form> |
|||
</field> |
|||
</record> |
|||
|
|||
<record id="action_material_requisition" model="ir.actions.act_window"> |
|||
<field name="name">Material Requisition Action</field> |
|||
<field name="type">ir.actions.act_window</field> |
|||
<field name="res_model">material.requisition</field> |
|||
<field name="view_mode">tree,form</field> |
|||
<field name="help" type="html"> |
|||
<p class="o_view_nocontent_smiling_face"> |
|||
Define a new Material Requisition |
|||
</p> |
|||
</field> |
|||
</record> |
|||
</data> |
|||
</odoo> |
|||
@ -0,0 +1,68 @@ |
|||
<?xml version="1.0" encoding="UTF-8" ?> |
|||
<odoo> |
|||
<data> |
|||
|
|||
<record id="workshop_team_tree_view" model="ir.ui.view"> |
|||
<field name="name">workshop.team.tree.view</field> |
|||
<field name="model">workshop.team</field> |
|||
<field name="arch" type="xml"> |
|||
<tree editable="bottom"> |
|||
<field name="name"/> |
|||
<field name="active"/> |
|||
</tree> |
|||
</field> |
|||
</record> |
|||
|
|||
<record id="action_workshop_team" model="ir.actions.act_window"> |
|||
<field name="name">Workshop Team</field> |
|||
<field name="type">ir.actions.act_window</field> |
|||
<field name="res_model">workshop.team</field> |
|||
<field name="view_mode">tree</field> |
|||
<field name="help" type="html"> |
|||
<p class="o_view_nocontent_smiling_face"> |
|||
Define a new Team |
|||
</p> |
|||
</field> |
|||
</record> |
|||
|
|||
<record id="quality_check_list_tree_view" model="ir.ui.view"> |
|||
<field name="name">quality.check.list.tree.view</field> |
|||
<field name="model">quality.check.list</field> |
|||
<field name="arch" type="xml"> |
|||
<tree> |
|||
<field name="name"/> |
|||
<field name="description"/> |
|||
</tree> |
|||
</field> |
|||
</record> |
|||
|
|||
<record id="quality_check_list_form_view" model="ir.ui.view"> |
|||
<field name="name">quality.check.list.form.view</field> |
|||
<field name="model">quality.check.list</field> |
|||
<field name="arch" type="xml"> |
|||
<form> |
|||
<sheet> |
|||
<group> |
|||
|
|||
<field name="name"/> |
|||
<field name="description"/> |
|||
</group> |
|||
</sheet> |
|||
</form> |
|||
</field> |
|||
</record> |
|||
|
|||
<record id="action_quality_check_list" model="ir.actions.act_window"> |
|||
<field name="name">Quality Checklist</field> |
|||
<field name="type">ir.actions.act_window</field> |
|||
<field name="res_model">quality.check.list</field> |
|||
<field name="view_mode">tree,form</field> |
|||
<field name="help" type="html"> |
|||
<p class="o_view_nocontent_smiling_face"> |
|||
Define a new Quality CheckList |
|||
</p> |
|||
</field> |
|||
</record> |
|||
|
|||
</data> |
|||
</odoo> |
|||