Skip to content

Commit

Permalink
[17.0] Migrate
Browse files Browse the repository at this point in the history
  • Loading branch information
onurugur committed Jun 14, 2024
1 parent c18e45f commit b008157
Show file tree
Hide file tree
Showing 9 changed files with 23 additions and 8 deletions.
3 changes: 3 additions & 0 deletions attribute_set/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@



from . import models
from . import wizard
from . import utils
3 changes: 3 additions & 0 deletions attribute_set/models/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@



from . import attribute_attribute
from . import attribute_option
from . import attribute_set
Expand Down
9 changes: 3 additions & 6 deletions attribute_set/models/attribute_attribute.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,17 @@
import ast
import logging
import re
from lxml import etree
from unidecode import unidecode

from odoo import _, api, fields, models
from odoo.exceptions import ValidationError

from ..utils.orm import setup_modifiers

from lxml import etree

_logger = logging.getLogger(__name__)

try:
from unidecode import unidecode
except ImportError as err:
_logger.debug(err)



def safe_column_name(string):
Expand Down
2 changes: 1 addition & 1 deletion attribute_set/models/attribute_set_owner.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).


from lxml import etree
from odoo import _, api, fields, models
from odoo.exceptions import ValidationError

from lxml import etree


class AttributeSetOwnerMixin(models.AbstractModel):
Expand Down
4 changes: 4 additions & 0 deletions attribute_set/tests/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@



from . import test_custom_attribute
from . import test_build_view
from . import models
3 changes: 3 additions & 0 deletions attribute_set/utils/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@



from . import orm
1 change: 1 addition & 0 deletions attribute_set/utils/orm.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Copyright 2020 ACSONE SA/NV (<http://acsone.eu>)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).

import json


Expand Down
3 changes: 3 additions & 0 deletions attribute_set/wizard/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@



from . import attribute_option_wizard

3 changes: 2 additions & 1 deletion attribute_set/wizard/attribute_option_wizard.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,10 @@
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).


from lxml import etree

from odoo import api, fields, models

from lxml import etree


class AttributeOptionWizard(models.TransientModel):
Expand Down

0 comments on commit b008157

Please sign in to comment.