[ODOO]
to remove longpolling logs
add this to startup command
--log-level=warn --log-handler=werkzeug:CRITICAL
| odoo.__DEBUG__.services['web.core'].bus.trigger('barcode_scanned', "BARCODE_VALUE_HERE", $(".o_web_client")[0]); | |
| // new version , according to https://github.com/odoo/enterprise/blob/7bc8ced2ad93b5004d82e9c75a03661c09685fd2/stock_barcode/static/img/make_barcodes.sh#L120 | |
| odoo.__WOWL_DEBUG__.root.env.services.barcode.bus.trigger("barcode_scanned", {barcode:"setyourbarcodehere"}) |
| # 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 |
[ODOO]
to remove longpolling logs
add this to startup command
--log-level=warn --log-handler=werkzeug:CRITICAL
| 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 |
| #!/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 |
Start a new odoo trial on a specfic server / version
https://www.odoo.com/trial?hosting=<server_domain>
example:
| ' '.join(f':regional_indicator_{c.lower()}:' if c != ' ' else ' ' for c in 'PUT THE TEXT HERE') |
| 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 */ |
| # 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) |