size
int64
0
304k
ext
stringclasses
1 value
lang
stringclasses
1 value
branch
stringclasses
1 value
content
stringlengths
0
304k
avg_line_length
float64
0
238
max_line_length
int64
0
304k
9,540
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from ast import literal_eval from odoo import api, fields, models from odoo.exceptions import UserError from odoo.tools.translate import _ class ResConfigSettings(models.TransientModel): _inherit = 'res.config.set...
48.923077
9,540
84,978
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. import base64 import hashlib import inspect import json import logging import re import requests from lxml import etree, html from psycopg2 import sql from werkzeug import urls from werkzeug.datastructures import Ordere...
45.934054
84,978
2,777
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. import re from odoo import api, fields, models, tools, _ from odoo.exceptions import ValidationError from odoo.modules.module import get_resource_path class WebsiteConfiguratorFeature(models.Model): _name = 'webs...
43.390625
2,777
1,749
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. import werkzeug.urls from odoo import models, fields class Partner(models.Model): _name = 'res.partner' _inherit = ['res.partner', 'website.published.multi.mixin'] visitor_ids = fields.One2many('website.vi...
40.674419
1,749
2,862
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from werkzeug import urls from odoo import api, fields, models from odoo.http import request from odoo.tools.json import scriptsafe as json_scriptsafe class ServerAction(models.Model): """ Add website option in ser...
46.16129
2,862
16,665
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from datetime import datetime, timedelta import uuid import pytz from odoo import fields, models, api, _ from odoo.addons.base.models.res_partner import _tz_get from odoo.exceptions import UserError from odoo.tools.misc...
49.159292
16,665
3,030
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from odoo import http from odoo.http import request from odoo.tools.translate import _ class WebsiteBackend(http.Controller): @http.route('/website/fetch_dashboard_data', type="json", auth='user') def fetch_da...
44.558824
3,030
13,360
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. import base64 import json from psycopg2 import IntegrityError from werkzeug.exceptions import BadRequest from odoo import http, SUPERUSER_ID, _ from odoo.http import request from odoo.tools import plaintext2html from o...
46.068966
13,360
40,995
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. import base64 import datetime import json import os import logging import re import requests import werkzeug.urls import werkzeug.utils import werkzeug.wrappers from itertools import islice from lxml import etree from te...
46.374434
40,995
3,370
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. { 'name': 'Manufacturing', 'version': '2.0', 'website': 'https://www.odoo.com/app/manufacturing', 'category': 'Manufacturing/Manufacturing', 'sequence': 55, 'summary': 'Manufacturing Orders & BOM...
38.295455
3,370
20,090
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. import logging from datetime import datetime, timedelta from collections import defaultdict from odoo import models from odoo.tools import populate, OrderedSet from odoo.addons.stock.populate.stock import COMPANY_NB_WIT...
47.04918
20,090
27,805
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from odoo.tests import Form from odoo.addons.mrp.tests.common import TestMrpCommon import logging _logger = logging.getLogger(__name__) class TestTraceability(TestMrpCommon): TRACKING_TYPES = ['none', 'serial', 'l...
43.581505
27,805
26,888
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from datetime import datetime, timedelta from odoo.addons.mrp.tests.common import TestMrpCommon from odoo.tests import Form from odoo.tests.common import TransactionCase class TestMrpProductionBackorder(TestMrpCommon):...
49.977695
26,888
5,640
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from odoo.tests import Form from datetime import datetime, timedelta from odoo.fields import Datetime as Dt from odoo.exceptions import UserError from odoo.addons.mrp.tests.common import TestMrpCommon class TestMrpCan...
47.79661
5,640
30,600
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from odoo.tests import Form, tagged from odoo.addons.mrp.tests.common import TestMrpCommon @tagged('post_install', '-at_install') class TestMultistepManufacturingWarehouse(TestMrpCommon): def setUp(self): ...
46.932515
30,600
11,362
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from odoo.tests.common import Form from odoo.addons.stock.tests.test_report import TestReportsCommon class TestSaleStockReports(TestReportsCommon): def test_report_forecast_1_mo_count(self): """ Creates and...
44.210117
11,362
3,870
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from odoo.addons.mrp.tests.common import TestMrpCommon from odoo.tests import Form from odoo.exceptions import UserError class TestMrpSerialMassProduce(TestMrpCommon): def test_smp_serial(self): """Create a...
47.195122
3,870
33,401
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from datetime import datetime, timedelta from odoo import fields from odoo.tests import Form from odoo.addons.mrp.tests.common import TestMrpCommon from odoo.exceptions import UserError class TestProcurement(TestMrpCom...
44.357238
33,401
12,208
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from odoo.tests import Form from odoo.tests import common from odoo.exceptions import ValidationError class TestMrpByProduct(common.TransactionCase): def setUp(self): super(TestMrpByProduct, self).setUp() ...
46.067925
12,208
3,555
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from datetime import datetime, timedelta, time from pytz import timezone, utc from odoo import fields from odoo.addons.mrp.tests.common import TestMrpCommon class TestOee(TestMrpCommon): def create_productivity_li...
50.070423
3,555
9,822
py
PYTHON
15.0
# -*- coding: utf-8 -*- from odoo.tests import Form from odoo.addons.mail.tests.common import mail_new_test_user from odoo.addons.stock.tests import common2 class TestMrpCommon(common2.TestStockCommon): @classmethod def generate_mo(self, tracking_final='none', tracking_base_1='none', tracking_base_2='none',...
41.096234
9,822
135,962
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from odoo.tests import Form from datetime import datetime, timedelta from freezegun import freeze_time from odoo import fields from odoo.exceptions import UserError from odoo.addons.mrp.tests.common import TestMrpCommon...
47.29113
135,962
40,526
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from odoo.tests import Form from odoo.addons.mrp.tests.common import TestMrpCommon from odoo.exceptions import UserError class TestUnbuild(TestMrpCommon): def setUp(self): super(TestUnbuild, self).setUp() ...
49.603427
40,526
52,156
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from odoo import exceptions, Command, fields from odoo.tests import Form from odoo.addons.mrp.tests.common import TestMrpCommon from odoo.tools import float_compare, float_round, float_repr from freezegun import freeze_...
47.572993
52,140
16,308
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from . import common from odoo.exceptions import UserError from odoo.tests import Form class TestWarehouse(common.TestMrpCommon): def setUp(self): super(TestWarehouse, self).setUp() unit = self.env...
42.248705
16,308
7,503
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from odoo.tests import common, Form from odoo.exceptions import UserError class TestMrpMulticompany(common.TransactionCase): def setUp(self): super(TestMrpMulticompany, self).setUp() group_user = ...
40.122995
7,503
4,063
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from odoo import _, api, fields, models from odoo.exceptions import UserError from odoo.tools import float_compare class MrpImmediateProductionLine(models.TransientModel): _name = 'mrp.immediate.production.line' ...
49.54878
4,063
607
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from odoo import api, fields, models class StockWarnInsufficientQtyUnbuild(models.TransientModel): _name = 'stock.warn.insufficient.qty.unbuild' _inherit = 'stock.warn.insufficient.qty' _description = 'Warn...
31.947368
607
6,588
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from odoo import api, fields, models, _ from odoo.exceptions import UserError from odoo.tools import float_is_zero, float_round class ChangeProductionQty(models.TransientModel): _name = 'change.production.qty' ...
56.307692
6,588
4,482
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from collections import Counter from odoo import _, api, fields, models from odoo.exceptions import UserError class StockAssignSerialNumbers(models.TransientModel): _inherit = 'stock.assign.serial' production...
49.8
4,482
3,199
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from odoo import fields, models, api class MrpConsumptionWarning(models.TransientModel): _name = 'mrp.consumption.warning' _description = "Wizard in case of consumption in warning/strict and more component has ...
51.596774
3,199
1,842
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from odoo import api, fields, models class MrpProductionBackorderLine(models.TransientModel): _name = 'mrp.production.backorder.line' _description = "Backorder Confirmation Line" mrp_production_backorder_i...
46.05
1,842
16,341
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from odoo import api, fields, models, _ from odoo.exceptions import UserError, ValidationError from odoo.tools import float_compare, float_round from odoo.osv import expression from collections import defaultdict clas...
53.228013
16,341
15,944
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from odoo import api, fields, models, _ from odoo.exceptions import ValidationError, UserError class StockWarehouse(models.Model): _inherit = 'stock.warehouse' manufacture_to_resupply = fields.Boolean( ...
50.615873
15,944
1,385
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from odoo import fields, models class MrpDocument(models.Model): """ Extension of ir.attachment only used in MRP to handle archivage and basic versioning. """ _name = 'mrp.document' _description = "...
38.472222
1,385
6,251
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from odoo import api, fields, models, _, tools class MrpRoutingWorkcenter(models.Model): _name = 'mrp.routing.workcenter' _description = 'Work Center Usage' _order = 'bom_id, sequence, id' _check_compan...
52.974576
6,251
2,574
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from odoo import _, api, fields, models class StockScrap(models.Model): _inherit = 'stock.scrap' production_id = fields.Many2one( 'mrp.production', 'Manufacturing Order', states={'done': [('rea...
49.5
2,574
26,277
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from odoo import api, Command, fields, models, _ from odoo.osv import expression from odoo.tools import float_compare, float_round, float_is_zero, OrderedSet class StockMoveLine(models.Model): _inherit = 'stock.mov...
52.240557
26,277
1,356
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from odoo import api, fields, models class Company(models.Model): _inherit = 'res.company' manufacturing_lead = fields.Float( 'Manufacturing Lead Time', default=0.0, required=True, help="Securi...
35.684211
1,356
7,147
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from odoo import _, api, fields, models from odoo.tools.float_utils import float_is_zero from odoo.osv.expression import AND class StockWarehouseOrderpoint(models.Model): _inherit = 'stock.warehouse.orderpoint' ...
54.143939
7,147
834
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from odoo import models, _ from odoo.exceptions import UserError class StockProductionLot(models.Model): _inherit = 'stock.production.lot' def _check_create(self): active_mo_id = self.env.context.get('...
49.058824
834
3,799
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from odoo import api, fields, models class StockPickingType(models.Model): _inherit = 'stock.picking.type' code = fields.Selection(selection_add=[ ('mrp_operation', 'Manufacturing') ], ondelete={'m...
43.170455
3,799
1,764
py
PYTHON
15.0
from odoo import models, api class MrpStockReport(models.TransientModel): _inherit = 'stock.traceability.report' @api.model def _get_reference(self, move_line): res_model, res_id, ref = super(MrpStockReport, self)._get_reference(move_line) if move_line.move_id.production_id and not move_li...
51.882353
1,764
18,165
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. import collections from datetime import timedelta from itertools import groupby import operator as py_operator from odoo import fields, models, _ from odoo.tools.float_utils import float_round, float_is_zero OPERATORS ...
50.598886
18,165
13,005
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from collections import defaultdict from dateutil.relativedelta import relativedelta from odoo import api, fields, models, SUPERUSER_ID, _ from odoo.osv import expression from odoo.addons.stock.models.stock_rule import ...
55.340426
13,005
2,606
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from odoo import api, fields, models class ResConfigSettings(models.TransientModel): _inherit = 'res.config.settings' manufacturing_lead = fields.Float(related='company_id.manufacturing_lead', string="Manufact...
54.291667
2,606
116,320
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. import json import datetime import math import re import warnings from collections import defaultdict from dateutil.relativedelta import relativedelta from odoo import api, fields, models, _ from odoo.exceptions import...
53.603687
116,320
45,858
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from datetime import datetime, timedelta from dateutil.relativedelta import relativedelta from collections import defaultdict import json from odoo import api, fields, models, _, SUPERUSER_ID from odoo.exceptions import...
52.230068
45,858
28,180
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from odoo import api, fields, models, _ from odoo.exceptions import UserError, ValidationError from odoo.osv.expression import AND, NEGATIVE_TERM_OPERATORS from odoo.tools import float_round from collections import defa...
53.56654
28,176
21,893
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from dateutil import relativedelta from datetime import timedelta from functools import partial import datetime from pytz import timezone from random import randint from odoo import api, exceptions, fields, models, _ fr...
53.791155
21,893
1,178
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. import base64 import json import logging from odoo import http from odoo.http import request from odoo.tools.translate import _ logger = logging.getLogger(__name__) class MrpDocumentRoute(http.Controller): @http...
33.657143
1,178
599
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from odoo import api, models class ReportStockRule(models.AbstractModel): _inherit = 'report.stock.report_stock_rule' @api.model def _get_rule_loc(self, rule, product_id): """ We override this meth...
35.235294
599
481
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from odoo import models from odoo.tools import format_date class ReceptionReport(models.AbstractModel): _inherit = 'report.stock.report_reception' def _get_formatted_scheduled_date(self, source): if so...
34.357143
481
1,841
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from odoo import models class ReplenishmentReport(models.AbstractModel): _inherit = 'report.stock.report_product_product_replenishment' def _move_draft_domain(self, product_template_ids, product_variant_ids, w...
49.756757
1,841
17,576
py
PYTHON
15.0
# -*- coding: utf-8 -*- import json from odoo import api, models, _ from odoo.tools import float_round class ReportBomStructure(models.AbstractModel): _name = 'report.mrp.report_bom_structure' _description = 'BOM Structure Report' @api.model def _get_report_values(self, docids, data=None): d...
51.846608
17,576
2,616
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. # SKR04 # ===== # Dieses Modul bietet Ihnen einen deutschen Kontenplan basierend auf dem SKR03. # Gemäss der aktuellen Einstellungen ist ein neues Unternehmen in Odoo # Umsatzsteuerpflichtig. Zahlreiche Erlös- und Aufwan...
43.3
2,598
258
py
PYTHON
15.0
# Part of Odoo. See LICENSE file for full copyright and licensing details. from odoo.addons.account.models.chart_template import update_taxes_from_templates def migrate(cr, version): update_taxes_from_templates(cr, 'l10n_de_skr04.l10n_chart_de_skr04')
43
258
271
py
PYTHON
15.0
# -*- coding: utf-8 -*- import odoo def migrate(cr, version): registry = odoo.registry(cr.dbname) from odoo.addons.account.models.chart_template import migrate_set_tags_and_taxes_updatable migrate_set_tags_and_taxes_updatable(cr, registry, 'l10n_de_skr04')
33.875
271
476
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. import logging import sys class ExceptionLogger: """ Redirect Exceptions to the logger to keep track of them in the log file. """ def __init__(self): self.logger = logging.getLogger() def ...
20.695652
476
3,092
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. import logging from threading import Thread import time from odoo.addons.hw_drivers.main import drivers, interfaces, iot_devices _logger = logging.getLogger(__name__) class InterfaceMetaClass(type): def __new__(c...
44.171429
3,092
618
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. { 'name': 'Hardware Proxy', 'category': 'Hidden', 'sequence': 6, 'summary': 'Connect the Web Client to Hardware Peripherals', 'website': 'https://www.odoo.com/app/iot', 'description': """ Hardware...
28.090909
618
3,029
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from datetime import datetime, timedelta import logging import subprocess import requests from threading import Thread import time import urllib3 from odoo.modules.module import get_resource_path from odoo.addons.hw_dri...
39.337662
3,029
1,429
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from odoo import http class IoTBoxHttpRequest(http.HttpRequest): def dispatch(self): if self._is_cors_preflight(http.request.endpoint): # Using the PoS in debug mode in v12, the call to '/hw_pro...
42.029412
1,429
3,994
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from traceback import format_exc from dbus.mainloop.glib import DBusGMainLoop import json import logging import socket from threading import Thread import time import urllib3 from odoo.addons.hw_drivers.tools import hel...
35.660714
3,994
2,554
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from threading import Thread, Event from odoo.addons.hw_drivers.main import drivers, iot_devices from odoo.tools.lru import LRU class DriverMetaClass(type): def __new__(cls, clsname, bases, attrs): newclas...
34.053333
2,554
1,832
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. import json from threading import Event import time from odoo.http import request class EventManager(object): def __init__(self): self.events = [] self.sessions = {} def _delete_expired_session...
32.714286
1,832
13,823
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. import datetime from enum import Enum from importlib import util import io import json import logging import netifaces from OpenSSL import crypto import os from pathlib import Path import subprocess import urllib3 import...
39.269886
13,823
5,114
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from collections import namedtuple from contextlib import contextmanager import logging import serial from threading import Lock import time import traceback from odoo import _ from odoo.addons.hw_drivers.event_manager ...
35.513889
5,114
14,971
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. import ctypes import evdev import json import logging from lxml import etree import os from pathlib import Path from queue import Queue, Empty import re import subprocess from threading import Lock import time import url...
40.244624
14,971
9,271
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. import jinja2 import json import logging import netifaces as ni import os import subprocess import threading import time import urllib3 from odoo import http from odoo.addons.hw_drivers.connection_manager import connec...
39.619658
9,271
12,066
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from collections import namedtuple import logging import re import serial import threading import time from odoo import http from odoo.addons.hw_drivers.controllers.proxy import proxy_drivers from odoo.addons.hw_drivers...
38.183544
12,066
10,553
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from base64 import b64decode from cups import IPPError, IPP_PRINTER_IDLE, IPP_PRINTER_PROCESSING, IPP_PRINTER_STOPPED import dbus import io import logging import netifaces as ni import os from PIL import Image, ImageOps ...
38.655678
10,553
2,736
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from cups import Connection as cups_connection from re import sub from threading import Lock from odoo.addons.hw_drivers.interface import Interface conn = cups_connection() PPDs = conn.getPPDs() cups_lock = Lock() # W...
45.6
2,736
1,045
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from usb import core from odoo.addons.hw_drivers.interface import Interface class USBInterface(Interface): connection_type = 'usb' def get_devices(self): """ USB devices are identified by a co...
36.034483
1,045
1,448
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from re import sub, finditer import subprocess from odoo.addons.hw_drivers.interface import Interface class DisplayInterface(Interface): _loop_delay = 0 connection_type = 'display' def get_devices(self): ...
38.105263
1,448
486
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from glob import glob from odoo.addons.hw_drivers.interface import Interface class SerialInterface(Interface): connection_type = 'serial' def get_devices(self): serial_devices = {} for identif...
27
486
672
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from odoo import http proxy_drivers = {} class ProxyController(http.Controller): @http.route('/hw_proxy/hello', type='http', auth='none', cors='*') def hello(self): return "ping" @http.route('/hw_p...
30.545455
672
5,049
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from base64 import b64decode import json import logging import os import subprocess import time from odoo import http, tools from odoo.http import send_file from odoo.modules.module import get_resource_path from odoo.a...
43.525862
5,049
2,643
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. # SKR03 # ===== # Dieses Modul bietet Ihnen einen deutschen Kontenplan basierend auf dem SKR03. # Gemäss der aktuellen Einstellungen ist ein neues Unternehmen in Odoo # Umsatzsteuerpflichtig. Zahlreiche Erlös- und Aufwa...
42.33871
2,625
261
py
PYTHON
15.0
# Part of Odoo. See LICENSE file for full copyright and licensing details. from odoo.addons.account.models.chart_template import update_taxes_from_templates def migrate(cr, version): update_taxes_from_templates(cr, 'l10n_de_skr03.l10n_de_chart_template')
43.5
261
271
py
PYTHON
15.0
# -*- coding: utf-8 -*- import odoo def migrate(cr, version): registry = odoo.registry(cr.dbname) from odoo.addons.account.models.chart_template import migrate_set_tags_and_taxes_updatable migrate_set_tags_and_taxes_updatable(cr, registry, 'l10n_de_skr03')
33.875
271
3,229
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. { 'name': 'CRM', 'version': '1.6', 'category': 'Sales/CRM', 'sequence': 15, 'summary': 'Track leads and close opportunities', 'description': "", 'website': 'https://www.odoo.com/app/crm', ...
31.656863
3,229
17,046
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from odoo.addons.crm.tests.common import TestCrmCommon, INCOMING_EMAIL from odoo.exceptions import AccessError, UserError from odoo.tests import Form, tagged from odoo.tests.common import users @tagged('multi_company')...
52.937888
17,046
26,368
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. import random from datetime import datetime from dateutil.relativedelta import relativedelta from unittest.mock import patch from odoo import fields from odoo.addons.crm.tests.common import TestLeadConvertCommon from o...
46.751773
26,368
32,753
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from datetime import timedelta from odoo import tools from odoo.addons.mail.tests.common import mail_new_test_user from odoo.fields import Date from odoo.tests import Form, tagged, users from odoo.tests.common import Tr...
57.060976
32,753
9,870
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. import random from odoo.addons.crm.tests.test_crm_lead_assignment import TestLeadAssignCommon from odoo.tests.common import tagged from odoo.tools import mute_logger @tagged('lead_assign', 'crm_performance', 'post_ins...
49.848485
9,870
2,245
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from odoo.addons.crm.tests import common as crm_common from odoo.exceptions import AccessError from odoo.tests.common import tagged, users @tagged('lead_manage') class TestLeadConvert(crm_common.TestCrmCommon): @c...
34.538462
2,245
25,572
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from odoo import SUPERUSER_ID from odoo.addons.crm.tests import common as crm_common from odoo.fields import Datetime from odoo.tests.common import tagged, users from odoo.tests.common import Form @tagged('lead_manage')...
45.021127
25,572
4,356
py
PYTHON
15.0
# Part of Odoo. See LICENSE file for full copyright and licensing details. from odoo.addons.crm.tests.common import TestCrmCommon from odoo.tests import HttpCase from odoo.tests.common import tagged, users @tagged('post_install', '-at_install') class TestUi(HttpCase): def test_01_crm_tour(self): self.st...
42.705882
4,356
4,963
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from .common import TestCrmCommon class NewLeadNotification(TestCrmCommon): def test_new_lead_notification(self): """ Test newly create leads like from the website. People and channels subscribed t...
37.598485
4,963
36,320
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from datetime import datetime from freezegun import freeze_time from odoo.addons.crm.models.crm_lead import PARTNER_FIELDS_TO_SYNC, PARTNER_ADDRESS_FIELDS_TO_SYNC from odoo.addons.crm.tests.common import TestCrmCommon, ...
47.789474
36,320
28,791
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from ast import literal_eval from contextlib import contextmanager from unittest.mock import patch from odoo.addons.crm.models.crm_lead import CRM_LEAD_FIELDS_TO_MERGE from odoo.addons.mail.tests.common import MailCase,...
40.550704
28,791
9,903
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from odoo.addons.crm.tests import common as crm_common from odoo.tests.common import tagged, users @tagged('lead_manage', 'crm_performance', 'post_install', '-at_install') class TestLeadConvertMass(crm_common.TestLeadC...
46.275701
9,903
6,874
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from datetime import date, datetime from odoo.addons.mail.tests.common import mail_new_test_user from odoo.addons.crm.tests.common import TestCrmCommon from odoo.tests.common import tagged, users @tagged('post_install',...
50.918519
6,874
6,329
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from odoo.addons.crm.tests.common import TestCrmCommon from odoo.tests.common import tagged, users @tagged('lead_manage') class TestLeadConvert(TestCrmCommon): @users('user_sales_manager') def test_potential_d...
37.229412
6,329
14,872
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. import base64 from odoo.addons.crm.tests.common import TestLeadConvertMassCommon from odoo.fields import Datetime from odoo.tests.common import tagged, users from odoo.tools import mute_logger @tagged('lead_manage') c...
50.243243
14,872
9,943
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from datetime import date, timedelta from odoo.addons.crm.tests.common import TestCrmCommon from odoo.tests.common import users class TestCrmMailActivity(TestCrmCommon): @classmethod def setUpClass(cls): ...
56.175141
9,943
1,681
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from odoo import fields, models class CrmUpdateProbabilities(models.TransientModel): _name = 'crm.lead.pls.update' _description = "Update the probabilities" def _get_default_pls_start_date(self): p...
46.694444
1,681
7,258
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from odoo import api, fields, models from odoo.exceptions import UserError from odoo.tools.translate import _ class Lead2OpportunityPartner(models.TransientModel): _name = 'crm.lead2opportunity.partner' _descri...
42.946746
7,258
437
py
PYTHON
15.0
# -*- coding: utf-8 -*- from odoo import api, fields, models class CrmLeadLost(models.TransientModel): _name = 'crm.lead.lost' _description = 'Get Lost Reason' lost_reason_id = fields.Many2one('crm.lost.reason', 'Lost Reason') def action_lost_reason_apply(self): leads = self.env['crm.lead']...
31.214286
437