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
77250b5b
Commit
77250b5b
authored
9 years ago
by
Ludovic Laffineur lla
Committed by
Thibault Delavallée
9 years ago
Browse files
Options
Downloads
Patches
Plain Diff
[REM] website_partner: removing website_private unused
parent
593f9c30
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
addons/website_partner/models/res_partner.py
+0
-14
0 additions, 14 deletions
addons/website_partner/models/res_partner.py
with
0 additions
and
14 deletions
addons/website_partner/models/res_partner.py
+
0
−
14
View file @
77250b5b
...
...
@@ -8,8 +8,6 @@ class WebsiteResPartner(models.Model):
_name
=
'
res.partner
'
_inherit
=
[
'
res.partner
'
,
'
website.seo.metadata
'
,
'
website.published.mixin
'
]
website_private
=
fields
.
Boolean
(
string
=
'
Private Profile
'
,
compute
=
'
_compute_private
'
,
inverse
=
'
_set_private
'
,
search
=
'
_search_private
'
)
website_description
=
fields
.
Html
(
'
Website Partner Full Description
'
,
strip_style
=
True
)
website_short_description
=
fields
.
Text
(
'
Website Partner Short Description
'
)
# hack to allow using plain browse record in qweb views
...
...
@@ -19,18 +17,6 @@ class WebsiteResPartner(models.Model):
def
_compute_get_ids
(
self
):
self
.
self
=
self
.
id
@api.multi
def
_compute_private
(
self
):
for
partner
in
self
:
partner
.
website_private
=
not
partner
.
website_published
def
_set_private
(
self
):
for
partner
in
self
:
partner
.
website_published
=
not
partner
.
website_private
def
_search_private
(
self
,
operator
,
value
):
return
[(
'
website_published
'
,
'
=
'
,
not
value
)]
@api.multi
def
_website_url
(
self
,
field_name
,
arg
):
res
=
super
(
WebsiteResPartner
,
self
).
_website_url
(
field_name
,
arg
)
...
...
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