Skip to content

Commit

Permalink
[FIX] website: don't copy is_published
Browse files Browse the repository at this point in the history
Before this commit, if you duplicate a published record on the website,
the copy was already published, while in most of case you need to update
it to adapt to the new content. There doesn't make senses to duplicate the
same content on a website and let the duplicate content.

Task-1930058
  • Loading branch information
JKE-be committed Jan 22, 2019
1 parent 23e0d2c commit d2b30cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addons/website/models/website.py
Expand Up @@ -840,7 +840,7 @@ class WebsitePublishedMixin(models.AbstractModel):
_description = 'Website Published Mixin'

website_published = fields.Boolean('Visible on current website', related='is_published', readonly=False)
is_published = fields.Boolean('Is published')
is_published = fields.Boolean('Is published', copy=False)
website_url = fields.Char('Website URL', compute='_compute_website_url', help='The full URL to access the document through the website.')

@api.multi
Expand Down

0 comments on commit d2b30cd

Please sign in to comment.