mirror of
https://github.com/OCA/contract.git
synced 2025-02-13 17:57:24 +02:00
[IMP] contract: Add contract modification
This commit is contained in:
committed by
Pedro M. Baeza
parent
7f8c59fb2a
commit
a9f65b439a
@@ -7,4 +7,9 @@
|
||||
<script type="text/javascript" src="/contract/static/src/js/section_and_note_fields_backend.js"></script>
|
||||
</xpath>
|
||||
</template>
|
||||
<template id="assets_frontend" inherit_id="web.assets_frontend" name="contract assets">
|
||||
<xpath expr="." position="inside">
|
||||
<link rel="stylesheet" href="/contract/static/src/scss/frontend.scss" type="text/css"/>
|
||||
</xpath>
|
||||
</template>
|
||||
</odoo>
|
||||
|
||||
@@ -170,6 +170,15 @@
|
||||
</field>
|
||||
<field name="note"/>
|
||||
</page>
|
||||
<page name="modications" string="Modifications">
|
||||
<field name="modification_ids" attrs="{'readonly': [('is_terminated','=',True)]}">
|
||||
<tree editable="bottom">
|
||||
<field name="date"/>
|
||||
<field name="description"/>
|
||||
<field name="sent"/>
|
||||
</tree>
|
||||
</field>
|
||||
</page>
|
||||
<page name="info" string="Other Information">
|
||||
<field name="create_invoice_visibility"
|
||||
invisible="1"/>
|
||||
|
||||
@@ -168,6 +168,29 @@
|
||||
</div>
|
||||
</t>
|
||||
</t>
|
||||
<section t-if="contract.modification_ids" class="s_timeline pt24 pb48 o_colored_level" data-snippet="s_timeline">
|
||||
<div class="container s_timeline_line">
|
||||
<t t-set="last_modification_date" t-value="False" />
|
||||
<div class="s_timeline_row d-block d-md-flex flex-row" t-foreach="contract.modification_ids" t-as="modification">
|
||||
<div class="s_timeline_date">
|
||||
<t t-if="not last_modification_date or last_modification_date!=modification.date">
|
||||
<t t-set="last_modification_date" t-value="modification.date" />
|
||||
<span class="bg-white">
|
||||
<b class="o_default_snippet_text" t-esc="last_modification_date" t-options='{"widget": "date"}' />
|
||||
</span>
|
||||
</t>
|
||||
</div>
|
||||
<div class="s_timeline_content s_timeline_content_left d-flex">
|
||||
<div class="s_timeline_card s_card card bg-white w-100" data-snippet="s_card">
|
||||
<div class="card-body">
|
||||
<div class="card-text o_default_snippet_text" t-field="modification.description"/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="s_timeline_content s_timeline_content_right"></div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<!-- chatter -->
|
||||
<div id="contract_communication" class="mt-4">
|
||||
<h2>Communication</h2>
|
||||
|
||||
Reference in New Issue
Block a user