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.

151 lines
7.8 KiB

  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_legal.report_agreement_document"
  8. file="agreement_legal.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_legal.report_agreement_document"
  15. file="agreement_legal.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. <span t-field="doc.dynamic_description"/>
  26. </div>
  27. <h2>Parties</h2>
  28. <div name="parties">
  29. <t t-if="doc.use_parties_content">
  30. <p t-field="doc.dynamic_parties"/>
  31. </t>
  32. </div>
  33. <t t-if="not doc.use_parties_content">
  34. <h3>Company Information</h3>
  35. <div name="company_address">
  36. <address t-field="doc.company_id.partner_id"
  37. t-options='{"widget": "contact", "fields": ["address", "name"], "no_marker": True}' />
  38. </div>
  39. <div name="company_contact">
  40. Represented by <span t-field="doc.company_contact_id.name"/>.
  41. </div>
  42. <h3>Partner Information</h3>
  43. <div name="partner_address">
  44. <address t-field="doc.partner_id"
  45. t-options='{"widget": "contact", "fields": ["address", "name"], "no_marker": True}' />
  46. </div>
  47. <div name="partner_contact">
  48. Represented by <span t-field="doc.partner_contact_id.name"/>.
  49. </div>
  50. </t>
  51. <h2>Agreement</h2>
  52. <h3>Recitals</h3>
  53. <table class="table table-condensed">
  54. <tbody>
  55. <tr>
  56. <td>
  57. <ol>
  58. <li t-foreach="doc.recital_ids" t-as="r">
  59. <t t-if="r.title">
  60. <h3 t-field="r.title"/>
  61. </t>
  62. <p t-field="r.dynamic_content"/>
  63. </li>
  64. </ol>
  65. </td>
  66. </tr>
  67. </tbody>
  68. </table>
  69. <table class="table table-condensed">
  70. <tbody class="section_tbody">
  71. <tr>
  72. <td>
  73. <ol>
  74. <li t-foreach="doc.sections_ids" t-as="s">
  75. <t t-if="s.title">
  76. <h3 t-field="s.title"/>
  77. </t>
  78. <p t-field="s.dynamic_content"/>
  79. <ol>
  80. <li t-foreach="s.clauses_ids" t-as="c">
  81. <t t-if="c.title">
  82. <h4 t-field="c.title"/>
  83. </t>
  84. <p t-field="c.dynamic_content"/>
  85. </li>
  86. </ol>
  87. </li>
  88. </ol>
  89. </td>
  90. </tr>
  91. </tbody>
  92. </table>
  93. <t t-if="doc.special_terms">
  94. <h2>Special Terms</h2>
  95. <div name="special_term">
  96. <p t-field="doc.dynamic_special_terms"/>
  97. </div>
  98. </t>
  99. <h2>Signatures</h2>
  100. <table class="table table-condensed">
  101. <theader>
  102. <tr>
  103. <th>Partner</th>
  104. <th>Company</th>
  105. </tr>
  106. </theader>
  107. <tbody class="section_tbody">
  108. <tr>
  109. <td>
  110. <p t-field="doc.partner_id"/>
  111. <p>By: </p>
  112. <p>
  113. Name: <span t-field="doc.partner_contact_id.name"/>
  114. </p>
  115. <p>
  116. Title: <span t-field="doc.partner_contact_id.function"/>
  117. </p>
  118. <p>Date: </p>
  119. </td>
  120. <td>
  121. <p t-field="doc.company_id.partner_id"/>
  122. <p>By: </p>
  123. <p>
  124. Name: <span t-field="doc.company_contact_id.name"/>
  125. </p>
  126. <p>
  127. Title: <span t-field="doc.company_contact_id.function"/>
  128. </p>
  129. <p>Date: </p>
  130. </td>
  131. </tr>
  132. </tbody>
  133. </table>
  134. </div>
  135. <div t-foreach="doc.appendix_ids" t-as="a">
  136. <div class="page">
  137. <h1 t-field="a.title"
  138. style="page-break-before: always;"/>
  139. <p t-field="a.dynamic_content"/>
  140. </div>
  141. </div>
  142. </t>
  143. </t>
  144. </t>
  145. </t>
  146. </template>
  147. </odoo>