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
2,818
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.http_routing.models.ir_http import slug class EventEvent(models.Model): _inherit = "event.event" # sponsors sponsor_ids = fields.One2many('event.spo...
44.730159
2,818
338
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): _inherit = "website.event.menu" menu_type = fields.Selection( selection_add=[('exhibitor', 'Exhibitors Menus')], ondelete={'exhibi...
28.166667
338
11,175
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from datetime import datetime from pytz import timezone, utc from odoo import api, fields, models, _ from odoo.addons.http_routing.models.ir_http import slug from odoo.addons.resource.models.resource import float_to_tim...
47.151899
11,175
729
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 SponsorType(models.Model): _name = "event.sponsor.type" _description = 'Event Sponsor Level' _order = "sequence" def _default_sequence(self): return (self....
36.45
729
11,008
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 OrderedDict from random import randint, sample from werkzeug.exceptions import NotFound, Forbidden from odoo import exceptions, http from odoo.addons.website_event.co...
45.487603
11,008
1,018
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from babel.dates import format_datetime from odoo import _ from odoo.http import request from odoo.addons.website_event.controllers import main class WebsiteEventController(main.WebsiteEventController): def _prepa...
40.72
1,018
2,779
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. { 'name': 'Sales', 'version': '1.2', 'category': 'Sales/Sales', 'summary': 'Sales internal machinery', 'description': """ This module contains all the common features of Sales Management and eCommerc...
35.628205
2,779
4,335
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. import logging from odoo import models from odoo.tools import populate, groupby _logger = logging.getLogger(__name__) class SaleOrder(models.Model): _inherit = "sale.order" _populate_sizes = {"small": 100, "me...
45.631579
4,335
507
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 populate class ProductProduct(models.Model): _inherit = "product.product" def _populate_get_product_factories(self): """Populate the invoice_policy of pro...
36.214286
507
1,493
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 populate class ProductAttribute(models.Model): _inherit = "product.attribute" def _populate_factories(self): return super()._populate_factories() + [ ...
35.547619
1,493
16,611
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from .common import TestSaleCommon from odoo.tests import tagged from odoo.tests.common import Form @tagged('post_install', '-at_install') class TestSaleOrder(TestSaleCommon): @classmethod def setUpClass(cls, ...
48.428571
16,611
1,216
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from odoo.addons.base.tests.common import HttpCaseWithUserPortal from odoo.tests import tagged @tagged('post_install', '-at_install') class TestSaleSignature(HttpCaseWithUserPortal): def test_01_portal_sale_signatu...
39.225806
1,216
8,366
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from odoo.addons.sale.tests.common import TestSaleCommon from odoo.exceptions import AccessError, UserError, ValidationError from odoo.tests import HttpCase, tagged @tagged('post_install', '-at_install') class TestAcces...
46.477778
8,366
9,226
py
PYTHON
15.0
# Part of Odoo. See LICENSE file for full copyright and licensing details. from odoo.fields import Command from odoo.tests import tagged from odoo.tools import mute_logger from odoo.addons.payment.tests.common import PaymentCommon from odoo.addons.payment.tests.http_common import PaymentHttpCommon @tagged('-at_inst...
45.22549
9,226
4,782
py
PYTHON
15.0
# -*- coding: utf-8 -*- from freezegun import freeze_time from odoo import Command from odoo.addons.account.tests.common import AccountTestInvoicingCommon from odoo.tests import tagged from odoo.exceptions import UserError @freeze_time('2022-01-01') @tagged('post_install', '-at_install') class TestAccruedSaleOrders(A...
49.298969
4,782
18,140
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from freezegun import freeze_time from odoo.addons.sale.tests.common import TestSaleCommon from odoo.tests import Form, tagged @tagged('post_install', '-at_install') class TestReInvoice(TestSaleCommon): @classmetho...
59.867987
18,140
1,130
py
PYTHON
15.0
# -*- coding: utf-8 -*- from odoo.addons.account.tests.test_invoice_tax_totals import TestTaxTotals from odoo.tests import tagged @tagged('post_install', '-at_install') class SaleTestTaxTotals(TestTaxTotals): @classmethod def setUpClass(cls, chart_template_ref=None): super().setUpClass(chart_template...
32.285714
1,130
9,107
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from odoo.addons.account.tests.common import AccountTestInvoicingCommon from odoo.addons.base.tests.common import TransactionCase class TestSaleCommonBase(TransactionCase): ''' Setup with sale test configuration. ''...
45.763819
9,107
31,522
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from .common import TestSaleCommon from odoo.tests import Form, tagged @tagged('post_install', '-at_install') class TestSaleToInvoice(TestSaleCommon): @classmethod def setUpClass(cls, chart_template_ref=None):...
81.242268
31,522
3,298
py
PYTHON
15.0
# -*- coding: utf-8 -*- from odoo.addons.sale.tests.common import TestSaleCommonBase class TestSaleFlow(TestSaleCommonBase): ''' Test running at-install to test flows independently to other modules, e.g. 'sale_stock'. ''' @classmethod def setUpClass(cls): super().setUpClass() user = cls....
40.219512
3,298
23,008
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from odoo.tests import Form from odoo.tests.common import TransactionCase class TestOnchangeProductId(TransactionCase): """Test that when an included tax is mapped by a fiscal position, the included tax must be ...
42.765799
23,008
43,824
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from datetime import timedelta from freezegun import freeze_time from odoo import fields from odoo.exceptions import UserError, AccessError from odoo.tests import tagged, Form from odoo.tools import float_compare from ....
46.720682
43,824
21,047
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from odoo import fields from odoo.addons.product.tests.test_product_attribute_value_config import TestProductAttributeValueCommon from odoo.tests import tagged class TestSaleProductAttributeValueCommon(TestProductAttri...
51.209246
21,047
34,551
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from odoo.tools import float_is_zero from .common import TestSaleCommon from odoo.tests import Form, tagged from odoo import Command, fields @tagged('-at_install', 'post_install') class TestSaleToInvoice(TestSaleCommon...
52.669207
34,551
3,062
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, models class PaymentLinkWizard(models.TransientModel): _inherit = 'payment.link.wizard' _description = 'Generate Sales Payment Link' @api.model def defa...
51.898305
3,062
9,810
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. import time from odoo import api, fields, models, _ from odoo.exceptions import UserError class SaleAdvancePaymentInv(models.TransientModel): _name = "sale.advance.payment.inv" _description = "Sales Advance Pa...
49.05
9,810
623
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from odoo import models class MailComposeMessage(models.TransientModel): _inherit = 'mail.compose.message' def _action_send_mail(self, auto_commit=False): if self.model == 'sale.order': sel...
41.533333
623
545
py
PYTHON
15.0
# -*- coding: utf-8 -*- from odoo import models class AccountPaymentRegister(models.TransientModel): _inherit = 'account.payment.register' def _create_payment_vals_from_wizard(self): vals = super()._create_payment_vals_from_wizard() # Make sure the account move linked to generated payment ...
36.333333
545
807
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 SaleOrderCancel(models.TransientModel): _name = 'sale.order.cancel' _description = "Sales Order Cancel" order_id = fields.Many2one('sale.order', string='Sale Orde...
40.35
807
1,798
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 PaymentWizard(models.TransientModel): """ Override for the sale quotation onboarding panel. """ _inherit = 'payment.acquirer.onboarding.wizard' _name = 'sale.paym...
42.809524
1,798
6,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 UserError class CrmTeam(models.Model): _inherit = 'crm.team' use_quotations = fields.Boolean(string='Quotations', help="Check this box if you...
42.961538
6,702
5,784
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from odoo import api, fields, models, _ from odoo.exceptions import UserError class AccountMove(models.Model): _name = 'account.move' _inherit = ['account.move', 'utm.mixin'] @api.model def _get_invoice...
43.818182
5,784
9,867
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. import logging from datetime import datetime from dateutil import relativedelta from odoo import api, fields, models, _, SUPERUSER_ID _logger = logging.getLogger(__name__) class PaymentTransaction(models.Model): ...
48.605911
9,867
56,078
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 itertools import groupby import json from odoo import api, fields, models, SUPERUSER_ID, _ from odoo.exceptions import AccessError, UserError, ValidationError from odoo.osv ...
49.980392
56,078
11,779
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.exceptions import UserError from odoo.tools import float_compare, float_is_zero class AccountMoveLine(models.Model): _inherit = 'account.move.line' sale_line_ids = ...
55.561321
11,779
48,436
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from datetime import timedelta from odoo import api, fields, models, _ from odoo.exceptions import UserError from odoo.tools.misc import get_lang from odoo.osv import expression from odoo.tools import float_is_zero, flo...
54.668172
48,436
15,426
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. import json import logging from odoo import api, fields, models, _ from odoo.addons.base.models.res_partner import WARNING_MESSAGE, WARNING_HELP from odoo.exceptions import ValidationError from odoo.tools.float_utils im...
49.76129
15,426
3,659
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from datetime import timedelta, time from odoo import fields, models, _, api from odoo.tools.float_utils import float_round class ProductProduct(models.Model): _inherit = 'product.product' sales_count = fields....
42.546512
3,659
606
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 PaymentAcquirer(models.Model): _inherit = 'payment.acquirer' so_reference_type = fields.Selection(string='Communication', selection=[ ('so_name', 'Base...
40.4
606
6,588
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. import base64 from odoo import api, fields, models, _ from odoo.modules.module import get_module_resource class ResCompany(models.Model): _inherit = "res.company" portal_confirmation_sign = fields.Boolean(stri...
48.8
6,588
5,039
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_auto_done_setting = fields.Boolean("Lock Confirmed Sales", implied_group='sale.group_...
53.606383
5,039
3,385
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from odoo import fields, models class UtmCampaign(models.Model): _inherit = 'utm.campaign' _description = 'UTM Campaign' quotation_count = fields.Integer('Quotation Count', groups='sales_team.group_sale_sal...
50.522388
3,385
647
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 AccountAnalyticLine(models.Model): _inherit = "account.analytic.line" def _default_sale_line_domain(self): """ This is only used for delivered quantity of SO line ...
40.4375
647
2,287
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from odoo import fields, models from odoo.addons.base.models.res_partner import WARNING_MESSAGE, WARNING_HELP class ResPartner(models.Model): _inherit = 'res.partner' sale_order_count = fields.Integer(compute=...
44.843137
2,287
393
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 AccountInvoiceReport(models.Model): _inherit = 'account.invoice.report' team_id = fields.Many2one('crm.team', string='Sales Team') def _select(self): return s...
30.230769
393
3,997
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 PosSaleReport(models.Model): _name = "report.all.channels.sales" _description = "Sales by Channel (All in One)" _auto = False name = fields.Char('Order...
45.942529
3,997
9,040
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 import api, fields, models class SaleReport(models.Model): _name = "sale.report" _description = "Sales Analysis Report" _auto = False _rec_name = 'date' _order = 'da...
49.130435
9,040
18,372
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. import binascii from odoo import fields, http, SUPERUSER_ID, _ from odoo.exceptions import AccessError, MissingError, ValidationError from odoo.fields import Command from odoo.http import request from odoo.addons.payme...
45.251232
18,372
922
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 OnboardingController(http.Controller): @http.route('/sales/sale_quotation_onboarding_panel', auth='user', type='json') def sale_quotation_onboarding(se...
35.461538
922
2,141
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 VariantController(http.Controller): @http.route(['/sale/get_combination_info'], type='json', auth="user", methods=['POST']) def get_combination_info(sel...
61.171429
2,141
1,275
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. # Copyright (c) 2009-2016 Salvatore Josué Trimarchi Pinto <trimarchi@bacgroup.net> # This module provides a minimal Honduran chart of accounts that can be use # to build upon a more complex one. It also includes a char...
36.371429
1,273
974
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. { 'name': 'Germany - Accounting', 'author': 'openbig.org', 'version': '1.1', 'website': 'http://www.openbig.org', 'category': 'Accounting/Localizations', 'description': """ Dieses Modul beinhalte...
27.828571
974
2,026
py
PYTHON
15.0
# Part of Odoo. See LICENSE file for full copyright and licensing details from odoo import api, SUPERUSER_ID def migrate(cr, version): # The tax report line 68 has been removed as it does not appear in tax report anymore. # But, it was referenced in the account.sales.report # So, we update amls of this li...
38.226415
2,026
2,667
py
PYTHON
15.0
from odoo import models, fields, _ from odoo.tools import format_date class AccountMove(models.Model): _inherit = 'account.move' 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_addr...
49.388889
2,667
535
py
PYTHON
15.0
from odoo import models, fields, api, _ class AccountAnalyticLine(models.Model): _inherit = 'account.analytic.line' l10n_de_template_data = fields.Binary(compute='_compute_l10n_de_template_data') l10n_de_document_title = fields.Char(compute='_compute_l10n_de_document_title') def _compute_l10n_de_temp...
33.4375
535
306
py
PYTHON
15.0
from odoo import models class IrActionsReport(models.Model): _inherit = 'ir.actions.report' def _get_rendering_context(self, docids, data): data = super()._get_rendering_context(docids, data) data['din_header_spacing'] = self.get_paperformat().header_spacing return data
30.6
306
1,351
py
PYTHON
15.0
from odoo import models, fields, _ from odoo.tools import format_date class BaseDocumentLayout(models.TransientModel): _inherit = 'base.document.layout' street = fields.Char(related='company_id.street', readonly=True) street2 = fields.Char(related='company_id.street2', readonly=True) zip = fields.Cha...
50.037037
1,351
446
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 ResCompany(models.Model): _inherit = 'res.company' l10n_de_stnr = fields.Char(string="St.-Nr.", help="Steuernummer. Scheme: ??FF0BBBUUUUP, e.g.: 2893081508152 https://de.w...
40.545455
446
3,023
py
PYTHON
15.0
from odoo import api, fields, models from odoo.exceptions import UserError from odoo.tools.translate import _ class AccountTaxTemplate(models.Model): _inherit = 'account.tax.template' l10n_de_datev_code = fields.Char(size=4) def _get_tax_vals(self, company, tax_template_to_tax): vals = super(Acco...
53.035088
3,023
1,065
py
PYTHON
15.0
# -*- coding: utf-8 -*- from odoo import api, models class AccountChartTemplate(models.Model): _inherit = 'account.chart.template' @api.model def _prepare_transfer_account_for_direct_creation(self, name, company): res = super(AccountChartTemplate, self)._prepare_transfer_account_for_direct_creati...
46.304348
1,065
1,131
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. { 'name': 'Warehouse Management: Batch Transfer', 'version': '1.0', 'category': 'Inventory/Inventory', 'description': """ This module adds the batch transfer option in warehouse management ===============...
32.314286
1,131
25,504
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.exceptions import UserError from odoo.tests import Form, tagged from odoo.tests.common import TransactionCase class TestBatchPicking(TransactionCase): def setUp(...
52.477366
25,504
21,435
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from odoo.exceptions import UserError from odoo.tests import Form from odoo.tests.common import TransactionCase class TestBatchPicking(TransactionCase): @classmethod def setUpClass(cls): """ Create 3 s...
45.899358
21,435
1,336
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.exceptions import UserError class StockPickingToBatch(models.TransientModel): _name = 'stock.picking.to.batch' _description = 'Batch Transfer Lines' batch_id = ...
43.096774
1,336
727
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from odoo import models class StockBackorderConfirmation(models.TransientModel): _inherit = 'stock.backorder.confirmation' def process(self): res = super().process() if self.env.context.get('pi...
36.35
727
1,100
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 ChooseDestinationLocation(models.TransientModel): _inherit = "stock.package.destination" def _compute_move_line_ids(self): destination_without_batch = self.env['stock...
44
1,100
2,965
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from odoo import fields, models, api, _ from odoo.exceptions import UserError class StockPickingToWave(models.TransientModel): _name = 'stock.add.to.wave' _description = 'Wave Transfer Lines' @api.model ...
42.971014
2,965
14,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.exceptions import UserError from odoo.osv.expression import AND from odoo.tools.float_utils import float_compare, float_is_zero, float_round class StockPickingBatch(mode...
48.354515
14,458
4,095
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 _, fields, models from odoo import Command from odoo.tools.float_utils import float_compare class StockMoveLine(models.Model): _inherit = "stock.move.line" ...
44.51087
4,095
469
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.osv import expression class StockMove(models.Model): _inherit = "stock.move" def _search_picking_for_assignation_domain(self): domain = super()._search_picking_for_ass...
33.5
469
3,317
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from odoo import _, api, fields, models class StockPickingType(models.Model): _inherit = "stock.picking.type" count_picking_batch = fields.Integer(compute='_compute_picking_count') count_picking_wave = fie...
37.269663
3,317
1,762
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. # Coded by: Alejandro Negrin anegrin@vauxoo.com, # Planified by: Alejandro Negrin, Humberto Arocha, Moises Lopez # Finance by: Vauxoo. # Audited by: Humberto Arocha (hbto@vauxoo.com) y Moises Lopez (moylop260...
32.036364
1,762
1,213
py
PYTHON
15.0
# coding: utf-8 from odoo import models, fields class AccountTaxTemplate(models.Model): _inherit = 'account.tax.template' l10n_mx_tax_type = fields.Selection( selection=[ ('Tasa', "Tasa"), ('Cuota', "Cuota"), ('Exento', "Exento"), ], string="Factor ...
31.921053
1,213
612
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 Bank(models.Model): _inherit = "res.bank" l10n_mx_edi_code = fields.Char( "ABM Code", help="Three-digit number assigned by the ABM to identify banking " "i...
29.047619
610
217
py
PYTHON
15.0
# -*- coding: utf-8 -*- from odoo import fields, models class ResConfigSettings(models.TransientModel): _inherit = 'res.config.settings' module_l10n_mx_edi = fields.Boolean('Mexican Electronic Invoicing')
24.111111
217
2,056
py
PYTHON
15.0
# coding: utf-8 # Copyright 2016 Vauxoo (https://www.vauxoo.com) <info@vauxoo.com> # License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). from odoo import models, api, _ class AccountChartTemplate(models.Model): _inherit = "account.chart.template" @api.model def generate_journals(self, acc_temp...
41.959184
2,056
2,101
py
PYTHON
15.0
# coding: utf-8 # Copyright 2016 Vauxoo (https://www.vauxoo.com) <info@vauxoo.com> # License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). import re from odoo import models, api, fields, _ class AccountJournal(models.Model): _inherit = 'account.journal' def _prepare_liquidity_account_vals(self, comp...
36.859649
2,101
7,664
py
PYTHON
15.0
# -*- coding: utf-8 -*- { 'name': 'Live Chat', 'version': '1.0', 'sequence': 210, 'summary': 'Chat with your website visitors', 'category': 'Website/Live Chat', 'complexity': 'easy', 'website': 'https://www.odoo.com/app/live-chat', 'description': """ Live Chat Support ===========...
45.892216
7,664
856
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. import odoo from odoo.tests import HttpCase @odoo.tests.tagged('-at_install', 'post_install') class TestImLivechatSupportPage(HttpCase): def test_load_modules(self): """Checks that all javascript modules loa...
45.052632
856
6,109
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from odoo.addons.im_livechat.tests.common import TestImLivechatCommon class TestGetMailChannel(TestImLivechatCommon): def test_get_mail_channel(self): """For a livechat with 5 available operators, we open 5...
59.31068
6,109
1,390
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 class TestImLivechatCommon(TransactionCase): @classmethod def setUpClass(cls): super().setUpClass() cls.operators = cls.env['res.users'].create([{ ...
28.958333
1,390
2,720
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.im_livechat.tests.common import TestImLivechatCommon class TestImLivechatReport(TestImLivechatCommon): @classmethod def setUpClass(cls): super().setUpCl...
49.454545
2,720
2,913
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 Digest(models.Model): _inherit = 'digest.digest' kpi_livechat_rating = fields.Boolean('% of Happiness') kpi_livechat_rating_value = fields.Float(digits=(16, 2), comput...
53.944444
2,913
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 ChannelPartner(models.Model): _inherit = 'mail.channel.partner' @api.autovacuum def _gc_unpin_livechat_sessions(self): """ Unpin livechat sessions with no activit...
36
828
1,110
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 Rating(models.Model): _inherit = "rating.rating" @api.depends('res_model', 'res_id') def _compute_res_name(self): for rating in self: # cannot change...
41.111111
1,110
315
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 ResUsersSettings(models.Model): _inherit = 'res.users.settings' is_discuss_sidebar_category_livechat_open = fields.Boolean("Is category livechat open", default=True)
31.5
315
15,551
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. import base64 import random import re from odoo import api, Command, fields, models, modules, _ class ImLivechatChannel(models.Model): """ Livechat Channel Define a communication channel, which can be acces...
53.256849
15,551
670
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 Users(models.Model): """ Update of res.users class - add a preference about username for livechat purpose """ _inherit = 'res.users' livechat_username...
31.904762
670
1,114
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from odoo import models class MailMessage(models.Model): _inherit = 'mail.message' def _message_format(self, fnames, format_reply=True): """Override to remove email_from and to return the livechat user...
53.047619
1,114
1,034
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from odoo import api, models, fields class Partners(models.Model): """Update of res.partner class to take into account the livechat username.""" _inherit = 'res.partner' user_livechat_username = fields.Cha...
38.296296
1,034
10,388
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 import html_escape class MailChannel(models.Model): """ Chat Session Reprensenting a conversation between users. It extends the base method fo...
51.425743
10,388
6,348
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 ImLivechatReportChannel(models.Model): """ Livechat Support Report on the Channels """ _name = "im_livechat.report.channel" _description = "Livechat Suppor...
63.48
6,348
2,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, tools class ImLivechatReportOperator(models.Model): """ Livechat Support Report on the Operator """ _name = "im_livechat.report.operator" _description = "Livechat Supp...
57.813953
2,486
8,468
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. import base64 from odoo import http,tools, _ from odoo.http import request from odoo.addons.base.models.assetsbundle import AssetsBundle class LivechatController(http.Controller): # Note: the `cors` attribute on ...
52.271605
8,468
1,253
py
PYTHON
15.0
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. { 'name': 'Saudi Arabia - E-invoicing', 'icon': '/l10n_sa/static/description/icon.png', 'version': '0.1', 'depends': [ 'account_edi_ubl_cii', 'account_debit_note', 'l10n_sa_invoice...
28.477273
1,253
11,703
py
PYTHON
15.0
# coding: utf-8 from datetime import datetime from odoo import Command from odoo.tests import tagged from odoo.addons.account_edi.tests.common import AccountEdiTestCommon @tagged('post_install_l10n', '-at_install', 'post_install') class TestSaEdiCommon(AccountEdiTestCommon): @classmethod def setUpClass(cls,...
47.710204
11,689
7,568
py
PYTHON
15.0
# Part of Odoo. See LICENSE file for full copyright and licensing details. from datetime import datetime from freezegun import freeze_time import logging from pytz import timezone from odoo.tests import tagged from odoo.tools import misc from .common import TestSaEdiCommon _logger = logging.getLogger(__name__) @ta...
61.032258
7,568
1,332
py
PYTHON
15.0
from odoo import fields, models, _, api from odoo.exceptions import UserError class RequestZATCAOtp(models.TransientModel): _name = 'l10n_sa_edi.otp.wizard' _description = 'Request ZATCA OTP' l10n_sa_renewal = fields.Boolean("PCSID Renewal", help="Used to decide wheth...
47.571429
1,332
514
py
PYTHON
15.0
# -*- coding: utf-8 -*- from odoo import models from odoo.tools.translate import _ from odoo.exceptions import UserError class AccountDebitNote(models.TransientModel): _inherit = 'account.debit.note' def create_debit(self): self.ensure_one() for move in self.move_ids: if move.jour...
34.266667
514
529
py
PYTHON
15.0
# -*- coding: utf-8 -*- from odoo import models from odoo.tools.translate import _ from odoo.exceptions import UserError class AccountMoveReversal(models.TransientModel): _inherit = 'account.move.reversal' def reverse_moves(self): self.ensure_one() for move in self.move_ids: if mo...
35.266667
529