Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
Coopdevs OCB mirror
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Coopdevs
Odoo
Coopdevs OCB mirror
Commits
81f56c9e
Commit
81f56c9e
authored
10 years ago
by
Martin Trigaux
Browse files
Options
Downloads
Patches
Plain Diff
[IMP] crm: remove TODO posted by past me
parent
0c36f8a4
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
addons/crm/crm_lead.py
+4
-5
4 additions, 5 deletions
addons/crm/crm_lead.py
with
4 additions
and
5 deletions
addons/crm/crm_lead.py
+
4
−
5
View file @
81f56c9e
...
...
@@ -153,11 +153,10 @@ class crm_lead(format_address, osv.osv):
return
result
,
fold
def
fields_view_get
(
self
,
cr
,
user
,
view_id
=
None
,
view_type
=
'
form
'
,
context
=
None
,
toolbar
=
False
,
submenu
=
False
):
if
view_type
==
'
form
'
and
context
and
context
.
get
(
'
opportunity_id
'
):
# TODO: replace by get_formview_action call
lead_type
=
self
.
browse
(
cr
,
user
,
context
[
'
opportunity_id
'
],
context
=
context
).
type
view_lead_xml_id
=
'
crm_case_form_view_oppor
'
if
lead_type
==
'
opportunity
'
else
'
crm_case_form_view_leads
'
_
,
view_id
=
self
.
pool
[
'
ir.model.data
'
].
get_object_reference
(
cr
,
user
,
'
crm
'
,
view_lead_xml_id
)
if
context
and
context
.
get
(
'
opportunity_id
'
):
action
=
self
.
_get_formview_action
(
cr
,
user
,
context
[
'
opportunity_id
'
],
context
=
context
)
if
action
.
get
(
'
views
'
)
and
any
(
view_id
for
view_id
in
action
[
'
views
'
]
if
view_id
[
1
]
==
view_type
):
view_id
=
next
(
view_id
[
0
]
for
view_id
in
action
[
'
views
'
]
if
view_id
[
1
]
==
view_type
)
res
=
super
(
crm_lead
,
self
).
fields_view_get
(
cr
,
user
,
view_id
,
view_type
,
context
,
toolbar
=
toolbar
,
submenu
=
submenu
)
if
view_type
==
'
form
'
:
res
[
'
arch
'
]
=
self
.
fields_view_get_address
(
cr
,
user
,
res
[
'
arch
'
],
context
=
context
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment