Skip to content

Commit

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



from . import models
from . import wizard
from . import utils
from . import models, utils, wizard
7 changes: 2 additions & 5 deletions attribute_set/models/__init__.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@



from . import attribute_attribute
from . import attribute_option
from . import attribute_set
from . import attribute_set_owner
from . import attribute_group
from . import (attribute_attribute, attribute_group, attribute_option,
attribute_set, attribute_set_owner)
4 changes: 2 additions & 2 deletions attribute_set/models/attribute_attribute.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@
import ast
import logging
import re
from lxml import etree
from unidecode import unidecode

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

from ..utils.orm import setup_modifiers

Expand Down
1 change: 0 additions & 1 deletion attribute_set/models/attribute_set_owner.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
from odoo.exceptions import ValidationError



class AttributeSetOwnerMixin(models.AbstractModel):
"""Mixin for consumers of attribute sets."""

Expand Down
4 changes: 1 addition & 3 deletions attribute_set/tests/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@



from . import test_custom_attribute
from . import test_build_view
from . import models
from . import models, test_build_view, test_custom_attribute
3 changes: 1 addition & 2 deletions attribute_set/tests/test_build_view.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,8 @@

import ast

from odoo.tests import Form, TransactionCase, users

from lxml import etree
from odoo.tests import Form, TransactionCase, users
from odoo_test_helper import FakeModelLoader


Expand Down
2 changes: 0 additions & 2 deletions attribute_set/wizard/attribute_option_wizard.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,9 @@


from lxml import etree

from odoo import api, fields, models



class AttributeOptionWizard(models.TransientModel):
_name = "attribute.option.wizard"
_rec_name = "attribute_id"
Expand Down

0 comments on commit 5582035

Please sign in to comment.