summaryrefslogtreecommitdiff
path: root/odoo/api.py
diff options
context:
space:
mode:
authorHiral Bhavsar <hbh@odoo.com>2019-03-28 10:50:28 +0000
committerThibault Delavallée <tde@odoo.com>2019-08-20 08:38:52 +0000
commite28d3aa4d3851d72deba08c236072d002f83216a (patch)
tree8daad8909286aea81cae3cf2c593daff253697fe /odoo/api.py
parentb63b8e0a11e3cd9c99789c29276962dd74fafe54 (diff)
[IMP] crm: merge lead and opportunity form views
When redirecting to record, the wrong 'form' view will sometimes be loaded. A 'hack' has been done in crm_lead.py to redirect the user to the relevant 'form' view based on the value of the 'type' field. However, this solution is not clean as it does not solve all cases (multiple crm.lead records loaded from the activity systray, reloading the page after redirection, etc.) Goal of this task is to solve those issues by merging crm.lead.form.lead and crm.lead.form.opportunity form views. That way multi records actions will always display the relevant information according to record type. Note: Here some fields used as a twice in the form view just to stay close to the current design. Still few things which are not possible here for 'lead' and 'opportunity', that is * A dynamic 'placeholder' on 'name' field. * A 'domain' on 'partner_id' field. * A 'widget' on 'probability' field. Task 47118 closes odoo/odoo#32248 Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
Diffstat (limited to 'odoo/api.py')
0 files changed, 0 insertions, 0 deletions