-
Notifications
You must be signed in to change notification settings - Fork 311
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use a new scaffolding that makes sure there's a preexisting database.
- Loading branch information
Showing
10 changed files
with
88 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
FROM tecnativa/odoo-base:10.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
FROM tecnativa/odoo-base:11.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
FROM tecnativa/odoo-base:8.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
FROM tecnativa/odoo-base:9.0 |
17 changes: 17 additions & 0 deletions
17
tests/scaffoldings/settings/custom/scripts/test_smtp_settings.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/usr/local/bin/python-odoo-shell | ||
from odoo.exceptions import UserError | ||
from odoo.tools import config | ||
|
||
assert config.get("email_from") == "[email protected]" | ||
assert config.get("smtp_password") is False | ||
assert config.get("smtp_port") == 1025 | ||
assert config.get("smtp_server") == "mailhog" | ||
assert config.get("smtp_ssl") is False | ||
assert config.get("smtp_user") is False | ||
|
||
try: | ||
env["ir.mail_server"].test_smtp_connection() | ||
except UserError as msg: | ||
assert "Connection Test Succeeded!" in msg.args[0] | ||
else: | ||
raise Exception("This shouldn't happen :/") |
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# Odoo is always required | ||
./odoo: | ||
defaults: | ||
# Shallow repositores are faster & thinner | ||
depth: $DEPTH_DEFAULT | ||
remotes: | ||
ocb: https://github.com/OCA/OCB.git | ||
odoo: https://github.com/odoo/odoo.git | ||
target: | ||
ocb $ODOO_VERSION | ||
merges: | ||
- ocb $ODOO_VERSION |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
version: "2.1" | ||
services: | ||
odoo: | ||
build: | ||
context: ./ | ||
dockerfile: ${ODOO_MINOR}.Dockerfile | ||
args: | ||
AUTO_REQUIREMENTS: "true" | ||
CONFIG_BUILD: 'false' | ||
LOG_LEVEL: DEBUG | ||
tty: true | ||
environment: | ||
EMAIL_FROM: [email protected] | ||
PGUSER: another_odoo | ||
PGPASSWORD: anotherodoopassword | ||
PGHOST: postgresql | ||
PGDATABASE: ${DBNAME:-prod} | ||
SMTP_SERVER: mailhog | ||
SMTP_PORT: 1025 # MailHog default | ||
depends_on: | ||
- postgresql | ||
volumes: | ||
- filestore:/var/lib/odoo:z | ||
|
||
postgresql: | ||
image: postgres:${DB_VERSION}-alpine | ||
environment: | ||
POSTGRES_USER: another_odoo | ||
POSTGRES_PASSWORD: anotherodoopassword | ||
volumes: | ||
- db:/var/lib/postgresql/data:z | ||
|
||
mailhog: | ||
image: mailhog/mailhog | ||
|
||
volumes: | ||
db: | ||
filestore: |