← Back to team overview

openerp-community-reviewer team mailing list archive

[Merge] lp:~serpentcs/purchase-report/purchase-serpentcs into lp:purchase-report

 

Nishant Jogi has proposed merging lp:~serpentcs/purchase-report/purchase-serpentcs into lp:purchase-report.

Requested reviews:
  Purchase Core Editors (purchase-core-editors)

For more details, see:
https://code.launchpad.net/~serpentcs/purchase-report/purchase-serpentcs/+merge/190323
-- 
https://code.launchpad.net/~serpentcs/purchase-report/purchase-serpentcs/+merge/190323
Your team Purchase Core Editors is requested to review the proposed merge of lp:~serpentcs/purchase-report/purchase-serpentcs into lp:purchase-report.
=== added directory 'purchase_requisition_webkit'
=== added file 'purchase_requisition_webkit/__init__.py'
--- purchase_requisition_webkit/__init__.py	1970-01-01 00:00:00 +0000
+++ purchase_requisition_webkit/__init__.py	2013-10-10 09:53:37 +0000
@@ -0,0 +1,25 @@
+# -*- coding: utf-8 -*-
+##############################################################################
+#
+#    OpenERP, Open Source Management Solution
+#    Copyright (C) 2011-2013 Serpent Consulting Services (<http://www.serpentcs.com>)
+#
+#    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 <http://www.gnu.org/licenses/>.
+#
+############################################################################
+
+
+import report
+# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
+

=== added file 'purchase_requisition_webkit/__openerp__.py'
--- purchase_requisition_webkit/__openerp__.py	1970-01-01 00:00:00 +0000
+++ purchase_requisition_webkit/__openerp__.py	2013-10-10 09:53:37 +0000
@@ -0,0 +1,42 @@
+# -*- coding: utf-8 -*-
+##############################################################################
+#
+#    OpenERP, Open Source Management Solution
+#    Copyright (C) 2011-2013 Serpent Consulting Services (<http://www.serpentcs.com>)
+#
+#    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 <http://www.gnu.org/licenses/>.
+#
+############################################################################
+
+{
+    'name': 'Purchase Requisitions',
+    'version': '0.1',
+    'author': 'Serpent Consulting Services',
+    'category': 'Purchase Management',
+    'website': 'http://www.serpentcs.com',
+    'description': """
+This module allows you to manage your Purchase Requisition.
+===========================================================
+      It is conversion of rml report to Webkit Report.
+
+""",
+    'depends' : ['purchase_requisition','report_webkit'],
+    'data': [
+              'purchase_requisition_report.xml',
+    ],
+    'auto_install': False,
+    'installable': True,
+}
+# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
+

=== added file 'purchase_requisition_webkit/purchase_requisition_report.xml'
--- purchase_requisition_webkit/purchase_requisition_report.xml	1970-01-01 00:00:00 +0000
+++ purchase_requisition_webkit/purchase_requisition_report.xml	2013-10-10 09:53:37 +0000
@@ -0,0 +1,160 @@
+<?xml version="1.0" encoding="utf-8"?>
+<openerp>
+    <data>
+   <record id="Purchase_Req_webkit_header" model="ir.header_webkit">
+            <field name="footer_html"><![CDATA[]]></field>
+            <field name="orientation">Portrait</field>
+            <field name="format">A4</field>
+            <field name="html"><![CDATA[
+<html>
+   <head>
+       <meta content="text/html; charset=UTF-8" http-equiv="content-type"/>
+       <script>
+           function subst() {
+           var vars={};
+           var x=document.location.search.substring(1).split('&');
+           for(var i in x) {var z=x[i].split('=',2);vars[z[0]] = unescape(z[1]);}
+           var x=['frompage','topage','page','webpage','section','subsection','subsubsection'];
+           for(var i in x) {
+           var y = document.getElementsByClassName(x[i]);
+           for(var j=0; j<y.length; ++j) y[j].textContent = vars[x[i]];
+               }
+           }
+       </script>
+       <style type="text/css">
+       
+           ${css}
+       </style>
+   </head>
+   
+               ${_debug or ''|n} </body>
+</html>]]>
+            </field>
+            <field name="orientation">Portrait</field>           
+            <field name="format">A4</field>
+            <field name="html"><![CDATA[
+<html>
+    <head>
+        <meta content="text/html; charset=UTF-8" http-equiv="content-type"/>
+        <script>
+            function subst() {
+            var vars={};
+            var x=document.location.search.substring(1).split('&');
+            for(var i in x) {var z=x[i].split('=',2);vars[z[0]] = unescape(z[1]);}
+            var x=['frompage','topage','page','webpage','section','subsection','subsubsection'];
+            for(var i in x) {
+            var y = document.getElementsByClassName(x[i]);
+            for(var j=0; j<y.length; ++j) y[j].textContent = vars[x[i]];
+                }
+            }
+        </script>
+        <style type="text/css">
+            ${css}
+        </style>
+    </head>
+    <body style="border:0; margin:0  ;" onload="subst()">
+        <table class="header" style="border-bottom: 1px solid black; width: 100%">
+           <tr >
+               <td style="text-align:right;font-size:12;" width="20%">${ helper.embed_image('png',company.logo,200,40)|n }</td>
+               <td style="text-align:right;font-size:12;" width="80%"></br></br>${ company.rml_header1 }</td>
+           </tr>
+       </table> ${_debug or ''|n} </body>
+       <p style="text-align:left;font-size:12;">${company.name}</p></br></br></br> 
+       <table width="100%">
+        	<tr>
+        	 	<td style="text-align:left;font-size:10;" width="25%">
+            			Phone: ${company.phone or ''}
+        	 	</td>  
+				<td width="75%"></td>      	
+        	</tr>
+        	
+        	<tr>
+        		<td style="text-align:left;font-size:10; border-bottom: 1px solid black;" width="25%">
+        	 	    Mail: ${company.email}  
+        		</td>
+        		<td width="75%"></td> 	
+        	</tr>      
+       </table>       
+       
+</html>]]>
+            </field>
+            <field eval="55.0" name="margin_top"/>
+            <field eval="5.0" name="margin_bottom"/>
+            <field name="css"><![CDATA[
+		 
+		 
+		 .list_table {
+		border-color:black;
+		text-align:center;
+		border-collapse: collapse; 
+		}
+		.list_table td {
+		border-bottom:1px solid #ccc;
+		text-align:left;
+		font-size:10px;
+		padding-left:3px
+		padding-right:3px
+		padding-top:3px
+		padding-bottom:3px
+		}
+		             .list_table1 {
+		border-color:black;
+		text-align:center;
+		border-collapse: collapse;
+		}
+		.list_table1 td {
+		border-bottom:1px solid black;
+		text-align:left;
+		font-size:11px;
+		padding-left:3px;
+		padding-right:3px;
+		padding-top:3px;
+		padding-bottom:3px;
+		}
+		            
+		   .basic_table {
+					border-color:#ccc;
+					text-align:center;
+					border-collapse: collapse;
+            		font-family: Helvetica;
+		}
+		.basic_table td {
+				border-color:#ccc;
+				border:1px solid #ccc;
+				text-align:center;
+				font-size:12px;
+				padding-left:5px;
+				padding-right:3px;
+				padding-top:3px;
+				padding-bottom:3px;
+            	font-family: Helvetica;
+		}
+		            
+		.title{
+		     text-align:left
+		      font-size:15px;
+		      font-family: Helvetica-Bold;
+		      }
+		         
+		.title1{
+		     text-align:left;
+		      font-size:11px;
+		      font-family: Helvetica-Bold;
+		      }
+            	
+]]>
+            </field>
+            <field name="name">Purchase Requisition webkit header</field>
+        </record>
+            
+        <report 
+        	auto="False" 
+        	id="report_purchase_requisition" 
+        	model="purchase.requisition" 
+        	name="purchase.requisition.webkit" 
+        	file="purchase_requisition_webkit/report/purchase_requisition.mako" 
+        	string="Purchase Requisition"
+        	report_type="webkit"
+            webkit_header="Purchase_Req_webkit_header"/>
+    </data>
+</openerp>

=== added directory 'purchase_requisition_webkit/report'
=== added file 'purchase_requisition_webkit/report/__init__.py'
--- purchase_requisition_webkit/report/__init__.py	1970-01-01 00:00:00 +0000
+++ purchase_requisition_webkit/report/__init__.py	2013-10-10 09:53:37 +0000
@@ -0,0 +1,24 @@
+# -*- coding: utf-8 -*-
+##############################################################################
+#
+#    OpenERP, Open Source Management Solution
+#    Copyright (C) 2011-2013 Serpent Consulting Services (<http://www.serpentcs.com>)
+#
+#    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 <http://www.gnu.org/licenses/>.
+#
+############################################################################
+import requisition
+
+# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
+

=== added file 'purchase_requisition_webkit/report/purchase_requisition.mako'
--- purchase_requisition_webkit/report/purchase_requisition.mako	1970-01-01 00:00:00 +0000
+++ purchase_requisition_webkit/report/purchase_requisition.mako	2013-10-10 09:53:37 +0000
@@ -0,0 +1,141 @@
+<!DOCTYPE html SYSTEM "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
+
+<html xmlns="http://www.w3.org/1999/xhtml";>
+    <head>
+        <style type="text/css">
+            ${css}
+        </style>
+        <title>Purchase for Requisitions.pdf</title>        
+    </head>
+    <body>
+        %for requisition in objects:
+            <table  width="100%" class="title">
+                <tr>
+                    <td><br/><br/>
+                        <b> ${ _('Purchase for Requisitions') } ${requisition.name}</b><br/><br/>
+                    </td>
+                </tr>
+            </table>
+        
+            <table class="basic_table" width="100%">
+                <tr>
+                    <td width="30%">
+                        <b>${ _('Requisition Reference') }</b>
+                    </td>
+                    <td width="30%">
+                        <b>${ _('Requisition Date') }</b>
+                    </td>
+                    <td width="20%">
+                        <b>${ _('Type') }</b>
+                    </td>
+                    <td width="20%">
+                        <b>${ _('Source') }</b>
+                    </td>
+                </tr>
+            </table>
+            
+            <table class="basic_table" width="100%">
+                <tr>
+                    <td width="30%">
+                        ${requisition.name}
+                    </td>
+                    <td width="30%">
+                        ${formatLang(requisition.date_start,date_time='True')}
+                    </td>
+                    <td width="20%">
+                        ${requisition.exclusive=='multiple' and 'Multiple Requisitions' or requisition.exclusive=='exclusive' and 'Purchase Requisitions (exclusive)'}
+                    </td>
+                    <td width="20%">
+                        ${requisition.origin or ''}
+                    </td>
+                </tr>
+            </table><br/>
+            
+            %if requisition.line_ids==[]:
+            
+            %else:
+                <table  width="100%" class="title1">
+                    <tr>
+                        <td>
+                            <b> ${ _('Product Detail') }</b><br/>
+                        </td>
+                    </tr>
+                </table>
+                </br>
+                <table class="list_table1" width="100%">
+                    <tr>
+                        <td style="text-align:left ;padding-left:5px" width="60%">
+                            <b>${ _('Description') }</b>
+                        </td>
+                        <td style="text-align:right;" width="20%">
+                            <b>${ _('Qty') }</b>
+                        </td>
+                        <td style="text-align:center;"width="20%">
+                            <b>${ _('Product UoM') }</b>
+                        </td>
+                    </tr>
+                </table>
+                
+                %for line_ids in requisition.line_ids:
+                    <table class="list_table" width="100%">
+                        <tr>
+                            <td style="text-align:left;padding-left:5px"width="60%">
+                                [${line_ids.product_id and line_ids.product_id.code or ''}] ${line_ids.product_id and line_ids.product_id.name or ''}
+                            </td>
+                            <td style="text-align:right;"width="20%">
+                                ${ formatLang(line_ids.product_qty) }
+                            </td>
+                            <td style="text-align:center;"width="20%">
+                                ${line_ids.product_uom_id and line_ids.product_uom_id.category_id and line_ids.product_uom_id.category_id.name or ''}
+                            </td>
+                        </tr>
+                </table><br/>
+                %endfor
+            %endif
+            
+            %if requisition.purchase_ids ==[]:
+            
+            %else:
+                <table  width="100%" class="title1">
+                    <tr>
+                        <td>
+                            <b> ${ _('Quotation Detail') }</b><br/>
+                        </td>
+                    </tr>
+                </table>
+                </br>
+                <table class="list_table1" width="100%">
+                    <tr>
+                        <td style="text-align:left ;padding-left:5px"width="60%">
+                            <b>${ _('Supplier') }<b/>
+                        </td>
+                        <td style="text-align:center;"width="20%">
+                            <b>${ _('Date Ordered') }<b/>
+                        </td>
+                        <td style="text-align:center;"width="20%">
+                            <b>${ _('Order Reference') }<b/>
+                        </td>
+                    </tr>
+                </table>
+                
+                %for purchase_ids in requisition.purchase_ids:
+                    <table class="list_table " width="100%">
+                        <tr>
+                            <td style="text-align:left; padding-left:5px" width="60%">
+                                ${purchase_ids.partner_id and purchase_ids.partner_id.name or ''}
+                            </td>
+                            <td style="text-align:center;"width="20%">
+                                ${formatLang(purchase_ids.date_order,date='True')}
+                            </td>
+                            <td style="text-align:center;"width="20%">
+                                ${purchase_ids.name}
+                            </td>
+                        </tr>
+                    </table>
+                %endfor
+            %endif
+            
+            <p style="page-break-after:always"></p>
+        %endfor
+    </body>
+</html>
\ No newline at end of file

=== added file 'purchase_requisition_webkit/report/requisition.py'
--- purchase_requisition_webkit/report/requisition.py	1970-01-01 00:00:00 +0000
+++ purchase_requisition_webkit/report/requisition.py	2013-10-10 09:53:37 +0000
@@ -0,0 +1,37 @@
+# -*- coding: utf-8 -*-
+##############################################################################
+#
+#    OpenERP, Open Source Management Solution
+#    Copyright (C) 2011-2013 Serpent Consulting Services (<http://www.serpentcs.com>)
+#
+#    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 <http://www.gnu.org/licenses/>.
+#
+############################################################################
+
+import time
+from openerp.report import report_sxw
+from openerp.osv import osv
+from openerp import pooler
+
+class requisition(report_sxw.rml_parse):
+    def __init__(self, cr, uid, name, context):
+        super(requisition, self).__init__(cr, uid, name, context=context)
+        self.localcontext.update({
+            'time': time,
+        })
+   
+report_sxw.report_sxw('report.purchase.requisition.webkit','purchase.requisition','addons/purchase_requisition_webkit/report/purchase_requisition.mako',parser=requisition)
+
+# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
+

=== added directory 'purchase_webkit'
=== added file 'purchase_webkit/__init__.py'
--- purchase_webkit/__init__.py	1970-01-01 00:00:00 +0000
+++ purchase_webkit/__init__.py	2013-10-10 09:53:37 +0000
@@ -0,0 +1,25 @@
+# -*- coding: utf-8 -*-
+##############################################################################
+#    
+#    OpenERP, Open Source Management Solution
+#    Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>).
+#
+#    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 <http://www.gnu.org/licenses/>.     
+#
+##############################################################################
+
+import report
+
+# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
+

=== added file 'purchase_webkit/__openerp__.py'
--- purchase_webkit/__openerp__.py	1970-01-01 00:00:00 +0000
+++ purchase_webkit/__openerp__.py	2013-10-10 09:53:37 +0000
@@ -0,0 +1,43 @@
+# -*- coding: utf-8 -*-
+##############################################################################
+#
+#    OpenERP, Open Source Management Solution
+#    Copyright (C) 2011-2013 Serpent Consulting Services (<http://www.serpentcs.com>)
+#
+#    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 <http://www.gnu.org/licenses/>.
+#
+############################################################################
+
+{
+    'name': 'Purchase Management',
+    'version': '1.1',
+    'category': 'Purchase Management',
+    'summary': 'Purchase Orders, Receptions, Supplier Invoices',
+    'description': """
+Manage goods requirement by Purchase Orders easily
+==================================================
+
+    It is conversion of rml report to Webkit Report.
+    """,
+    'author': 'Serpent Consulting Services',
+    'website': 'http://www.serpentcs.com',
+    'depends': ['purchase','report_webkit'],
+    'data': [
+        'purchase_report.xml',
+    ],
+    'installable': True,
+    'auto_install': False,
+    'application': True,
+}
+# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:

=== added file 'purchase_webkit/purchase_report.xml'
--- purchase_webkit/purchase_report.xml	1970-01-01 00:00:00 +0000
+++ purchase_webkit/purchase_report.xml	2013-10-10 09:53:37 +0000
@@ -0,0 +1,175 @@
+<?xml version="1.0" encoding="utf-8"?>
+<openerp>
+    <data>
+        		       	<record id="purchase_order_header" model="ir.header_webkit">
+            <field name="footer_html"><![CDATA[
+			<html>
+			   <head>
+			       <meta content="text/html; charset=UTF-8" http-equiv="content-type"/>
+			       <script>
+			           function subst() {
+			           var vars={};
+			           var x=document.location.search.substring(1).split('&');
+			           for(var i in x) {var z=x[i].split('=',2);vars[z[0]] = unescape(z[1]);}
+			           var x=['frompage','topage','page','webpage','section','subsection','subsubsection'];
+			           for(var i in x) {
+			           var y = document.getElementsByClassName(x[i]);
+			           for(var j=0; j<y.length; ++j) y[j].textContent = vars[x[i]];
+			               }
+			           }
+			       </script>
+			       <style type="text/css">
+			       
+			           ${css}
+			       </style>
+			   </head>
+			   <body style="border:0; margin: 0;" onload="subst()">
+			       <table class="header" style="border-top: 1px solid black; width: 100%">
+			           <tr >
+			               <td style="text-align:center;font-size:12;" >${ company.rml_footer }</td>
+			           </tr>
+			           <tr >
+			               <td style="text-align:center;font-size:12;" >Contact : ${ user.name }</td>
+			           </tr>
+			       </table> ${_debug or ''|n} </body>
+			</html>
+			            ]]></field>
+			            <field name="orientation">Portrait</field>
+			            <field name="format">A4</field>
+			            <field name="html"><![CDATA[
+			<html>
+			   <head>
+			       <meta content="text/html; charset=UTF-8" http-equiv="content-type"/>
+			       <script>
+			           function subst() {
+			           var vars={};
+			           var x=document.location.search.substring(1).split('&');
+			           for(var i in x) {var z=x[i].split('=',2);vars[z[0]] = unescape(z[1]);}
+			           var x=['frompage','topage','page','webpage','section','subsection','subsubsection'];
+			           for(var i in x) {
+			           var y = document.getElementsByClassName(x[i]);
+			           for(var j=0; j<y.length; ++j) y[j].textContent = vars[x[i]];
+			               }
+			           }
+			       </script>
+			       <style type="text/css">
+			       
+			           ${css}
+			       </style>
+			   </head>
+			   <body style="border:0; margin: 0;" onload="subst()">
+			       <table class="header" style="border-bottom: 1px solid black; width: 100%">
+			           <tr >
+			               <td style="text-align:left;font-size:12;" width="20%">${ helper.embed_image('png',company.logo,200,50)|n }</td>
+			               <td style="text-align:right;font-size:12;" width="80%"></br></br>${ company.rml_header1 }</td>
+			           </tr>
+			       </table> ${_debug or ''|n} </body>
+			       <p style="text-align:left;font-size:12;">${company.name}</p>
+			</html>]]>
+			            </field>
+			            <field eval="25.0" name="margin_top"/>
+			            <field eval="25.0" name="margin_bottom"/>
+			            <field name="css"><![CDATA[
+			
+			body, table, td, span, div {
+			    font-family: Helvetica, Arial;
+			}
+			
+			body {
+			font-family:Arial;
+			font-size:9;
+			
+			}
+			
+			
+			.header {
+			    margin-left:0;
+			    text-align:left;
+			    width:300px;
+			    font-size:12;
+			}
+			.title {
+			font-size:16;
+			font-weight: bold;
+			font-family: Helvetica, Arial;
+			}
+			
+			
+			.basic_table{
+			width:100%;
+			text-align:center;
+			border:1px solid lightGrey;
+			border-collapse: collapse;
+			font-family: Helvetica;
+			}
+			.basic_table td {
+			border:1px solid lightGrey;
+			font-size:12;
+			font-family: Helvetica;
+			}
+			
+			.list_table {
+			border-color:black;
+			text-align:center;
+			border-collapse: collapse;
+			font-family: Helvetica;
+			}
+			.tbl_header{
+			    width:100%;
+			    font-size:10px;
+			}
+			.tr_bottom_line{
+			    border-bottom: thin solid black;
+			    width:100%;
+			    font-size:12px;
+			    font-weight: bold;
+			   	font-family: Helvetica;
+			}
+			.tr_bottom_line_dark_grey{
+			    border-top: thin solid #ccc;
+			    width:100%;
+			    font-size:12px;
+			    font-family: Helvetica;
+			}
+			.tr_top{
+			            border-top: thin solid black;
+			    		width:100%;
+			    		font-size:12px;
+			            font-family: Helvetica;
+			            }
+	
+			.td_f12{
+			    font-size:12px;
+			    font-family: Helvetica; 
+			}
+		
+		
+			
+			]]>
+			            </field>
+			            <field name="name">Purchase Order Header</field>
+		</record>
+
+        <report 
+        	auto="False" 
+        	id="report_purchase_quotation" 
+        	model="purchase.order" 
+            name="purchase.quotation.webkit" 
+        	file="purchase_webkit/report/request_quotation.mako"
+            string="Request for Quotation"
+        	report_type="webkit"
+        	webkit_header="purchase_order_header" />
+        
+        <report 
+        	auto="False" 
+        	id="report_purchase_order" 
+        	model="purchase.order"
+            name="purchase.order.webkit"  
+        	file="purchase_webkit/report/order.mako"
+            usage="default" 
+        	string="Purchase Order"
+        	report_type="webkit"
+        	webkit_header="purchase_order_header"/>
+        
+    </data>
+</openerp>

=== added directory 'purchase_webkit/report'
=== added file 'purchase_webkit/report/__init__.py'
--- purchase_webkit/report/__init__.py	1970-01-01 00:00:00 +0000
+++ purchase_webkit/report/__init__.py	2013-10-10 09:53:37 +0000
@@ -0,0 +1,23 @@
+# -*- coding: utf-8 -*-
+##############################################################################
+#
+#    OpenERP, Open Source Management Solution
+#    Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>).
+#
+#    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 <http://www.gnu.org/licenses/>.
+#
+##############################################################################
+
+import order
+import request_quotation

=== added file 'purchase_webkit/report/order.mako'
--- purchase_webkit/report/order.mako	1970-01-01 00:00:00 +0000
+++ purchase_webkit/report/order.mako	2013-10-10 09:53:37 +0000
@@ -0,0 +1,190 @@
+<html>
+<head>
+    <style type="text/css">
+            ${css}
+        </style>
+</head>
+<body>
+</br>
+        </br>
+        </br>
+       
+    %for o in objects:    
+         </br>
+        <table class="td_f12 tr_bottom_line_dark" width="40%" >
+            <tr>
+                <td width="25%">Phone</td>
+                <td>:&nbsp;${ company.phone or ''}</td>
+            </tr>
+            <tr>
+                <td>Mail</td>
+                <td>:&nbsp;${ company.email or '' }</td>
+            </tr>
+        </table>
+        </br>
+        </br>     
+       <table width="100%">
+            <tr>
+                <td width="3%"></td>
+                <td class="td_f12" >
+                    <b>${_('Shipping address :')}</b></br>
+                    ${(o.dest_address_id and o.dest_address_id.name) or (o.warehouse_id and o.warehouse_id.name) or ''}</br>
+                    ${(o.dest_address_id and display_address(o.dest_address_id)) or (o.warehouse_id and display_address(o.warehouse_id.partner_id)) or ''}</br>
+                    </br>
+                    
+                    
+                </td>
+                <td class="td_f12" >
+                    ${o.partner_id and o.partner_id and o.partner_id.name or '' }</br>
+                    ${o.partner_id.street}</br>
+                    ${o.partner_id.city or '' }&nbsp;${o.partner_id.zip or '' }</br>
+                    ${o.partner_id.country_id.name or ''}
+                </td>
+                <td> </td>
+            </tr>
+        </table>
+        </br>
+        </br>
+            %if o.state =='draft':
+                <h1><b>Purchase Order Confirmation N° ${ o.name }</b></h1>
+            %endif
+            %if o.state <>'draft':
+               <h1><b> Request for Quotation N° ${ o.name } </b></h1>
+            %endif
+        </br>
+        </br>
+        <table class="basic_table">
+            <tr>
+                <td width="25%">
+                  <b>${_('Our Order Reference')}</b>
+                </td>
+                <td width="25%">
+                  <b>${_('Your Order Reference')}</b>
+                </td>
+                <td width="25%">
+                  <b>${_('Order Date')}</b>
+                </td>
+                <td width="25%">
+                  <b>${_('Validated By')}</b>
+                 </td>
+              </tr>
+              <tr>
+                    <td>
+                        ${ o.name or '' }
+                    </td>
+                    <td>
+                        ${ o.partner_ref or '' }
+                    </td>
+                    <td>
+                        ${ o.date_order }
+                    </td>
+                    <td>
+                        ${ (o.validator and o.validator.name) or '' }
+                    </td>
+                </tr>
+        </table>
+        </br>
+        </br>
+        <table class="tr_bottom_line">
+            <tr>
+                <td width="34%">
+                    <b>${_('Description')}</b>
+                </td>
+                <td width="10%">
+                    <b>${_('Taxes')}</b>
+                </td>
+                <td width="15%">
+                    <b>${_('Date Req.')}</b>
+                </td>
+                <td width="15%" align="right">
+                    <b>${_('Qty')}</b>
+                </td>
+                <td width="13%" align="right">
+                    <b>${_('Unit Price')}</b>
+                </td>
+                <td width="13%" align="right">
+                    <b>${_('Net Price')}</b>
+                </td>
+              </tr>
+        </table>
+        %for line in o.order_line:
+        <table class="tr_bottom_line_dark_grey">
+            <tr>
+              <td width="34%">
+                    ${ line.name }
+              </td>
+              <td width="10%">
+                    ${ ', '.join(map(lambda x: x.name, line.taxes_id)) }
+              </td>
+              <td width="15%">
+                    ${ formatLang( line.date_planned, date=True)}
+              </td>
+              <td width="15%" align="right">
+                    ${ formatLang(line.product_qty )} ${ line.product_uom.name }
+              </td>
+              <td width="13%" align="right">
+                    ${ formatLang(line.price_unit, digits=get_digits(dp='Product Price') ) }
+              </td>
+              <td width="13%" align="right">
+                    ${ formatLang(line.price_subtotal, digits=get_digits(dp='Account'), currency_obj=o.pricelist_id.currency_id ) }
+              </td>
+            </tr>
+        </table>
+         %endfor
+         <table width="100%">
+            <tr>
+                <td width="70%">
+                </td>
+                <td width="30%">
+                    <table class="tr_top">
+                        <tr>                
+                            <td>
+                                Net Total :
+                            </td>
+                            <td>
+                            </td>
+                            <td align="right">
+                                ${ formatLang(o.amount_untaxed, digits=get_digits(dp='Account'), currency_obj=o.pricelist_id.currency_id ) }
+                            </td>
+                       </tr>
+                       <tr>
+                           <td>
+                              Taxes :
+                           </td>
+                           <td>
+                           </td>
+                           <td align="right">
+                                ${ formatLang(o.amount_tax, dp='Account', currency_obj=o.pricelist_id.currency_id) }
+                           </td>
+                       </tr>
+                    </table>
+                    <table class="tr_top">
+                        <tr>
+                            <td>
+                                <b>Total :</b>
+                            </td>
+                            <td>
+                            </td>
+                            <td>
+                            <td align="right">
+                                 <b>${ formatLang(o.amount_total, digits=get_digits(dp='Account') , currency_obj=o.pricelist_id.currency_id ) }</b>
+                            </td>
+                        </tr>
+                    </table>
+                </td>
+            </tr>
+        </table>
+        </br>
+        <table>
+              <tr>
+                <td>
+                    
+                    ${ (o.notes or '') }
+                </td>
+              </tr>
+        </table>
+        <p style="page-break-after:always">
+        </p>
+    %endfor
+</body>
+</html>
\ No newline at end of file

=== added file 'purchase_webkit/report/order.py'
--- purchase_webkit/report/order.py	1970-01-01 00:00:00 +0000
+++ purchase_webkit/report/order.py	2013-10-10 09:53:37 +0000
@@ -0,0 +1,35 @@
+# -*- coding: utf-8 -*-
+##############################################################################
+#    
+#    OpenERP, Open Source Management Solution
+#    Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>).
+#
+#    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 <http://www.gnu.org/licenses/>.     
+#
+##############################################################################
+
+import time
+from openerp.report import report_sxw
+from openerp.osv import osv
+from openerp import pooler
+
+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.purchase.order.webkit','purchase.order','purchase_webkit/report/order.mako',parser=order)
+
+# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
+

=== added file 'purchase_webkit/report/request_quotation.mako'
--- purchase_webkit/report/request_quotation.mako	1970-01-01 00:00:00 +0000
+++ purchase_webkit/report/request_quotation.mako	2013-10-10 09:53:37 +0000
@@ -0,0 +1,94 @@
+<html>
+<head>
+    <style type="text/css">
+            ${css}
+        </style>
+    <title>requestforquotation.pdf</title>
+</head>
+<body>
+    %for order in objects:
+        </br>
+        </br>
+        </br>
+        </br>
+        <table class="td_f12" width="40%" >
+            <tr>
+                <td width="25%">Phone</td>
+                <td>:&nbsp;${ company.phone or ''}</td>
+            </tr>
+            <tr>
+                <td>Mail</td>
+                <td>:&nbsp;${ company.email or '' }</td>
+            </tr>
+        </table>
+        </br>
+        </br>     
+        <table width="100%">
+            <tr>
+                <td width="70%">
+                  <table width="100%" class="td_f12">
+                    <tr>
+                      <td>
+                        <b>Expected Delivery address:</b></br>
+                        ${ (order.dest_address_id and order.dest_address_id.name) or (order.warehouse_id and order.warehouse_id.name) or ''}</br>
+                        ${ order.dest_address_id and display_address(order.dest_address_id) }</br></br>
+                      </td>
+                    </tr>
+                  </table>
+                </td>
+                <td>
+                </td>
+                <td width="70%" class="td_f12">
+                  ${ (order .partner_id and order.partner_id.title and order.partner_id.title.name) or '' } ${ (order .partner_id and order.partner_id.name) or '' }</br>
+                  ${ order.partner_id and display_address(order .partner_id) }</br>
+                  Tel.: ${ (order.partner_id and order.partner_id.phone) or '' }</br>
+                  Fax: ${ (order.partner_id and order.partner_id.fax) or ''}</br>
+                  TVA: ${ (order.partner_id and order.partner_id.vat) or '' }</br>
+                </td>
+              </tr>
+        </table>
+        </br>
+        <b>Request for Quotation : ${ order.name }</b>
+        <table class="tr_bottom_line">
+            <tr>
+                <td width="65%">
+                  <b>${_('Description')}</b>
+                </td>
+                <td width="20%">
+                  <b>${_('Expected Date')}</b>
+                </td>
+                <td width="15%">
+                  <b>${_('Qty')}</b>
+                </td>
+              </tr>
+        </table>
+        %for  order_line in  order.order_line:
+        <table  class="tr_bottom_line_dark_grey">
+            <tr>
+          <td width="65%">
+                ${ order_line.name }
+          </td>
+          <td width="20%">
+                ${ formatLang(order_line.date_planned, date = True) }
+          </td>
+          <td width="15%" align="right">
+                ${ formatLang(order_line.product_qty )}
+                <i>${ (order_line.product_uom and order_line.product_uom.name) or '' }</i>
+          </td>
+        </tr>
+        </table>
+         %endfor
+        </br>
+        <p class="td_f12">
+        ${ order.notes or '' }</br>
+        ${_('Regards,')}
+        </br>
+        ${ user.signature or ''}</br>
+        </p>
+        
+       <p style="page-break-after:always">
+        </p>
+       
+    %endfor
+</body>
+</html>
\ No newline at end of file

=== added file 'purchase_webkit/report/request_quotation.py'
--- purchase_webkit/report/request_quotation.py	1970-01-01 00:00:00 +0000
+++ purchase_webkit/report/request_quotation.py	2013-10-10 09:53:37 +0000
@@ -0,0 +1,37 @@
+# -*- coding: utf-8 -*-
+##############################################################################
+#    
+#    OpenERP, Open Source Management Solution
+#    Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>).
+#
+#    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 <http://www.gnu.org/licenses/>.     
+#
+##############################################################################
+
+import time
+from openerp.report import report_sxw
+from openerp.osv import osv
+from openerp import pooler
+
+class request_quotation(report_sxw.rml_parse):
+    def __init__(self, cr, uid, name, context):
+        super(request_quotation, self).__init__(cr, uid, name, context=context)
+        self.localcontext.update({
+            'time': time,
+            'user': self.pool.get('res.users').browse(cr, uid, uid, context)
+        })
+report_sxw.report_sxw('report.purchase.quotation.webkit','purchase.order','addons/purchase_webkit/report/request_quotation.mako',parser=request_quotation)
+
+# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
+


Follow ups