Skip to content

Instantly share code, notes, and snippets.

View tderick's full-sized avatar
🏠
Working from home

DERICK TEMFACK tderick

🏠
Working from home
View GitHub Profile
<group>
<span class="o_form_label o_td_label" name="address_name">
Addresse
</span>
<div class="o_address_format">
<field name="street" placeholder="Rue..." class="o_address_street"/>
<field name="street2" placeholder="Rue2..." class="o_address_street"/>
<field name="zip_id" options="{'create_name_field': 'city', 'no_open': True, 'no_create': True}"
placeholder="City completion" class="oe_edit_only"/>
<field name="city" placeholder="Cite" class="o_address_city"/>
@tderick
tderick / default.conf
Last active February 17, 2023 06:13
Docker-compose file for Odoo with SSL
#odoo server
upstream odoo {
server odoo:8069;
}
upstream odoochat {
server odoo:8072;
}
map $http_upgrade $connection_upgrade {
default upgrade;
@tderick
tderick / default.conf
Last active January 19, 2023 13:30
Nginx conf
#odoo server
upstream odoo {
server odoo:8069;
}
upstream odoochat {
server odoo:8072;
}
map $http_upgrade $connection_upgrade {
default upgrade;
@tderick
tderick / odoo.conf
Last active February 17, 2023 05:06
Odoo.conf file
[options]
addons_path = /mnt/extra-addons,
admin_passwd = admin_password
db_host = postgres
db_user = odoo
db_password = password
@tderick
tderick / docker-compose.yml
Last active February 17, 2023 04:59
docker-compose without SSL
version: '3.9'
services:
odoo:
container_name: odoo
image: odoo:16.0
volumes:
- ./extra-addons:/mnt/extra-addons
- ./etc/odoo:/etc/odoo
- odoo-web-data:/var/lib/odoo
<html>
<head>
<title>List uploaded files</title>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css"
integrity="sha384-gH2yIJqKdNHPEq0n4Mqa/HGKIhSkIHeL5AyhkYV8i59U5AR6csBvApHHNl/vI1Bx" crossorigin="anonymous">
</head>
<body>
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Storage;
use App\Models\Files;
class FilesController extends Controller
<html>
<head>
<title>Contact Form</title>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css">
<style>
/* The switch - the box around the slider */
.switch {
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Models\Parameters;
class ParametersController extends Controller
{
<?php
public function store(Request $request)
{
$this->validate($request, [
'name' => 'required',
'email' => 'required',
'message' => 'required',
'g-recaptcha-response' => 'required|recaptchav3:contact,0.5'
]);