← Back to team overview

openerp-community team mailing list archive

Re: About description and manual files for OCAmodules

 

https://www.openerp.com/apps/7.0/web_nocreatedb/

Indeed you are right it doesn't work for apps.openerp.com unless your
images are hosted elsewhere but that would make incomplete doc in the
module if images are externalized.

Cheers,


On Wed, Mar 5, 2014 at 2:41 PM, Stefan <stefan@xxxxxxxx> wrote:

>  On 03/04/2014 07:50 PM, Raphael Valyi wrote:
> > On Tue, Mar 4, 2014 at 2:38 PM, Pedro Manuel Baeza Romero
> > <pedro.baeza@xxxxxxxxx <mailto:pedro.baeza@xxxxxxxxx><pedro.baeza@xxxxxxxxx>>
> wrote:
> >
> > Hi, Raphäel,
> >
> >
> > In this MP, Stefan has embedded an image in the description:
> >
> >
> http://bazaar.launchpad.net/~therp-nl/account-financial-tools/7.0-add_move_line_no_default_search_period_journal/view/head:/account_move_line_no_default_search/__openerp__.py#L35
> >
> >
> >
>
> So, there's a way to do it.
> >
> >
> > Thank your Pedro! I was probably using the wrong path before.
> >
> > Then I make the following proposal:
> >
> > a module could have README.rst root file. This README..rst file could
> > then be included into __openerp__.py using an rst include macro such
> > as with the image example you just pointed.
> >
>
> Unfortunately, docutils does not support the specifications of include
> paths yet (proof of concept here:
> http://comments.gmane.org/gmane.text.docutils.devel/6605), so this would
> not work unless the rst was preprocessed by OpenERP. The fact that images
> work in the web client modules view is due to the fact that docutils simply
> creates an absolute link, which is available in the web client if you put
> the image in the static directory. I now realize that this is not going to
> work in the apps site, because the static path is not available there and
> the absolute path has a different prefix anyway.
>
> Cheers,
> Stefan.
>
>
> _______________________________________________
> Mailing list: https://launchpad.net/~openerp-community
> Post to     : openerp-community@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~openerp-community
> More help   : https://help.launchpad.net/ListHelp
>
>


-- 
Yannick Vaucher
Business Solutions Software Developer

Camptocamp SA
PSE A, CH-1015 Lausanne
Phone: +41 21 619 10 30
Office: +41 21 619 10 10
http://www.camptocamp.com/

References