2009-10-13 05:58:37 +00:00
|
|
|
# -*- coding: utf-8 -*-
|
2008-11-03 19:18:56 +00:00
|
|
|
##############################################################################
|
2009-10-14 11:15:34 +00:00
|
|
|
#
|
|
|
|
# OpenERP, Open Source Management Solution
|
|
|
|
# Copyright (C) 2004-2009 Tiny SPRL (<http://tiny.be>).
|
2008-11-03 19:18:56 +00:00
|
|
|
#
|
|
|
|
# This program is free software: you can redistribute it and/or modify
|
2009-10-14 11:15:34 +00:00
|
|
|
# it under the terms of the GNU Affero General Public License as
|
|
|
|
# published by the Free Software Foundation, either version 3 of the
|
|
|
|
# License, or (at your option) any later version.
|
2008-11-03 19:18:56 +00:00
|
|
|
#
|
|
|
|
# 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
|
2009-10-14 11:15:34 +00:00
|
|
|
# GNU Affero General Public License for more details.
|
2008-11-03 19:18:56 +00:00
|
|
|
#
|
2009-10-14 11:15:34 +00:00
|
|
|
# You should have received a copy of the GNU Affero General Public License
|
|
|
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
2008-11-03 19:18:56 +00:00
|
|
|
#
|
|
|
|
##############################################################################
|
2009-01-06 15:56:11 +00:00
|
|
|
|
|
|
|
|
2008-08-24 14:45:43 +00:00
|
|
|
{
|
2009-12-14 14:56:27 +00:00
|
|
|
'name': 'Work Center Production start end workflow',
|
2009-01-06 15:56:11 +00:00
|
|
|
'version': '1.0',
|
|
|
|
'category': 'Generic Modules/Production',
|
|
|
|
'description': """
|
2008-08-24 14:45:43 +00:00
|
|
|
This module adds state, date_start,date_stop in production order operation lines
|
2009-12-14 14:56:27 +00:00
|
|
|
(in the "Work Centers" tab)
|
2008-08-24 14:45:43 +00:00
|
|
|
State: draft, confirm, done, cancel
|
2008-12-29 14:12:44 +00:00
|
|
|
When finishing/confirming,cancelling production orders set all state lines to the according state
|
2008-08-24 14:45:43 +00:00
|
|
|
Create menus:
|
|
|
|
Production Management > All Operations
|
|
|
|
Production Management > All Operations > Operations To Do (state="confirm")
|
2009-12-14 14:56:27 +00:00
|
|
|
Which is a view on "Work Centers" lines in production order,
|
2008-08-24 14:45:43 +00:00
|
|
|
editable tree
|
|
|
|
|
|
|
|
Add buttons in the form view of production order under workcenter tab:
|
|
|
|
* start (set state to confirm), set date_start
|
|
|
|
* done (set state to done), set date_stop
|
|
|
|
* set to draft (set state to draft)
|
|
|
|
* cancel set state to cancel
|
|
|
|
|
|
|
|
When the production order becomes "ready to produce", operations must
|
|
|
|
become 'confirmed'. When the production order is done, all operations
|
|
|
|
must become done.
|
|
|
|
|
|
|
|
The field delay is the delay(stop date - start date).
|
2008-12-29 14:12:44 +00:00
|
|
|
So that we can compare the theoretic delay and real delay.
|
2008-08-24 14:45:43 +00:00
|
|
|
|
|
|
|
""",
|
2009-01-06 15:56:11 +00:00
|
|
|
'author': 'Tiny',
|
|
|
|
'website': 'http://www.openerp.com',
|
|
|
|
'depends': ['stock', 'hr', 'purchase', 'product', 'mrp'],
|
|
|
|
'init_xml': [],
|
2009-02-03 16:54:02 +00:00
|
|
|
'update_xml': [
|
|
|
|
'security/ir.model.access.csv',
|
|
|
|
'mrp_operations_workflow.xml',
|
|
|
|
'mrp_operations_view.xml',
|
|
|
|
'mrp_operations_report.xml',
|
|
|
|
'process/mrp_operation_process.xml'
|
|
|
|
],
|
2009-01-06 15:56:11 +00:00
|
|
|
'demo_xml': ['mrp_operation_data.xml'],
|
|
|
|
'installable': True,
|
|
|
|
'active': False,
|
2009-02-03 17:02:20 +00:00
|
|
|
'certificate': '0056233813133',
|
2008-08-24 14:45:43 +00:00
|
|
|
}
|
|
|
|
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|