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
377
py
PYTHON
15.0
# Part of Odoo. See LICENSE file for full copyright and licensing details. from odoo.addons.point_of_sale.controllers.main import PosController from odoo import http from odoo.http import request class PosCache(PosController): @http.route() def load_onboarding_data(self): super().load_onboarding_data...
31.416667
377
921
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. { 'name': 'Drop Shipping', 'version': '1.0', 'category': 'Inventory/Inventory', 'summary': 'Drop Shipping', 'description': """ Manage drop shipping orders =========================== This module adds...
28.78125
921
5,894
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.tools import mute_logger class TestDropship(common.TransactionCase): def test_change_qty(self): # enable the dropship and MTO route on the product prod ...
44.651515
5,894
4,663
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from odoo import fields, tools from odoo.addons.stock_account.tests.test_anglo_saxon_valuation_reconciliation_common import ValuationReconciliationTestCommon from odoo.tests import tagged, common, Form @tagged('-at_ins...
48.072165
4,663
2,514
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.tools import mute_logger class TestCrossdock(common.TransactionCase): def test_00_crossdock(self): # Create a supplier supplier_crossdock = self.env['...
39.28125
2,514
2,352
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 class TestProcurementException(common.TransactionCase): def test_00_procurement_exception(self): res_partner_2 = self.env['res.partner'].create({'name': 'My Test Partne...
42
2,352
17,147
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from odoo.addons.stock_account.tests.test_anglo_saxon_valuation_reconciliation_common import ValuationReconciliationTestCommon from odoo.tests import Form, tagged @tagged('post_install', '-at_install') class TestStockVa...
50.581121
17,147
2,141
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from odoo import api, models, fields class PurchaseOrder(models.Model): _inherit = 'purchase.order' dropship_picking_count = fields.Integer("Dropship Count", compute='_compute_incoming_picking_count') @ap...
46.543478
2,141
1,743
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from odoo import api, models, fields class StockRule(models.Model): _inherit = 'stock.rule' @api.model def _get_procurements_to_merge_groupby(self, procurement): """ Do not group purchase order lin...
39.613636
1,743
5,165
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 ResCompany(models.Model): _inherit = 'res.company' # ------------------------------------------------------------------------- # Sequences # -------------------------...
43.025
5,163
2,286
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from odoo import models, fields, api class SaleOrder(models.Model): _inherit = 'sale.order' dropship_picking_count = fields.Integer("Dropship Count", compute='_compute_picking_ids') @api.depends('picking_...
44.823529
2,286
1,107
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. { 'name': 'SMS Marketing', 'summary': 'Design, send and track SMS', 'description': '', 'version': '1.0', 'category': 'Marketing/Email Marketing', 'sequence': 245, 'depends': [ 'portal'...
29.131579
1,107
2,831
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.addons.mass_mailing_sms.tests.common import MassSMSCommon from odoo.tests.common import users class TestMassMailValues(MassSMSCommon): @classmethod def setUpClass(cls): ...
46.409836
2,831
1,462
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from datetime import datetime from odoo.addons.mass_mailing_sms.tests.common import MassSMSCommon from odoo.addons.mass_mailing.tests.test_mailing_ab_testing import TestMailingABTesting from odoo.tests import tagged @...
41.771429
1,462
7,704
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. import random import re import werkzeug from odoo import tools from odoo.addons.mass_mailing.tests.common import MassMailCommon from odoo.addons.sms.tests.common import SMSCase, SMSCommon class MassSMSCase(SMSCase): ...
47.555556
7,704
1,817
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from odoo.addons.mass_mailing_sms.tests.common import MassSMSCommon from odoo.addons.base.tests.test_ir_cron import CronMixinCase from odoo.tests.common import users from unittest.mock import patch class TestMailingRet...
44.317073
1,817
3,935
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 fields, models, _ class SMSComposer(models.TransientModel): _inherit = 'sms.composer' # mass mode with mass sms mass_sms_allow_unsubscribe = fields.Boolean('Include o...
42.771739
3,935
3,049
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from odoo import fields, models, _ from odoo.addons.phone_validation.tools import phone_validation class MassSMSTest(models.TransientModel): _name = 'mailing.sms.test' _description = 'Test SMS Mailing' def...
46.19697
3,049
366
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 MailingContact(models.Model): _name = 'mailing.contact' _inherit = ['mailing.contact', 'mail.thread.phone'] mobile = fields.Char(string='Mobile') def _phone_get_n...
26.142857
366
2,249
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. import random import string from odoo import api, fields, models from odoo.osv import expression class MailingTrace(models.Model): """ Improve statistics model to add SMS support. Main attributes of statistics...
40.890909
2,249
2,859
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 MailingList(models.Model): _inherit = 'mailing.list' contact_count_sms = fields.Integer(compute="_compute_mailing_list_statistics", string="SMS Contacts") def action_...
43.984615
2,859
1,989
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. import re from odoo import fields, models, tools class SmsSms(models.Model): _inherit = ['sms.sms'] mailing_id = fields.Many2one('mailing.mailing', string='Mass Mailing') mailing_trace_ids = fields.One2ma...
43.23913
1,989
2,653
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 UtmCampaign(models.Model): _inherit = 'utm.campaign' mailing_sms_ids = fields.One2many( 'mailing.mailing', 'campaign_id', domain=[('mailing_type', '='...
40.815385
2,653
3,577
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. import json from odoo import api, fields, models, modules, _ class Users(models.Model): _name = 'res.users' _inherit = ['res.users'] @api.model def systray_get_activities(self): """ Split mass...
49.680556
3,577
16,926
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. import logging from odoo import api, fields, models, _ from odoo.exceptions import UserError from odoo.osv import expression _logger = logging.getLogger(__name__) class Mailing(models.Model): _inherit = 'mailing....
45.869919
16,926
4,879
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.addons.phone_validation.tools import phone_validation from odoo.http import request class MailingSMSController(http.Controller): def _check_trace(self, mailing_id, trace_code): ...
47.368932
4,879
1,391
py
PYTHON
15.0
{ 'name': 'Link Tracker', 'category': 'Website/Website', 'summary': 'Generate trackable & short URLs', 'description': """ Generate short links with analytics trackers (UTM) to share your pages through marketing campaigns. Those trackers can be used in Google Analytics to track clicks and visitors, or in...
38.638889
1,391
911
py
PYTHON
15.0
# Part of Odoo. See LICENSE file for full copyright and licensing details. from unittest.mock import patch import odoo.tests @odoo.tests.common.tagged('post_install', '-at_install') class TestUi(odoo.tests.HttpCase): def setUp(self): super(TestUi, self).setUp() def _get_title_from_url(addr, **...
32.535714
911
677
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from odoo import models, _ from werkzeug import urls class LinkTracker(models.Model): _inherit = ['link.tracker'] def action_visit_page_statistics(self): return { 'name': _("Visit Webpage ...
29.434783
677
1,760
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 class WebsiteUrl(http.Controller): @http.route('/website_links/new', type='json', auth='user', methods=['POST']) def create_shorten_url(self, **post): ...
45.128205
1,760
1,076
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. { 'name': 'Outlook Calendar', 'version': '1.0', 'category': 'Productivity', 'description': "", 'depends': ['microsoft_account', 'calendar'], 'data': [ 'data/microsoft_calendar_data.xml', ...
32.606061
1,076
17,656
py
PYTHON
15.0
import json import requests from unittest.mock import patch, call, MagicMock from odoo import fields from odoo.addons.microsoft_calendar.utils.microsoft_calendar import MicrosoftCalendarService from odoo.addons.microsoft_calendar.utils.microsoft_event import MicrosoftEvent from odoo.addons.microsoft_account.models.mic...
40.218679
17,656
9,806
py
PYTHON
15.0
from odoo.addons.microsoft_calendar.utils.microsoft_event import MicrosoftEvent from odoo.addons.microsoft_calendar.tests.common import TestCommon, patch_api class TestMicrosoftEvent(TestCommon): @patch_api def setUp(self): super().setUp() self.create_events_for_tests() def test_already_m...
32.256579
9,806
10,822
py
PYTHON
15.0
# -*- coding: utf-8 -*- from unittest.mock import patch, ANY, call from odoo.addons.microsoft_calendar.utils.microsoft_calendar import MicrosoftCalendarService from odoo.addons.microsoft_calendar.utils.microsoft_event import MicrosoftEvent from odoo.addons.microsoft_calendar.models.res_users import User from odoo.addo...
39.786765
10,822
5,064
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from datetime import datetime, date from dateutil.relativedelta import relativedelta from unittest.mock import MagicMock, patch from odoo.tests.common import TransactionCase from odoo.addons.microsoft_calendar.utils.mic...
46.458716
5,064
66,264
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from odoo.addons.microsoft_calendar.utils.microsoft_calendar import MicrosoftCalendarService, MicrosoftEvent from odoo.exceptions import ValidationError import pytz from datetime import datetime, date from odoo.tests.com...
237.505376
66,264
22,004
py
PYTHON
15.0
import pytz from datetime import datetime, timedelta from markupsafe import Markup from unittest.mock import patch, MagicMock from odoo.tests.common import HttpCase from odoo.addons.microsoft_calendar.models.microsoft_sync import MicrosoftSync from odoo.addons.microsoft_calendar.utils.event_id_storage import combine_...
42.726214
22,004
11,079
py
PYTHON
15.0
from unittest.mock import patch from odoo.addons.microsoft_calendar.utils.microsoft_calendar import MicrosoftCalendarService from odoo.addons.microsoft_calendar.utils.microsoft_event import MicrosoftEvent from odoo.addons.microsoft_calendar.models.res_users import User from odoo.addons.microsoft_calendar.tests.common ...
42.776062
11,079
52,916
py
PYTHON
15.0
# -*- coding: utf-8 -*- from datetime import datetime, timedelta from dateutil.parser import parse import logging import pytz from unittest.mock import patch, ANY from odoo.addons.microsoft_calendar.utils.microsoft_calendar import MicrosoftCalendarService from odoo.addons.microsoft_calendar.utils.microsoft_event impor...
41.56795
52,916
7,766
py
PYTHON
15.0
# -*- coding: utf-8 -*- from unittest.mock import patch, ANY from odoo.addons.microsoft_calendar.utils.microsoft_calendar import MicrosoftCalendarService from odoo.addons.microsoft_calendar.utils.microsoft_event import MicrosoftEvent from odoo.addons.microsoft_calendar.models.res_users import User from odoo.addons.mic...
42.67033
7,766
2,015
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from odoo import fields, models from odoo.addons.microsoft_calendar.models.microsoft_sync import microsoft_calendar_token class ResetMicrosoftAccount(models.TransientModel): _name = 'microsoft.calendar.account.res...
40.3
2,015
284
py
PYTHON
15.0
IDS_SEPARATOR = ':' def combine_ids(ms_id, ms_uid): if not ms_id: return False return ms_id + IDS_SEPARATOR + (ms_uid if ms_uid else '') def split_ids(value): ids = value.split(IDS_SEPARATOR) return tuple(ids) if len(ids) > 1 and ids[1] else (ids[0], False)
28.4
284
10,073
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from odoo.api import model from typing import Iterator, Mapping from collections import abc from odoo.addons.microsoft_calendar.utils.event_id_storage import combine_ids class MicrosoftEvent(abc.Set): """ This h...
39.042636
10,073
8,808
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. import requests import json import logging from werkzeug import urls from odoo import fields from odoo.addons.microsoft_calendar.utils.microsoft_event import MicrosoftEvent from odoo.addons.microsoft_account.models.mic...
45.169231
8,808
1,890
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.addons.microsoft_calendar.models.microsoft_sync import microsoft_calendar_token from odoo.addons.microsoft_calendar.utils.microsoft_calendar import MicrosoftCalendarService class Atte...
37.058824
1,890
22,867
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. import logging from contextlib import contextmanager from functools import wraps import pytz from dateutil.parser import parse from odoo import api, fields, models, registry from odoo.tools import ormcache_context from ...
43.226843
22,867
22,994
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. import logging import pytz from datetime import datetime from dateutil.parser import parse from dateutil.relativedelta import relativedelta from odoo import api, fields, models, _ from odoo.exceptions import UserError, ...
47.410309
22,994
6,308
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. import logging import requests from odoo.addons.microsoft_calendar.models.microsoft_sync import microsoft_calendar_token from datetime import timedelta from odoo import api, fields, models, _ from odoo.exceptions import...
46.043796
6,308
486
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' cal_microsoft_client_id = fields.Char("Microsoft Client_id", config_parameter='microsoft_ca...
44.181818
486
8,657
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 RecurrenceRule(models.Model): _name = 'calendar.recurrence' _inherit = ['calendar.recurrence', 'microsoft.calendar.sync'] # Don't sync by default. Sync only when...
46.794595
8,657
2,490
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 class MicrosoftCalendarController(http.Controller): @http.route('/microsoft_calendar/sync_data', type='json', auth='user') def sync_data(self, model, **kw): ...
44.464286
2,490
1,364
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. { "name": "Sweden - Accounting", "version": "1.0", "author": "XCLUDE, Odoo SA", "category": "Accounting/Localizations/Account Charts", 'description': """ Swedish Accounting ------------------ This is ...
35.894737
1,364
3,225
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 stdnum import luhn class AccountMove(models.Model): _inherit = 'account.move' def _get_invoice_reference_se_ocr2(self, referen...
44.178082
3,225
1,008
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, _ from odoo.exceptions import ValidationError class AccountJournal(models.Model): _inherit = 'account.journal' invoice_reference_model = fields.Selection(selection_add=[('...
56
1,008
678
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 import re class ResCompany(models.Model): _inherit = 'res.company' org_number = fields.Char(compute='_compute_org_number') @api.depends('vat') def _compute_org_num...
30.818182
678
1,043
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, _ from stdnum import luhn class ResPartner(models.Model): _inherit = 'res.partner' l10n_se_check_vendor_ocr = fields.Boolean(string='Check Vendor OCR', help='This Vendor u...
49.666667
1,043
713
py
PYTHON
15.0
{ 'name': "Password Policy", "summary": "Implement basic password policy configuration & check", 'category': 'Hidden/Tools', 'depends': ['base_setup', 'web'], 'data': [ 'data/defaults.xml', 'views/res_users.xml', 'views/res_config_settings_views.xml', ], 'assets': { ...
32.409091
713
1,060
py
PYTHON
15.0
# -*- coding: utf-8 -*- from odoo import api, models, _ from odoo.exceptions import UserError class ResUsers(models.Model): _inherit = 'res.users' @api.model def get_password_policy(self): params = self.env['ir.config_parameter'].sudo() return { 'minlength': int(params.get_par...
32.121212
1,060
896
py
PYTHON
15.0
from odoo import api, fields, models, _ class ResConfigSettings(models.TransientModel): _inherit = 'res.config.settings' minlength = fields.Integer("Minimum Password Length", help="Minimum number of characters passwords must contain, set to 0 to disable.") @api.model def get_values(self): re...
33.185185
896
576
py
PYTHON
15.0
# Part of Odoo. See LICENSE file for full copyright and licensing details. { 'name': 'Ogone Payment Acquirer', 'version': '2.0', 'category': 'Accounting/Payment Acquirers', 'sequence': 360, 'summary': 'Payment Acquirer: Ogone Implementation', 'description': """Ogone Payment Acquirer""", 'de...
30.315789
576
652
py
PYTHON
15.0
# Part of Odoo. See LICENSE file for full copyright and licensing details. from odoo.addons.payment.tests.common import PaymentCommon class OgoneCommon(PaymentCommon): @classmethod def setUpClass(cls, chart_template_ref=None): super().setUpClass(chart_template_ref=chart_template_ref) cls.og...
31.047619
652
4,427
py
PYTHON
15.0
# Part of Odoo. See LICENSE file for full copyright and licensing details. from freezegun import freeze_time from odoo.fields import Command from odoo.tests import tagged from odoo.tools import mute_logger from odoo.addons.payment import utils as payment_utils from .common import OgoneCommon from ..controllers.main...
45.173469
4,427
10,481
py
PYTHON
15.0
# Part of Odoo. See LICENSE file for full copyright and licensing details. import logging import pprint import uuid from lxml import etree, objectify from werkzeug import urls from odoo import _, api, models from odoo.exceptions import UserError, ValidationError from . import const from odoo.addons.payment import u...
43.309917
10,481
923
py
PYTHON
15.0
# Part of Odoo. See LICENSE file for full copyright and licensing details. from odoo import _, models from odoo.exceptions import UserError class PaymentToken(models.Model): _inherit = 'payment.token' def _handle_reactivation_request(self): """ Override of payment to raise an error informing that Og...
35.5
923
428
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 AccountPaymentMethod(models.Model): _inherit = 'account.payment.method' @api.model def _get_payment_method_information(self): res = super()._get_payment_method_in...
30.571429
428
5,566
py
PYTHON
15.0
# Part of Odoo. See LICENSE file for full copyright and licensing details. import logging from hashlib import new as hashnew import requests from odoo import _, api, fields, models from odoo.exceptions import ValidationError from .const import VALID_KEYS _logger = logging.getLogger(__name__) class PaymentAcquire...
43.147287
5,566
1,698
py
PYTHON
15.0
# Part of Odoo. See LICENSE file for full copyright and licensing details. # See https://epayments-support.ingenico.com/en/integration-solutions/integrations/directlink#directlink_integration_guides_request_a_new_order # See https://epayments-support.ingenico.com/en/integration-solutions/integrations/directlink#direct...
21.769231
1,698
3,683
py
PYTHON
15.0
# Part of Odoo. See LICENSE file for full copyright and licensing details. import logging import pprint import re import werkzeug from odoo import _, http from odoo.exceptions import ValidationError from odoo.http import request _logger = logging.getLogger(__name__) class OgoneController(http.Controller): _re...
44.914634
3,683
1,915
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. { 'name': 'Sales Timesheet', 'category': 'Hidden', 'summary': 'Sell based on timesheets', 'description': """ Allows to sell timesheets in your sales order ============================================= Th...
34.196429
1,915
1,661
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from odoo.addons.sale_timesheet.tests.common import TestCommonSaleTimesheet from odoo.tests import tagged @tagged('-at_install', 'post_install') class TestProjectBillingMulticompany(TestCommonSaleTimesheet): @clas...
47.457143
1,661
44,236
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.fields import Date from odoo.tools import float_is_zero from odoo.exceptions import UserError from odoo.addons.sale_timesheet.tests.common import TestCommonSaleTimesheet fro...
57.449351
44,236
6,102
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from odoo.tools import float_is_zero, float_compare from odoo.addons.sale_timesheet.tests.common import TestCommonSaleTimesheet class TestCommonReporting(TestCommonSaleTimesheet): @classmethod def setUpClass(cl...
46.227273
6,102
41,581
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from odoo.addons.sale_timesheet.tests.common import TestCommonSaleTimesheet from odoo.exceptions import UserError, ValidationError from odoo.tests import tagged @tagged('-at_install', 'post_install') class TestSaleServ...
54.001299
41,581
118,570
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from odoo.osv import expression from odoo.tools import float_is_zero, float_compare from odoo.addons.sale_timesheet.tests.common_reporting import TestCommonReporting from odoo.tests import tagged, Form @tagged('-at_inst...
102.658009
118,570
21,760
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.addons.sale_timesheet.tests.common import TestCommonSaleTimesheet from odoo.fields import Date from odoo.tests import Form, tagged @tagged('-at_install', 'post_install') class ...
57.263158
21,760
3,704
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from odoo.tests import tagged from .common import TestCommonSaleTimesheet @tagged('-at_install', 'post_install') class TestEditSoLineTimesheet(TestCommonSaleTimesheet): def setUp(self): super().setUp() ...
55.283582
3,704
5,885
py
PYTHON
15.0
# -*- coding: utf-8 -*- from odoo import fields from odoo.addons.sale_timesheet.tests.common import TestCommonSaleTimesheet from odoo.tests import tagged from odoo.exceptions import UserError @tagged('post_install', '-at_install') class TestAccruedTimeSheetSaleOrders(TestCommonSaleTimesheet): @classmethod de...
43.272059
5,885
13,311
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from odoo.tests import tagged from .common import TestCommonSaleTimesheet @tagged('-at_install', 'post_install') class TestSoLineDeterminedInTimesheet(TestCommonSaleTimesheet): def test_sol_determined_when_projec...
59.16
13,311
7,658
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from odoo.tests import tagged from .common import TestCommonSaleTimesheet @tagged('-at_install', 'post_install') class TestProjectPricingType(TestCommonSaleTimesheet): def test_pricing_type(self): """ Tes...
72.933333
7,658
2,277
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from freezegun import freeze_time from odoo.tests import tagged from odoo.tools import format_amount from odoo.addons.project.tests.test_project_update_flow import TestProjectUpdate @tagged('-at_install', 'post_install'...
63.25
2,277
15,168
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from odoo.addons.mail.tests.common import mail_new_test_user from odoo.addons.sale.tests.common import TestSaleCommon class TestCommonSaleTimesheet(TestSaleCommon): @classmethod def setUpClass(cls, chart_templ...
40.884097
15,168
26,915
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from odoo.addons.sale_timesheet.tests.common import TestCommonSaleTimesheet from odoo.fields import Command from odoo.tests import tagged from odoo.tests.common import Form @tagged('post_install', '-at_install') class Te...
59.024123
26,915
1,081
py
PYTHON
15.0
# Part of Odoo. See LICENSE file for full copyright and licensing details. # -*- coding: utf-8 -*- from odoo.tests import HttpCase, tagged @tagged('-at_install', 'post_install') class TestUi(HttpCase): @classmethod def setUpClass(cls): super().setUpClass() service_category_id = cls.env['pro...
32.757576
1,081
5,956
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from odoo import Command from .common import TestCommonSaleTimesheet from odoo.tests import tagged @tagged('post_install', '-at_install') class TestProject(TestCommonSaleTimesheet): def setUp(self): super(...
47.64
5,955
6,715
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from odoo.tests import tagged from .common import TestCommonSaleTimesheet @tagged('-at_install', 'post_install') class TestUpsellWarning(TestCommonSaleTimesheet): def test_display_upsell_warning(self): """...
42.770701
6,715
2,716
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 class ProjectCreateInvoice(models.TransientModel): _name = 'project.create.invoice' _description = "Create Invoice from project" ...
46.827586
2,716
14,089
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 class ProjectCreateSalesOrder(models.TransientModel): _name = 'project.create.sale.order' _description = "Create SO from project" ...
51.608059
14,089
2,796
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 SaleAdvancePaymentInv(models.TransientModel): _inherit = "sale.advance.payment.inv" @api.model def _default_invoicing_timesheet_enabled(self): if 'active_...
53.769231
2,796
6,590
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from collections import defaultdict from odoo import api, fields, models, _ from odoo.osv import expression class AccountMove(models.Model): _inherit = "account.move" timesheet_ids = fields.One2many('account....
50.305344
6,590
15,429
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. import math from collections import defaultdict from odoo import api, fields, models, _ from odoo.osv import expression from odoo.tools import float_compare, format_amount class SaleOrder(models.Model): _inherit =...
53.020619
15,429
4,106
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from odoo import api, models from odoo.tools import float_utils, format_amount, formatLang class ProjectUpdate(models.Model): _inherit = 'project.update' @api.model def _get_template_values(self, project):...
50.073171
4,106
10,074
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. import threading from odoo import api, fields, models, _ from odoo.exceptions import ValidationError SERVICE_POLICY = [ # (service_policy, (invoice_policy, service_type), string) ('ordered_timesheet', ('order',...
55.04918
10,074
332
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 ResConfigSettings(models.TransientModel): _inherit = 'res.config.settings' invoice_policy = fields.Boolean(string="Invoice Policy", help="Timesheets taken when invoicing t...
33.2
332
3,753
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 ProjectProductEmployeeMap(models.Model): _name = 'project.sale.line.employee.map' _description = 'Project Sales line, employee mapping' project_id = fields.Many2o...
47.506329
3,753
29,190
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. import json from collections import defaultdict from odoo import api, fields, models, _, _lt from odoo.osv import expression from odoo.exceptions import ValidationError, UserError from odoo.tools import format_amount, f...
51.939502
29,190
9,133
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from odoo.exceptions import UserError, ValidationError from odoo import api, fields, models, _ from odoo.osv import expression class AccountAnalyticLine(models.Model): _inherit = 'account.analytic.line' def _...
53.409357
9,133
30,341
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from odoo import fields, models, tools class ProfitabilityAnalysis(models.Model): _name = "project.profitability.report" _description = "Project Profitability Report" _order = 'project_id, sale_line_id' ...
71.390588
30,341
4,370
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.exceptions import AccessError, MissingError from odoo.http import request from odoo.osv import expression from odoo.addons.account.controllers import portal from odoo.addons.hr_timeshe...
46.989247
4,370
595
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. { 'name': 'Track Speakers SMS Marketing', 'category': 'Hidden', 'version': '1.0', 'description': """ SMS Marketing on event track speakers ===================================== Bridge module addi...
22.884615
595
522
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from odoo import models class Event(models.Model): _inherit = "event.event" def action_mass_mailing_track_speakers(self): # Minimal override: set form view being the one mixing sms and mail (not priori...
37.285714
522