Skip to Content
Menu
This question has been flagged
1 Reply
3637 Views

Hello,

We can set description text with reStructuredText format in the manifest field 'description'. And now, I want to save the description text in a single rst file and read the text from it as the value for field 'description'.

So, I modified the code in '__manifest__.py' as below:

# -*- coding: utf-8 -*-
{
...
...
'description': open('text.rst').read(),
...
}

However, after restart the odoo server, a 'ValueError: malformed string' error have raised.

Are there anyone can advise me why this issue take place? How to fix the code in '__manifest__.py'?

Thanks.

Avatar
Discard
Author Best Answer

I just found the text value set for 'description' in __manifest__.py will be replace if file 'static/description/index.html' exist.
Is that a rule in odoo project? If it is really, where I can find the details for this rule in the website of "Odoo Documentation" or other authorized references?
Thanks.

Avatar
Discard
Related Posts Replies Views Activity
0
Jul 24
181
3
Jan 24
1537
2
Jan 24
704
1
May 24
1233
4
May 22
1203