From 549a375ffe4355a2e2703649f14a1bd3e40dc665 Mon Sep 17 00:00:00 2001 From: Janik von Rotz Date: Mon, 5 Oct 2020 15:08:52 +0200 Subject: [PATCH] SEPA --- .obsidian/config | 4 +-- .obsidian/workspace | 41 ++++++++++------------- Ansible Playbooks.md | 2 +- Odoo Development Environment.md | 38 ++++++++++++++++----- Odoo Shell.md | 16 +++++++++ Prozesse Finanzen - Eingangsrechnungen.md | 6 +++- Prozesse Finanzen - Personalabrechnung.md | 7 +++- 7 files changed, 77 insertions(+), 37 deletions(-) create mode 100644 Odoo Shell.md diff --git a/.obsidian/config b/.obsidian/config index 06c7b04e..a6fa7cfa 100644 --- a/.obsidian/config +++ b/.obsidian/config @@ -1,5 +1,5 @@ { - "theme": "moonstone", + "theme": "obsidian", "pluginEnabledStatus": { "file-explorer": true, "global-search": true, @@ -9,6 +9,6 @@ "command-palette": true, "markdown-importer": true, "word-count": true, - "slides": true + "custom-css": true } } \ No newline at end of file diff --git a/.obsidian/workspace b/.obsidian/workspace index 05936218..d282af1f 100644 --- a/.obsidian/workspace +++ b/.obsidian/workspace @@ -1,16 +1,16 @@ { "main": { - "id": "5c9b4bcddee447f0", + "id": "61ddca96d9a506fc", "type": "split", "children": [ { - "id": "6deb7ea085c7ba82", + "id": "ab9575c47a268bd0", "type": "leaf", "active": true, "state": { "type": "markdown", "state": { - "file": "Mint System und Odoo.md", + "file": "Odoo Development Environment.md", "mode": "source" } } @@ -19,15 +19,15 @@ "direction": "vertical" }, "left": { - "id": "572f6332dc0a6fb8", + "id": "f6348999b802f9f8", "type": "split", "children": [ { - "id": "1867ebb09af17a5c", + "id": "549efa6cbdce2208", "type": "tabs", "children": [ { - "id": "9fdd87ee08a19d1b", + "id": "b75df16230874234", "type": "leaf", "state": { "type": "file-explorer", @@ -35,12 +35,12 @@ } }, { - "id": "5ed0ef41546f0ef9", + "id": "8ec2a107e9a30949", "type": "leaf", "state": { "type": "search", "state": { - "query": "" + "query": "cache" } } } @@ -49,24 +49,23 @@ } ], "direction": "horizontal", - "width": 300, - "collapsed": true + "width": 560 }, "right": { - "id": "62901fbab63c2351", + "id": "bb2587051aed61d3", "type": "split", "children": [ { - "id": "b4720d30e70b00be", + "id": "eee6ffb878b1f508", "type": "tabs", "children": [ { - "id": "dfee001eaef2c27d", + "id": "5275b623141d887c", "type": "leaf", "state": { "type": "backlink", "state": { - "file": "Mint System und Odoo.md" + "file": "Odoo Development Environment.md" } } } @@ -77,15 +76,11 @@ "width": 300 }, "lastOpenFiles": [ - "Mint System und Odoo.md", - "Odoo Marketing.md", - "Lokalisierung.md", - "Odoo Enterprise.md", - "Odoo Community Association.md", "Odoo Development Environment.md", - "Odoo Migration - Worklog.md", - "Slides.md", - "Odoo.md", - "Demoumgebungen.md" + "Odoo Shell.md", + "Prozesse Finanzen - Personalabrechnung.md", + "Prozesse Finanzen - Buchhaltung.md", + "Prozesse Finanzen - Eingangsrechnungen.md", + "Ansible Playbooks.md" ] } \ No newline at end of file diff --git a/Ansible Playbooks.md b/Ansible Playbooks.md index 406b9ca3..29c182e6 100644 --- a/Ansible Playbooks.md +++ b/Ansible Playbooks.md @@ -1,4 +1,4 @@ -# Ansible Playbooks +y§# Ansible Playbooks Collection of ansible playbooks and roles. Page: https://github.com/Mint-System/Ansible-Playbooks diff --git a/Odoo Development Environment.md b/Odoo Development Environment.md index 79596805..58799668 100644 --- a/Odoo Development Environment.md +++ b/Odoo Development Environment.md @@ -1,17 +1,21 @@ # Odoo Development Environment -## Extend database expiration +[[Odoo Shell]] + +## Recipies + +### Extend database expiration Navigate to *Settings > Technical > System Parameters* and update the expiration date for the database. -## Uninstall apps from the command line +### Uninstall apps from the command line Inside the docker container run this command to uninstall the web_enterprise module for database odoo: `"self.env['ir.module.module'].search([('name', '=', 'web_enterprise')]).button_immediate_uninstall()" | odoo shell -d odoo --db_host=$HOST -r $USER -w $PASSWORD` -## Enable/disable Odoo Enterprise +### Enable/disable Odoo Enterprise **Enable** @@ -39,11 +43,11 @@ If the following line appears the installation has been successful: `INFO erp odoo.modules.registry: module web_enterprise: creating or updating database tables` -*Disable* +**Disable** Uninstall the web_enterprise module. -## Hide brand promotion message +### Hide brand promotion message In developer mode open the views overview via settings. Search for web.brand_promotion_message, open it and click on edit. @@ -53,11 +57,11 @@ Comment the code that is showing the brand promotion message. Note: This change will be lost, once the view is updated. -## Odoo Migration +### Odoo Migration See the [[Odoo Migration - Worklog]] -## Datenbankmanager deaktivieren +### Datenbankmanager deaktivieren Der Datenbankmanager kann nach Bedarf deaktiviert werden. Möchte man beispielsweise eine Odoo Installation für mehrere Kunden bereitstellen und vermeiden, dass diese die Datenbank des jeweils anderen im Login-Fenster sehen, kann man die Auflistung der Datenbank deaktivieren. @@ -65,7 +69,7 @@ Dazu muss in der `odoo.conf` Datei der foglende Eintrag gemacht werden: `list_db Ist diese Option eingeschaltet, kann eine Datenbank-Auswahl nur noch über Url erfolgten. Beispielsweise ruft der folgende Link die Odoo Login-Maske auf (sofern ausgeloggt) und selektiert die Datebank "Test": https://odoo.example.com/web/?db=Test. Ist der Datenbankmanager deaktiviert, sieht der Benutzer nur das Benutzername- und Passwortfeld. -## Install apps from the commandline +### Install apps from the commandline Assuming that the development environment is up and running, proceed as followed. @@ -81,4 +85,20 @@ CONTAINER=odoo01 Inall the modules with this command: -`docker exec -it $CONTAINER bin/bash -c "odoo -i $MODULES -c /etc/odoo/odoo.conf -d $DATABASE --db_host \$HOST -r \$USER -w \$PASSWORD --stop-after-init" && docker restart $CONTAINER` \ No newline at end of file +`docker exec -it $CONTAINER bin/bash -c "odoo -i $MODULES -c /etc/odoo/odoo.conf -d $DATABASE --db_host \$HOST -r \$USER -w \$PASSWORD --stop-after-init" && docker restart $CONTAINER` + +## Regenerate assets from psql + +Log into database with psql: + +```bash +psql postgres://$USER:$PASSWORD@$HOST/$DATABASE +``` + +Run this query for the database: + +```sql +select id,name from ir_attachment where res_model='ir.ui.view' and name like '%assets_%'; + +delete from ir_attachment where res_model='ir.ui.view' and name like %assets_%; +``` \ No newline at end of file diff --git a/Odoo Shell.md b/Odoo Shell.md new file mode 100644 index 00000000..d793b406 --- /dev/null +++ b/Odoo Shell.md @@ -0,0 +1,16 @@ +# Odoo Shell + +## Commands + +Log into Docker Container. +`docker exec -it odoo01 bin/bash` + +Start Odoo Shell. +`odoo shell -d $DATABASE --db_host $HOST -r $USER -w $PASSWORD` + +Clear assets. +```python +domain = [('res_model', '=', 'ir.ui.view'), ('name', 'like', 'assets_')] +env['ir.attachment'].search(domain).unlink() +env.cr.commit() +``` \ No newline at end of file diff --git a/Prozesse Finanzen - Eingangsrechnungen.md b/Prozesse Finanzen - Eingangsrechnungen.md index 684de843..1024d1db 100644 --- a/Prozesse Finanzen - Eingangsrechnungen.md +++ b/Prozesse Finanzen - Eingangsrechnungen.md @@ -6,4 +6,8 @@ Lieferantenrechnungen verbuchen. Arbeitsschritte: * Rechnungs-PDF hochladen und digitalisieren * Aufwandskonto auswählen -* Mehrwertsteuer entfernen, wenn Saldoberechnung \ No newline at end of file +* Mehrwertsteuer entfernen, wenn Saldoberechnung +* Konto-Daten dem Kontakt hinterlegen + +## Zahlung generieren + diff --git a/Prozesse Finanzen - Personalabrechnung.md b/Prozesse Finanzen - Personalabrechnung.md index 98a41aeb..29fb8e27 100644 --- a/Prozesse Finanzen - Personalabrechnung.md +++ b/Prozesse Finanzen - Personalabrechnung.md @@ -36,4 +36,9 @@ Arbeitsschritte: * Lohnstruktur auswählen * Klick auf *Create Draft Entry* * Review Buchhaluntssätze *Tab Buchungsinformationen > Buchung* -* Buchung Bestätigen \ No newline at end of file +* Buchung Bestätigen + +## Lohnzahlungen verbuchen + +Arbeitsschritte: +* \ No newline at end of file