This question has been flagged
1 Reply
3468 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