summaryrefslogtreecommitdiff
path: root/addons/website/wizard/website_robots.py
diff options
context:
space:
mode:
Diffstat (limited to 'addons/website/wizard/website_robots.py')
-rw-r--r--addons/website/wizard/website_robots.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/addons/website/wizard/website_robots.py b/addons/website/wizard/website_robots.py
index 2bd61a5721f..7172a3aa6b1 100644
--- a/addons/website/wizard/website_robots.py
+++ b/addons/website/wizard/website_robots.py
@@ -12,7 +12,8 @@ class WebsiteRobots(models.TransientModel):
@api.model
def default_get(self, fields):
defaults = super(WebsiteRobots, self).default_get(fields)
- defaults['content'] = self.env['website'].get_current_website().robots_txt
+ if 'content' in fields:
+ defaults['content'] = self.env['website'].get_current_website().robots_txt
return defaults
def action_save(self):