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
cat `find vendor -name "requirements.txt" | grep -v odoo/cc` /dev/null |
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
#!/usr/bin/env bash | |
sed -i '/#\ -\*-\ coding: utf-8\ -\*-/d' `grep -rn . -e "coding: utf-8" -l` |
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
#!/usr/bin/env python3 | |
from os.path import join, abspath | |
import sys | |
sys.path.append("/home/noroot/maintainer-quality-tools/travis") | |
DBNAME = "a697" | |
VENDOR_DIR = "vendor" | |
ADDONS_PATH_TO_TEST = join(VENDOR_DIR, "it-projects-llc/pos-addons") |
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
#!/usr/bin/env bash | |
# git checkout 11.0 | |
# git merge --no-ff 10.0 | |
git reset *.pot | |
git checkout --ours *.pot | |
git checkout --ours .travis.yml | |
# взгляни на *.po файлы. Там недолжно быть всякой фигни | |
rm `git ls-files --others --exclude-standard | grep ".pot" | paste -sd " " -` |
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
#!/usr/bin/env bash | |
TMP_DIR=/home/noroot/tmp | |
OULIB_PATH=/home/noroot/Projects/c8/openupgradelib | |
OU9_PATH=/home/noroot/Projects/c8/ou9 | |
OU10_PATH=/home/noroot/Projects/c8/ou10 | |
OU11_PATH=/home/noroot/Projects/c8/ou11 | |
OU12_PATH=/home/noroot/Projects/c8/ou12 |
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
#!/bin/bash | |
# ORGANIZATION GITHUB URL | |
ORG=it-projects-llc | |
UPSTREAM_URL_GIT=https://github.com/$ORG | |
# DEVELOPER INFO | |
USERNAME=em230418 | |
# WHERE TO CLONE |
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
# пишет, какие файлы поменялись по сравнению с веткой 11.0 | |
git diff --name-only 11.0 | grep -v ".po" | grep "/" | sed 's/\/.*//' | sort -u | |
# можно еще так, чтобы сразу test_*.py | |
git diff --name-only 11.0 | grep -v ".po" | grep "/" | sed 's/\/.*//' | sort -u | sed 's/.*/"\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
#!/usr/bin/env python3 | |
from pprint import pprint | |
from time import sleep | |
import xml.etree.ElementTree as ET | |
def write_header(f): | |
f.write('''<?xml version="1.0" encoding="UTF-8"?> | |
<odoo> |
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
from odoo import api, fields, models | |
class ProductTemplate(models.Model): | |
_inherit = "product.template" | |
engrus_name = fields.Char(compute="_compute_translated_names") | |
vi_name = fields.Char(compute="_compute_translated_names") | |
en_name = fields.Char(compute="_compute_translated_names") | |
ru_name = fields.Char(compute="_compute_translated_names") |
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
diff --git a/addons/web/static/src/views/helpers/sample_server.js b/addons/web/static/src/views/helpers/sample_server.js | |
index 63b090149c1..41ee14b88af 100644 | |
--- a/addons/web/static/src/views/helpers/sample_server.js | |
+++ b/addons/web/static/src/views/helpers/sample_server.js | |
@@ -309,7 +309,7 @@ export class SampleServer { | |
*/ | |
_getRandomDate(format) { | |
const delta = Math.floor((Math.random() - Math.random()) * SampleServer.DATE_DELTA); | |
- return luxon.DateTime.local().plus({ hours: delta }).toFormat(format); | |
+ return luxon.DateTime.local().plus({ hours: delta }).toFormat(format, {numberingSystem: 'latn'}); |
OlderNewer