-
Notifications
You must be signed in to change notification settings - Fork 118
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ADD] Pre-commit compatibility for odoo < 13
- Loading branch information
1 parent
f3df4ad
commit 32d5c7d
Showing
7 changed files
with
373 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
84 changes: 84 additions & 0 deletions
84
{% if odoo_version <= 12 %}.module-readme.rst.j2{% endif %}.jinja
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
{% raw -%} | ||
{%- macro fragment(name, title, sub='=') %} | ||
{%- if name in fragments %} | ||
{{- title }} | ||
{{ sub * title|length }} | ||
|
||
{{ fragments[name] }} | ||
{% endif %} | ||
{%- endmacro -%} | ||
|
||
{{ '=' * manifest.name|length }} | ||
{{ manifest.name }} | ||
{{ '=' * manifest.name|length }} | ||
|
||
.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
!! This file is generated by oca-gen-addon-readme !! | ||
!! changes will be overwritten. !! | ||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
|
||
.. |badge_devstat| image:: https://img.shields.io/badge/maturity-{{ development_status | replace("-", "--") | urlencode }}-brightgreen.png | ||
:target: https://odoo-community.org/page/development-status | ||
:alt: {{ development_status | title }} | ||
|
||
.. |badge_license| image:: https://img.shields.io/badge/license-{{ manifest.license | d("Unknown") | replace("-", "--") | urlencode }}-blue.png | ||
:alt: {{ manifest.license | d("Unknown") }} | ||
|
||
|badge_devstat| |badge_license| | ||
|
||
{{ fragments.get('DESCRIPTION', '') }} | ||
{% if development_status == 'alpha' -%} | ||
|
||
.. IMPORTANT:: | ||
This is an alpha version, the data model and design can change at any time without warning. | ||
Only for development or testing purpose, do not use in production. | ||
`More details on development status <https://odoo-community.org/page/development-status>`_ | ||
|
||
{% endif -%} | ||
|
||
**Table of contents** | ||
|
||
.. contents:: | ||
:local: | ||
|
||
{{ fragment('INSTALL', 'Installation') }} | ||
{{- fragment('CONFIGURE', 'Configuration') }} | ||
{{- fragment('USAGE', 'Usage') }} | ||
{{- fragment('DEVELOP', 'Development') }} | ||
{{- fragment('ROADMAP', 'Known issues / Roadmap') -}} | ||
{{- fragment('HISTORY', 'Changelog') -}} | ||
|
||
Credits | ||
{{ "=======" }} | ||
|
||
{% if authors -%} | ||
Authors | ||
~~~~~~~ | ||
|
||
{% for author in authors if author -%} | ||
* {{ author }} | ||
{% endfor %} | ||
{% endif -%} | ||
|
||
{{ fragment('CONTRIBUTORS', 'Contributors', sub='~') }} | ||
{{- fragment('CREDITS', 'Other credits', sub='~') -}} | ||
Maintainers | ||
~~~~~~~~~~~ | ||
|
||
This module is maintained by {{ org_name }}. | ||
|
||
Contact the maintainer through their official support channels in case you find | ||
any issues with this module. | ||
{% if manifest.maintainers %} | ||
|
||
{% for maintainer in manifest.maintainers %} | ||
.. |maintainer-{{ maintainer }}| image:: https://github.com/{{ maintainer }}.png?size=40px | ||
:target: https://github.com/{{ maintainer }} | ||
:alt: {{ maintainer}} | ||
{%- endfor %} | ||
|
||
Current maintainer{% if manifest.maintainers|length > 1 %}s{% endif %}: | ||
|
||
{% for maintainer in manifest.maintainers %}|maintainer-{{ maintainer }}|{% if not loop.last %} {% endif %}{% endfor %} | ||
{% endif %} | ||
{% endraw -%} |
Oops, something went wrong.