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.

144 lines
7.4 KiB

6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
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.dynamic_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. <h3>Recitals</h3>
  46. <table class="table table-condensed">
  47. <tbody>
  48. <tr>
  49. <td>
  50. <ol>
  51. <li t-foreach="doc.recital_ids" t-as="r">
  52. <t t-if="r.title">
  53. <h3 t-field="r.title"/>
  54. </t>
  55. <p t-field="r.dynamic_content"/>
  56. </li>
  57. </ol>
  58. </td>
  59. </tr>
  60. </tbody>
  61. </table>
  62. <table class="table table-condensed">
  63. <tbody class="section_tbody">
  64. <tr>
  65. <td>
  66. <ol>
  67. <li t-foreach="doc.sections_ids" t-as="s">
  68. <t t-if="s.title">
  69. <h3 t-field="s.title"/>
  70. </t>
  71. <p t-field="s.dynamic_content"/>
  72. <ol>
  73. <li t-foreach="s.clauses_ids" t-as="c">
  74. <t t-if="c.title">
  75. <h4 t-field="c.title"/>
  76. </t>
  77. <p t-field="c.dynamic_content"/>
  78. </li>
  79. </ol>
  80. </li>
  81. </ol>
  82. </td>
  83. </tr>
  84. </tbody>
  85. </table>
  86. <t t-if="special_term">
  87. <h2>Special Terms</h2>
  88. <div name="special_term">
  89. <p t-field="doc.dynamic_special_terms"/>
  90. </div>
  91. </t>
  92. <h2>Signatures</h2>
  93. <table class="table table-condensed">
  94. <theader>
  95. <tr>
  96. <th>Partner</th>
  97. <th>Company</th>
  98. </tr>
  99. </theader>
  100. <tbody class="section_tbody">
  101. <tr>
  102. <td>
  103. <p t-field="doc.partner_id"/>
  104. <p>By: </p>
  105. <p>
  106. Name: <span t-field="doc.partner_contact_id.name"/>
  107. </p>
  108. <p>
  109. Title: <span t-field="doc.partner_contact_id.function"/>
  110. </p>
  111. <p>Date: </p>
  112. </td>
  113. <td>
  114. <p t-field="doc.company_partner_id"/>
  115. <p>By: </p>
  116. <p>
  117. Name: <span t-field="doc.company_contact_id.name"/>
  118. </p>
  119. <p>
  120. Title: <span t-field="doc.company_contact_id.function"/>
  121. </p>
  122. <p>Date: </p>
  123. </td>
  124. </tr>
  125. </tbody>
  126. </table>
  127. </div>
  128. <div t-foreach="doc.appendix_ids" t-as="a">
  129. <div class="page">
  130. <h1 t-field="a.title"
  131. style="page-break-before: always;"/>
  132. <p t-field="a.dynamic_content"/>
  133. </div>
  134. </div>
  135. </t>
  136. </t>
  137. </t>
  138. </t>
  139. </template>
  140. </odoo>