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
1,303
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. { 'name': 'Quizzes on Tracks', 'category': 'Marketing/Events', 'sequence': 1007, 'version': '1.0', 'summary': 'Quizzes on tracks', 'website': 'https://www.odoo.com/app/events', 'description':...
30.302326
1,303
3,032
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 class Quiz(models.Model): _name = "event.quiz" _description = "Quiz" name = fields.Char('Name', required=True, translate=...
45.253731
3,032
829
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 Event(models.Model): _inherit = "event.event" @api.depends("event_type_id", "website_menu", "community_menu") def _compute_community_menu(self): """ At ty...
43.631579
829
4,340
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.osv import expression class EventTrack(models.Model): _inherit = ['event.track'] quiz_id = fields.Many2one('event.quiz', string="Quiz", compute='_compute_quiz_id'...
43.4
4,340
350
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 TrackVisitor(models.Model): _name = 'event.track.visitor' _inherit = ['event.track.visitor'] quiz_completed = fields.Boolean('Completed') quiz_points = fields.Inte...
29.166667
350
3,347
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from werkzeug.exceptions import Forbidden from odoo import http from odoo.addons.website_event_track.controllers.event_track import EventTrackController from odoo.http import request class WebsiteEventTrackQuiz(EventT...
41.320988
3,347
4,553
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. import math from odoo import http from odoo.addons.http_routing.models.ir_http import slug from odoo.addons.website_event.controllers.community import EventCommunityController from odoo.http import request class Websi...
50.588889
4,553
731
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. { 'name': 'Event CRM', 'version': '1.0', 'category': 'Marketing/Events', 'website': 'https://www.odoo.com/app/events', 'description': "Create leads from event registrations.", 'depends': ['event',...
29.24
731
5,913
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.addons.event.tests.common import TestEventCommon class TestEventCrmCommon(TestCrmCommon, TestEventCommon): @classmethod def setUpClass(cls): ...
48.467213
5,913
8,659
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from odoo.addons.event_crm.tests.common import TestEventCrmCommon from odoo.tests.common import users from odoo.tools import mute_logger class TestEventCrmFlow(TestEventCrmCommon): @classmethod def setUpClass(...
46.058511
8,659
1,649
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from odoo.addons.crm.tests.test_crm_lead_merge import TestLeadMergeCommon from odoo.addons.event_crm.tests.common import TestEventCrmCommon from odoo.tests.common import tagged, users @tagged('lead_manage') class TestL...
44.567568
1,649
16,735
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, _ class EventRegistration(models.Model): _inherit = 'event.registration' lead_ids = fields.Many2many( 'crm.lead', string='Lead...
50.255255
16,735
11,050
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 collections import defaultdict from odoo import fields, models, _ class EventLeadRule(models.Model): """ Rule model for creating / updating leads from event registrations. SP...
51.157407
11,050
974
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 EventEvent(models.Model): _name = "event.event" _inherit = "event.event" lead_ids = fields.One2many( 'crm.lead', 'event_id', string="Leads", groups='sales...
37.461538
974
1,435
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 Lead(models.Model): _inherit = 'crm.lead' event_lead_rule_id = fields.Many2one('event.lead.rule', string="Registration Rule", help="Rule that created this lead") ...
44.84375
1,435
1,037
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. { 'name': "Purchase Matrix", 'summary': """ Add variants to your purchase orders through an Order Grid Entry. """, 'description': """ This module allows to fill Purchase Orders rapidly ...
32.40625
1,037
1,713
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. import odoo.tests from odoo.addons.product_matrix.tests.common import TestMatrixCommon @odoo.tests.tagged('post_install', '-at_install') class TestPurchaseMatrixUi(TestMatrixCommon): def test_purchase_matrix_ui(se...
50.382353
1,713
9,074
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, _ from odoo.exceptions import ValidationError class PurchaseOrder(models.Model): _inherit = 'purchase.order' report_grids = fields.Boolean(string="Print Variant...
52.149425
9,074
593
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. { 'name': 'Indian - Purchase Report(GST)', 'icon': '/l10n_in/static/description/icon.png', 'version': '1.0', 'description': """GST Purchase Report""", 'category': 'Accounting/Localizations/Purchase', ...
26.954545
593
828
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 AccountMove(models.Model): _inherit = 'account.move' @api.onchange('purchase_vendor_bill_id', 'purchase_id') def _onchange_purchase_auto_complete(self): purchase_...
46
828
2,458
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.addons.purchase.models.purchase import PurchaseOrder as Purchase class PurchaseOrder(models.Model): _inherit = "purchase.order" l10n_in_journal_id = fields.Many2o...
50.163265
2,458
480
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. { "name": "Google Gmail", "version": "1.0", "category": "Hidden", "description": "Gmail support for incoming / outgoing mail servers", "depends": [ "mail", "google_account", ], ...
25.263158
480
2,139
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. import base64 from odoo import _, models, api from odoo.exceptions import UserError class IrMailServer(models.Model): """Represents an SMTP server, able to send outgoing emails, with SSL and TLS capabilities.""" ...
42.78
2,139
7,372
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. import json import logging import time import requests from werkzeug.urls import url_encode, url_join from odoo import _, api, fields, models, tools from odoo.exceptions import AccessError, UserError _logger = logging...
40.955556
7,372
446
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' google_gmail_client_identifier = fields.Char('Gmail Client Id', config_parameter='google_gmail_c...
40.545455
446
2,665
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. import json import logging from werkzeug.exceptions import Forbidden from werkzeug.urls import url_encode from odoo import _, http from odoo.exceptions import UserError from odoo.http import request from odoo.tools imp...
35.533333
2,665
833
py
PYTHON
15.0
# -*- encoding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. { 'name': 'Default Theme', 'description': 'Default website theme', 'category': 'Theme', 'sequence': 1000, 'version': '1.0', 'depends': ['website'], 'data': [], 'images': [ 'stati...
32.038462
833
2,514
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. { 'name': 'Events', 'version': '1.4', 'category': 'Marketing/Events', 'sequence': 140, 'summary': 'Publish events, sell tickets', 'website': 'https://www.odoo.com/app/events', 'description': "...
36.434783
2,514
3,094
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.addons.website_event.tests.common import TestWebsiteEventCommon from odoo.tests.common import users class TestEventMenus(TestWebsiteEventCommo...
44.84058
3,094
4,656
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 unittest.mock import patch from odoo.addons.event.tests.common import TestEventCommon from odoo.addons.mail.tests.common import mail_new_test_user from odoo.fields imp...
39.794872
4,656
2,038
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.addons.website_event.tests.common import TestWebsiteEventCommon class TestEventVisitor(TestWebsiteEventCommon): def test_visitor_events(s...
39.960784
2,038
6,296
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.base.tests.common import HttpCaseWithUserDemo from odoo.addons.mail.tests.common import mail_new_test_user from odoo.addons.website.tests.test_base_url import Te...
52.033058
6,296
320
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from odoo import models class EventTagCategory(models.Model): _name = 'event.tag.category' _inherit = ['event.tag.category', 'website.published.mixin'] def _default_is_published(self): return True
26.666667
320
973
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 EventType(models.Model): _name = 'event.type' _inherit = ['event.type'] website_menu = fields.Boolean('Display a dedicated menu on Website') community_menu = ...
34.75
973
490
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 EventRegistration(models.Model): _name = 'event.registration' _inherit = ['event.registration'] visitor_id = fields.Many2one('website.visitor', string='Visitor', ondel...
35
490
1,189
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from odoo import models class WebsiteMenu(models.Model): _inherit = "website.menu" def unlink(self): """ Override to synchronize event configuration fields with menu deletion. """ event_updates...
39.633333
1,189
25,606
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 collections import defaultdict from dateutil.relativedelta import relativedelta import json import werkzeug.urls from pytz import utc from odoo import api, fields, models, _ from odoo....
46.131532
25,603
869
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 EventMenu(models.Model): _name = "website.event.menu" _description = "Website Event Menu" menu_id = fields.Many2one('website.menu', string='Menu', ondelete='cascade') ...
37.782609
869
1,147
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.http_routing.models.ir_http import url_for class Website(models.Model): _inherit = "website" def get_suggested_controllers(self): suggested_controllers = supe...
44.115385
1,147
6,101
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 WebsiteVisitor(models.Model): _name = 'website.visitor' _inherit = ['website.visitor'] parent_id = fields.Many2one( 'website.visitor', string="Parent", on...
48.420635
6,101
560
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 EventCommunityController(http.Controller): @http.route('/event/<model("event.event"):event>/community', type="http", auth="public", website=True, sitemap=F...
43.076923
560
20,022
py
PYTHON
15.0
# -*- coding: utf-8 -*- import babel.dates import pytz import re import werkzeug from ast import literal_eval from collections import defaultdict from datetime import datetime, timedelta from dateutil.parser import parse from dateutil.relativedelta import relativedelta from werkzeug.datastructures import OrderedMulti...
46.347222
20,022
750
py
PYTHON
15.0
# -*- coding: utf-8 -*- { 'name': 'Mail Tests', 'version': '1.0', 'category': 'Hidden', 'sequence': 9876, 'summary': 'Mail Tests: performances and tests specific to mail', 'description': """This module contains tests related to mail. Those are present in a separate module as it contains models ...
30
750
27,200
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. import base64 from unittest.mock import patch from odoo.addons.mail.tests.common import mail_new_test_user from odoo.addons.test_mail.tests.common import TestMailCommon from odoo.addons.test_mail.models.test_mail_models...
52.007648
27,200
2,140
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from odoo.addons.base.tests.test_ir_actions import TestServerActionsBase from odoo.addons.test_mail.tests.common import TestMailCommon class TestServerActionsEmail(TestMailCommon, TestServerActionsBase): def test_...
52.195122
2,140
2,397
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from odoo.addons.test_mail.tests.test_mail_template import TestMailTemplate from odoo.tests import tagged, users from odoo.tests.common import Form @tagged('mail_template') class TestMailTemplateTools(TestMailTemplate):...
41.327586
2,397
9,582
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. import base64 from odoo.addons.test_mail.tests.common import TestMailCommon, TestRecipients from odoo.tests import tagged from odoo.tools import mute_logger @tagged('mail_template') class TestMailTemplate(TestMailComm...
44.775701
9,582
7,470
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.test_mail.tests.common import TestMailCommon from odoo.tests import tagged from odoo.tools import mute_logger @tagged('mail_wizards') class ...
58.359375
7,470
11,708
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. import psycopg2 import pytz from datetime import datetime, timedelta from freezegun import freeze_time from unittest.mock import call from odoo import api, tools from odoo.addons.base.tests.common import MockSmtplibCas...
44.858238
11,708
738
py
PYTHON
15.0
# Part of Odoo. See LICENSE file for full copyright and licensing details. import odoo.tests from odoo import Command @odoo.tests.tagged('post_install', '-at_install') class TestUi(odoo.tests.HttpCase): def test_01_mail_tour(self): self.start_tour("/web", 'mail_tour', login="admin") def test_02_mai...
35.142857
738
87,629
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. import base64 import socket from unittest.mock import DEFAULT from unittest.mock import patch from odoo import exceptions from odoo.addons.mail.tests.common import mail_new_test_user from odoo.addons.test_mail.data imp...
54.881579
87,591
34,304
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from datetime import date, datetime, timedelta from dateutil.relativedelta import relativedelta from freezegun import freeze_time from unittest.mock import patch from unittest.mock import DEFAULT import pytz from odoo ...
47.644444
34,304
43,929
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. import base64 from odoo.addons.base.tests.common import TransactionCaseWithUserDemo from odoo.tests.common import users, warmup from odoo.tests import tagged from odoo.tools import mute_logger, formataddr @tagged('mail...
43.322485
43,929
2,430
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 MailCommon from odoo.tests.common import TransactionCase class TestMailCommon(MailCommon): """ Main entry point for functional tests. """ @classmethod def _create_...
33.75
2,430
51,983
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. import base64 from unittest.mock import patch from odoo.addons.mail.tests.common import mail_new_test_user from odoo.addons.test_mail.models.test_mail_models import MailTestTicket from odoo.addons.test_mail.tests.commo...
51.519326
51,983
6,542
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. import socket from odoo.addons.test_mail.tests.common import TestMailCommon, TestRecipients from odoo.tests import tagged from odoo.tests.common import users from odoo.tools import formataddr @tagged('multi_company') ...
41.144654
6,542
18,062
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from unittest.mock import patch from unittest.mock import DEFAULT from werkzeug.urls import url_parse, url_decode from odoo import exceptions from odoo.addons.test_mail.models.test_mail_models import MailTestSimple from...
52.658892
18,062
26,105
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from psycopg2 import IntegrityError from odoo.addons.test_mail.tests.common import TestMailCommon from odoo.tests import tagged from odoo.tests import users from odoo.tools.misc import mute_logger from odoo.tests.common...
53.93595
26,105
1,433
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from odoo.addons.test_mail.tests.common import TestMailCommon from odoo.tools import mute_logger class TestInvite(TestMailCommon): @mute_logger('odoo.addons.mail.models.mail_mail') def test_invite_email(self):...
46.225806
1,433
18,688
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from unittest.mock import patch from odoo.addons.test_mail.tests.common import TestMailCommon, TestMailMultiCompanyCommon from odoo.tests.common import tagged from odoo.tests import Form @tagged('mail_track') class Te...
44.28436
18,688
2,243
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from odoo.addons.test_mail.tests.common import TestMailCommon, TestRecipients from odoo.tests import tagged from odoo.tests.common import users @tagged('mail_composer_mixin') class TestMailComposerMixin(TestMailCommon,...
43.134615
2,243
31,868
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. import base64 from unittest.mock import patch from odoo import tools from odoo.addons.test_mail.data.test_mail_data import MAIL_TEMPLATE_PLAINTEXT from odoo.addons.test_mail.models.test_mail_models import MailTestSimpl...
52.328407
31,868
300
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 MailTestCC(models.Model): _name = 'mail.test.cc' _description = "Test Email CC Thread" _inherit = ['mail.thread.cc'] name = fields.Char()
25
300
6,398
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 MailTestSimple(models.Model): """ A very simple model only inheriting from mail.thread when only communication history is necessary. """ _description = 'Simple Cha...
38.311377
6,398
4,205
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 MailPerformanceThread(models.Model): _name = 'mail.performance.thread' _description = 'Performance: mail.thread' _inherit = ['mail.thread'] name = fields.Char...
36.25
4,205
49,270
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. MAIL_TEMPLATE = """Return-Path: <whatever-2a840@postmaster.twitter.com> To: {to} cc: {cc} Received: by mail1.openerp.com (Postfix, from userid 10002) id 5DF9ABFB2A; Fri, 10 Aug 2012 16:16:39 +0200 (CEST) From: {email...
38.974684
49,264
296
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. { 'name': 'Germany - Purchase', 'category': 'Accounting/Localizations', 'depends': [ 'l10n_de', 'purchase', ], 'auto_install': True, 'license': 'LGPL-3', }
22.769231
296
2,235
py
PYTHON
15.0
from odoo import models, fields, _ from odoo.tools import format_date class PurchaseOrder(models.Model): _inherit = 'purchase.order' l10n_de_template_data = fields.Binary(compute='_compute_l10n_de_template_data') l10n_de_document_title = fields.Char(compute='_compute_l10n_de_document_title') l10n_de_...
46.5625
2,235
1,651
py
PYTHON
15.0
# -*- coding: utf-8 -*- { 'name': "Import/Export electronic invoices with UBL/CII", 'version': '1.0', 'category': 'Accounting/Accounting', 'description': """ Electronic invoicing module =========================== Allows to export and import formats: E-FFF, UBL Bis 3, EHF3, NLCIUS, Factur-X (CII), XRec...
45.861111
1,651
22,310
py
PYTHON
15.0
# -*- coding: utf-8 -*- from odoo import models, _ from odoo.tools import DEFAULT_SERVER_DATE_FORMAT, float_repr, is_html_empty, html2plaintext, cleanup_xml_node from lxml import etree from datetime import datetime import logging _logger = logging.getLogger(__name__) DEFAULT_FACTURX_DATE_FORMAT = '%Y%m%d' class A...
55.63591
22,310
9,405
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from odoo import models, fields, SUPERUSER_ID from odoo.tools import str2bool from odoo.addons.account_edi_ubl_cii.models.account_edi_common import COUNTRY_EAS import logging _logger = logging.getLogger(__name__) FORM...
44.15493
9,405
3,069
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 cleanup_xml_node from lxml import etree import base64 from xml.sax.saxutils import escape, quoteattr class IrActionsReport(models.Model): _inherit = 'ir.actions.repor...
51.15
3,069
2,473
py
PYTHON
15.0
# -*- coding: utf-8 -*- from odoo import models class AccountEdiXmlUBLSG(models.AbstractModel): _inherit = "account.edi.xml.ubl_bis3" _name = "account.edi.xml.ubl_sg" _description = "SG BIS Billing 3.0" """ Documentation: https://www.peppolguide.sg/billing/bis/ """ # --------------------...
32.973333
2,473
1,547
py
PYTHON
15.0
# -*- coding: utf-8 -*- from odoo import models class AccountEdiXmlUBLDE(models.AbstractModel): _inherit = "account.edi.xml.ubl_bis3" _name = 'account.edi.xml.ubl_de' _description = "BIS3 DE (XRechnung)" # ------------------------------------------------------------------------- # EXPORT # --...
36.833333
1,547
33,693
py
PYTHON
15.0
# -*- coding: utf-8 -*- from odoo import models, _ from odoo.osv import expression from odoo.tools import html2plaintext, cleanup_xml_node from lxml import etree class AccountEdiXmlUBL20(models.AbstractModel): _name = "account.edi.xml.ubl_20" _inherit = 'account.edi.common' _description = "UBL 2.0" ...
45.469636
33,693
1,183
py
PYTHON
15.0
# -*- coding: utf-8 -*- from odoo import models class AccountEdiXmlUBL21(models.AbstractModel): _name = "account.edi.xml.ubl_21" _inherit = 'account.edi.xml.ubl_20' _description = "UBL 2.1" # ------------------------------------------------------------------------- # EXPORT # ----------------...
31.972973
1,183
23,255
py
PYTHON
15.0
# -*- coding: utf-8 -*- from odoo import models, _ from odoo.addons.account_edi_ubl_cii.models.account_edi_common import COUNTRY_EAS from stdnum.no import mva class AccountEdiXmlUBLBIS3(models.AbstractModel): _name = "account.edi.xml.ubl_bis3" _inherit = 'account.edi.xml.ubl_21' _description = "UBL BIS ...
51.554324
23,251
35,985
py
PYTHON
15.0
# -*- coding: utf-8 -*- from odoo import _, models from odoo.tools import float_repr from odoo.tests.common import Form from odoo.exceptions import UserError, ValidationError from odoo.tools.float_utils import float_round from odoo.tools.misc import formatLang from zeep import Client # ------------------------------...
48.823609
35,983
4,100
py
PYTHON
15.0
# -*- coding: utf-8 -*- from odoo import models class AccountEdiXmlUBLNL(models.AbstractModel): _inherit = "account.edi.xml.ubl_bis3" _name = 'account.edi.xml.ubl_nl' _description = "SI-UBL 2.0 (NLCIUS)" """ SI-UBL 2.0 (NLCIUS) and UBL Bis 3 are 2 different formats used in the Netherlands. (...
47.126437
4,100
728
py
PYTHON
15.0
# -*- coding: utf-8 -*- from odoo import models import re class AccountEdiXmlUBLEFFF(models.AbstractModel): _inherit = "account.edi.xml.ubl_20" _name = 'account.edi.xml.ubl_efff' _description = "E-FFF (BE)" # ------------------------------------------------------------------------- # EXPORT ...
31.652174
728
1,062
py
PYTHON
15.0
# -*- coding: utf-8 -*- { 'name': 'Proxy features for account_edi', 'description': """ This module adds generic features to register an Odoo DB on the proxy responsible for receiving data (via requests from web-services). - An edi_proxy_user has a unique identification on a specific format (for example, the vat...
42.48
1,062
1,005
py
PYTHON
15.0
# -*- coding: utf-8 -*- from odoo import models class AccountEdiFormat(models.Model): _inherit = 'account.edi.format' # ------------------------------------------------------------------------- # Helpers # ------------------------------------------------------------------------- def _get_proxy_u...
37.222222
1,005
10,127
py
PYTHON
15.0
from odoo import models, fields, _ from odoo.exceptions import UserError from .account_edi_proxy_auth import OdooEdiProxyAuth from cryptography.hazmat.backends import default_backend from cryptography.hazmat.primitives.asymmetric import rsa from cryptography.hazmat.primitives import serialization from cryptography.haz...
48.6875
10,127
1,836
py
PYTHON
15.0
import base64 import hashlib import hmac import json import requests import time import werkzeug.urls class OdooEdiProxyAuth(requests.auth.AuthBase): """ For routes that needs to be authenticated and verified for access. Allows: 1) to preserve the integrity of the message between the endpoints. ...
38.25
1,836
305
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 ResCompany(models.Model): _inherit = 'res.company' account_edi_proxy_client_ids = fields.One2many('account_edi_proxy_client.user', inverse_name='company_id')
33.888889
305
405
py
PYTHON
15.0
# -*- coding: utf-8 -*- from odoo.http import request from odoo.addons.auth_signup.controllers.main import AuthSignupHome class AddPolicyData(AuthSignupHome): def get_auth_signup_config(self): d = super(AddPolicyData, self).get_auth_signup_config() d['password_minimum_length'] = request.env['ir.co...
40.5
405
374
py
PYTHON
15.0
{ 'name': "Password Policy support for Signup", 'depends': ['auth_password_policy', 'auth_signup'], 'category': 'Hidden/Tools', 'auto_install': True, 'data': [ 'views/signup_templates.xml', ], 'assets': { 'web.assets_frontend': [ 'auth_password_policy_signup/stati...
24.933333
374
5,821
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. { 'name' : 'Invoicing', 'version' : '1.2', 'summary': 'Invoices & Payments', 'sequence': 10, 'description': """ Invoicing & Payments ==================== The specific and easy-to-use Invoicing system i...
45.476563
5,821
16,560
py
PYTHON
15.0
# -*- coding: utf-8 -*- import logging import time from datetime import timedelta from dateutil.relativedelta import relativedelta from odoo import api, fields, models, Command from odoo.exceptions import UserError, ValidationError from odoo.tools.misc import file_open, formatLang _logger = logging.getLogger(__name__...
46.386555
16,560
11,335
py
PYTHON
15.0
# -*- coding: utf-8 -*- """Classes defining the populate factory for Journal Entries, Invoices and related models.""" from odoo import models, fields from odoo.tools import populate import logging import math from functools import lru_cache from dateutil.relativedelta import relativedelta _logger = logging.getLogger(...
48.648069
11,335
4,204
py
PYTHON
15.0
# -*- coding: utf-8 -*- """Classes defining the populate factory for Bank Statements and related models.""" from odoo import models from odoo.tools import populate import logging _logger = logging.getLogger(__name__) class AccountReconcileModel(models.Model): """Populate factory part for account.reconcile.model...
40.423077
4,204
1,198
py
PYTHON
15.0
# -*- coding: utf-8 -*- """Classes defining the populate factory for Accounting Journals and related models.""" import logging from odoo import models from odoo.tools import populate _logger = logging.getLogger(__name__) class AccountJournal(models.Model): """Populate factory part for account.journal.""" _i...
34.228571
1,198
5,531
py
PYTHON
15.0
# -*- coding: utf-8 -*- """Classes defining the populate factory for Payments and related models.""" from odoo import models, fields from odoo.tools import populate from dateutil.relativedelta import relativedelta import logging import math from functools import lru_cache _logger = logging.getLogger(__name__) class...
43.896825
5,531
2,562
py
PYTHON
15.0
# -*- coding: utf-8 -*- """Classes extending the populate factory for Companies and related models. Only adding specificities of basic accounting applications. """ from odoo import models, _ from odoo.tools import populate from odoo.exceptions import UserError import logging from functools import lru_cache _logger =...
46.581818
2,562
5,988
py
PYTHON
15.0
# -*- coding: utf-8 -*- """Classes defining the populate factory for Bank Statements and related models.""" from odoo import models from odoo.tools import populate from dateutil.relativedelta import relativedelta from functools import lru_cache from collections import defaultdict import logging _logger = logging.getL...
44.686567
5,988
1,353
py
PYTHON
15.0
# -*- coding: utf-8 -*- from odoo.addons.account.tests.common import AccountTestInvoicingCommon from odoo.tests import tagged @tagged('post_install', '-at_install') class TestAccountMoveRounding(AccountTestInvoicingCommon): def test_move_line_rounding(self): """Whatever arguments we give to the creation...
43.645161
1,353
6,299
py
PYTHON
15.0
# -*- coding: utf-8 -*- from odoo.addons.account.tests.common import AccountTestInvoicingCommon from odoo.tests import tagged import json @tagged('post_install', '-at_install') class TestAccountIncomingSupplierInvoice(AccountTestInvoicingCommon): @classmethod def setUpClass(cls, chart_template_ref=None): ...
51.211382
6,299
19,372
py
PYTHON
15.0
# -*- coding: utf-8 -*- from odoo.addons.account.tests.common import AccountTestInvoicingCommon from odoo.tests import tagged @tagged('post_install', '-at_install') class TaxReportTest(AccountTestInvoicingCommon): @classmethod def setUpClass(cls, chart_template_ref=None): super().setUpClass(chart_tem...
51.248677
19,372
11,361
py
PYTHON
15.0
# -*- coding: utf-8 -*- from odoo import fields, Command from odoo.addons.account.tests.common import AccountTestInvoicingCommon from odoo.tests import tagged import freezegun @tagged('post_install', '-at_install') class TestAccountMoveDateAlgorithm(AccountTestInvoicingCommon): # -------------------------------...
40.003521
11,361
13,074
py
PYTHON
15.0
from odoo.addons.account.tests.common import AccountTestInvoicingCommon from odoo.models import Model from odoo.tests import tagged from odoo import fields from odoo.exceptions import UserError from odoo.tools import format_date @tagged('post_install', '-at_install') class TestAccountMoveInalterableHash(AccountTestIn...
70.290323
13,074