Start a new odoo trial on a specfic server / version
https://www.odoo.com/trial?hosting=<server_domain>
example:
import inspect | |
ops = { | |
"+": lambda a, b: a + b, | |
"-": lambda a, b: a - b, | |
"x": lambda a, b: a * b, | |
"/": lambda a, b: a / b, | |
"sqrt": lambda a: a ** 0.5, | |
"ternary_operator": lambda a, b, c: a + b + c + 1, | |
} |
# Associate the elements of 2 lists randomly. | |
# If there are more elements in the second list, | |
# they are shared among all elements of the first list. | |
import random | |
from collections import defaultdict | |
def newbie_coach_randomizer(coaches, newbies): | |
random.shuffle(coaches) | |
random.shuffle(newbies) |
function applycss(css){ | |
var head = document.getElementsByTagName('head')[0]; | |
var s = document.createElement('style'); | |
s.setAttribute('type', 'text/css'); | |
s.appendChild(document.createTextNode(css)); | |
head.appendChild(s); | |
} | |
applycss(` | |
/* put custom css here */ |
' '.join(f':regional_indicator_{c.lower()}:' if c != ' ' else ' ' for c in 'PUT THE TEXT HERE') |
Start a new odoo trial on a specfic server / version
https://www.odoo.com/trial?hosting=<server_domain>
example:
#!/bin/bash | |
# This tool creates a database $3 from database $1 and database $2 | |
# database $1 will ends in the schema a | |
# database $2 will ends in the schema b | |
# this will allow comparisons between two schemas in the same database | |
if [ "$1" = "" ]; then | |
echo "USAGE: $0 <DBNAME_A> <DBNAME_B> <DBNAME_AB>" >&2 | |
exit 1 |
BEGIN; | |
-- list of projects to act upon | |
CREATE TABLE tmp_mig_2_helpdesk (pid INT, aliasid INT, stage varchar DEFAULT 'not started yet', time time DEFAULT now()); | |
-- INSERT INTO tmp_mig_2_helpdesk (pid, aliasid) VALUES (7, 13); --test 1 (113) | |
-- INSERT INTO tmp_mig_2_helpdesk (pid, aliasid) VALUES (13, 33); --test 2 (113) | |
-- INSERT INTO tmp_mig_2_helpdesk (pid, aliasid) VALUES (12, 33); --test 1 (114) | |
-- INSERT INTO tmp_mig_2_helpdesk (pid, aliasid) VALUES (13, 34); --test 2 (114) | |
INSERT INTO tmp_mig_2_helpdesk (pid, aliasid) VALUES (49, 31); -- Help | |
INSERT INTO tmp_mig_2_helpdesk (pid, aliasid) VALUES (1276, 1300976); -- PS maintenance | |
-- INSERT INTO tmp_mig_2_helpdesk (pid, aliasid) VALUES (XXX, XXX); -- [PS] Technical Support |
[ODOO]
to remove longpolling logs
add this to startup command
--log-level=warn --log-handler=werkzeug:CRITICAL
# alias "noweb" : prefix for executing scripts without allowing outgoing web requests. | |
# | |
# Original idea from http://ubuntuforums.org/showthread.php?t=1188099 | |
# | |
# no warranties use at own risk | |
# made for zsh, not tested with other shells | |
# to prepare for the use of this alias/iptable rule combo : | |
# groupadd no_web | |
# usermod -a -G no_web $USER |