This file contains hidden or 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
diff --git a/tests/test_account.py b/tests/test_account.py | |
index b0aef15..6651b9b 100644 | |
--- a/tests/test_account.py | |
+++ b/tests/test_account.py | |
@@ -735,6 +735,11 @@ class AccountTestCase(ModuleTestCase): | |
Journal = pool.get('account.journal') | |
Account = pool.get('account.account') | |
Move = pool.get('account.move') | |
+ Period = pool.get('account.period') | |
+ AccountType = pool.get('account.account.type') |
This file contains hidden or 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 sys | |
# needs pip install zebra | |
from zebra import zebra | |
# Replace the string below. | |
# You can get valid names from zebra().getqueues() | |
printer_name = "Zebra_Technologies_ZTC_GC420d__EPL__2" | |
z = zebra(printer_name) |
This file contains hidden or 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
#!/usr/bin/env bash | |
# This script assumes that ImageMagick is installed and the convert command is accessible via the $PATH variable | |
# Ensure that one argument has been passed in. | |
if [ ! "$#" -eq 1 ] | |
then | |
echo -e "This script requires one argument.\\ne.g. iOS_icon_maker.sh app_icon.png" | |
exit 1 | |
fi |
This file contains hidden or 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 -*- | |
""" | |
tests/conftest.py | |
:copyright: (C) 2015 by Openlabs Technologies & Consulting (P) Limited | |
:license: BSD, see LICENSE for more details. | |
""" | |
import os | |
import time | |
import calendar |
This file contains hidden or 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 -*- | |
import os | |
import psycopg2 | |
# Connect to tryton database with database uri. | |
# | |
# Example: postgres://tryton:tryton@localhost/production | |
conn = psycopg2.connect(os.environ.get('TRYTOND_DATABASE_URI')) | |
conn.set_client_encoding('UTF8') |
This file contains hidden or 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
# Given a date find the monday and friday of the week | |
# This assumes that the week starts on sunday | |
import datetime | |
import calendar | |
from dateutil.relativedelta import relativedelta | |
def get_monday_in_week(date): | |
# Find the current week | |
current_week = date.isocalendar()[1] | |
delta = relativedelta(weeks=current_week-1, weekday=calendar.MONDAY) |
This file contains hidden or 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
<link rel="import" href="../core-scaffold/core-scaffold.html"> | |
<link rel="import" href="../core-header-panel/core-header-panel.html"> | |
<link rel="import" href="../core-menu/core-menu.html"> | |
<link rel="import" href="../core-item/core-item.html"> | |
<link rel="import" href="../core-icon-button/core-icon-button.html"> | |
<link rel="import" href="../core-toolbar/core-toolbar.html"> | |
<link rel="import" href="../core-menu/core-submenu.html"> | |
<polymer-element name="my-element"> |
This file contains hidden or 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 -*- | |
""" | |
unicode_dict_reader | |
:copyright: (C) 2013-2015 by Openlabs Technologies & Consulting (P) Limited | |
:license: BSD, see LICENSE for more details. | |
""" | |
import csv | |
class UnicodeDictReader(csv.DictReader): | |
def __init__(self, csvfile, *args, **kwargs): |
This file contains hidden or 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
diff --git a/emails/sale-confirmation-html.html b/emails/sale-confirmation-html.html | |
index 4a0ba5c..dfac4cb 100644 | |
--- a/emails/sale-confirmation-html.html | |
+++ b/emails/sale-confirmation-html.html | |
@@ -8,6 +8,94 @@ | |
{% endblock %} | |
</head> | |
<body> | |
+ {% block json_ld %} | |
+ <script type="application/ld+json"> |
This file contains hidden or 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
# /etc/tryton/trytond.conf - Configuration file for Tryton Server (trytond) | |
# | |
# This file contains the most common settings for trytond (Defaults | |
# are commented). | |
# For more information install the tryton-server-doc package and read | |
# /usr/share/doc/tryton-server-doc/html/index.html | |
# and accordingly | |
# /usr/share/doc/tryton-server-doc/html/topics/configuration.html | |
[database] |