purchase_reports.xml 1.4 KB

1234567891011121314151617181920212223242526272829
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <odoo>
  3. <data>
  4. <record id="action_report_purchase_order" model="ir.actions.report">
  5. <field name="name">Purchase Order</field>
  6. <field name="model">purchase.order</field>
  7. <field name="report_type">qweb-pdf</field>
  8. <field name="report_name">purchase.report_purchaseorder</field>
  9. <field name="report_file">purchase.report_purchaseorder</field>
  10. <field name="print_report_name">
  11. (object.state in ('draft', 'sent') and 'Request for Quotation - %s' % (object.name) or
  12. 'Purchase Order - %s' % (object.name))</field>
  13. <field name="binding_model_id" ref="model_purchase_order"/>
  14. <field name="binding_type">report</field>
  15. </record>
  16. <record id="report_purchase_quotation" model="ir.actions.report">
  17. <field name="name">Request for Quotation</field>
  18. <field name="model">purchase.order</field>
  19. <field name="report_type">qweb-pdf</field>
  20. <field name="report_name">purchase.report_purchasequotation</field>
  21. <field name="report_file">purchase.report_purchasequotation</field>
  22. <field name="print_report_name">'Request for Quotation - %s' % (object.name)</field>
  23. <field name="binding_model_id" ref="model_purchase_order"/>
  24. <field name="binding_type">report</field>
  25. </record>
  26. </data>
  27. </odoo>