sudo nano /etc/php/7.2/fpm/php.ini
sudo nano /etc/php/7.2/cli/php.ini
sudo service php-fpm restart
sudo service php7.2-fpm restart
sudo service nginx restart
| Lưu ý: Odoo chỉ kết nối với PostgreSQL, nên phải cài đặt PostgreSQL trước. | |
| Bước 1: Cài các chương trình cần thiết theo dòng lệnh bên dưới | |
| > sudo apt install git python3-pip build-essential wget python3-dev python3-venv python3-wheel libxslt-dev libzip-dev libldap2-dev libsasl2-dev python3-setuptools node-less | |
| # nếu python 2 thì chạy lệnh dưới | |
| > sudo apt-get install python-dateutil python-docutils python-feedparser python-jinja2 python-ldap python-libxslt1 python-lxml python-mako python-mock python-openid python-psycopg2 python-psutil python-pybabel python-pychart python-pydot python-pyparsing python-reportlab python-simplejson python-tz python-unittest2 python-vatnumber python-vobject python-webdav python-werkzeug python-xlwt python-yaml python-zsi poppler-utils python-pip python-pypdf python-passlib python-decorator gcc python-dev mc bzr python-setuptools python-markupsafe python-reportlab-accel python-zsi python-yaml python-argparse python-openssl python-egenix-mxdatetime python-usb python-serial lptools |
| <?php namespace Author\PluginName; | |
| use System\Classes\PluginBase; | |
| use Backend\Facades\BackendMenu; | |
| class Plugin extends PluginBase | |
| { | |
| public function register() { | |
| BackendMenu::registerContextSidenavPartial('Author.PluginName', | |
| 'sidebar-menu', |
| <?php | |
| $isCreate = $this->formGetContext() == 'create'; | |
| $pageUrl = isset($pageUrl) ? $pageUrl : null; | |
| ?> | |
| <div class="form-buttons loading-indicator-container"> | |
| <!-- Save --> | |
| <a | |
| href="javascript:;" | |
| class="btn btn-primary oc-icon-check save" |
| psql -d template1 -c "ALTER USER postgres WITH PASSWORD 'postgres';" | |
| createuser odoo –pwprompt | |
| createdb odoo -O odoo | |
| pip3.7 install psycopg2 --upgrade |
| ssh username@server-ip -L 5434:127.0.0.1:5434 |
| # first we download the list of IP ranges from CloudFlare | |
| wget https://www.cloudflare.com/ips-v4 | |
| # iterate over the lines in the downloaded file | |
| # make sure to set `--group-id` and `--port`; more details at http://docs.aws.amazon.com/cli/latest/reference/ec2/authorize-security-group-ingress.html | |
| while read p; do aws ec2 authorize-security-group-ingress --group-id sg-e0000000 --protocol tcp --port 80 --cidr $p; done< ips-v4 |
| <?php | |
| $code = 'OD.' . str_pad($this->count() + 1, 10, '0', STR_PAD_LEFT); |
| <?php namespace; | |
| use BackendAuth, Exception, ValidationException; | |
| use Rebing\GraphQL\Support\Mutation; | |
| class BaseMutation extends Mutation | |
| { | |
| /** | |
| * Permission required access to mutation | |
| * @var array |
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="utf-8"> | |
| <title>Hoá đơn {{ invoice.code }}</title> | |
| <style> | |
| .clearfix:after { | |
| content: ""; | |
| display: table; |
sudo nano /etc/php/7.2/fpm/php.ini
sudo nano /etc/php/7.2/cli/php.ini
sudo service php-fpm restart
sudo service php7.2-fpm restart
sudo service nginx restart