|
97 | 97 | <field name="readonly" invisible="1" /> |
98 | 98 | </group> |
99 | 99 | </group> |
100 | | - <field name="description" required="True" /> |
101 | | - <group class="oe_edit_only"> |
102 | | - <group> |
103 | | - <field |
104 | | - name="field_id" |
105 | | - domain="[('model_id', '=', 'agreement'), |
106 | | - ('ttype', '!=', 'one2many'), |
107 | | - ('ttype', '!=', 'many2many')]" |
108 | | - /> |
109 | | - <field name="sub_object_id" readonly="1" /> |
110 | | - <field |
111 | | - name="sub_model_object_field_id" |
112 | | - domain="[('model_id', '=', sub_object_id), |
113 | | - ('ttype', '!=', 'one2many'), |
114 | | - ('ttype', '!=', 'many2many')]" |
115 | | - readonly="sub_object_id == False" |
116 | | - required="sub_object_id != False" |
117 | | - /> |
118 | | - <field name="default_value" /> |
119 | | - <field name="copyvalue" /> |
120 | | - </group> |
121 | | - <p> |
122 | | - This section (on the left) allows you to add dynamic fields inside the description and special terms. |
123 | | - <ol> |
124 | | - <li>Select the agreement field</li> |
125 | | - <li>Select the sub-field</li> |
126 | | - <li>Enter the default value if the field is empty</li> |
127 | | - <li |
128 | | - >Copy and paste the placeholder expression in the description or the special terms</li> |
129 | | - </ol> |
130 | | - </p> |
| 100 | + <group string="Description"> |
| 101 | + <field |
| 102 | + name="description" |
| 103 | + required="True" |
| 104 | + nolabel="1" |
| 105 | + colspan="2" |
| 106 | + placeholder="Enter description here..." |
| 107 | + /> |
| 108 | + <div |
| 109 | + class="oe_edit_only alert alert-light d-flex justify-content-between flex-xl-row flex-column" |
| 110 | + role="status" |
| 111 | + > |
| 112 | + <group class="flex-fill"> |
| 113 | + <field |
| 114 | + name="field_id" |
| 115 | + domain="[('model_id', '=', 'agreement'), |
| 116 | + ('ttype', '!=', 'one2many'), |
| 117 | + ('ttype', '!=', 'many2many')]" |
| 118 | + /> |
| 119 | + <field name="sub_object_id" readonly="1" /> |
| 120 | + <field |
| 121 | + name="sub_model_object_field_id" |
| 122 | + domain="[('model_id', '=', sub_object_id), |
| 123 | + ('ttype', '!=', 'one2many'), |
| 124 | + ('ttype', '!=', 'many2many')]" |
| 125 | + readonly="sub_object_id == False" |
| 126 | + required="sub_object_id != False" |
| 127 | + /> |
| 128 | + <field name="default_value" /> |
| 129 | + <field name="copyvalue" /> |
| 130 | + </group> |
| 131 | + <p class="px-xl-4"> |
| 132 | + This section (on the left) allows you to add dynamic fields inside the description and special terms. |
| 133 | + <ol> |
| 134 | + <li>Select the agreement field</li> |
| 135 | + <li>Select the sub-field</li> |
| 136 | + <li>Enter the default value if the field is empty</li> |
| 137 | + <li |
| 138 | + >Copy and paste the placeholder expression in the description or the special terms</li> |
| 139 | + </ol> |
| 140 | + </p> |
| 141 | + </div> |
131 | 142 | </group> |
132 | 143 | <group name="parties" string="Parties"> |
133 | 144 | <group name="cust_parties"> |
|
0 commit comments