=== removed directory 'mrp_webkit' === removed file 'mrp_webkit/__init__.py' --- mrp_webkit/__init__.py 2013-09-16 11:46:47 +0000 +++ mrp_webkit/__init__.py 1970-01-01 00:00:00 +0000 @@ -1,24 +0,0 @@ -# -*- coding: utf-8 -*- -############################################################################## -# -# OpenERP, Open Source Management Solution -# Copyright (C) 2011-2013 Serpent Consulting Services () -# -# This program is free software: you can redistribute it and/or modify -# 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. -# -# 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 . -# -############################################################################ - -import report - -# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: === removed file 'mrp_webkit/__openerp__.py' --- mrp_webkit/__openerp__.py 2013-11-14 08:41:27 +0000 +++ mrp_webkit/__openerp__.py 1970-01-01 00:00:00 +0000 @@ -1,46 +0,0 @@ -# -*- coding: utf-8 -*- -############################################################################## -# -# OpenERP, Open Source Management Solution -# Copyright (C) 2011-2013 Serpent Consulting Services Pvt. Ltd.() -# -# This program is free software: you can redistribute it and/or modify -# 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. -# -# 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 . -# -############################################################################ - - -{ - 'name': 'MRP', - 'version': '1.0', - 'author': 'Serpent Consulting Services Pvt. Ltd.', - 'website': 'http://www.serpentcs.com', - 'category': 'Manufacturing', - 'sequence': 18, - 'summary': 'Manufacturing Orders, Bill of Materials, Routing', - 'depends': ['mrp','report_webkit'], - 'description': """ -Manage the Manufacturing process in OpenERP -=========================================== - - It is conversion of rml report to Webkit Report. - - """, - 'data': [ - 'mrp_report.xml', - ], - 'installable': True, - 'application': True, - 'auto_install': False, -} -# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: === removed file 'mrp_webkit/mrp_report.xml' --- mrp_webkit/mrp_report.xml 2013-09-16 11:46:47 +0000 +++ mrp_webkit/mrp_report.xml 1970-01-01 00:00:00 +0000 @@ -1,330 +0,0 @@ - - - - - - Portrait - A4 - - - - - - - - - - - - - -
-   / 
${_debug or ''|n} - - -
${_debug or ''|n} - - - - - - - - - -]]> -
- - - - - bom webkit header -
- - - - Portrait - A4 - - - - - - - - - - - - - - - -
${ formatLang(time.strftime('%Y-%m-%d'),date=True)} ${time.strftime('%I:%M')}${company.partner_id.name |entity}  / 
${_debug or ''|n} - - -
${_debug or ''|n} - - - - - - -]]> -
- - - - - production webkit header -
- - - - - -
-
=== removed directory 'mrp_webkit/report' === removed file 'mrp_webkit/report/__init__.py' --- mrp_webkit/report/__init__.py 2013-09-16 11:46:47 +0000 +++ mrp_webkit/report/__init__.py 1970-01-01 00:00:00 +0000 @@ -1,26 +0,0 @@ -# -*- coding: utf-8 -*- -############################################################################## -# -# OpenERP, Open Source Management Solution -# Copyright (C) 2011-2013 Serpent Consulting Services () -# -# This program is free software: you can redistribute it and/or modify -# 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. -# -# 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 . -# -############################################################################ - -import order -import bom_structure - -# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: - === removed file 'mrp_webkit/report/bom_structure.mako' --- mrp_webkit/report/bom_structure.mako 2013-09-16 11:46:47 +0000 +++ mrp_webkit/report/bom_structure.mako 1970-01-01 00:00:00 +0000 @@ -1,66 +0,0 @@ - - - - - - BOM Structure.pdf - - - - - - -
-

${ _('BOM Structure') }

-
- - - - - - - - -
${ _('BOM Name') }${ _('Product Name') }${ _('Quantity') }${ _('BOM Ref') }
- %for o in objects: - - - - - -
- -
- ${o.name} - - [ ${(o.product_id.default_code) or removeParentNode('font')}] ${o.product_id.name} - - ${o.product_qty} ${o.product_uom.name} - - ${o.code or ''} -
- - %for l in get_children(o.bom_lines): - - - - - - - -
- ${'... '*(l['level'])} - ${l['name']} - - ${ (l['pcode']) or '' } ${l['pname']} - - ${l['pqty']} ${l['uname']} - - ${l['code'] or ''} -
- %endfor -
- %endfor - - \ No newline at end of file === removed file 'mrp_webkit/report/bom_structure.py' --- mrp_webkit/report/bom_structure.py 2013-09-16 11:46:47 +0000 +++ mrp_webkit/report/bom_structure.py 1970-01-01 00:00:00 +0000 @@ -1,64 +0,0 @@ -# -*- coding: utf-8 -*- -############################################################################## -# -# OpenERP, Open Source Management Solution -# Copyright (C) 2011-2013 Serpent Consulting Services () -# -# This program is free software: you can redistribute it and/or modify -# 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. -# -# 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 . -# -############################################################################ - -import time -from openerp.report import report_sxw -from openerp.osv import osv -from openerp import pooler - -class bom_structure(report_sxw.rml_parse): - def __init__(self, cr, uid, name, context): - super(bom_structure, self).__init__(cr, uid, name, context=context) - self.localcontext.update({ - 'time': time, - 'get_children':self.get_children, - }) - - def get_children(self, object, level=0): - result = [] - - def _get_rec(object, level): - for l in object: - res = {} - res['name'] = l.name - res['pname'] = l.product_id.name - res['pcode'] = l.product_id.default_code - res['pqty'] = l.product_qty - res['uname'] = l.product_uom.name - res['code'] = l.code - res['level'] = level - result.append(res) - if l.child_complete_ids: - if level<6: - level += 1 - _get_rec(l.child_complete_ids,level) - if level>0 and level<6: - level -= 1 - return result - - children = _get_rec(object,level) - - return children - -report_sxw.report_sxw('report.bom.structure.webkit','mrp.bom','mrp_webkit/report/bom_structure.mako',parser=bom_structure,header='internal') - - -# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: === removed file 'mrp_webkit/report/order.mako' --- mrp_webkit/report/order.mako 2013-09-16 11:46:47 +0000 +++ mrp_webkit/report/order.mako 1970-01-01 00:00:00 +0000 @@ -1,220 +0,0 @@ - - - - - - Production Order.pdf - - - %for o in objects: - - - - -
-

${ _('Production Order N°') } : ${o.name}

-
- - - - - - - -
- ${ _('Source Document') } - - ${ _('Product') } - - ${ _('Quantity') } -
- - - - - - -
- ${o.origin or ''} - - ${o.product_id and o.product_id.code or ''} ${o.product_id and o.product_id.name or ''} - - ${formatLang(o.product_qty)} ${o.product_id and o.product_uom and o.product_uom.name or ''} -
-
- - - - - - - - -
- ${ _('Scheduled Date') } - - ${ _('Printing date') } - - ${ _('Partner Ref') } - - ${ _('SO Number') } -
- - - - - - - -
- ${formatLang(o.date_planned, date_time = True)} - - ${formatLang(time.strftime('%Y-%m-%d'),date = True)} - - ${'sale_ref' in o._columns.keys() and o.sale_ref or ''} - - ${'sale_name' in o._columns.keys() and o.sale_name or ''} -
-
- - %if o.workcenter_lines ==[]: - - %else: - - - - -
-

${ _('Work Orders') }

-
- - - - - - - - -
- ${ _('Sequence') } - - ${ _('Name') } - - ${ _('WorkCenter') } - - ${ _('No. Of Cycles') } - - ${ _('No. Of Hours') } -
- %for line2 in o.workcenter_lines: - - - - - - - - -
- ${str(line2.sequence)} - - ${line2.name} - - ${line2.workcenter_id and line2.workcenter_id.name or ''} - - ${formatLang(line2.cycle)} - - ${formatLang(line2.hour)} -

- %endfor - %endif - - - - - -
-

${ _('Bill Of Material') }

-
- - - - - - - -
- ${ _('Product') } - - ${ _('Quantity') } - - ${ _('Source Location') } - - ${ _('Destination Location') } -
- - %if o.move_lines ==[]: - - %else: - - - - -
- ${ _('Products to Consume') } -
- %for line in o.move_lines: - - - - - - - -
- ${line.product_id and line.product_id.code or ''} ${line.product_id and line.product_id.name or ''} - - ${formatLang( line.product_qty)} ${line.product_uom and line.product_uom.name or ''} - - ${line.location_id and line.location_id.name or ''} - - ${line.location_dest_id and line.location_dest_id.name or ''} -
- %endfor - %endif - - %if o.move_lines2 ==[]: - - %else: - - - - -
-
${ _('Consumed Products') }
-
- %for line2 in o.move_lines2: - - - - - - - -
- ${line2.product_id and line2.product_id.code or ''} ${line2.product_id and line2.product_id.name or ''} - - ${formatLang( line2.product_qty)} ${line2.product_uom and line2.product_uom.name or ''} - - ${line2.location_id and line2.location_id.name or ''} - - ${line2.location_dest_id and line2.location_dest_id.name or ''} -
- %endfor - %endif -

- %endfor - - \ No newline at end of file === removed file 'mrp_webkit/report/order.py' --- mrp_webkit/report/order.py 2013-09-16 11:46:47 +0000 +++ mrp_webkit/report/order.py 1970-01-01 00:00:00 +0000 @@ -1,34 +0,0 @@ -# -*- coding: utf-8 -*- -############################################################################## -# -# OpenERP, Open Source Management Solution -# Copyright (C) 2011-2013 Serpent Consulting Services () -# -# This program is free software: you can redistribute it and/or modify -# 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. -# -# 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 . -# -############################################################################ - -import time -from openerp.report import report_sxw - -class order(report_sxw.rml_parse): - def __init__(self, cr, uid, name, context): - super(order, self).__init__(cr, uid, name, context=context) - self.localcontext.update({ - 'time': time, - }) - -report_sxw.report_sxw('report.mrp.production.order.webkit','mrp.production','addons/mrp_webkit/report/order.mako',parser=order,header='internal') - -# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: