Skip to content

Commit aa667ba

Browse files
committed
fixup! [ADD] #792 extra crm features
1 parent 1068808 commit aa667ba

File tree

1 file changed

+37
-13
lines changed

1 file changed

+37
-13
lines changed

ps_crm/views/crm_lead.xml

Lines changed: 37 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@
248248
<xpath expr="//field[@name='partner_id']" position="after">
249249
<field name="operating_unit_id" />
250250
<field name="department_id" />
251-
<field name="date_deadline" string="Expected Closing Date" />
251+
<field name="date_deadline" string="Deadline submission" />
252252
</xpath>
253253
<label for="expected_revenue" position="attributes">
254254
<attribute name="string">Expected Revenue + Probability</attribute>
@@ -262,6 +262,12 @@
262262
<field name="phone" position="attributes">
263263
<attribute name="invisible">True</attribute>
264264
</field>
265+
<xpath
266+
expr="//field[@name='priority' and @widget='priority']"
267+
position="attributes"
268+
>
269+
<attribute name="invisible">True</attribute>
270+
</xpath>
265271
</field>
266272
</record>
267273
<record model="ir.ui.view" id="crm_case_kanban_view_leads">
@@ -271,29 +277,47 @@
271277
<field name="user_id" position="before">
272278
<field name="user_name" />
273279
<field name="date_deadline" />
280+
<field name="first_employee_name" />
274281
</field>
275-
<xpath expr="//div[hasclass('o_kanban_record_title')]" position="after">
276-
<div>
277-
<field name="first_employee_name" />
278-
</div>
279-
</xpath>
280282
<xpath
281-
expr="//field[@name='priority' and @widget='priority']"
283+
expr="//div[hasclass('o_kanban_record_title')]//field"
282284
position="before"
283285
>
284-
<field name="date_deadline" />
286+
<xpath
287+
expr="//div/span[@t-if='record.partner_id.value']"
288+
position="move"
289+
/>
285290
</xpath>
286291
<xpath
287-
expr="//field[@name='priority' and @widget='priority']"
292+
expr="//div[hasclass('o_kanban_record_title')]//field"
288293
position="attributes"
289294
>
290-
<attribute name="invisible">True</attribute>
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>
291315
</xpath>
292316
<xpath
293-
expr="//field[@name='user_id' and @widget='many2one_avatar_user']"
294-
position="before"
317+
expr="//field[@name='priority' and @widget='priority']"
318+
position="attributes"
295319
>
296-
<field name="user_name" />
320+
<attribute name="invisible">True</attribute>
297321
</xpath>
298322
</field>
299323
</record>

0 commit comments

Comments
 (0)