Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[REF] template: Add full compatibility to show image from README.rst file #221

Closed
wants to merge 2 commits into from

Conversation

moylop260
Copy link
Contributor

We had a circular problem seeing the image from README.rst file in GitHub, apps.odoo.com or Odoo.
Using the path ../{module_name}/{local_image_path}.{ext} is compatible in all cases.

You could follow the thread here: OCA/business-requirement#18 (comment)

We had a circular problem seeing the image from README.rst file in GitHub, apps.odoo.com or Odoo.
Using the path "../{module_name}/{local_image_path}.{ext}" is compatible in all cases.

You could follow the thread here: OCA/business-requirement#18 (comment)
@moylop260 moylop260 self-assigned this Sep 13, 2016
@moylop260 moylop260 changed the title [REF] template: Add full compatibility of figure in README.rst file [REF] template: Add full compatibility to show image from README.rst file Sep 13, 2016
@elicoidal
Copy link
Contributor

I have tested the following syntaxes:

    .. figure:: ../business_requirement/static/img/bus_req_tree.png
  • in Odoo (settings/Modules/Local modules)
  • in Github
  • not tested in apps.odoo.com
    .. figure::  business_requirement/static/img/bus_req_tree.png
  • in Odoo (settings/Modules/Local modules)
  • in Github
  • not tested in apps.odoo.com
    .. figure:: static/img/bus_req_tree.png
  • in Odoo
  • in Github
  • not tested in apps.odoo.com

It seems that option one might do the trick

@elicoidal
Copy link
Contributor

👍

@@ -14,16 +14,16 @@ Installation

To install this module, you need to:

#. Do this ...
# Do this ...
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't remove this marker

@sbidoul
Copy link
Member

sbidoul commented Sep 13, 2016

It's nice to have a solution for this! Sad it won't work on pypi.

We had a circular problem seeing the image from README.rst file in GitHub, apps.odoo.com or Odoo.
Using the path "../{module_name}/{local_image_path}.{ext}" is compatible in all cases.

You could follow the thread here: OCA/business-requirement#18 (comment)
@pedrobaeza
Copy link
Member

👍 squashing both commits

@moylop260
Copy link
Contributor Author

I dont have problem with use squash and merge button of github...
But I can squash it locally too

@elicoidal
Copy link
Contributor

I have bad news for you: apps.odoo.com is unhappy:

screenshot from 2016-09-14 08-57-27

@elicoidal
Copy link
Contributor

I have tested the following syntaxes:

    .. figure:: ../business_requirement/static/img/bus_req_tree.png
    .. figure::  business_requirement/static/img/bus_req_tree.png
  • in Odoo (settings/Modules/Local modules)
  • in Github
  • not tested in apps.odoo.com
    .. figure:: static/img/bus_req_tree.png
  • in Odoo
  • in Github
  • in apps.odoo.com

It seems that option one might do the trick

Option one seems not an option and I'd rather have option 3 + patch in OCB to accept both (or write both syntax in README)

Has somebody contacted Odoo about that?

@moylop260
Copy link
Contributor Author

IMHO if odoo is inconsistent between apps and module list this could be a issue https://github.com/odoo/odoo/issues/new

Could you create it, please?

@lmignon
Copy link
Sponsor Contributor

lmignon commented Sep 14, 2016

odoo/odoo#8300

elicoidal added a commit to OCA/business-requirement that referenced this pull request Sep 15, 2016
link to this issue: OCA/maintainer-tools#221
@ pedro can we FT this one?
elicoidal added a commit to OCA/business-requirement that referenced this pull request Sep 15, 2016
@andriusl
Copy link

Hi,
is there a way to make image load on all three platforms? github, Odoo, and Apps?
I'm currently using ../module_name/static/description/image.png approach, but this one does not work for Odoo Apps.

@gurneyalex
Copy link
Member

what is the status of the PR?

@moylop260
Copy link
Contributor Author

Odoo people is not replied us 😞
odoo/odoo#8300 (comment)

@pedrobaeza
Copy link
Member

This is already handled in README generator, so closing.

@pedrobaeza pedrobaeza closed this Jan 7, 2019
ruter-lyu pushed a commit to ruter-lyu/business-requirement that referenced this pull request Mar 15, 2019
link to this issue: OCA/maintainer-tools#221
@ pedro can we FT this one?
ruter-lyu pushed a commit to ruter-lyu/business-requirement that referenced this pull request Mar 15, 2019
victormmtorres pushed a commit to Tecnativa/business-requirement that referenced this pull request Jun 4, 2019
link to this issue: OCA/maintainer-tools#221
@ pedro can we FT this one?
victormmtorres pushed a commit to Tecnativa/business-requirement that referenced this pull request Jun 4, 2019
pedrobaeza pushed a commit to Tecnativa/business-requirement that referenced this pull request Jun 21, 2019
[IMP] business_requirement

* Improved and unified the README for the br_deliverable module
* Modified the openerp.py too remove unused images
* Finetuning
* Remove oca.cfg

Update image link as they where not visible in app

link to this issue: OCA/maintainer-tools#221
@ pedro can we FT this one?

Added double image handling

testing OCA/maintainer-tools#221
victormmtorres pushed a commit to Tecnativa/business-requirement that referenced this pull request Jun 26, 2019
[IMP] business_requirement

* Improved and unified the README for the br_deliverable module
* Modified the openerp.py too remove unused images
* Finetuning
* Remove oca.cfg

Update image link as they where not visible in app

link to this issue: OCA/maintainer-tools#221
@ pedro can we FT this one?

Added double image handling

testing OCA/maintainer-tools#221
Tardo pushed a commit to Tecnativa/business-requirement that referenced this pull request Jan 24, 2020
[IMP] business_requirement

* Improved and unified the README for the br_deliverable module
* Modified the openerp.py too remove unused images
* Finetuning
* Remove oca.cfg

Update image link as they where not visible in app

link to this issue: OCA/maintainer-tools#221
@ pedro can we FT this one?

Added double image handling

testing OCA/maintainer-tools#221
victoralmau pushed a commit to Tecnativa/business-requirement that referenced this pull request Oct 14, 2021
[IMP] business_requirement

* Improved and unified the README for the br_deliverable module
* Modified the openerp.py too remove unused images
* Finetuning
* Remove oca.cfg

Update image link as they where not visible in app

link to this issue: OCA/maintainer-tools#221
@ pedro can we FT this one?

Added double image handling

testing OCA/maintainer-tools#221
victoralmau pushed a commit to Tecnativa/business-requirement that referenced this pull request Oct 14, 2021
[IMP] business_requirement

* Improved and unified the README for the br_deliverable module
* Modified the openerp.py too remove unused images
* Finetuning
* Remove oca.cfg

Update image link as they where not visible in app

link to this issue: OCA/maintainer-tools#221
@ pedro can we FT this one?

Added double image handling

testing OCA/maintainer-tools#221
MosabWadea pushed a commit to MosabWadea/business-requirement that referenced this pull request Mar 5, 2022
[IMP] business_requirement

* Improved and unified the README for the br_deliverable module
* Modified the openerp.py too remove unused images
* Finetuning
* Remove oca.cfg

Update image link as they where not visible in app

link to this issue: OCA/maintainer-tools#221
@ pedro can we FT this one?

Added double image handling

testing OCA/maintainer-tools#221
AntoniRomera pushed a commit to AntoniRomera/business-requirement that referenced this pull request Jul 4, 2023
[IMP] business_requirement

* Improved and unified the README for the br_deliverable module
* Modified the openerp.py too remove unused images
* Finetuning
* Remove oca.cfg

Update image link as they where not visible in app

link to this issue: OCA/maintainer-tools#221
@ pedro can we FT this one?

Added double image handling

testing OCA/maintainer-tools#221
NachoAlesLopez pushed a commit to NachoAlesLopez/business-requirement that referenced this pull request Apr 28, 2024
[IMP] business_requirement

* Improved and unified the README for the br_deliverable module
* Modified the openerp.py too remove unused images
* Finetuning
* Remove oca.cfg

Update image link as they where not visible in app

link to this issue: OCA/maintainer-tools#221
@ pedro can we FT this one?

Added double image handling

testing OCA/maintainer-tools#221
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

8 participants