From 3fa07a4d6a5a100099268c537efda67cf0610462 Mon Sep 17 00:00:00 2001 From: "Sunil Sharma (OpenERP)" Date: Wed, 19 Mar 2014 12:06:42 +0530 Subject: [PATCH] [imp]:admin user edit a question asked by demo user to improve typo bzr revid: sunilsharma.sharma07@gmail.com-20140319063642-4fek8778h2h8b82y --- addons/website_forum/__openerp__.py | 3 ++- addons/website_forum/data/question_improvement.yml | 8 ++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 addons/website_forum/data/question_improvement.yml diff --git a/addons/website_forum/__openerp__.py b/addons/website_forum/__openerp__.py index 9b1f26d21b7..8e71054e565 100644 --- a/addons/website_forum/__openerp__.py +++ b/addons/website_forum/__openerp__.py @@ -41,7 +41,8 @@ Ask questions, get answers, no distractions 'static/src/xml/*.xml' ], 'demo': [ - 'data/forum_demo.xml' + 'data/forum_demo.xml', + 'data/question_improvement.yml', ], 'css': ['static/src/css/website_forum.css'], 'installable': True, diff --git a/addons/website_forum/data/question_improvement.yml b/addons/website_forum/data/question_improvement.yml new file mode 100644 index 00000000000..2526824a9a0 --- /dev/null +++ b/addons/website_forum/data/question_improvement.yml @@ -0,0 +1,8 @@ + +- + Admin User Edit a Question asked by demo user to improve typo +- + !python {model: website.forum.post}: | + self.write(cr, ref('base.user_root'), [ref('website_forum.question_5')],{ + 'name': 'CMS Replacement For ERP and ECommerce ?', + }) \ No newline at end of file