size int64 0 304k | ext stringclasses 1
value | lang stringclasses 1
value | branch stringclasses 1
value | content stringlengths 0 304k | avg_line_length float64 0 238 | max_line_length int64 0 304k |
|---|---|---|---|---|---|---|
1,227 | py | PYTHON | 15.0 | # Copyright 2023 Tecnativa - Ernesto Tejeda
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from openupgradelib import openupgrade
@openupgrade.migrate()
def migrate(env, version):
mapping_function_record_data = {
(
"_get_and_send_voxel_report",
env.ref("edi_v... | 36.088235 | 1,227 |
9,614 | py | PYTHON | 15.0 | # Copyright 2019 Tecnativa - Ernesto Tejeda
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from datetime import date, datetime
from odoo.tests import TransactionCase
class TestVoxelAccountInvoice(TransactionCase):
@classmethod
def setUpClass(cls):
super(TestVoxelAccountInvoice, cls)... | 33.971731 | 9,614 |
2,252 | py | PYTHON | 15.0 | # Copyright 2019 Tecnativa - Ernesto Tejeda
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import fields, models
class AccountMove(models.Model):
_name = "account.move"
_inherit = ["account.move", "voxel.mixin"]
voxel_enabled = fields.Boolean(
compute="_compute_voxel_e... | 31.71831 | 2,252 |
313 | py | PYTHON | 15.0 | # Copyright 2019 Tecnativa - Ernesto Tejeda
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import fields, models
class Company(models.Model):
_inherit = "res.company"
voxel_invoice_login_id = fields.Many2one(
string="Invoice login", comodel_name="voxel.login"
)
| 26.083333 | 313 |
349 | py | PYTHON | 15.0 | # Copyright 2019 Tecnativa - Ernesto Tejeda
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import fields, models
class ResConfigSettings(models.TransientModel):
_inherit = "res.config.settings"
voxel_invoice_login_id = fields.Many2one(
related="company_id.voxel_invoice_log... | 29.083333 | 349 |
7,062 | py | PYTHON | 15.0 | # Copyright 2019 Tecnativa - Ernesto Tejeda
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from datetime import date, datetime
from operator import itemgetter
from odoo import api, fields, models
class ReportVoxelInvoice(models.AbstractModel):
_name = "report.edi_voxel_account_invoice_oca.templ... | 38.380435 | 7,062 |
663 | py | PYTHON | 15.0 | # Copyright 2018-2021 Akretion France (http://www.akretion.com)
# @author: Alexis de Lattre <alexis.delattre@akretion.com>
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
{
"name": "Account e-invoice Generate",
"version": "15.0.1.0.0",
"category": "Accounting & Finance",
"license": "AG... | 39 | 663 |
642 | py | PYTHON | 15.0 | # Copyright 2019 Onestein (<https://www.onestein.eu>)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from odoo.tests.common import TransactionCase
class TestEInvoiceGenerate(TransactionCase):
def test_config(self):
"""Test configuration of Electronic Invoices."""
conf = self.env... | 37.764706 | 642 |
1,294 | py | PYTHON | 15.0 | # Copyright 2018-2020 Akretion France
# @author: Alexis de Lattre <alexis.delattre@akretion.com>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import api, models
class AccountMove(models.Model):
_inherit = "account.move"
def get_payment_identifier(self):
"""This method is... | 34.972973 | 1,294 |
406 | py | PYTHON | 15.0 | # Copyright 2018-2021 Akretion (http://www.akretion.com)
# @author: Alexis de Lattre <alexis.delattre@akretion.com>
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from odoo import fields, models
class ResCompany(models.Model):
_inherit = "res.company"
xml_format_in_pdf_invoice = fields.Sel... | 31.230769 | 406 |
429 | py | PYTHON | 15.0 | # Copyright 2018-2021 Akretion (http://www.akretion.com)
# @author: Alexis de Lattre <alexis.delattre@akretion.com>
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from odoo import fields, models
class ResConfigSettings(models.TransientModel):
_inherit = "res.config.settings"
xml_format_in_... | 33 | 429 |
667 | py | PYTHON | 15.0 | # Copyright 2020 Creu Blanca
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl).
{
"name": "Edi Account",
"summary": """
Define EDI Configuration for Account Moves""",
"version": "15.0.1.0.1",
"license": "LGPL-3",
"author": "Creu Blanca,Odoo Community Association (OCA)",
"ma... | 30.318182 | 667 |
3,845 | py | PYTHON | 15.0 | # Copyright 2020 Creu Blanca
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl).
import logging
from odoo import fields
from odoo.tests.common import tagged
from odoo.addons.account.tests.common import AccountTestInvoicingCommon
from odoo.addons.component.core import Component
from odoo.addons.component.... | 36.971154 | 3,845 |
1,205 | py | PYTHON | 15.0 | # Copyright 2020 Creu Blanca
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl).
from odoo import fields, models
class AccountMove(models.Model):
_name = "account.move"
_inherit = ["account.move", "edi.exchange.consumer.mixin"]
disable_edi_auto = fields.Boolean(
help="When marked, ED... | 32.567568 | 1,205 |
1,550 | py | PYTHON | 15.0 | # Copyright 2020 ACSONE
# Copyright 2021 Camptocamp
# @author: Simone Orsi <simahawk@gmail.com>
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl).
{
"name": "EDI",
"summary": """
Define backends, exchange types, exchange records,
basic automation and views for handling EDI exchanges.
"... | 32.978723 | 1,550 |
356 | py | PYTHON | 15.0 | # Copyright 2020 ACSONE SA
# @author Simone Orsi <simahawk@gmail.com>
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl).
from odoo.addons.http_routing.models.ir_http import slugify
def normalize_string(a_string, sep="_"):
"""Normalize given string, replace dashes with given separator."""
return ... | 35.6 | 356 |
222 | py | PYTHON | 15.0 | # Copyright 2020 ACSONE
# @author: Simone Orsi <simahawk@gmail.com>
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl).
class EDIValidationError(Exception):
"""Thrown when a document validation fails."""
| 31.714286 | 222 |
643 | py | PYTHON | 15.0 | # Copyright 2022 Camptocamp SA (http://www.camptocamp.com)
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl).
import logging
from odoo import SUPERUSER_ID, api
_logger = logging.getLogger(__name__)
def migrate(cr, version):
if not version:
return
env = api.Environment(cr, SUPERUSER_ID... | 33.842105 | 643 |
2,842 | py | PYTHON | 15.0 | # Copyright 2020 ACSONE
# @author: Simone Orsi <simahawk@gmail.com>
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl).
import base64
from freezegun import freeze_time
from odoo import fields
from odoo.exceptions import UserError
from odoo.tools import mute_logger
from .common import EDIBackendCommonCom... | 34.240964 | 2,842 |
7,158 | py | PYTHON | 15.0 | # Copyright 2020 Creu Blanca
# @author: Enric Tobella
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl).
from odoo_test_helper import FakeModelLoader
from odoo.exceptions import AccessError
from odoo.tools import mute_logger
from .common import EDIBackendCommonTestCase
class TestEDIExchangeRecordSecur... | 38.902174 | 7,158 |
444 | py | PYTHON | 15.0 | # Copyright 2020 Creu Blanca
# @author: Enric Tobella
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl).
from odoo import fields, models
class EdiExchangeConsumerTest(models.Model):
_name = "edi.exchange.consumer.test"
_inherit = ["edi.exchange.consumer.mixin"]
_description = "Model used onl... | 27.75 | 444 |
5,172 | py | PYTHON | 15.0 | # Copyright 2020 ACSONE
# @author: Simone Orsi <simahawk@gmail.com>
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl).
from freezegun import freeze_time
from odoo import exceptions, fields
from odoo.tools import mute_logger
from odoo.addons.queue_job.delay import DelayableRecordset
from .common import ... | 39.181818 | 5,172 |
1,713 | py | PYTHON | 15.0 | # Copyright 2020 ACSONE
# @author: Simone Orsi <simahawk@gmail.com>
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl).
# import mock
# from freezegun import freeze_time
# from odoo import fields
# from odoo.exceptions import UserError
from .common import EDIBackendCommonComponentRegistryTestCase
from .f... | 33.588235 | 1,713 |
2,602 | py | PYTHON | 15.0 | # Copyright 2020 ACSONE
# @author: Simone Orsi <simahawk@gmail.com>
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl).
from odoo.addons.component.core import Component
from .common import EDIBackendCommonComponentRegistryTestCase
class EDIBackendTestCase(EDIBackendCommonComponentRegistryTestCase):
... | 36.647887 | 2,602 |
825 | py | PYTHON | 15.0 | # Copyright 2020 ACSONE
# @author: Simone Orsi <simahawk@gmail.com>
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl).
import psycopg2
from odoo.tools import mute_logger
from .common import EDIBackendCommonTestCase
class EDIBackendTypeTestCase(EDIBackendCommonTestCase):
def test_type_code(self):
... | 33 | 825 |
1,743 | py | PYTHON | 15.0 | # Copyright 2020 ACSONE
# @author: Simone Orsi <simahawk@gmail.com>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo.addons.queue_job.tests.common import JobMixin
from .common import EDIBackendCommonTestCase
class EDIBackendTestCase(EDIBackendCommonTestCase, JobMixin):
@classmethod
... | 38.733333 | 1,743 |
3,527 | py | PYTHON | 15.0 | # Copyright 2020 ACSONE
# @author: Simone Orsi <simahawk@gmail.com>
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl).
from odoo.addons.component.core import Component
class FakeComponentMixin(Component):
FAKED_COLLECTOR = []
# only for testing
_action = ""
def _fake_it(self):
... | 25.933824 | 3,527 |
3,404 | py | PYTHON | 15.0 | # Copyright 2020 ACSONE
# Copyright 2020 Creu Blanca
# @author: Simone Orsi <simahawk@gmail.com>
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl).
import os
from odoo.tests.common import TransactionCase, tagged
from odoo.addons.component.tests.common import (
TransactionComponentCase,
Transacti... | 31.813084 | 3,404 |
5,789 | py | PYTHON | 15.0 | # Copyright 2020 Creu Blanca
# @author: Enric Tobella
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl).
import os
import unittest
from lxml import etree
from odoo_test_helper import FakeModelLoader
from odoo.tests.common import Form
from .common import EDIBackendCommonTestCase
# This clashes w/ some... | 38.085526 | 5,789 |
4,035 | py | PYTHON | 15.0 | # Copyright 2020 ACSONE
# @author: Simone Orsi <simahawk@gmail.com>
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl).
import mock
from freezegun import freeze_time
from odoo import fields, tools
from odoo.exceptions import UserError
from .common import EDIBackendCommonComponentRegistryTestCase
from .fa... | 38.428571 | 4,035 |
3,061 | py | PYTHON | 15.0 | # Copyright 2020 ACSONE
# Copyright 2022 Camptocamp SA (https://www.camptocamp.com).
# @author: Simone Orsi <simahawk@gmail.com>
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl).
from freezegun import freeze_time
from .common import EDIBackendCommonTestCase
class EDIExchangeTypeTestCase(EDIBackendComm... | 33.271739 | 3,061 |
4,442 | py | PYTHON | 15.0 | # Copyright 2020 ACSONE
# @author: Simone Orsi <simahawk@gmail.com>
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl).
from odoo.tools import mute_logger
from .common import EDIBackendCommonComponentRegistryTestCase
from .fake_components import FakeOutputChecker, FakeOutputGenerator, FakeOutputSender
LO... | 44.868687 | 4,442 |
2,584 | py | PYTHON | 15.0 | # Copyright 2020 ACSONE
# @author: Simone Orsi <simahawk@gmail.com>
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl).
from freezegun import freeze_time
from .common import EDIBackendCommonTestCase
class EDIBackendTestCase(EDIBackendCommonTestCase):
@freeze_time("2020-10-21 10:00:00")
def test_... | 35.888889 | 2,584 |
3,259 | py | PYTHON | 15.0 | # Copyright 2020 ACSONE
# @author: Simone Orsi <simahawk@gmail.com>
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl).
import base64
from ..exceptions import EDIValidationError
from .common import EDIBackendCommonComponentRegistryTestCase
from .fake_components import (
FakeInputReceive,
FakeInput... | 35.043011 | 3,259 |
9,004 | py | PYTHON | 15.0 | # Copyright 2020 ACSONE SA
# Copyright 2020 Creu Blanca
# Copyright 2022 Camptocamp SA
# @author Simone Orsi <simahawk@gmail.com>
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl).
from lxml import etree
from odoo import api, fields, models
from odoo.tools import safe_eval
from odoo.addons.base_sparse_... | 38.478632 | 9,004 |
872 | py | PYTHON | 15.0 | # Copyright 2020 ACSONE SA
# @author Simone Orsi <simahawk@gmail.com>
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl).
from odoo import api, fields, models
from ..utils import normalize_string
class EDIBackendType(models.Model):
"""Define a kind of backend."""
_name = "edi.backend.type"
... | 25.647059 | 872 |
23,896 | py | PYTHON | 15.0 | # Copyright 2020 ACSONE SA
# Copyright 2020 Creu Blanca
# Copyright 2021 Camptocamp SA
# @author Simone Orsi <simahawk@gmail.com>
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl).
import base64
import logging
from odoo import _, exceptions, fields, models, tools
from odoo.addons.component.exception im... | 37.750395 | 23,896 |
6,891 | py | PYTHON | 15.0 | # Copyright 2020 ACSONE SA
# Copyright 2021 Camptocamp SA
# @author Simone Orsi <simahawk@gmail.com>
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl).
import logging
from datetime import datetime
from pytz import timezone, utc
from odoo import _, api, exceptions, fields, models
from odoo.tools import DE... | 35.158163 | 6,891 |
402 | py | PYTHON | 15.0 | # Copyright 2022 Camptocamp SA
# @author Simone Orsi <simahawk@gmail.com>
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl).
from odoo import fields, models
class EDIIdMixin(models.AbstractModel):
"""Mixin to expose identifier's features"""
_name = "edi.id.mixin"
_description = "EDI ID mixi... | 28.714286 | 402 |
18,024 | py | PYTHON | 15.0 | # Copyright 2020 ACSONE SA
# Copyright 2021 Camptocamp SA
# @author Simone Orsi <simahawk@gmail.com>
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl).
import base64
from collections import defaultdict
from odoo import _, api, exceptions, fields, models
class EDIExchangeRecord(models.Model):
"""
... | 36.265594 | 18,024 |
620 | py | PYTHON | 15.0 | # Copyright 2020 ACSONE
# @author: Simone Orsi <simahawk@gmail.com>
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl).
from odoo.addons.component.core import AbstractComponent
class EDIBackendInputComponentMixin(AbstractComponent):
"""Generate input content."""
_name = "edi.component.input.mixi... | 25.833333 | 620 |
624 | py | PYTHON | 15.0 | # Copyright 2020 ACSONE
# @author: Simone Orsi <simahawk@gmail.com>
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl).
from odoo.addons.component.core import AbstractComponent
class EDIBackendValidateComponentMixin(AbstractComponent):
"""Validate exchange data."""
_name = "edi.component.validat... | 31.2 | 624 |
2,267 | py | PYTHON | 15.0 | # Copyright 2020 ACSONE
# @author: Simone Orsi <simahawk@gmail.com>
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl).
from odoo.addons.component.core import AbstractComponent
class EDIBackendComponentMixin(AbstractComponent):
"""Generic mixin for all EDI components."""
_name = "edi.component.b... | 31.486111 | 2,267 |
944 | py | PYTHON | 15.0 | # Copyright 2020 ACSONE
# @author: Simone Orsi <simahawk@gmail.com>
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl).
from odoo.addons.component.core import AbstractComponent
class EDIBackendOutputComponentMixin(AbstractComponent):
"""Generate output content."""
_name = "edi.component.output.m... | 25.513514 | 944 |
955 | py | PYTHON | 15.0 | # Copyright 2020 Creu Blanca
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl).
from odoo import fields, models
class EdiExchangeRecordCreateWiz(models.TransientModel):
_name = "edi.exchange.record.create.wiz"
_description = "Create an Exchange Record"
res_id = fields.Integer(required=True)... | 38.2 | 955 |
623 | py | PYTHON | 15.0 | # Copyright 2020 ACSONE
# @author: Simone Orsi <simahawk@gmail.com>
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl).
{
"name": "EDI Exchange Template",
"summary": """Allows definition of exchanges via templates.""",
"version": "15.0.1.0.1",
"development_status": "Beta",
"license": "L... | 32.789474 | 623 |
1,341 | py | PYTHON | 15.0 | from lxml import etree
from odoo.tools import pycompat
def xml_purge_nswrapper(xml_content):
"""Purge `nswrapper` elements.
QWeb template does not allow parsing namespaced elements
without declaring namespaces on the root element.
Hence, by default you cannot define smaller re-usable templates
... | 33.525 | 1,341 |
6,025 | py | PYTHON | 15.0 | # Copyright 2020 ACSONE SA/NV (<http://acsone.eu>)
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html).
import base64
from lxml import etree
from odoo.addons.edi_oca.tests.common import EDIBackendCommonComponentTestCase
class TestEDIBackendOutputBase(EDIBackendCommonComponentTestCase):
@classmet... | 37.191358 | 6,025 |
1,821 | py | PYTHON | 15.0 | # Copyright 2020 ACSONE SA
# @author Simone Orsi <simahawk@gmail.com>
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl).
from odoo import models
class EDIBackend(models.Model):
_inherit = "edi.backend"
def _exchange_generate(self, exchange_record, **kw):
# Template take precedence over ... | 39.586957 | 1,821 |
3,425 | py | PYTHON | 15.0 | # Copyright 2020 ACSONE SA
# @author Simone Orsi <simahawk@gmail.com>
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl).
import datetime
import logging
import textwrap
import pytz
from odoo import fields, models
from odoo.tools import DotDict, safe_eval
_logger = logging.getLogger(__name__)
class EDIE... | 29.782609 | 3,425 |
4,949 | py | PYTHON | 15.0 | # Copyright 2020 ACSONE SA
# @author Simone Orsi <simahawk@gmail.com>
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl).
import logging
from odoo import fields, models
from ..utils import xml_purge_nswrapper
_logger = logging.getLogger(__name__)
class EDIExchangeOutputTemplate(models.Model):
"""De... | 35.862319 | 4,949 |
858 | py | PYTHON | 15.0 | # Copyright 2020 ACSONE
# @author: Simone Orsi <simahawk@gmail.com>
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl).
from odoo.addons.component.core import AbstractComponent
class EDIExchangeInfoMixin(AbstractComponent):
"""Abstract component mixin provide info for exchanges."""
# TODO: this ... | 37.304348 | 858 |
1,073 | py | PYTHON | 15.0 | # Copyright 2020 ACSONE
# @author: Simone Orsi <simahawk@gmail.com>
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl).
import datetime
import pytz
from odoo import fields
from odoo.addons.component.core import AbstractComponent
class EDIExchangeInfoOutputMixin(AbstractComponent):
"""Abstract comp... | 25.547619 | 1,073 |
557 | py | PYTHON | 15.0 | # Copyright 2022 Camptocamp SA
# @author: Simone Orsi <simahawk@gmail.com>
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl).
# TODO: move it to a simple python package under OCA umbrella?
{
"name": "PDF Helper",
"version": "15.0.1.0.0",
"category": "Tools",
"license": "LGPL-3",
"summa... | 30.944444 | 557 |
2,406 | py | PYTHON | 15.0 | # Copyright 2015-2021 Akretion France
# @author: Alexis de Lattre <alexis.delattre@akretion.com>
# Copyright 2022 Camptocamp SA
# @author: Simone Orsi <simahawk@gmail.com>
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl).
import logging
import mimetypes
from io import BytesIO
from lxml import etree
_lo... | 34.371429 | 2,406 |
1,666 | py | PYTHON | 15.0 | # Copyright 2022 Camptocamp SA
# @author: Simone Orsi <simahawk@gmail.com>
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl).
import os
from lxml import etree
from odoo.tests.common import TransactionCase, TreeCase
from odoo.addons.pdf_helper.utils import PDFParser
def read_test_file(filename, mode="r... | 36.217391 | 1,666 |
1,005 | py | PYTHON | 15.0 | # Copyright 2022 Camptocamp SA
# @author: Simone Orsi <simahawk@gmail.com>
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl).
import logging
from PyPDF2.utils import PdfReadError
from odoo import models
from ..utils import PDFParser
_logger = logging.getLogger(__name__)
class PDFHelper(models.Abstrac... | 30.454545 | 1,005 |
574 | py | PYTHON | 15.0 | # Copyright 2021 ForgeFlow S.L. (https://www.forgeflow.com)
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl).
{
"name": "EDI Backend Partner",
"summary": "Add the a partner field to EDI backend",
"version": "15.0.1.0.0",
"license": "LGPL-3",
"author": "ForgeFlow, Odoo Community Associ... | 35.875 | 574 |
723 | py | PYTHON | 15.0 | # Copyright 2021 ForgeFlow S.L. (https://www.forgeflow.com)
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl).
import logging
from odoo.addons.edi_oca.tests.common import EDIBackendCommonTestCase
_logger = logging.getLogger(__name__)
class EDIBackendPartnerTestCase(EDIBackendCommonTestCase):
def t... | 36.15 | 723 |
282 | py | PYTHON | 15.0 | # Copyright 2021 ForgeFlow S.L. (https://www.forgeflow.com)
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl).
from odoo import fields, models
class EdiBackend(models.Model):
_inherit = "edi.backend"
partner_id = fields.Many2one(comodel_name="res.partner")
| 28.2 | 282 |
1,053 | py | PYTHON | 15.0 | # Copyright 2021 ForgeFlow S.L. (https://www.forgeflow.com)
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl).
from odoo import fields, models
class Partner(models.Model):
_inherit = "res.partner"
edi_backend_ids = fields.One2many(
comodel_name="edi.backend",
inverse_name="partn... | 35.1 | 1,053 |
100 | py | PYTHON | 15.0 | import setuptools
setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)
| 16.666667 | 100 |
1,457 | py | PYTHON | 15.0 | import setuptools
with open('VERSION.txt', 'r') as f:
version = f.read().strip()
setuptools.setup(
name="odoo-addons-oca-edi",
description="Meta package for oca-edi Odoo addons",
version=version,
install_requires=[
'odoo-addon-account_einvoice_generate>=15.0dev,<15.1dev',
'odoo-add... | 41.628571 | 1,457 |
100 | py | PYTHON | 15.0 | import setuptools
setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)
| 16.666667 | 100 |
100 | py | PYTHON | 15.0 | import setuptools
setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)
| 16.666667 | 100 |
100 | py | PYTHON | 15.0 | import setuptools
setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)
| 16.666667 | 100 |
100 | py | PYTHON | 15.0 | import setuptools
setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)
| 16.666667 | 100 |
100 | py | PYTHON | 15.0 | import setuptools
setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)
| 16.666667 | 100 |
100 | py | PYTHON | 15.0 | import setuptools
setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)
| 16.666667 | 100 |
100 | py | PYTHON | 15.0 | import setuptools
setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)
| 16.666667 | 100 |
100 | py | PYTHON | 15.0 | import setuptools
setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)
| 16.666667 | 100 |
100 | py | PYTHON | 15.0 | import setuptools
setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)
| 16.666667 | 100 |
100 | py | PYTHON | 15.0 | import setuptools
setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)
| 16.666667 | 100 |
100 | py | PYTHON | 15.0 | import setuptools
setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)
| 16.666667 | 100 |
100 | py | PYTHON | 15.0 | import setuptools
setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)
| 16.666667 | 100 |
100 | py | PYTHON | 15.0 | import setuptools
setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)
| 16.666667 | 100 |
100 | py | PYTHON | 15.0 | import setuptools
setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)
| 16.666667 | 100 |
100 | py | PYTHON | 15.0 | import setuptools
setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)
| 16.666667 | 100 |
100 | py | PYTHON | 15.0 | import setuptools
setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)
| 16.666667 | 100 |
100 | py | PYTHON | 15.0 | import setuptools
setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)
| 16.666667 | 100 |
608 | py | PYTHON | 15.0 | # Copyright 2021 Tecnativa - Ernesto Tejeda
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
{
"name": "Edi Voxel Secondary Unit Oca",
"summary": "Add Voxel UoM code to Secondary UoM model",
"version": "15.0.1.0.0",
"category": "Hidden",
"website": "https://github.com/OCA/edi",
"... | 38 | 608 |
348 | py | PYTHON | 15.0 | # Copyright 2021 Tecnativa - Ernesto Tejeda
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from odoo import fields, models
from odoo.addons.edi_voxel_oca.models.uom_uom import VOXEL_CODE
class ProductSecondaryUnit(models.Model):
_inherit = "product.secondary.unit"
voxel_code = fields.Sele... | 29 | 348 |
570 | py | PYTHON | 15.0 | # © 2016-2017 Akretion (Alexis de Lattre <alexis.delattre@akretion.com>)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
{
"name": "Base UBL",
"version": "15.0.1.0.0",
"category": "Hidden",
"license": "AGPL-3",
"summary": "Base module for Universal Business Language (UBL)",
"au... | 37.933333 | 569 |
13,213 | py | PYTHON | 15.0 | # Copyright 2019 Onestein (<https://www.onestein.eu>)
# © 2017-2020 Akretion (Alexis de Lattre <alexis.delattre@akretion.com>)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
import mimetypes
from io import BytesIO
from lxml import etree
from PyPDF2 import PdfFileReader
from odoo.exceptions import U... | 38.631579 | 13,212 |
35,082 | py | PYTHON | 15.0 | # © 2016-2017 Akretion (Alexis de Lattre <alexis.delattre@akretion.com>)
# Copyright 2019 Onestein (<https://www.onestein.eu>)
# Copyright 2020 Jacques-Etienne Baudoux (BCIM) <je@bcim.be>
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
import logging
import mimetypes
from io import BytesIO
from lxml ... | 42.266265 | 35,081 |
619 | py | PYTHON | 15.0 | # Copyright 2021 Tecnativa - Ernesto Tejeda
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
{
"name": "Voxel stock picking secondary unit",
"summary": "Export Secondary UoMs Voxel Code in picking Voxel documents",
"version": "15.0.1.0.0",
"category": "Warehouse Management",
"website... | 36.411765 | 619 |
2,385 | py | PYTHON | 15.0 | # Copyright 2019 Tecnativa - Ernesto Tejeda
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo.tests import Form
from odoo.addons.edi_voxel_stock_picking_oca.tests.test_voxel_stock_picking import (
TestVoxelStockPickingCommon,
)
class TestVoxelStockPickingSecondaryUnit(TestVoxelStockPicki... | 35.073529 | 2,385 |
574 | py | PYTHON | 15.0 | # Copyright 2019 Tecnativa - Ernesto Tejeda
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import models
class ReportVoxelPicking(models.AbstractModel):
_inherit = "report.edi_voxel_stock_picking_oca.template_voxel_picking"
def _get_product_data(self, line):
res = super().... | 33.764706 | 574 |
524 | py | PYTHON | 15.0 | # Copyright 2020 Creu Blanca
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
{
"name": "Edi WebService",
"summary": """
Defines webservice integration from EDI Exchange records""",
"version": "15.0.1.1.0",
"license": "AGPL-3",
"development_status": "Beta",
"author": "Cre... | 34.933333 | 524 |
1,275 | py | PYTHON | 15.0 | # Copyright 2020 Creu Blanca
# @author: Enric Tobella
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo.addons.edi_oca.tests.common import EDIBackendCommonTestCase
class TestEdiWebService(EDIBackendCommonTestCase):
@classmethod
def _setup_records(cls):
result = super()._setup_... | 36.428571 | 1,275 |
1,389 | py | PYTHON | 15.0 | # Copyright 2020 Creu Blanca
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import fields, models
class EdiBackend(models.Model):
_inherit = "edi.backend"
webservice_backend_id = fields.Many2one("webservice.backend")
_webservice_actions = ("send", "receive")
def _get_com... | 39.685714 | 1,389 |
1,164 | py | PYTHON | 15.0 | # Copyright 2021 Camptcamp SA
# @author: Simone Orsi <simone.orsi@camptocamp.com>
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl).
from odoo import api, fields, models
class EDIBackend(models.Model):
_inherit = "edi.backend"
endpoint_ids = fields.One2many(
string="Endpoints",
... | 31.459459 | 1,164 |
521 | py | PYTHON | 15.0 | # Copyright 2022 Odoo Community Association
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
{
"name": "Edi Stock Oca",
"summary": """
Define EDI Configuration for Stock""",
"version": "15.0.1.0.0",
"license": "AGPL-3",
"author": "Odoo Community Association,Odoo Community Asso... | 34.733333 | 521 |
2,024 | py | PYTHON | 15.0 | # Copyright 2022 Creu Blanca
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl).
from odoo.tests.common import tagged
from odoo.addons.component.core import Component
from odoo.addons.component.tests.common import TransactionComponentRegistryCase
from odoo.addons.stock.tests.common import TestStockCommon
... | 36.8 | 2,024 |
639 | py | PYTHON | 15.0 | # Copyright 2022 OCA
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import fields, models
class StockPicking(models.Model):
_name = "stock.picking"
_inherit = ["stock.picking", "edi.exchange.consumer.mixin"]
edi_auto_disabled = fields.Boolean(
states={
"dra... | 27.782609 | 639 |
443 | py | PYTHON | 15.0 | # Copyright 2018-2021 Akretion France (http://www.akretion.com/)
# @author: Alexis de Lattre <alexis.delattre@akretion.com>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import SUPERUSER_ID, api
def set_xml_format_in_pdf_invoice_to_facturx(cr, registry):
env = api.Environment(cr, SUPE... | 40.272727 | 443 |
945 | py | PYTHON | 15.0 | # Copyright 2016-2021 Akretion France (http://www.akretion.com/)
# @author: Alexis de Lattre <alexis.delattre@akretion.com>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
{
"name": "Account Invoice Factur-X",
"version": "15.0.1.0.0",
"category": "Invoicing Management",
"license": "AGPL... | 33.75 | 945 |
3,356 | py | PYTHON | 15.0 | # Copyright 2015-2020 Akretion France
# @author: Alexis de Lattre <alexis.delattre@akretion.com>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
import logging
from facturx import get_facturx_level
from lxml import etree
from odoo.tests.common import TransactionCase
logger = logging.getLogger(_... | 40.926829 | 3,356 |
41,723 | py | PYTHON | 15.0 | # Copyright 2016-2021 Akretion France (http://www.akretion.com)
# @author: Alexis de Lattre <alexis.delattre@akretion.com>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
import logging
from lxml import etree
from odoo import _, api, fields, models
from odoo.exceptions import UserError
from odoo... | 44.528282 | 41,723 |
1,274 | py | PYTHON | 15.0 | # Copyright 2016-2021 Akretion France (http://www.akretion.com)
# @author: Alexis de Lattre <alexis.delattre@akretion.com>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from odoo import models
class IrActionsReport(models.Model):
_inherit = "ir.actions.report"
def _post_pdf(self, save... | 39.8125 | 1,274 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.