Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
73 changes: 42 additions & 31 deletions agreement_legal/views/agreement.xml
Original file line number Diff line number Diff line change
Expand Up @@ -97,37 +97,48 @@
<field name="readonly" invisible="1" />
</group>
</group>
<field name="description" required="True" />
<group class="oe_edit_only">
<group>
<field
name="field_id"
domain="[('model_id', '=', 'agreement'),
('ttype', '!=', 'one2many'),
('ttype', '!=', 'many2many')]"
/>
<field name="sub_object_id" readonly="1" />
<field
name="sub_model_object_field_id"
domain="[('model_id', '=', sub_object_id),
('ttype', '!=', 'one2many'),
('ttype', '!=', 'many2many')]"
readonly="sub_object_id == False"
required="sub_object_id != False"
/>
<field name="default_value" />
<field name="copyvalue" />
</group>
<p>
This section (on the left) allows you to add dynamic fields inside the description and special terms.
<ol>
<li>Select the agreement field</li>
<li>Select the sub-field</li>
<li>Enter the default value if the field is empty</li>
<li
>Copy and paste the placeholder expression in the description or the special terms</li>
</ol>
</p>
<group string="Description">
<field
name="description"
required="True"
nolabel="1"
colspan="2"
placeholder="Enter description here..."
/>
<div
class="oe_edit_only alert alert-light d-flex justify-content-between flex-xl-row flex-column"
role="status"
>
<group class="flex-fill">
<field
name="field_id"
domain="[('model_id', '=', 'agreement'),
('ttype', '!=', 'one2many'),
('ttype', '!=', 'many2many')]"
/>
<field name="sub_object_id" readonly="1" />
<field
name="sub_model_object_field_id"
domain="[('model_id', '=', sub_object_id),
('ttype', '!=', 'one2many'),
('ttype', '!=', 'many2many')]"
readonly="sub_object_id == False"
required="sub_object_id != False"
/>
<field name="default_value" />
<field name="copyvalue" />
</group>
<p class="px-xl-4">
This section (on the left) allows you to add dynamic fields inside the description and special terms.
<ol>
<li>Select the agreement field</li>
<li>Select the sub-field</li>
<li>Enter the default value if the field is empty</li>
<li
>Copy and paste the placeholder expression in the description or the special terms</li>
</ol>
</p>
</div>
</group>
<group name="parties" string="Parties">
<group name="cust_parties">
Expand Down
17 changes: 12 additions & 5 deletions agreement_legal/views/agreement_appendix.xml
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,16 @@
<field name="sequence" />
</group>
</group>
<field name="content" widget="html" />
<group class="oe_edit_only">
<group>
<field
name="content"
widget="html"
placeholder="Enter content here..."
/>
<div
class="oe_edit_only alert alert-light d-flex justify-content-between flex-xl-row flex-column"
role="status"
>
<group class="flex-fill">
<field
name="field_id"
domain="[('model_id', '=', 'agreement.appendix'),
Expand All @@ -65,7 +72,7 @@
<field name="default_value" />
<field name="copyvalue" />
</group>
<p>
<p class="px-xl-4">
This section (on the left) allows you to add dynamic fields inside the content.
<ol>
<li>Select the appendix field</li>
Expand All @@ -75,7 +82,7 @@
>Copy and paste the placeholder expression in the content</li>
</ol>
</p>
</group>
</div>
</sheet>
</form>
</field>
Expand Down
17 changes: 12 additions & 5 deletions agreement_legal/views/agreement_clause.xml
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,16 @@
<field name="sequence" />
</group>
</group>
<field name="content" widget="html" />
<group class="oe_edit_only">
<group>
<field
name="content"
widget="html"
placeholder="Enter content here..."
/>
<div
class="oe_edit_only alert alert-light d-flex justify-content-between flex-xl-row flex-column"
role="status"
>
<group class="flex-fill">
<field
name="field_id"
domain="[('model_id', '=', 'agreement.clause'),
Expand All @@ -70,7 +77,7 @@
<field name="default_value" />
<field name="copyvalue" />
</group>
<p>
<p class="px-xl-4">
This section (on the left) allows you to add dynamic fields inside the content.
<ol>
<li>Select the clause field</li>
Expand All @@ -80,7 +87,7 @@
>Copy and paste the placeholder expression in the content</li>
</ol>
</p>
</group>
</div>
</sheet>
</form>
</field>
Expand Down
17 changes: 12 additions & 5 deletions agreement_legal/views/agreement_recital.xml
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,16 @@
<field name="sequence" />
</group>
</group>
<field name="content" widget="html" />
<group class="oe_edit_only">
<group>
<field
name="content"
widget="html"
placeholder="Enter content here..."
/>
<div
class="oe_edit_only alert alert-light d-flex justify-content-between flex-xl-row flex-column"
role="status"
>
<group class="flex-fill">
<field
name="field_id"
domain="[('model_id', '=', 'agreement.recital'),
Expand All @@ -65,7 +72,7 @@
<field name="default_value" />
<field name="copyvalue" />
</group>
<p>
<p class="px-xl-4">
This section (on the left) allows you to add dynamic fields inside the content.
<ol>
<li>Select the recital field</li>
Expand All @@ -75,7 +82,7 @@
>Copy and paste the placeholder expression in the content</li>
</ol>
</p>
</group>
</div>
</sheet>
</form>
</field>
Expand Down
17 changes: 12 additions & 5 deletions agreement_legal/views/agreement_section.xml
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,16 @@
</group>
<notebook>
<page string="Content">
<field name='content' nolabel="1" />
<group class="oe_edit_only">
<group>
<field
name='content'
nolabel="1"
placeholder="Enter content here..."
/>
<div
class="oe_edit_only alert alert-light d-flex justify-content-between flex-xl-row flex-column"
role="status"
>
<group class="flex-fill">
<field
name="field_id"
domain="[('model_id', '=', 'agreement.section'),
Expand All @@ -67,7 +74,7 @@
<field name="default_value" />
<field name="copyvalue" />
</group>
<p>
<p class="px-xl-4">
This section (on the left) allows you to add dynamic fields inside the content.
<ol>
<li>Select the section field</li>
Expand All @@ -78,7 +85,7 @@
>Copy and paste the placeholder expression in the content</li>
</ol>
</p>
</group>
</div>
</page>
<page string="Clauses">
<field
Expand Down