• ERP системы

 #10694   IgorA100
 13 мар 2023, 20:33
Установка Axelor: https://docs.axelor.com/abs/5.0/install/war/linux.html
Код: Выделить всёsudo apt-get install openjdk-8-jdk
sudo groupadd tomcat
sudo useradd -s /bin/false -g tomcat -d /opt/tomcat tomcat

Установка TomCat (https://www.dmosk.ru/miniinstruktions.p ... tu#install)
Выбираем свежий пакет с расширением .tar.gz https://tomcat.apache.org/download-80.cgi
Скачиваем его и разворачиваем:
Код: Выделить всёcd /tmp
curl -O https://dlcdn.apache.org/tomcat/tomcat-8/v8.5.87/bin/apache-tomcat-8.5.87.tar.gz
sudo mkdir -p /opt/tomcat
sudo tar -xzf apache-tomcat-*.tar.gz -C /opt/tomcat --strip-components=1

Корректируем разрешения:
Код: Выделить всёcd /opt/tomcat
sudo chgrp -R tomcat /opt/tomcat
sudo chmod -R g+r conf
sudo chmod g+x conf
sudo chown -R tomcat webapps/ work/ temp/ logs/

После переустановки Axelor, так-же необходимо скорректировать разрешения, иначе будет ошибка в браузере типа:
Type Exception Report

Message java.lang.ClassNotFoundException: org.apache.jsp.login_jsp

Description The server encountered an unexpected condition that prevented it from fulfilling the request.

Exception

org.apache.jasper.JasperException: java.lang.ClassNotFoundException: org.apache.jsp.login_jsp
org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:196)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:412)

и при запуске католины тоже будет ошибка в логах или консоле запуска типа:
ERROR 15570 --- [ost-startStop-1] o.apache.jasper.EmbeddedServletOptions : The scratchDir you specified: [/opt/tomcat/work/Catalina/localhost/axelor-erp-latest] is unusable.
18-Mar-2023 13:06:45.330 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployWAR Deployment of web application archive [/opt/tomcat/webapps/axelor-erp-latest.war] has finished in [141,403] ms

и
ERROR 15570 --- [nio-8080-exec-3] org.apache.jasper.JspCompilationContext : Unable to create output directory [/opt/tomcat/work/Catalina/localhost/axelor-erp-latest/org/apache/jsp/] req uired for JSP compilation


Устанавливаем PostgreSQL
https://www.postgresql.org/download/
Код: Выделить всё# Create the file repository configuration:
sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list'

# Import the repository signing key:
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -

# Update the package lists:
sudo apt-get update

# Install the latest version of PostgreSQL.
# If you want a specific version, use 'postgresql-12' or similar instead of 'postgresql':
sudo apt-get -y install postgresql


Разрешить на PostgreSQL аутентификацию по паролю: https://www.postgresql.org/docs/9.4/sta ... thods.html
Правим файл /etc/postgresql/15/main/pg_hba.conf
Получится примерно так:
Код: Выделить всё# "local" is for Unix domain socket connections only
#local   all             all                                     peer
local   all             all                                     trust
# IPv4 local connections:
#host    all             all             127.0.0.1/32            scram-sha-256
host    all             all             127.0.0.1/32            md5
# IPv6 local connections:
#host    all             all             ::1/128                 scram-sha-256
host    all             all             ::1/128                 md5

Как только PostgreSQL настроен, создайте нового пользователя базы данных с паролем:
Код: Выделить всёsudo su postgres
createuser axelor --no-createdb --no-superuser
psql -c "alter user axelor with encrypted password 'axelor'";

Создается новый пользователь PostgreSQL axelor с заданным паролем. Пароль, используемый здесь, предназначен только для демонстрации. Используйте свой собственный надежный пароль.

Развертывание WAR
Скачиваем:
https://axelor.com/downloads/#installations
или: https://github.com/axelor/axelor-open-s ... v6.5.2.war

sudo su postgres
createdb -O axelor axelor - создать БД "axelor " с пользователем "axelor "
createuser axelor --no-createdb --no-superuser - создаем пользователя "axelor"
$ psql -c "alter user axelor with encrypted password 'axelor'"; - создаем пользователя "axelor" с паролем "'axelor'"
psql -Uaxelor -hlocalhost -daxelor - проверка коннекта к БД https://jeka.by/post/1104/postgresql-co ... -terminal/

psql
\l - просмотр таблиц
\du - просмотр пользователей
\q - выйти

Проблемы подключения к PostgreeSQL: https://stackoverflow.com/questions/642 ... not-suppor

Перезапуск PostgreeSQL: /etc/init.d/postgresql restart

https://forum.axelor.com/t/email-configuration/1358/3

При отладке рекомендуется запуск из консоли. В этом случае все ошибки будут наглядно видны:
Код: Выделить всёsudo -su tomcat
/opt/tomcat/bin/catalina.sh run
 #10696   IgorA100
 18 мар 2023, 19:49
Dolibarr
https://www.dolibarr.org/onlinedemo.php
Для установки достаточно скачать OVA файл для виртуальной машины.
Логин и пароль для входа через консоль: bitnami

Форум поддержки: https://www.dolibarr.org/forum/
Создание кастомного модуля: https://www.dolibarr.org/forum/t/custom ... de/16918/7
Работа с триггерами в кастомном модуле: https://wiki.dolibarr.org/index.php?title=Triggers

Добавление пользовательских полей: https://github.com/Dolibarr/dolibarr/issues/20749
Обсуждение возможности встроить почтовый клиент: https://www.dolibarr.fr/forum/t/client- ... r/35322/68
Попытка связать Roundcube с Dolibarr: https://github.com/altairisfr/webmail
Попытка обсудить Nextcloud + DAV + Dolibarr https://www.dolibarr.org/forum/t/nextcl ... n/16482/12
Альтернативы: https://progsoft.net/ru/software/dolibarr

Попытка обсуждения отправки уведомления по электронной почте при назначении задачи или проекта: https://www.dolibarr.org/forum/t/projec ... on/21112/9

Обсуждение возможности комментирования задач и проектов:
https://github.com/Dolibarr/dolibarr/issues/19710
https://github.com/Dolibarr/dolibarr/issues/18951
https://github.com/Dolibarr/dolibarr/issues/20641

Некоторые запросы к SQL базе: https://www.dolibarr.org/forum/t/proper ... r/15831/10

Установка
https://wiki.dolibarr.org/index.php?tit ... _-_Upgrade

Код: Выделить всёchmod -R 755 /var/www/html/dolibarr
chown -R www-data.www-data /var/www/html/dolibarr
cd dolibarr ; touch htdocs/conf/conf.php ; chown www-data htdocs/conf/conf.php


Полезные дополнения:
AJAX live search for Dolibarr https://www.dolibarrstore.com/en/module ... 0-120.html
 #10697   IgorA100
 18 мар 2023, 20:08
Axelor Update для бесплатной версии Community НЕ поддерживается: https://axelor.com/pricing/
Как же обновиться?
Основная проблема состоит в изменении структуры БД. Придется руками искать изменения и вносить так-же руками:
https://forum.axelor.com/t/migration-fr ... 6-3-x/5339
https://forum.axelor.com/t/how-to-prope ... xelor/4942
 #10701   IgorA100
 22 мар 2023, 18:32
Odoo
После автоматической установки из DEB пакета Odoo установится по пути: /usr/lib/python3/dist-packages/odoo

РУЧНАЯ Инсталяция : https://www.howtoforge.com/how-to-insta ... ntu-22-04/
Решение возможной проблемы с установкой nodejs: https://stackoverflow.com/questions/744 ... ing-nodejs

https://github.com/yspcn/odoo_fuck
https://github.com/KarimGil/odoo15enterprise
https://github.com/search?o=desc&p=3&q= ... positories
https://github.com/mah007?page=2&tab=repositories
https://github.com/manmsc/ofoo_helpdesk

15 Enterprise: https://babia.to/threads/odoo-enterpris ... ost-834439

odoo 16 enterprise download
https://yandex.ru/search/?text=odoo+16+ ... ggest_Tail
https://crackhints.com/odoo-enterprise-crack/
 #10702   IgorA100
 23 мар 2023, 23:24
Flectra
Это форк Odoo, но с бОльшим бесплатным набором.
Установка:
https://gitlab.com/flectra-hq/flectra/- ... ts/2058097
https://infoit.com.ua/linux/kak-ustanov ... 20-04-lts/

При установке wkhtmltox на Ububntu 22.04 скорее всего получите ошибку типа:
The following packages have unmet dependencies:
wkhtmltox : Depends: libssl1.1 but it is not installable
E: Unable to correct problems, you have held broken packages.

Решение:
Репозиторий Ubuntu 22.04 поддерживает libssl версии 3 и не поддерживает libssl1.1

Придется принудительно установить libssl1.1, добавив исходный репозиторий от Ubuntu 20.04:

Код: Выделить всёecho "deb http://security.ubuntu.com/ubuntu focal-security main" | sudo tee /etc/apt/sources.list.d/focal-security.list

sudo apt-get update
sudo apt-get install libssl1.1



При ошибке
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error

× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [1 lines of output]
error in feedparser setup command: use_2to3 is invalid.
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

Нужно понизить версию:
Код: Выделить всёpip install "setuptools<58.0.0"

и заново запустить
Код: Выделить всёpip3 install -r flectra/requirements.txt

https://stackoverflow.com/questions/724 ... is-invalid

При ошибке
Collecting lxml==4.2.3
Downloading lxml-4.2.3.tar.gz (4.4 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 4.4/4.4 MB 3.0 MB/s eta 0:00:00
Preparing metadata (setup.py) ... done
ERROR: Cannot install lxml==4.2.3 and lxml==4.6.3 because these package versions have conflicting dependencies.

The conflict is caused by:
The user requested lxml==4.2.3
The user requested lxml==4.6.3

To fix this you could try to:
1. loosen the range of package versions you've specified
2. remove package versions to allow pip attempt to solve the dependency conflict

ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/topics/de ... -conflicts

необходимо заремить строку "lxml==4.2.3 ; sys_platform != 'win32' and python_version >= '3.7'"
в файле "flectra/requirements.txt"

При ошибке
ERROR: Cannot install psutil==4.3.1 and psutil==5.6.3 because these package versions have conflicting dependencies.

The conflict is caused by:
The user requested psutil==4.3.1
The user requested psutil==5.6.3

To fix this you could try to:
1. loosen the range of package versions you've specified
2. remove package versions to allow pip attempt to solve the dependency conflict

ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/topics/de ... -conflicts

Нужно заремить строку "psutil==4.3.1; sys_platform != 'win32' and python_version >= '3.7'"

В случае неудачи, удалить все пакеты:
pip3 freeze | xargs pip3 uninstall -y


https://stackoverflow.com/questions/700 ... -usr-local
https://github.com/iovisor/bcc/issues/4178

Полезные команды по Postgresql :https://jeka.by/post/1104/postgresql-connect-via-terminal/
 #10703   IgorA100
 25 мар 2023, 23:27
ERPNext
ERPNext-Production_v14.8.0 ova download link: https://discuss.frappe.io/t/erpnext-pro ... nk/96926/1

Домашняя страница: https://erpnext.com/pricing
Исходники: https://github.com/frappe/erpnext
Документация: https://frappeframework.com/docs/v14/us ... i/document https://docs.erpnext.com/docs/v12/user/ ... ver-script
Установка из исходников: https://codewithkarani.com/2022/08/18/i ... ersion-14/
И еще алгоритм установки из исходников: https://github.com/D-codE-Hub/Frappe-ER ... -22.04-LTS
Обновление: https://www.guru.com/blog/how-to-update-erpnext/

Разные полезности: https://erpnexttutorials.blogspot.com/2016/07/
SQL запросы: https://discuss.frappe.io/t/filtered-dr ... ype/9132/2
Добавление кастомного поля с видимостью (доступностью) в зависимости от других полей: https://discuss.frappe.io/t/how-to-add- ... er/47497/5

Оптимизация настроек быстродействия: https://github.com/frappe/erpnext/wiki/ ... nce-Tuning

Проблемы скорости работы: https://discuss.frappe.io/t/erpnext-run ... w/32262/30
Проблемы скорости обработки main.js https://github.com/vercel/next.js/discussions/17977
Проблема работы фильтрации по назначенному сотруднику:
https://discuss.frappe.io/t/filters-not ... view/34253
https://github.com/frappe/erpnext/issues/13364

Create Notification for shortlisted Job Applicant in ERPNext: https://www.youtube.com/watch?v=U5_bT47SmAs
Workflow Email Notification - Frappe ERPNExt: https://www.youtube.com/watch?v=1tzObfvCgPs

Установка:
Код: Выделить всёsudo apt-get install git python3-dev python3.10-dev python3-setuptools python3-pip python3-distutils python3-dev python3.10-dev python3-setuptools python3-pip python3-distutils python3.10-venv software-properties-common mariadb-server mariadb-client redis-server xvfb libfontconfig wkhtmltopdf libmysqlclient-dev


Добавляем в файл /etc/mysql/mariadb.conf.d/50-server.cnf
[mysqld]
character-set-client-handshake = FALSE
character-set-server = utf8mb4
collation-server = utf8mb4_unicode_ci

Добавляем в файл /etc/mysql/conf.d/mysql.cnf
[mysql]
default-character-set = utf8mb4

Тестирование модулей: https://frappeframework.com/docs/v14/us ... it-testing

Запуск Nextcloud вместе с ERPNext на том же сервере: https://discuss.frappe.io/t/running-nex ... r/56604/11
ErpNext - NextCloud: https://github.com/AgileShift/erpnext_nextcloud
ERPNext против Odoo: https://discuss.frappe.io/t/erpnext-vs-odoo/7496/37