Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions attribute_set_test/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
==================
Attribute Set Test
==================

This is a test module for the attribute_set functionality.

It provides test models and diagnostic tests to verify attribute set behavior
within Odoo.
1 change: 1 addition & 0 deletions attribute_set_test/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
14 changes: 14 additions & 0 deletions attribute_set_test/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"name": "Attribute Set Test",
"summary": """
Test/demo module for attribute_set.
""",
"version": "18.0.1.0.0",
"license": "AGPL-3",
"author": "KOBROS-TECH LTD, Odoo Community Association (OCA)",
"maintainers": ["kobros-tech"],
"website": "https://github.com/OCA/odoo-pim",
"depends": ["base", "attribute_set"],
"installable": True,
"auto_install": False,
}
1 change: 1 addition & 0 deletions attribute_set_test/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
16 changes: 16 additions & 0 deletions attribute_set_test/models/models.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Copyright 2020 Akretion (http://www.akretion.com).
# @author Sébastien BEAU <sebastien.beau@akretion.com>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).


from odoo import models


class ResPartner(models.Model):
_inherit = ["res.partner", "attribute.set.owner.mixin"]
_name = "res.partner"


class ResCountry(models.Model):
_inherit = ["res.country", "attribute.set.owner.mixin"]
_name = "res.country"
3 changes: 3 additions & 0 deletions attribute_set_test/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[build-system]
requires = ["whool"]
build-backend = "whool.buildapi"
2 changes: 2 additions & 0 deletions attribute_set_test/tests/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
from . import test_custom_attribute
from . import test_build_view
Loading
Loading