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 |
|---|---|---|---|---|---|---|
663 | 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 EventBoothCategory(models.Model):
_name = 'event.booth.category'
_description = 'Event Booth Category'
_inherit = ['image.mixin']
_order = 'sequence ASC'
activ... | 39 | 663 |
4,365 | 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 import Command
class Event(models.Model):
_inherit = 'event.event'
event_booth_ids = fields.One2many(
'event.booth', 'event_id', string='Booths', copy=Tru... | 48.5 | 4,365 |
987 | 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 EventBooth(models.Model):
_name = 'event.type.booth'
_description = 'Event Booth Template'
def _get_default_booth_category(self):
"""Assign booth category... | 36.555556 | 987 |
4,671 | 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 EventBooth(models.Model):
_name = 'event.booth'
_description = 'Event Booth'
_inherit = [
'event.type.booth',
'mail... | 39.923077 | 4,671 |
816 | py | PYTHON | 15.0 | # -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
{
'name': 'Italy - E-invoicing (SdiCoop)',
'version': '0.3',
'depends': [
'l10n_it_edi',
'account_edi',
'account_edi_proxy_client',
],
'author': 'Odoo',
'description': """
... | 31.384615 | 816 |
10,636 | py | PYTHON | 15.0 | # -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from collections import namedtuple
from lxml import etree
from odoo import fields
from odoo.tests import tagged
from odoo.addons.l10n_it_edi_sdicoop.tests.test_edi_xml import TestItEdi
@tagged('post_install_l10n', 'po... | 46.854626 | 10,636 |
36,805 | py | PYTHON | 15.0 | # -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
import datetime
import logging
from lxml import etree
from freezegun import freeze_time
from odoo import tools
from odoo.tests import tagged
from odoo.addons.account_edi.tests.common import AccountEdiTestCommon
from odo... | 44.981663 | 36,795 |
19,342 | py | PYTHON | 15.0 | # -*- coding:utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo import models, _, _lt
from odoo.exceptions import UserError
from odoo.addons.account_edi_proxy_client.models.account_edi_proxy_user import AccountEdiProxyError
from lxml import etree
import base64
import loggin... | 50.238961 | 19,342 |
1,085 | 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
_logger = logging.getLogger(__name__)
DEFAULT_FACTUR_ITALIAN_DATE_FORMAT = '%Y-%m-%d'
class AccountMove(models.Model):
_inherit = 'account.move'
l10n_it_ed... | 36.166667 | 1,085 |
5,242 | py | PYTHON | 15.0 | # -*- coding: utf-8 -*-
from odoo import api, models, fields, _
from odoo.exceptions import UserError
class ResConfigSettings(models.TransientModel):
_inherit = 'res.config.settings'
is_edi_proxy_active = fields.Boolean(compute='_compute_is_edi_proxy_active')
l10n_it_edi_proxy_current_state = fields.Char... | 51.90099 | 5,242 |
738 | py | PYTHON | 15.0 | # Part of Odoo. See LICENSE file for full copyright and licensing details.
# Original Copyright 2015 Eezee-It, modified and maintained by Odoo.
{
'name': 'Worldline SIPS',
'version': '2.0',
'category': 'Accounting/Payment Acquirers',
'sequence': 385,
'description': """
Worldline SIPS Payment Acquir... | 30.75 | 738 |
576 | 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 SipsCommon(PaymentCommon):
@classmethod
def setUpClass(cls, chart_template_ref=None):
super().setUpClass(chart_template_ref=chart_template_ref)
cls.sips... | 32 | 576 |
6,907 | py | PYTHON | 15.0 | # Part of Odoo. See LICENSE file for full copyright and licensing details.
import json
from freezegun import freeze_time
from odoo.exceptions import ValidationError
from odoo.tests import tagged
from odoo.tools import mute_logger
from .common import SipsCommon
from ..controllers.main import SipsController
from ..mo... | 54.385827 | 6,907 |
7,435 | py | PYTHON | 15.0 | # Part of Odoo. See LICENSE file for full copyright and licensing details.
# Original Copyright 2015 Eezee-It, modified and maintained by Odoo.
import json
import logging
from werkzeug import urls
from odoo import _, api, models
from odoo.exceptions import ValidationError
from odoo.addons.payment import utils as pa... | 44.255952 | 7,435 |
427 | 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.5 | 427 |
2,491 | py | PYTHON | 15.0 | # Part of Odoo. See LICENSE file for full copyright and licensing details.
# Original Copyright 2015 Eezee-It, modified and maintained by Odoo.
from hashlib import sha256
from odoo import api, fields, models
from .const import SUPPORTED_CURRENCIES
class PaymentAcquirer(models.Model):
_inherit = 'payment.acquir... | 40.177419 | 2,491 |
2,004 | py | PYTHON | 15.0 | # Part of Odoo. See LICENSE file for full copyright and licensing details.
# ISO 4217 Data for currencies supported by sips
# NOTE: these are listed on the Atos Wordline SIPS POST documentation page
# at https://documentation.sips.worldline.com/en/WLSIPS.001-GD-Data-dictionary.html#Sips.001_DD_en-Value-currencyCode
# ... | 28.225352 | 2,004 |
3,079 | py | PYTHON | 15.0 | # Part of Odoo. See LICENSE file for full copyright and licensing details.
# Original Copyright 2015 Eezee-It, modified and maintained by Odoo.
import logging
import pprint
from odoo import http
from odoo.exceptions import ValidationError
from odoo.http import request
_logger = logging.getLogger(__name__)
class Si... | 45.279412 | 3,079 |
1,377 | py | PYTHON | 15.0 | # -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
{
'name': "pos_hr",
'category': "Hidden",
'summary': 'Link module between Point of Sale and HR',
'description': """
This module allows Employees (and not users) to log in to the Point of Sale application... | 32.785714 | 1,377 |
2,179 | py | PYTHON | 15.0 | # -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo import tools
from odoo.api import Environment
from odoo.tools import DEFAULT_SERVER_DATE_FORMAT
from datetime import date, timedelta
from odoo.tests import Form, tagged, new_test_user
from odoo.addons.point_of... | 33.523077 | 2,179 |
317 | py | PYTHON | 15.0 | # -*- coding: utf-8 -*-
from functools import partial
from odoo import models, fields
class PosConfig(models.Model):
_inherit = 'pos.config'
employee_ids = fields.Many2many(
'hr.employee', string="Employees with access",
help='If left empty, all employees can log in to the PoS session')
| 24.384615 | 317 |
1,904 | py | PYTHON | 15.0 | # -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
import hashlib
from odoo import api, models, _
from odoo.exceptions import UserError
class HrEmployee(models.Model):
_inherit = 'hr.employee'
def get_barcodes_and_pin_hashed(self):
if not self.env.use... | 51.459459 | 1,904 |
1,282 | py | PYTHON | 15.0 | # -*- coding: utf-8 -*-
from odoo import models, fields, api
class PosOrder(models.Model):
_inherit = "pos.order"
employee_id = fields.Many2one('hr.employee', help="Person who uses the cash register. It can be a reliever, a student or an interim employee.", states={'done': [('readonly', True)], 'invoiced': [... | 36.628571 | 1,282 |
471 | py | PYTHON | 15.0 | # -*- coding: utf-8 -*-
from functools import partial
from odoo import models, fields
class PosOrderReport(models.Model):
_inherit = "report.pos.order"
employee_id = fields.Many2one(
'hr.employee', string='Employee', readonly=True)
def _select(self):
return super(PosOrderReport,... | 27.705882 | 471 |
460 | py | PYTHON | 15.0 | # -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
{
'name': 'Link Tracker',
'category': 'Marketing',
'description': """
Shorten URLs and use them to track clicks and UTMs
""",
'version': '1.1',
'depends': ['utm', 'mail'],
'data': [
'views... | 25.555556 | 460 |
5,354 | py | PYTHON | 15.0 | # -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from .common import MockLinkTracker
from odoo.tests import common
from odoo.exceptions import UserError
class TestLinkTracker(common.TransactionCase, MockLinkTracker):
def setUp(self):
super(TestLinkTracke... | 34.320513 | 5,354 |
3,744 | py | PYTHON | 15.0 | # -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
import werkzeug
from lxml import etree
from unittest.mock import patch
from odoo.tests import common
class MockLinkTracker(common.BaseCase):
def setUp(self):
super(MockLinkTracker, self).setUp()
... | 41.142857 | 3,744 |
6,973 | py | PYTHON | 15.0 | # -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
import re
from odoo.tests import common, tagged
from odoo.tools import TEXT_URL_REGEX
@tagged('-at_install', 'post_install')
class TestMailRenderMixin(common.TransactionCase):
@classmethod
def setUpClass(cls):... | 46.178808 | 6,973 |
3,853 | py | PYTHON | 15.0 | # -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
import re
import markupsafe
from html import unescape
from werkzeug import urls
from odoo import api, models, tools
class MailRenderMixin(models.AbstractModel):
_inherit = "mail.render.mixin"
# -------------... | 45.329412 | 3,853 |
747 | 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']
_description = 'UTM Campaign'
click_count = fields.Integer(string="Number of clicks generated by the campaign", ... | 35.571429 | 747 |
12,140 | py | PYTHON | 15.0 | # -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
import random
import requests
import string
from lxml import html
from werkzeug import urls
from odoo import tools, models, fields, api, _
from odoo.exceptions import UserError
from odoo.osv import expression
URL_MAX_... | 38.417722 | 12,140 |
740 | 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 LinkTracker(http.Controller):
@http.route('/r/<string:code>', type='http', auth='public', website=True)
def full_url_redirect(self, code, **post):
... | 38.947368 | 740 |
671 | py | PYTHON | 15.0 | # -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
{
'name': 'Product Availability Notifications',
'category': 'Website/Website',
'summary': 'Bridge module for Website sale comparison and wishlist',
'description': """
It allows for comparing products from... | 26.84 | 671 |
742 | py | PYTHON | 15.0 | # -*- coding: utf-8 -*-
{
'name': "Hr Recruitment Interview Forms",
'version': '1.0',
'category': 'Human Resources',
'summary': 'Surveys',
'description': """
Use interview forms during recruitment process.
This module is integrated with the survey module
to allow you to defin... | 29.68 | 742 |
3,004 | 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 TestRecruitmentSurvey(common.SingleTransactionCase):
@classmethod
def setUpClass(cls):
super(TestRecruitmentSurvey, cls).setUpClass()
# Create some sa... | 42.914286 | 3,004 |
1,043 | py | PYTHON | 15.0 | # Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo import fields, models, _
class Job(models.Model):
_inherit = "hr.job"
survey_id = fields.Many2one(
'survey.survey', "Interview Form",
help="Choose an interview form for this job position and you will be able... | 32.59375 | 1,043 |
2,032 | py | PYTHON | 15.0 | # Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo import api, fields, models, _
from odoo.tools.misc import clean_context
class SurveyInvite(models.TransientModel):
_inherit = "survey.invite"
applicant_id = fields.Many2one('hr.applicant', string='Applicant')
def actio... | 42.333333 | 2,032 |
1,527 | py | PYTHON | 15.0 | # Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo import fields, models, _
from odoo.exceptions import UserError
class Applicant(models.Model):
_inherit = "hr.applicant"
survey_id = fields.Many2one('survey.survey', related='job_id.survey_id', string="Survey", readonly=True... | 44.911765 | 1,527 |
251 | py | PYTHON | 15.0 | # -*- coding: utf-8 -*-
{
'name': "Sale Mrp Margin",
'category': 'Sales/Sales',
'version': '0.1',
'description': 'Handle BoM prices to compute sale margin.',
'depends': ['sale_mrp', 'sale_stock_margin'],
'license': 'LGPL-3',
}
| 27.888889 | 251 |
2,053 | py | PYTHON | 15.0 | # -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo.addons.sale_mrp.tests import test_sale_mrp_flow
from odoo.tests import common, Form
@common.tagged('post_install', '-at_install')
class TestSaleMrpFlow(test_sale_mrp_flow.TestSaleMrpFlow):
def test_kit_c... | 39.25 | 2,041 |
624 | py | PYTHON | 15.0 | # -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
{
'name': "Free Delivery with Coupon on eCommerce",
'summary': """Allows to offer free shippings in coupon reward on eCommerce""",
'description': """Allows to offer free shippings in coupon reward on eCommerce... | 36.705882 | 624 |
2,446 | py | PYTHON | 15.0 | # -*- coding: utf-8 -*-
from odoo import http
from odoo.addons.website_sale_delivery.controllers.main import WebsiteSaleDelivery
from odoo.http import request
class WebsiteSaleCouponDelivery(WebsiteSaleDelivery):
@http.route()
def update_eshop_carrier(self, **post):
Monetary = request.env['ir.qweb.fi... | 48.92 | 2,446 |
784 | py | PYTHON | 15.0 | # -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
{
'name': 'Customer References',
'category': 'Website/Website',
'summary': 'Publish your customer references',
'version': '1.0',
'description': """
Publish your customers as business references on you... | 28 | 784 |
502 | 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.857143 | 502 |
1,274 | 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 Partner(models.Model):
_inherit = 'res.partner'
website_tag_ids = fields.Many2many('res.partner.tag', 'res_partner_res_partner_tag_rel', 'partner_id', 'tag_id', stri... | 37.470588 | 1,274 |
6,664 | 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 http
from odoo.addons.http_routing.models.ir_http import unslug, slug
from odoo.addons.website.models.ir_http import sitemap_qs2dom
from odoo.tools.translate import _
from odoo.http... | 43.842105 | 6,664 |
957 | py | PYTHON | 15.0 | # -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
{
'name': "HR Attendance Holidays",
'summary': """Attendance Holidays""",
'category': 'Human Resources',
'description': """
Convert employee's extra hours to leave allocations.
""",
'version': '1.0... | 30.870968 | 957 |
10,309 | py | PYTHON | 15.0 | # Part of Odoo. See LICENSE file for full copyright and licensing details.
from datetime import datetime
from odoo.tests import new_test_user
from odoo.tests.common import TransactionCase, tagged
from odoo.exceptions import AccessError, ValidationError
import time
@tagged('post_install', '-at_install', 'holidays_at... | 44.051282 | 10,308 |
5,196 | 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 timedelta
from odoo import api, fields, models, _
from odoo.exceptions import ValidationError
from odoo.tools import float_round
class HRLeave(models.Model):
... | 45.182609 | 5,196 |
1,160 | 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'
@api.model
def _check_extra_hours_time_off(self):
extra_hours_time_off_type = self.env.ref('hr_holidays_attenda... | 42.962963 | 1,160 |
4,163 | 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
from odoo.tools import float_round
from odoo.osv import expression
class HolidaysAllocation(models.Model):
_inherit = 'hr.leave.al... | 48.976471 | 4,163 |
1,104 | 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 ResUsers(models.Model):
_inherit = 'res.users'
request_overtime = fields.Boolean(compute='_compute_request_overtime')
@property
def SELF_READABLE_FIELDS(self... | 34.5 | 1,104 |
1,925 | 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 HRLeaveType(models.Model):
_inherit = 'hr.leave.type'
hr_attendance_overtime = fields.Boolean(compute='_compute_hr_attendance_overtime')
overtime_deductible = fie... | 46.95122 | 1,925 |
868 | py | PYTHON | 15.0 | # -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
{
'name': "India Purchase and Warehouse Management",
'icon': '/l10n_in/static/description/icon.png',
'summary': """
Define default purchase journal on the warehouse""",
'description': """
... | 28.933333 | 868 |
596 | 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_... | 33.111111 | 596 |
296 | 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_purchase_journal_id = fields.Many2one('account.journal', string="Purchase Journal")
| 29.6 | 296 |
580 | 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 PurchaseOrder(models.Model):
_inherit = "purchase.order"
@api.onchange('company_id', 'picking_type_id')
def l10n_in_onchange_company_id(self):
if self.pic... | 38.666667 | 580 |
473 | py | PYTHON | 15.0 | # -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
{
'name': "Sale Coupon Delivery",
'summary': """Allows to offer free shippings in coupon reward""",
'description': """Integrate coupon mechanism with shipping costs.""",
'category': 'Sales/Sales',
'ver... | 29.5625 | 473 |
11,043 | 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.tests import Form, tagged
@tagged('post_install', '-at_install')
class TestSaleCouponProgramRules(TestSaleCouponCommon):
@classmethod... | 43.305882 | 11,043 |
3,428 | py | PYTHON | 15.0 | # -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo import models, _
class SaleOrder(models.Model):
_inherit = "sale.order"
def _get_no_effect_on_threshold_lines(self):
self.ensure_one()
# Do not count shipping and free shipping
... | 52.738462 | 3,428 |
697 | 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 CouponReward(models.Model):
_inherit = 'coupon.reward'
_description = "Coupon Reward"
reward_type = fields.Selection(selection_add=[('free_shipping', 'Free Shipping... | 36.684211 | 697 |
605 | py | PYTHON | 15.0 | # -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo import models, _
class Coupon(models.Model):
_inherit = "coupon.coupon"
def _check_coupon_code(self, order_date, partner_id, **kwargs):
order = kwargs.get('order', False)
if order an... | 40.333333 | 605 |
1,091 | py | PYTHON | 15.0 | # -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo import models, _, api
class CouponProgram(models.Model):
_inherit = "coupon.program"
def _filter_not_ordered_reward_programs(self, order):
"""
Returns the programs when the reward is... | 45.458333 | 1,091 |
698 | py | PYTHON | 15.0 | # -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
{
'name': 'Generic - Accounting',
'version': '1.1',
'category': 'Accounting/Localizations/Account Charts',
'description': """
This is the base module to manage the generic accounting chart in Odoo.
======... | 29.083333 | 698 |
1,246 | py | PYTHON | 15.0 | # -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
# Copyright (C) 2015 Willow IT Pty Ltd (<http://www.willowit.com.au>).
{
'name': 'Australian - Accounting',
'version': '1.1',
'category': 'Accounting/Localizations/Account Charts',
'description': """
Aus... | 31.948718 | 1,246 |
786 | py | PYTHON | 15.0 | # -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
{
"name": "Website Jitsi",
'category': 'Hidden',
'version': '1.0',
"summary": "Create Jitsi room on website.",
'website': 'https://www.odoo.com/app/events',
"description": "Create Jitsi room on w... | 27.103448 | 786 |
2,682 | py | PYTHON | 15.0 | # -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from uuid import uuid4
from odoo import api, fields, models
class ChatRoom(models.Model):
""" Store all useful information to manage chat room (currently limited
to Jitsi). This model embeds all information ab... | 43.967213 | 2,682 |
3,914 | py | PYTHON | 15.0 | # -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
import re
from odoo import api, fields, models
from odoo.tools import remove_accents
class ChatRoomMixin(models.AbstractModel):
"""Add the chat room configuration (`chat.room`) on the needed models.
The chat r... | 50.831169 | 3,914 |
503 | 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'
jitsi_server_domain = fields.Char(
'Jitsi Server Domain', default='meet.jit.si', config_... | 41.916667 | 503 |
2,142 | py | PYTHON | 15.0 | # -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from werkzeug.exceptions import NotFound
from odoo import http
from odoo.http import request
class WebsiteJitsiController(http.Controller):
@http.route(["/jitsi/update_status"], type="json", auth="public")
de... | 36.305085 | 2,142 |
665 | py | PYTHON | 15.0 | # -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
{
'name': 'Associations Management',
'version': '0.1',
'category': 'Marketing',
'description': """
This module is to configure modules related to an association.
=========================================... | 30.227273 | 665 |
397 | py | PYTHON | 15.0 | # -*- coding: utf-8 -*-
{
'name': 'Import/Export invoices with UBL (BIS3)',
'description': '''
Support for Export/Import in UBL format (BIS3).
''',
'version': '1.0',
'category': 'Accounting/Accounting',
'depends': ['account_edi_ubl'],
'data': [
'data/bis3_templates.xml',
],
... | 24.8125 | 397 |
8,062 | py | PYTHON | 15.0 | # -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo import models
from odoo.exceptions import UserError
from odoo.tests.common import Form
COUNTRY_EAS = {
'HU': 9910,
'AD': 9922,
'AL': 9923,
'BA': 9924,
'BE': 9925,
'BG': 9926,
'CH'... | 39.326829 | 8,062 |
5,183 | py | PYTHON | 15.0 | # -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
{
'name': 'Argentina - Accounting',
'icon': '/base/static/img/country_flags/ar.png',
'version': "3.5",
'description': """
Functional
----------
This module add accounting features for the Argentinean loca... | 39.519084 | 5,177 |
1,445 | py | PYTHON | 15.0 | # -*- coding: utf-8 -*-
import logging
from odoo import api, models
_logger = logging.getLogger(__name__)
class AccountChartTemplate(models.Model):
_inherit = "account.chart.template"
@api.model
def _get_demo_data(self):
ref = self.env.ref
# Do not load generic demo data on these compa... | 33.604651 | 1,445 |
37,997 | py | PYTHON | 15.0 | # Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo import fields
from odoo.tests.common import Form, tagged
from odoo.addons.account.tests.common import AccountTestInvoicingCommon
import random
import logging
import time
_logger = logging.getLogger(__name__)
@tagged('external_l10n',... | 50.862115 | 37,994 |
4,787 | py | PYTHON | 15.0 | # Part of Odoo. See LICENSE file for full copyright and licensing details.
from . import common
from odoo.tests import tagged
@tagged('post_install_l10n', '-at_install', 'post_install')
class TestManual(common.TestAr):
@classmethod
def setUpClass(cls):
super(TestManual, cls).setUpClass()
cls.... | 48.323232 | 4,784 |
257 | py | PYTHON | 15.0 | # Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo import models, fields
class L10nLatamIdentificationType(models.Model):
_inherit = "l10n_latam.identification.type"
l10n_ar_afip_code = fields.Char("AFIP Code")
| 28.555556 | 257 |
22,650 | py | PYTHON | 15.0 | # Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo import models, fields, api, _
from odoo.exceptions import UserError, RedirectWarning, ValidationError
from dateutil.relativedelta import relativedelta
import logging
_logger = logging.getLogger(__name__)
class AccountMove(models.Mode... | 63.802817 | 22,650 |
912 | py | PYTHON | 15.0 | # Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo import fields, models
class ResCountry(models.Model):
_inherit = 'res.country'
l10n_ar_afip_code = fields.Char('AFIP Code', size=3, help='This code will be used on electronic invoice')
l10n_ar_natural_vat = fields.Char... | 48 | 912 |
7,061 | py | PYTHON | 15.0 | # Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo import fields, models, api, _
from odoo.exceptions import ValidationError, RedirectWarning
class AccountJournal(models.Model):
_inherit = "account.journal"
l10n_ar_afip_pos_system = fields.Selection(
selection='_ge... | 49.725352 | 7,061 |
2,997 | py | PYTHON | 15.0 | from odoo import models, api, fields, _
from odoo.exceptions import UserError
class L10nLatamDocumentType(models.Model):
_inherit = 'l10n_latam.document.type'
l10n_ar_letter = fields.Selection(
selection='_get_l10n_ar_letters',
string='Letters',
help='Letters defined by the AFIP that... | 39.434211 | 2,997 |
1,360 | py | PYTHON | 15.0 | # Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo import models
class AccountMoveLine(models.Model):
_inherit = 'account.move.line'
def _l10n_ar_prices_and_taxes(self):
self.ensure_one()
invoice = self.move_id
included_taxes = self.tax_ids.filtered(... | 45.333333 | 1,360 |
1,142 | py | PYTHON | 15.0 | # Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo import fields, models, api
class AccountTaxGroup(models.Model):
_inherit = 'account.tax.group'
# values from http://www.afip.gob.ar/fe/documentos/otros_Tributos.xlsx
l10n_ar_tribute_afip_code = fields.Selection([
... | 35.6875 | 1,142 |
416 | py | PYTHON | 15.0 | # Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo import fields, models
class AccountFiscalPositionTemplate(models.Model):
_inherit = 'account.fiscal.position.template'
l10n_ar_afip_responsibility_type_ids = fields.Many2many(
'l10n_ar.afip.responsibility.type', 'l1... | 37.818182 | 416 |
1,675 | py | PYTHON | 15.0 | # Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo import models, api, _
from odoo.exceptions import ValidationError
import logging
_logger = logging.getLogger(__name__)
try:
from stdnum.ar.cbu import validate as validate_cbu
except ImportError:
import stdnum
_logger.warn... | 34.183673 | 1,675 |
2,456 | py | PYTHON | 15.0 | # Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo import fields, models, api, _
from odoo.exceptions import ValidationError
class ResCompany(models.Model):
_inherit = "res.company"
l10n_ar_gross_income_number = fields.Char(
related='partner_id.l10n_ar_gross_income_n... | 55.818182 | 2,456 |
284 | py | PYTHON | 15.0 | # Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo import fields, models
class ResCurrency(models.Model):
_inherit = "res.currency"
l10n_ar_afip_code = fields.Char('AFIP Code', size=4, help='This code will be used on electronic invoice')
| 31.555556 | 284 |
263 | py | PYTHON | 15.0 | # Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo import fields, models
class Uom(models.Model):
_inherit = 'uom.uom'
l10n_ar_afip_code = fields.Char('AFIP Code', help='This code will be used on electronic invoice')
| 29.222222 | 263 |
3,544 | py | PYTHON | 15.0 | # Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo import models, api, _
from odoo.exceptions import UserError
from odoo.http import request
class AccountChartTemplate(models.Model):
_inherit = 'account.chart.template'
def _get_fp_vals(self, company, position):
res... | 47.891892 | 3,544 |
602 | py | PYTHON | 15.0 | # Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo import models, fields
class L10nArAfipResponsibilityType(models.Model):
_name = 'l10n_ar.afip.responsibility.type'
_description = 'AFIP Responsibility Type'
_order = 'sequence'
name = fields.Char(required=True, ind... | 33.444444 | 602 |
2,318 | py | PYTHON | 15.0 | # Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo import fields, models, api, _
class AccountFiscalPosition(models.Model):
_inherit = 'account.fiscal.position'
l10n_ar_afip_responsibility_type_ids = fields.Many2many(
'l10n_ar.afip.responsibility.type', 'l10n_ar_afi... | 49.319149 | 2,318 |
6,558 | py | PYTHON | 15.0 | # Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo import fields, models, api, _
from odoo.exceptions import UserError, ValidationError
import stdnum.ar
import re
import logging
_logger = logging.getLogger(__name__)
class ResPartner(models.Model):
_inherit = 'res.partner'
... | 51.234375 | 6,558 |
705 | py | PYTHON | 15.0 | # Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo import models, fields
class AccountInvoiceReport(models.Model):
_inherit = 'account.invoice.report'
l10n_ar_state_id = fields.Many2one('res.country.state', 'State', readonly=True)
date = fields.Date(readonly=True, strin... | 33.571429 | 705 |
451 | py | PYTHON | 15.0 | # -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
{
"name": "Fetchmail Outlook",
"version": "1.0",
"category": "Hidden",
"description": "OAuth authentication for incoming Outlook mail server",
"depends": [
"microsoft_outlook",
"fetchm... | 25.055556 | 451 |
2,186 | py | PYTHON | 15.0 | # -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
import time
from unittest.mock import ANY, Mock, patch
from odoo.exceptions import UserError
from odoo.tests.common import TransactionCase
class TestFetchmailOutlook(TransactionCase):
@patch('odoo.addons.fetchma... | 37.050847 | 2,186 |
2,273 | 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.exceptions import UserError
class FetchmailServer(models.Model):
"""Add the Outlook OAuth authentication on the incoming mail servers."""
_name = 'fetchmail.server'
... | 39.189655 | 2,273 |
874 | py | PYTHON | 15.0 | {
"name": "Malaysia - Accounting",
"author": "Odoo PS",
"version": "1.0",
"category": "Accounting/Localizations/Account Charts",
"description": """
This is the base module to manage the accounting chart for Malaysia in Odoo.
===========================================================================... | 31.214286 | 874 |
926 | py | PYTHON | 15.0 | # -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
{
'name': 'Portal Rating',
'category': 'Hidden',
'version': '1.0',
'description': """
Bridge module adding rating capabilities on portal. It includes notably
inclusion of rating directly within the custom... | 29.870968 | 926 |
373 | py | PYTHON | 15.0 | # -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo import models
class IrHttp(models.AbstractModel):
_inherit = 'ir.http'
@classmethod
def _get_translation_frontend_modules_name(cls):
mods = super(IrHttp, cls)._get_translation_frontend_mo... | 28.692308 | 373 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.