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:
@@ -16,6 +16,19 @@
|
||||
/>
|
||||
</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>
|
||||
<template id="assets_tests" inherit_id="web.assets_tests">
|
||||
<xpath expr="." position="inside">
|
||||
<script
|
||||
|
||||
@@ -406,6 +406,18 @@
|
||||
</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" />
|
||||
<group>
|
||||
|
||||
@@ -94,7 +94,7 @@
|
||||
<t t-set="card_header">
|
||||
<h5 class="mb-0">
|
||||
<span>
|
||||
Contract Order - <span t-field="contract.name" />
|
||||
Contract - <span t-field="contract.name" />
|
||||
</span>
|
||||
</h5>
|
||||
</t>
|
||||
@@ -259,6 +259,52 @@
|
||||
</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>
|
||||
</section>
|
||||
<!-- chatter -->
|
||||
<div id="contract_communication" class="mt-4">
|
||||
<h2>Communication</h2>
|
||||
|
||||
Reference in New Issue
Block a user