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
def refferencing_records(env, recordset): | |
many2x_fields = env['ir.model.fields'].search([ | |
('ttype', 'in', ['many2one', 'many2many']), | |
('relation', '=', recordset._name), | |
('store', '=', True), | |
]) | |
many2x_fields = many2x_fields.filtered(lambda f: f.model in env | |
and f.name in env[f.model]._fields) |
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
$ steam | |
steam.sh[8310]: Running Steam on ubuntu 22.04 64-bit | |
steam.sh[8310]: STEAM_RUNTIME is enabled automatically | |
setup.sh[8495]: Steam runtime environment up-to-date! | |
steam.sh[8310]: Steam client's requirements are satisfied | |
[2023-08-24 21:02:41] Startup - updater built Jul 28 2023 18:44:09 | |
[2023-08-24 21:02:41] Startup - Steam Client launched with: '/home/voronin/.local/share/Steam/ubuntu12_32/steam' | |
08/24 21:02:41 Init: Installing breakpad exception handler for appid(steam)/version(1690583737)/tid(8568) | |
[2023-08-24 21:02:41] Loading cached metrics from disk (/home/voronin/.local/share/Steam/package/steam_client_metrics.bin) | |
[2023-08-24 21:02:41] Using the following download hosts for Public, Realm steamglobal |
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
Computer Information: | |
Manufacturer: ASUSTeK COMPUTER INC. | |
Model: P8Z77-V LX | |
Form Factor: Desktop | |
No Touch Input Detected | |
Processor Information: | |
CPU Vendor: GenuineIntel | |
CPU Brand: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz | |
CPU Family: 0x6 |
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
Computer Information: | |
Manufacturer: Unknown | |
Model: Unknown | |
Form Factor: Desktop | |
No Touch Input Detected | |
Processor Information: | |
CPU Vendor: GenuineIntel | |
CPU Brand: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz | |
CPU Family: 0x6 |
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
curl --form "master_pwd=$ODOO_DEV_MASTER_PASSWORD" \ | |
--form "backup_file=@$ODOO_BACKUP_FILE_PATH" \ | |
--form "name=$db_name" \ | |
--form "copy=True" \ | |
"$ODOO_DEV_URL/web/database/restore" |
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
<function model="ir.rule" name="write"> | |
<value eval="[ | |
ref('sale.sale_order_personal_rule'), | |
ref('sale.sale_order_see_all'), | |
ref('sale.sale_order_comp_rule'), | |
]"/> | |
<value eval="{'active': False}"/> | |
</function> |
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
<record id="..." model="ir.rule"> | |
... | |
<!-- Eval to list --> | |
<field name="groups" eval="[(4, ref('base.group_user'))]"/> | |
<!-- Eval to string. Keep `user.id` unresolved --> | |
<field name="domain_force" eval="''' | |
['|', ('subtype_id', '!=', {}), | |
('author_id.user_ids', '=', user.id)]'''.format(ref('mail.mt_note'))"/> | |
</record> |
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 os | |
import aioredis | |
from aiohttp.web import Application | |
import jinja2 | |
import aiohttp_jinja2 | |
import aiohttp_session | |
from aiohttp_session.redis_storage import RedisStorage | |
from pathlib import Path |
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 os | |
import sys | |
import csv | |
import glob | |
from zipfile import ZipFile | |
from multiprocessing import Pool | |
from xml.etree.ElementTree import fromstring | |
def parse_zip_file(zip_file_path): |
NewerOlder