You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

114 lines
5.7 KiB

6 years ago
  1. <?xml version="1.0"?>
  2. <odoo>
  3. <report
  4. id="partner_agreement_contract_document"
  5. model="agreement"
  6. string="Contract Document"
  7. name="agreement.report_agreement_document"
  8. file="agreement.report_agreement_document"
  9. report_type="qweb-pdf"/>
  10. <report
  11. id="partner_agreement_contract_document_preview"
  12. model="agreement"
  13. string="Contract Document Preview"
  14. name="agreement.report_agreement_document"
  15. file="agreement.report_agreement_document"
  16. report_type="qweb-html"/>
  17. <template id="report_agreement_document">
  18. <t t-name="agreement.report_agreement_document">
  19. <t t-call="web.html_container">
  20. <t t-foreach="docs" t-as="doc">
  21. <t t-call="web.external_layout">
  22. <div class="page">
  23. <h1 t-field="doc.name"/>
  24. <div name="description">
  25. <p t-field="doc.description"/>
  26. </div>
  27. <h2>Parties</h2>
  28. <h3>Company Information</h3>
  29. <div name="company_address">
  30. <address t-field="doc.company_partner_id"
  31. t-options='{"widget": "contact", "fields": ["address", "name"], "no_marker": True}' />
  32. </div>
  33. <div name="company_contact">
  34. Represented by <span t-field="doc.company_contact_id.name"/>.
  35. </div>
  36. <h3>Partner Information</h3>
  37. <div name="partner_address">
  38. <address t-field="doc.partner_id"
  39. t-options='{"widget": "contact", "fields": ["address", "name"], "no_marker": True}' />
  40. </div>
  41. <div name="partner_contact">
  42. Represented by <span t-field="doc.partner_contact_id.name"/>.
  43. </div>
  44. <h2>Agreement</h2>
  45. <table class="table table-condensed">
  46. <tbody class="section_tbody">
  47. <tr>
  48. <td>
  49. <ol>
  50. <li t-foreach="doc.sections_ids" t-as="s">
  51. <h3 t-field="s.name"/>
  52. <p t-field="s.content"/>
  53. <ol>
  54. <li t-foreach="s.clauses_ids" t-as="c">
  55. <h4 t-field="c.name"/>
  56. <p t-field="c.content"/>
  57. </li>
  58. </ol>
  59. </li>
  60. </ol>
  61. </td>
  62. </tr>
  63. </tbody>
  64. </table>
  65. <h2>Special Terms</h2>
  66. <div name="special_term">
  67. <p t-field="doc.special_terms"/>
  68. </div>
  69. <h2>Signatures</h2>
  70. <table class="table table-condensed">
  71. <theader>
  72. <tr>
  73. <th>Partner</th>
  74. <th>Company</th>
  75. </tr>
  76. </theader>
  77. <tbody class="section_tbody">
  78. <tr>
  79. <td>
  80. <p t-field="doc.partner_id"/>
  81. <p>By: </p>
  82. <p>
  83. Name: <span t-field="doc.partner_contact_id.name"/>
  84. </p>
  85. <p>
  86. Title: <span t-field="doc.partner_contact_id.function"/>
  87. </p>
  88. <p>Date: </p>
  89. </td>
  90. <td>
  91. <p t-field="doc.company_partner_id"/>
  92. <p>By: </p>
  93. <p>
  94. Name: <span t-field="doc.company_contact_id.name"/>
  95. </p>
  96. <p>
  97. Title: <span t-field="doc.company_contact_id.function"/>
  98. </p>
  99. <p>Date: </p>
  100. </td>
  101. </tr>
  102. </tbody>
  103. </table>
  104. </div>
  105. </t>
  106. </t>
  107. </t>
  108. </t>
  109. </template>
  110. </odoo>