1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/libreerp_ynh.git synced 2024-09-03 19:36:13 +02:00

Apply last example_ynh

This commit is contained in:
yalh76 2022-02-13 20:09:37 +01:00
parent 99c43bd077
commit 04392c7e40
9 changed files with 175 additions and 133 deletions

17
.gitattributes vendored
View file

@ -1,17 +0,0 @@
# Auto detect text files and perform LF normalization
* text=auto
# Custom for Visual Studio
*.cs diff=csharp
# Standard to msysgit
*.doc diff=astextplain
*.DOC diff=astextplain
*.docx diff=astextplain
*.DOCX diff=astextplain
*.dot diff=astextplain
*.DOT diff=astextplain
*.pdf diff=astextplain
*.PDF diff=astextplain
*.rtf diff=astextplain
*.RTF diff=astextplain

55
.github/ISSUE_TEMPLATE.md vendored Normal file
View file

@ -0,0 +1,55 @@
---
name: Bug report
about: When creating a bug report, please use the following template to provide all the relevant information and help debugging efficiently.
---
**How to post a meaningful bug report**
1. *Read this whole template first.*
2. *Determine if you are on the right place:*
- *If you were performing an action on the app from the webadmin or the CLI (install, update, backup, restore, change_url...), you are on the right place!*
- *Otherwise, the issue may be due to the app itself. Refer to its documentation or repository for help.*
- *When in doubt, post here and we will figure it out together.*
3. *Delete the italic comments as you write over them below, and remove this guide.*
---
### Describe the bug
*A clear and concise description of what the bug is.*
### Context
- Hardware: *VPS bought online / Old laptop or computer / Raspberry Pi at home / Internet Cube with VPN / Other ARM board / ...*
- YunoHost version: x.x.x
- I have access to my server: *Through SSH | through the webadmin | direct access via keyboard / screen | ...*
- Are you in a special context or did you perform some particular tweaking on your YunoHost instance?: *no / yes*
- If yes, please explain:
- Using, or trying to install package version/branch:
- If upgrading, current package version: *can be found in the admin, or with `yunohost app info $app_id`*
### Steps to reproduce
- *If you performed a command from the CLI, the command itself is enough. For example:*
```sh
sudo yunohost app install the_app
```
- *If you used the webadmin, please perform the equivalent command from the CLI first.*
- *If the error occurs in your browser, explain what you did:*
1. *Go to '...'*
2. *Click on '...'*
3. *Scroll down to '...'*
4. *See error*
### Expected behavior
*A clear and concise description of what you expected to happen. You can remove this section if the command above is enough to understand your intent.*
### Logs
*When an operation fails, YunoHost provides a simple way to share the logs.*
- *In the webadmin, the error message contains a link to the relevant log page. On that page, you will be able to 'Share with Yunopaste'. If you missed it, the logs of previous operations are also available under Tools > Logs.*
- *In command line, the command to share the logs is displayed at the end of the operation and looks like `yunohost log display [log name] --share`. If you missed it, you can find the log ID of a previous operation using `yunohost log list`.*
*After sharing the log, please copypaste directly the link provided by YunoHost (to help readability, no need to copypaste the entire content of the log here, just the link is enough...)*
*If applicable and useful, add screenshots to help explain your problem.*

16
.github/PULL_REQUEST_TEMPLATE.md vendored Normal file
View file

@ -0,0 +1,16 @@
## Problem
- *Description of why you made this PR*
## Solution
- *And how do you fix that problem*
## PR Status
- [ ] Code finished and ready to be reviewed/tested
- [ ] The fix/enhancement were manually tested (if applicable)
## Automatic tests
Automatic tests can be triggered on https://ci-apps-dev.yunohost.org/ *after creating the PR*, by commenting "!testme", "!gogogadgetoci" or "By the power of systemd, I invoke The Great App CI to test this Pull Request!". (N.B. : for this to work you need to be a member of the Yunohost-Apps organization)

43
.gitignore vendored
View file

@ -1,43 +0,0 @@
# Windows image file caches
Thumbs.db
ehthumbs.db
# Folder config file
Desktop.ini
# Recycle Bin used on file shares
$RECYCLE.BIN/
# Windows Installer files
*.cab
*.msi
*.msm
*.msp
# Windows shortcuts
*.lnk
# =========================
# Operating System Files
# =========================
# OSX
# =========================
.DS_Store
.AppleDouble
.LSOverride
# Thumbnails
._*
# Files that might appear on external disk
.Spotlight-V100
.Trashes
# Directories potentially created on remote AFP share
.AppleDB
.AppleDesktop
Network Trash Folder
Temporary Items
.apdisk

0
doc/.gitkeep Normal file
View file

5
doc/DESCRIPTION.md Normal file
View file

@ -0,0 +1,5 @@
LibreERP is a suite of web based open source business apps. LibreERP is a fork of Odoo Community Edition.
The main LibreERP Apps include an Open Source CRM, Website Builder, eCommerce, Project Management, Billing & Accounting, Point of Sale, Human Resources, Marketing, Manufacturing, Purchase Management, ...
LibreERP Apps can be used as stand-alone applications, but they also integrate seamlessly so you get a full-featured Open Source ERP when you install several Apps.

16
doc/DISCLAIMER.md Normal file
View file

@ -0,0 +1,16 @@
**WARNING**: LibreERP is a complex app. **DO NOT USE THIS PACKAGE** to run your business unless you know what you are doing!!! If you don't, you should consider to ask for help from a professionnal!
**IMPORTANT:** This app MUST be installed on a domain's root!
https://erp.example.com/ will work
https://example.com/erp/ will NOT work
To connect on your LibreERP
-----------
- Go on https://YOURDOMAIN/web
- Use your master password
About licences
-----------
LibreERP 8.0 is under AGPL-3.0
Next version are under LGPL-3.0
LibreERP is forked from Odoo Community Edition. The name is change due to Odoo trademark policy.

0
doc/screenshots/.gitkeep Normal file
View file

View file

@ -1,75 +1,85 @@
{ {
"name": "LibreERP", "name": "LibreERP",
"id": "libreerp", "id": "libreerp",
"packaging_format": 1, "packaging_format": 1,
"description": { "description": {
"en": "LibreERP is a suite of business apps (ERP: CRM, Accounting, Point of Sale, HR, Purchases...).", "en": "LibreERP is a suite of business apps (ERP: CRM, Accounting, Point of Sale, HR, Purchases...).",
"fr": "LibreERP est une collection d'apps de gestion d'entreprise (ERP : CRM, Comptabilité, Point de Vente, RH, Achats, ...)." "fr": "LibreERP est une collection d'apps de gestion d'entreprise (ERP : CRM, Comptabilité, Point de Vente, RH, Achats, ...)."
}, },
"maintainer": { "version": "12.0-6",
"name": "ljf", "url": "https://github.com/YunoHost-Apps/libreerp_ynh",
"email": "ljf+libreerp_ynh@reflexlibre.net" "upstream": {
}, "license": "LGPL-3.0-only",
"previous_maintainers": { "website": "https://odoo.com",
"name": "scith" "demo": "https://www.odoo.com/trial",
}, "admindoc": "https://www.odoo.com/documentation/15.0/administration.html",
"version": "12.0-6", "userdoc": "https://www.odoo.com/documentation/15.0/applications.html",
"url": "https://github.com/YunoHost-Apps/libreerp_ynh", "code": "https://github.com/odoo/odoo"
"license": "LGPL-3.0,AGPL-3.0", },
"requirements": { "license": "LGPL-3.0,AGPL-3.0",
"yunohost": ">= 3.4.2.3" "maintainer": {
}, "name": "ljf",
"multi_instance": true, "email": "ljf+libreerp_ynh@reflexlibre.net"
"services": [ },
"nginx" "previous_maintainers": {
], "name": "scith"
"arguments": { },
"install": [{ "requirements": {
"name": "domain", "yunohost": ">= 4.3.0"
"type": "domain", },
"ask": { "multi_instance": true,
"en": "Choose a domain for LibreERP (LibreERP will be installed on its root!)", "services": [
"fr": "Choisissez un domaine pour LibreERP (LibreERP sera installé dans sa racine !)" "nginx"
}, ],
"example": "erp.domain.org" "arguments": {
}, { "install": [
"name": "version", {
"choices": ["11", "12", "14"], "name": "domain",
"default": "14", "type": "domain"
"ask": { },
"en": "Choose the version you want", {
"fr": "Choisissez la version désirée" "name": "version",
} "choices": ["11", "12", "14"],
}, { "default": "14",
"name": "oca", "ask": {
"type": "boolean", "en": "Choose the version you want",
"default": false, "fr": "Choisissez la version désirée"
"ask": { }
"en": "Do you want to setup OCA instead of LibreERP ? (not yet implemented)", },
"fr": "Désirez vous installer OCA à la place des sources de LibreERP (pas encore implémenté)" {
} "name": "oca",
}, { "type": "boolean",
"name": "admin_password", "default": false,
"type": "password", "ask": {
"ask": { "en": "Do you want to setup OCA instead of LibreERP ? (not yet implemented)",
"en": "Choose a strong master admin password", "fr": "Désirez vous installer OCA à la place des sources de LibreERP (pas encore implémenté)"
"fr": "Choisissez un mot de passe maître fort pour l'administration" }
} },
}, { {
"name": "lang", "name": "admin_password",
"ask": { "type": "password",
"en": "Choose a language", "ask": {
"fr": "Choisissez une langue" "en": "Choose a strong master admin password",
}, "fr": "Choisissez un mot de passe maître fort pour l'administration"
"choices": ["sq_AL", "am_ET", "ar_SY", "eu_ES", "bs_BA", "bg_BG", "my_MM", "ca_ES", "zh_CN", "zh_HK", "zh_TW", "hr_HR", "cs_CZ", "da_DK", "nl_BE", "nl_NL", "en_AU", "en_GB", "en_US", "et_EE", "fi_FI", "fr_BE", "fr_CA", "fr_CH", "fr_FR", "gl_ES", "ka_GE", "de_CH", "de_DE", "el_GR", "gu_IN", "he_IL", "hi_IN", "hu_HU", "id_ID", "it_IT", "ja_JP", "kab_DZ", "ko_KP", "ko_KR", "lo_LA", "lv_LV", "lt_LT", "mk_MK", "mn_MN", "nb_NO", "fa_IR", "pl_PL", "pt_BR", "pt_PT", "ro_RO", "ru_RU", "sr_RS", "sr@latin", "sk_SK", "sl_SI", "es_AR", "es_BO", "es_CL", "es_CO", "es_CR", "es_DO", "es_EC", "es_GT", "es_MX", "es_PA", "es_PE", "es_PY", "es_UY", "es_VE", "es_ES", "sv_SE", "te_IN", "th_TH", "tr_TR", "uk_UA", "vi_VN"], }
"default": "en_US" },
}, { {
"name": "tz", "name": "lang",
"ask": { "ask": {
"en": "Choose a timezone", "en": "Choose the application language",
"fr": "Choisissez un fuseau horaire" "fr": "Choisissez la langue de l'application"
}, },
"default": "Etc/UTC" "choices": ["sq_AL", "am_ET", "ar_SY", "eu_ES", "bs_BA", "bg_BG", "my_MM", "ca_ES", "zh_CN", "zh_HK", "zh_TW", "hr_HR", "cs_CZ", "da_DK", "nl_BE", "nl_NL", "en_AU", "en_GB", "en_US", "et_EE", "fi_FI", "fr_BE", "fr_CA", "fr_CH", "fr_FR", "gl_ES", "ka_GE", "de_CH", "de_DE", "el_GR", "gu_IN", "he_IL", "hi_IN", "hu_HU", "id_ID", "it_IT", "ja_JP", "kab_DZ", "ko_KP", "ko_KR", "lo_LA", "lv_LV", "lt_LT", "mk_MK", "mn_MN", "nb_NO", "fa_IR", "pl_PL", "pt_BR", "pt_PT", "ro_RO", "ru_RU", "sr_RS", "sr@latin", "sk_SK", "sl_SI", "es_AR", "es_BO", "es_CL", "es_CO", "es_CR", "es_DO", "es_EC", "es_GT", "es_MX", "es_PA", "es_PE", "es_PY", "es_UY", "es_VE", "es_ES", "sv_SE", "te_IN", "th_TH", "tr_TR", "uk_UA", "vi_VN"],
}] "default": "en_US"
} },
{
"name": "tz",
"ask": {
"en": "Choose a timezone",
"fr": "Choisissez un fuseau horaire"
},
"default": "Etc/UTC"
}
]
}
} }