Advertisement
Guest User

Untitled

a guest
Mar 5th, 2013
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  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>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement