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
739
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. { 'name': 'pos_epson_printer', 'version': '1.0', 'category': 'Sales/Point of Sale', 'sequence': 6, 'summary': 'Epson ePOS Printers in PoS', 'description': """ Use Epson ePOS Printers without the...
24.633333
739
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 PosConfig(models.Model): _inherit = 'pos.config' epson_printer_ip = fields.Char(string='Epson Printer IP', help="Local IP address of an Epson receipt printer.") @...
34.714286
486
778
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. { 'name': 'Egypt ETA Hardware Driver', 'category': 'Accounting/Accounting', 'website': 'https://www.odoo.com', 'summary': 'Egypt ETA Hardware Driver', 'description': """ Egypt ETA Hardware Driver ====...
24.3125
778
5,368
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. import base64 import logging import platform import json from passlib.context import CryptContext from odoo import http from odoo.tools.config import config _logger = logging.getLogger(__name__) try: import PyKCS1...
38.342857
5,368
1,292
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. { 'name': 'Online Jobs', 'category': 'Website/Website', 'sequence': 310, 'version': '1.0', 'summary': 'Manage your online hiring process', 'description': "This module allows to publish your availa...
34
1,292
1,668
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from odoo.api import Environment import odoo.tests @odoo.tests.tagged('post_install', '-at_install') class TestWebsiteHrRecruitmentForm(odoo.tests.HttpCase): def test_tour(self): job_guru = self.env['hr.job'...
49.058824
1,668
407
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from odoo import models class Department(models.Model): _inherit = 'hr.department' def name_get(self): # Get department name using superuser, because model is not accessible # for portal users ...
29.071429
407
497
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 = sup...
35.5
497
3,059
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.tools.translate import html_translate from odoo.exceptions import UserError class RecruitmentSource(models.Model): _inherit = 'hr.recruit...
41.90411
3,059
4,651
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.http_routing.models.ir_http import slug from odoo.http import request from werkzeug.exceptions import NotFound class WebsiteHrRecruitment(http.Controller): def sitemap_jobs...
46.049505
4,651
837
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. { 'name': "India Sales and Warehouse Management", 'icon': '/l10n_in/static/description/icon.png', 'summary': """ Define default sales journal on the warehouse""", 'description': """ Defi...
27.9
837
560
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from odoo import models class AccountMove(models.Model): _inherit = "account.move" def _l10n_in_get_warehouse_address(self): res = super()._l10n_in_get_warehouse_address() if self.invoice_line_...
35
560
288
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 Stock(models.Model): _inherit = 'stock.warehouse' l10n_in_sale_journal_id = fields.Many2one('account.journal', string="Sale Journal")
28.8
288
577
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" @api.depends('company_id', 'warehouse_id') def _compute_l10n_in_journal_id(self): super()._compute_l10n_i...
36.0625
577
584
py
PYTHON
15.0
# -*- coding: utf-8 -*- { 'name': 'Mass Mail Tests', 'version': '1.0', 'category': 'Hidden', 'sequence': 8765, 'summary': 'Mass Mail Tests: feature and performance tests for mass mailing', 'description': """This module contains tests related to mass mailing. Those are present in a separate modu...
27.809524
584
3,882
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. import datetime from freezegun import freeze_time from unittest.mock import patch from odoo.addons.mass_mailing.models.mail_thread import BLACKLIST_MAX_BOUNCED_LIMIT from odoo.addons.test_mass_mailing.tests import comm...
41.741935
3,882
18,930
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from odoo.addons.test_mass_mailing.data.mail_test_data import MAIL_TEMPLATE from odoo.addons.test_mass_mailing.tests.common import TestMassMailCommon from odoo.tests import tagged from odoo.tests.common import users from...
47.325
18,930
2,477
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from odoo.tests.common import users from odoo.addons.test_mass_mailing.tests import common class TestLinkTracker(common.TestMassMailCommon): def setUp(self): super(TestLinkTracker, self).setUp() s...
35.385714
2,477
5,139
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from lxml import html from odoo.addons.mail.tests.common import mail_new_test_user from odoo.addons.test_mass_mailing.data.mail_test_data import MAIL_TEMPLATE from odoo.addons.test_mass_mailing.tests.common import TestM...
51.909091
5,139
6,402
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from odoo.tests.common import users from odoo.addons.test_mass_mailing.tests import common from odoo.exceptions import AccessError class TestBLAccessRights(common.TestMassMailCommon): @classmethod def setUpCla...
38.8
6,402
4,679
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.tests.common import TransactionCase, users, warmup from odoo.tests import tagged from odoo.tools import mute_logger @tagged('mail_performance', 'po...
42.926606
4,679
3,254
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from odoo.addons.mass_mailing.tests.common import MassMailCommon from odoo.addons.test_mail.tests.common import TestMailCommon class TestMassMailCommon(MassMailCommon, TestMailCommon): @classmethod def setUpCl...
47.15942
3,254
3,060
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from odoo.addons.test_mass_mailing.models.mailing_models import MailingBLacklist from odoo.addons.test_mass_mailing.tests import common from odoo.exceptions import UserError from odoo.tests.common import users class Te...
43.098592
3,060
5,143
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from odoo.addons.test_mass_mailing.tests.common import TestMassMailCommon from odoo.addons.base.tests.common import MockSmtplibCase from odoo.tests import tagged from odoo.tests.common import users from odoo.tools import...
43.584746
5,143
4,440
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. import lxml.html from odoo.addons.test_mass_mailing.tests.common import TestMassMailCommon from odoo.fields import Command from odoo.tests.common import users from odoo.tools import mute_logger class TestMailingTest(Te...
41.495327
4,440
1,108
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 MailingTestPartnerUnstored(models.Model): """ Check mailing with unstored fields """ _description = 'Mailing Model without stored partner_id' _name = 'mailing.test...
34.625
1,108
2,984
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 MailingSimple(models.Model): """ A very simple model only inheriting from mail.thread to test pure mass mailing features and base performances. """ _description = ...
33.909091
2,984
1,212
py
PYTHON
15.0
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_from} Subject: {subject} MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----...
28.857143
1,212
1,905
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. { 'name': 'Attendances', 'version': '2.0', 'category': 'Human Resources/Attendances', 'sequence': 240, 'summary': 'Track employee attendance', 'description': """ This module aims to manage employ...
35.277778
1,905
5,669
py
PYTHON
15.0
# -*- coding: utf-8 -*- import pytz from datetime import datetime from unittest.mock import patch from odoo import fields from odoo.tests import new_test_user from odoo.tests.common import TransactionCase class TestHrAttendance(TransactionCase): """Test for presence validity""" def setUp(self): sup...
52.472222
5,667
2,412
py
PYTHON
15.0
# -*- coding: utf-8 -*- import time from odoo.tests.common import TransactionCase class TestHrAttendance(TransactionCase): """Tests for attendance date ranges validity""" def setUp(self): super(TestHrAttendance, self).setUp() self.attendance = self.env['hr.attendance'] self.test_emp...
38.903226
2,412
12,036
py
PYTHON
15.0
# Part of Odoo. See LICENSE file for full copyright and licensing details. from datetime import date, datetime from odoo.tests import new_test_user from odoo.tests.common import tagged, TransactionCase @tagged('post_install', '-at_install', 'hr_attendance_overtime') class TestHrAttendanceOvertime(TransactionCase): ...
45.24812
12,036
984
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 HrEmployeePublic(models.Model): _inherit = 'hr.employee.public' # These are required for manual attendance attendance_state = fields.Selection(related='employee_id.atte...
57.882353
984
1,248
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from odoo import models, fields class HrAttendanceOvertime(models.Model): _name = "hr.attendance.overtime" _description = "Attendance Overtime" _rec_name = 'employee_id' _order = 'date desc' def _d...
37.818182
1,248
462
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from odoo import models class IrUiMenu(models.Model): _inherit = 'ir.ui.menu' def _load_menus_blacklist(self): res = super()._load_menus_blacklist() if self.env.user.has_group('hr_attendance.gr...
33
462
3,259
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.osv.expression import OR class ResCompany(models.Model): _inherit = 'res.company' hr_attendance_overtime = fields.Boolean(string="Count Extra Hours") overtime_star...
52.564516
3,259
10,901
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. import pytz from dateutil.relativedelta import relativedelta from odoo import models, fields, api, exceptions, _ from odoo.tools import float_round class HrEmployee(models.Model): _inherit = "hr.employee" att...
52.408654
10,901
986
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from odoo import models, fields class User(models.Model): _inherit = ['res.users'] hours_last_month = fields.Float(related='employee_id.hours_last_month') hours_last_month_display = fields.Char(related='em...
37.923077
986
1,914
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' group_attendance_use_pin = fields.Boolean( string='Employee PIN', implied_g...
41.608696
1,914
17,620
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from collections import defaultdict from datetime import datetime, timedelta from operator import itemgetter import pytz from odoo import models, fields, api, exceptions, _ from odoo.tools import format_datetime from od...
59.127517
17,620
2,036
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 HRAttendanceReport(models.Model): _name = "hr.attendance.report" _description = "Attendance Statistics" _auto = False department_id = fields.Many2one('...
31.8125
2,036
368
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 HrAttendance(http.Controller): @http.route('/hr_attendance/kiosk_keepalive', auth='user', type='json') def kiosk_keepalive(self): request.httpre...
30.666667
368
725
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. { 'name': "Sale Coupon", 'summary': "Use discount coupons in sales orders", 'description': """Integrate coupon mechanism in sales orders.""", 'category': 'Sales/Sales', 'version': '1.0', 'depends':...
34.52381
725
3,409
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from odoo.addons.sale_coupon.tests.common import TestSaleCouponCommon from odoo.exceptions import UserError from odoo.tests import tagged @tagged('post_install', '-at_install') class TestSaleInvoicing(TestSaleCouponComm...
38.303371
3,409
3,065
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from odoo.addons.sale_coupon.tests.common import TestSaleCouponCommon from odoo.exceptions import UserError from odoo.tests import tagged @tagged('post_install', '-at_install') class TestSaleCouponMultiCompany(TestSale...
39.294872
3,065
18,008
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.sale_coupon.tests.common import TestSaleCouponCommon from odoo.exceptions import UserError from odoo.fields import Date class TestProgramRules(TestSaleCouponCom...
45.705584
18,008
17,656
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from odoo.addons.sale_coupon.tests.common import TestSaleCouponCommon from odoo.exceptions import UserError class TestProgramWithCodeOperations(TestSaleCouponCommon): # Test the basic operation (apply_coupon) on an...
46.341207
17,656
79,677
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from odoo.addons.sale_coupon.tests.common import TestSaleCouponCommon from odoo.exceptions import UserError from odoo.tests import tagged from odoo.tools.float_utils import float_compare @tagged('post_install', '-at_in...
51.704737
79,677
4,230
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from odoo.addons.sale.tests.test_sale_product_attribute_value_config import TestSaleProductAttributeValueCommon class TestSaleCouponCommon(TestSaleProductAttributeValueCommon): @classmethod def setUpClass(cls)...
34.672131
4,230
3,253
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from odoo.addons.sale_coupon.tests.common import TestSaleCouponCommon class TestProgramWithoutCodeOperations(TestSaleCouponCommon): # Test some basic operation (create, write, unlink) on an immediate coupon program...
55.135593
3,253
3,165
py
PYTHON
15.0
# -*- coding: utf-8 -*- from odoo import api, fields, models, _ from odoo.exceptions import UserError from odoo.osv import expression class SaleCouponApplyCode(models.TransientModel): _name = 'sale.coupon.apply.code' _rec_name = 'coupon_code' _description = 'Sales Coupon Apply Code' coupon_code = fi...
50.238095
3,165
34,984
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.misc import formatLang class SaleOrder(models.Model): _inherit = "sale.order" applied_coupon_ids = fields.One2many('coupon.coupon', 'sales_order_id', str...
55.266983
34,984
3,184
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 Coupon(models.Model): _inherit = 'coupon.coupon' order_id = fields.Many2one('sale.order', 'Order Reference', readonly=True, help="The sales order from whic...
64.979592
3,184
12,120
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 babel.dates import format_datetime class CouponProgram(models.Model): _inherit = 'coupon.program' order_count = fields.Integer(compute='_compute_order_count') # The ...
56.635514
12,120
711
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. { 'name': 'Mollie Payment Acquirer', 'version': '1.0', 'category': 'Accounting/Payment Acquirers', 'sequence': 356, 'summary': 'Payment Acquirer: Mollie Implementation', 'description': """Mollie P...
29.625
711
835
py
PYTHON
15.0
# Part of Odoo. See LICENSE file for full copyright and licensing details. # List of ISO 15897 locale supported by Mollie # See full details at `locale` parameter at https://docs.mollie.com/reference/v2/payments-api/create-payment SUPPORTED_LOCALES = [ 'en_US', 'nl_NL', 'nl_BE', 'fr_FR', 'fr_BE', 'de_DE', 'de_...
37.954545
835
524
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from odoo.addons.payment.tests.common import PaymentCommon class MollieCommon(PaymentCommon): @classmethod def setUpClass(cls, chart_template_ref=None): super().setUpClass(chart_template_ref=chart_templ...
32.75
524
560
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 MollieCommon @tagged('post_install', '-at_install') class MollieTest(MollieCommon): def test_payment_request_payload_values(self): tx = self.create_transa...
31.111111
560
5,173
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. import logging import pprint from werkzeug import urls from odoo import _, models from odoo.exceptions import ValidationError from odoo.addons.payment_mollie.const import SUPPORTED_LOCALES from odoo.addons.payment_mol...
41.384
5,173
429
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.642857
429
3,111
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. import logging import requests from werkzeug import urls from odoo import _, api, fields, models, service from odoo.exceptions import ValidationError from odoo.addons.payment_mollie.const import SUPPORTED_CURRENCIES ...
38.8875
3,111
2,575
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. import logging import pprint from odoo import http from odoo.exceptions import ValidationError from odoo.http import request _logger = logging.getLogger(__name__) class MollieController(http.Controller): _return_...
47.685185
2,575
751
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. { 'name': 'Point of Sale Discounts', 'version': '1.0', 'category': 'Sales/Point of Sale', 'sequence': 6, 'summary': 'Simple Discounts in the Point of Sale ', 'description': """ This module allow...
24.225806
751
1,447
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 PosConfig(models.Model): _inherit = 'pos.config' iface_discount = fields.Boolean(string='Order Discounts', help='Allow the cashier to give discounts on the whole orde...
48.233333
1,447
1,070
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. { 'name': 'Dashboards', 'version': '1.0', 'category': 'Productivity', 'sequence': 225, 'summary': 'Build your own dashboards', 'description': """ Lets the user create a custom dashboard. =========...
27.435897
1,070
2,126
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 Board(models.AbstractModel): _name = 'board.board' _description = "Board" _auto = False # This is necessary for when the web client opens a dashboard. Technic...
37.298246
2,126
2,026
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from lxml import etree as ElementTree from odoo.http import Controller, route, request class Board(Controller): @route('/board/add_to_dashboard', type='json', auth='user') def add_to_dashboard(self, action_id...
46.045455
2,026
626
py
PYTHON
15.0
# Part of Odoo. See LICENSE file for full copyright and licensing details. { 'name': 'Paypal Payment Acquirer', 'version': '2.0', 'category': 'Accounting/Payment Acquirers', 'sequence': 365, 'summary': 'Payment Acquirer: Paypal Implementation', 'description': """Paypal Payment Acquirer""", ...
31.3
626
713
py
PYTHON
15.0
# Part of Odoo. See LICENSE file for full copyright and licensing details. # ISO 4217 codes of currencies supported by PayPal SUPPORTED_CURRENCIES = ( 'AUD', 'BRL', 'CAD', 'CNY', 'CZK', 'DKK', 'EUR', 'HKD', 'HUF', 'ILS', 'JPY', 'MYR', 'MXN', 'TWD', 'NZD', ...
18.763158
713
7,507
py
PYTHON
15.0
# Part of Odoo. See LICENSE file for full copyright and licensing details. from odoo.exceptions import ValidationError from odoo.tools import mute_logger from odoo.tests import tagged from .common import PaypalCommon from ..controllers.main import PaypalController @tagged('post_install', '-at_install') class Paypal...
44.904192
7,499
589
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 PaypalCommon(PaymentCommon): @classmethod def setUpClass(cls, chart_template_ref=None): super().setUpClass(chart_template_ref=chart_template_ref) cls.pa...
32.722222
589
4,854
py
PYTHON
15.0
# Part of Odoo. See LICENSE file for full copyright and licensing details. import logging from werkzeug import urls from odoo import _, api, fields, models from odoo.exceptions import ValidationError from odoo.addons.payment import utils as payment_utils from odoo.addons.payment_paypal.const import PAYMENT_STATUS_M...
40.115702
4,854
429
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.642857
429
2,111
py
PYTHON
15.0
# Part of Odoo. See LICENSE file for full copyright and licensing details. import logging from odoo import _, api, fields, models from odoo.addons.payment_paypal.const import SUPPORTED_CURRENCIES _logger = logging.getLogger(__name__) class PaymentAcquirer(models.Model): _inherit = 'payment.acquirer' prov...
37.035088
2,111
8,968
py
PYTHON
15.0
# Part of Odoo. See LICENSE file for full copyright and licensing details. import logging import pprint import requests from requests.exceptions import ConnectionError, HTTPError from werkzeug import urls from odoo import _, http from odoo.exceptions import ValidationError from odoo.http import request from odoo.too...
48.73913
8,968
451
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. { 'name': 'Mass mailing sms on lead / opportunities', 'category': 'Hidden', 'version': '1.0', 'summary': 'Add lead / opportunities info on mass mailing sms', 'description': """Mass mailing sms on lead...
34.692308
451
298
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 UtmCampaign(models.Model): _inherit = 'utm.campaign' ab_testing_sms_winner_selection = fields.Selection(selection_add=[('crm_lead_count', 'Leads')])
29.8
298
1,869
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. { 'name': 'SMS gateway', 'version': '2.2', 'category': 'Hidden/Tools', 'summary': 'SMS Text Messaging', 'description': """ This module gives a framework for SMS text messaging ------------------------...
30.145161
1,869
4,996
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from odoo.tests.common import TransactionCase, users from odoo.addons.mail.tests.common import mail_new_test_user from odoo.exceptions import AccessError from odoo.tests import tagged from odoo.tools import mute_logger ...
46.259259
4,996
13,520
py
PYTHON
15.0
# -*- coding: utf-8 -*- from contextlib import contextmanager from unittest.mock import patch from odoo import exceptions, tools from odoo.tests import common from odoo.addons.mail.tests.common import MailCommon from odoo.addons.phone_validation.tools import phone_validation from odoo.addons.sms.models.sms_api import...
48.633094
13,520
19,854
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.addons.phone_validation.tools import phone_validation from odoo.exceptions import UserError from odoo.tools import html2plaintext, plaintext...
50.390863
19,854
1,636
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 SMSCancel(models.TransientModel): _name = 'sms.cancel' _description = 'Dismiss notification for resend by model' model = fields.Char(string='Model', required=T...
43.052632
1,636
2,182
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 SMSTemplatePreview(models.TransientModel): _name = "sms.template.preview" _description = "SMS Template Preview" @api.model def _selection_target_model(self): ...
44.530612
2,182
5,554
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from odoo import _, api, exceptions, fields, models class SMSRecipient(models.TransientModel): _name = 'sms.resend.recipient' _description = 'Resend Notification' _rec_name = 'sms_resend_id' sms_resend...
48.295652
5,554
576
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from odoo import models class PhoneMixin(models.AbstractModel): _inherit = 'mail.thread.phone' def _sms_get_number_fields(self): """ Add fields coming from mail.thread.phone implementation. """ ...
36
576
953
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 Followers(models.Model): _inherit = ['mail.followers'] def _get_recipient_data(self, records, message_type, subtype_id, pids=None): if message_type == 'sms': ...
39.708333
953
2,875
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.addons.iap.tools import iap_tools DEFAULT_ENDPOINT = 'https://iap-sms.odoo.com' class SmsApi(models.AbstractModel): _name = 'sms.api' _description = 'SMS API' @ap...
37.828947
2,875
1,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 IrModel(models.Model): _inherit = 'ir.model' is_mail_thread_sms = fields.Boolean( string="Mail Thread SMS", default=False, store=False, compute='_comp...
42.756098
1,753
748
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 MailNotification(models.Model): _inherit = 'mail.notification' notification_type = fields.Selection(selection_add=[ ('sms', 'SMS') ], ondelete={'sms': 'cascade...
35.619048
748
9,328
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. import logging import threading from odoo import api, fields, models, tools, _ _logger = logging.getLogger(__name__) class SmsSms(models.Model): _name = 'sms.sms' _description = 'Outgoing SMS' _rec_name =...
44
9,328
17,255
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, models, fields from odoo.addons.phone_validation.tools import phone_validation from odoo.tools import html2plaintext, plaintext2html _logger = logging.getLogger(__name__) class Ma...
49.3
17,255
3,323
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 SMSTemplate(models.Model): "Templates for sending SMS" _name = "sms.template" _inherit = ['mail.render.mixin'] _description = 'SMS Templates' _unrestri...
42.602564
3,323
2,468
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from collections import defaultdict from operator import itemgetter from odoo import exceptions, fields, models from odoo.tools import groupby class MailMessage(models.Model): """ Override MailMessage class in ord...
44.872727
2,468
614
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from odoo import models class ResPartner(models.Model): _name = 'res.partner' _inherit = ['mail.thread.phone', 'res.partner'] def _sms_get_default_partners(self): """ Override of mail.thread method...
30.7
614
1,702
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 ServerActions(models.Model): """ Add SMS option in server actions. """ _name = 'ir.actions.server' _inherit = ['ir.a...
37
1,702
754
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. { 'name': 'Project Mail Plugin', 'version': '1.0', 'category': 'Services/Project', 'sequence': 5, 'summary': 'Integrate your inbox with projects', 'description': "Turn emails received in your mail...
29
754
2,642
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. import logging from odoo.http import request from odoo.addons.mail_plugin.controllers import mail_plugin _logger = logging.getLogger(__name__) class MailPluginController(mail_plugin.MailPluginController): def _...
42.612903
2,642
1,937
py
PYTHON
15.0
from odoo import Command, http, _ from odoo.http import request class ProjectClient(http.Controller): @http.route('/mail_plugin/project/search', type='json', auth='outlook', cors="*") def projects_search(self, search_term, limit=5): """ Used in the plugin side when searching for projects. ...
38.74
1,937
1,120
py
PYTHON
15.0
# -*- encoding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. { 'name': 'Saudi Arabia - Accounting', 'version': '2.0', 'author': 'DVIT.ME', 'category': 'Accounting/Localizations/Account Charts', 'description': """ Odoo Arabic localization for most arabic countr...
33.939394
1,120
2,993
py
PYTHON
15.0
# -*- encoding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from odoo import models, api class AccountChartTemplate(models.Model): _inherit = 'account.chart.template' def _prepare_all_journals(self, acc_template_ref, company, journals_dict=None): """ If Saudi ...
68.022727
2,993