sudo pip3 install pyquerystring
sudo pip3 install parse-accept-language
apt-get install python3-pypdf2
sudo apt-get install libsasl2-dev python-dev libldap2-dev libssl-dev
sudo pip3 install -r requirements.txt
#Note for Debian, sometime we want to install dependencie packages.
sudo apt --fix-broken install
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
// =countbackgrounds("C2:K2","#00ff00") | |
/* | |
it's a bit of a hack to send in the cell range as a string, though it works when calling getRange: | |
SpreadsheetApp.getActiveSpreadsheet().getRange(range) | |
This also means you can't "fill down" to have the ranges updated to match your sheet, so hack number two genreates | |
the formulas so you can copy/paste them into the sheet: |
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
<style> | |
#videogroup { | |
width: 100%; | |
} | |
iframe { | |
width: 90%; | |
padding: 5%; | |
} |
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
""" | |
jQuery templates use constructs like: | |
{{if condition}} print something{{/if}} | |
This, of course, completely screws up Django templates, | |
because Django thinks {{ and }} mean something. | |
Wrap {% verbatim %} and {% endverbatim %} around those | |
blocks of jQuery templates and this will try its best |
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
SELECT n.title, SUM(w.count) as total | |
FROM project_usage_week_release w | |
INNER JOIN field_data_field_release_project r ON w.nid = r.entity_id | |
INNER JOIN node n ON n.nid = r.field_release_project_target_id | |
INNER JOIN | |
field_data_field_release_version v ON v.entity_id = r.entity_id | |
WHERE LEFT(v.field_release_version_value, 3) = '7.x' | |
AND FROM_UNIXTIME(w.timestamp) BETWEEN CURDATE()-INTERVAL 2 WEEK AND CURDATE() | |
GROUP BY n.title | |
ORDER BY total DESC; |
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
upstream odooe{ | |
server 127.0.0.1:8069; | |
} | |
upstream olongpolling { | |
server 127.0.0.1:8072; | |
} | |
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
import base64 | |
from odoo import models, fields, api | |
class SomeModel(models.Model): | |
_name = 'some.model' | |
field1 = fields.Char(string="Field 1") | |
field2 = fields.Boolean(string="Field 2") | |
@api.multi |
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
# -*- coding: utf-8 -*- | |
from odoo import models, api, fields | |
import io | |
import base64 | |
import xlwt | |
class ControlAsistenciaWizard(models.TransientModel): |
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
<filter string="Today" name="today" domain="[('date_start','>=',time.strftime('%%Y-%%m-%%d'))]"/> | |
<filter string="This Month" name="thismonth" domain="[('date_start','>=',time.strftime('%%Y-%%m-01'))]"/> | |
<filter string="This Year" name="thisyear" domain="[('date_start','>=',time.strftime('%%Y-01-01'))]"/> | |
<filter string="Today" domain="[('start_at', '>=', datetime.datetime.combine(context_today(), datetime.time(0,0,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
enter DB via psql: | |
DELETE FROM ir_attachment WHERE res_model='ir.ui.view' | |
restart Odoo |
OlderNewer