SHARE
TWEET

Untitled

a guest Mar 5th, 2013 12 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. py:
  2. from ir.report import Report
  3.  
  4.  
  5. class UPRReport(Report):
  6.     __name__ = 'upr.report'
  7.  
  8.  
  9. __init__:
  10. in register :
  11.  
  12. Pool.register(
  13.     UPRReport,
  14.     module='upr', type_="report"
  15.  
  16.  
  17. xml:
  18.         <record model="ir.action.report" id="report_upr">
  19.             <field name="name">Unit_Procurement_Request</field>
  20.             <field name="model">upr.upr</field>
  21. <!--  HERE Change -->
  22.             <field name="report_name">upr.upr</field>
  23. <!--  TO -->            
  24.             <field name="report_name">upr.report</field>
  25.            
  26.             <field name="report">upr/upr.odt</field>
  27.         </record>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top