|
5 | 5 | <field name="inherit_id" ref="crm.crm_lead_view_form" />
|
6 | 6 | <field name="arch" type="xml">
|
7 | 7 | <xpath expr="//group[1]" position="before">
|
8 |
| - <div colspan="2"> |
9 |
| - <field name="contract_signed" /> |
| 8 | + <div> |
| 9 | + <field name="contract_signed" nolabel="1" /> |
10 | 10 | <label for="contract_signed" />
|
| 11 | + <br class="oe_edit_only" /> |
| 12 | + <label for="docs_link" class="ml-4" /> |
| 13 | + <field name="docs_link" widget="url" /> |
11 | 14 | </div>
|
12 | 15 | <field name="show_recalculate_total_button" invisible="1" />
|
13 | 16 | <button
|
|
57 | 60 | </tree>
|
58 | 61 | </field>
|
59 | 62 | </div>
|
| 63 | + <group string="Tariffs"> |
| 64 | + <field name="lead_employee_ids" nolabel="1"> |
| 65 | + <tree editable="bottom"> |
| 66 | + <field name="employee_id" /> |
| 67 | + <field name="rate" /> |
| 68 | + <field name="currency_id" invisible="1" /> |
| 69 | + </tree> |
| 70 | + </field> |
| 71 | + </group> |
60 | 72 | </xpath>
|
61 | 73 | <xpath expr="//field[@name='date_deadline']" position="after">
|
62 | 74 | <field name="project_id" />
|
|
223 | 235 | <field name="model">crm.lead</field>
|
224 | 236 | <field name="inherit_id" ref="crm.quick_create_opportunity_form" />
|
225 | 237 | <field name="arch" type="xml">
|
| 238 | + <field name="partner_id" position="before"> |
| 239 | + <field name="name" position="move" /> |
| 240 | + </field> |
| 241 | + <field name="partner_id" position="attributes"> |
| 242 | + <attribute name="string">Customer</attribute> |
| 243 | + </field> |
| 244 | + <field name="name" position="after"> |
| 245 | + <field name="start_date" /> |
| 246 | + <field name="end_date" /> |
| 247 | + </field> |
226 | 248 | <xpath expr="//field[@name='partner_id']" position="after">
|
227 | 249 | <field name="operating_unit_id" />
|
228 | 250 | <field name="department_id" />
|
229 |
| - <field name="tag_ids" string="Proposition" widget="many2many_tags" /> |
230 |
| - <field name="date_deadline" string="Expected Closing Date" /> |
| 251 | + <field name="date_deadline" string="Deadline submission" /> |
231 | 252 | </xpath>
|
232 | 253 | <label for="expected_revenue" position="attributes">
|
233 | 254 | <attribute name="string">Expected Revenue + Probability</attribute>
|
234 | 255 | </label>
|
235 | 256 | <xpath expr="//field[@name='expected_revenue']" position="after">
|
236 | 257 | <field name="probability" />
|
237 | 258 | </xpath>
|
| 259 | + <field name="email_from" position="attributes"> |
| 260 | + <attribute name="invisible">True</attribute> |
| 261 | + </field> |
| 262 | + <field name="phone" position="attributes"> |
| 263 | + <attribute name="invisible">True</attribute> |
| 264 | + </field> |
| 265 | + <xpath |
| 266 | + expr="//field[@name='priority' and @widget='priority']" |
| 267 | + position="attributes" |
| 268 | + > |
| 269 | + <attribute name="invisible">True</attribute> |
| 270 | + </xpath> |
| 271 | + </field> |
| 272 | + </record> |
| 273 | + <record model="ir.ui.view" id="crm_case_kanban_view_leads"> |
| 274 | + <field name="model">crm.lead</field> |
| 275 | + <field name="inherit_id" ref="crm.crm_case_kanban_view_leads" /> |
| 276 | + <field name="arch" type="xml"> |
| 277 | + <field name="user_id" position="before"> |
| 278 | + <field name="user_name" /> |
| 279 | + <field name="date_deadline" /> |
| 280 | + <field name="first_employee_name" /> |
| 281 | + </field> |
| 282 | + <xpath |
| 283 | + expr="//div[hasclass('o_kanban_record_title')]//field" |
| 284 | + position="before" |
| 285 | + > |
| 286 | + <xpath |
| 287 | + expr="//div/span[@t-if='record.partner_id.value']" |
| 288 | + position="move" |
| 289 | + /> |
| 290 | + </xpath> |
| 291 | + <xpath |
| 292 | + expr="//div[hasclass('o_kanban_record_title')]//field" |
| 293 | + position="attributes" |
| 294 | + > |
| 295 | + <attribute name="t-if">!record.partner_id.value</attribute> |
| 296 | + </xpath> |
| 297 | + <xpath expr="//div[hasclass('o_kanban_record_title')]" position="after"> |
| 298 | + <div t-if="record.partner_id.value"> |
| 299 | + <field name="name" /> |
| 300 | + </div> |
| 301 | + <div> |
| 302 | + <field name="user_name" /> |
| 303 | + </div> |
| 304 | + </xpath> |
| 305 | + <xpath expr="//field[@name='tag_ids']/.." position="before"> |
| 306 | + <div t-if="record.date_deadline and record.date_deadline.value"> |
| 307 | + <field name="date_deadline" /> |
| 308 | + </div> |
| 309 | + <div |
| 310 | + t-if="record.first_employee_name and record.first_employee_name.value" |
| 311 | + > |
| 312 | + Proposed |
| 313 | + <field name="first_employee_name" /> |
| 314 | + </div> |
| 315 | + </xpath> |
| 316 | + <xpath |
| 317 | + expr="//field[@name='priority' and @widget='priority']" |
| 318 | + position="attributes" |
| 319 | + > |
| 320 | + <attribute name="invisible">True</attribute> |
| 321 | + </xpath> |
238 | 322 | </field>
|
239 | 323 | </record>
|
240 | 324 | <record id="crm.crm_lead_all_leads" model="ir.actions.act_window">
|
|
0 commit comments